configure 587 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="configure.in"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. USE_EXPAT_FALSE
  586. USE_EXPAT_TRUE
  587. EXPAT_LIBS
  588. EXPAT_CFLAGS
  589. HAVE_LATEX_FALSE
  590. HAVE_LATEX_TRUE
  591. HAVE_LATEX
  592. LATEX
  593. HAVE_DOT
  594. DOT
  595. DOC_FALSE
  596. DOC_TRUE
  597. DOXYGEN
  598. WITH_MMAP_FALSE
  599. WITH_MMAP_TRUE
  600. GETHOSTNAME_LIB
  601. ALLOCA
  602. TEST_FALSE
  603. TEST_TRUE
  604. WITH_ROLLINGFILE_FALSE
  605. WITH_ROLLINGFILE_TRUE
  606. WIN32_FALSE
  607. WIN32_TRUE
  608. LDFLAGS_NOUNDEFINED
  609. CXXCPP
  610. OTOOL64
  611. OTOOL
  612. LIPO
  613. NMEDIT
  614. DSYMUTIL
  615. MANIFEST_TOOL
  616. RANLIB
  617. ac_ct_AR
  618. AR
  619. DLLTOOL
  620. OBJDUMP
  621. NM
  622. ac_ct_DUMPBIN
  623. DUMPBIN
  624. LD
  625. FGREP
  626. EGREP
  627. GREP
  628. SED
  629. LIBTOOL
  630. LN_S
  631. LEXLIB
  632. LEX_OUTPUT_ROOT
  633. LEX
  634. am__fastdepCXX_FALSE
  635. am__fastdepCXX_TRUE
  636. CXXDEPMODE
  637. ac_ct_CXX
  638. CXXFLAGS
  639. CXX
  640. CPP
  641. am__fastdepCC_FALSE
  642. am__fastdepCC_TRUE
  643. CCDEPMODE
  644. am__nodep
  645. AMDEPBACKSLASH
  646. AMDEP_FALSE
  647. AMDEP_TRUE
  648. am__quote
  649. am__include
  650. DEPDIR
  651. OBJEXT
  652. EXEEXT
  653. ac_ct_CC
  654. CPPFLAGS
  655. LDFLAGS
  656. CFLAGS
  657. CC
  658. YFLAGS
  659. YACC
  660. host_os
  661. host_vendor
  662. host_cpu
  663. host
  664. build_os
  665. build_vendor
  666. build_cpu
  667. build
  668. AM_BACKSLASH
  669. AM_DEFAULT_VERBOSITY
  670. AM_DEFAULT_V
  671. AM_V
  672. am__untar
  673. am__tar
  674. AMTAR
  675. am__leading_dot
  676. SET_MAKE
  677. AWK
  678. mkdir_p
  679. MKDIR_P
  680. INSTALL_STRIP_PROGRAM
  681. STRIP
  682. install_sh
  683. MAKEINFO
  684. AUTOHEADER
  685. AUTOMAKE
  686. AUTOCONF
  687. ACLOCAL
  688. VERSION
  689. PACKAGE
  690. CYGPATH_W
  691. am__isrc
  692. INSTALL_DATA
  693. INSTALL_SCRIPT
  694. INSTALL_PROGRAM
  695. LT_VERSION
  696. LOG4C_MICRO_VERSION
  697. LOG4C_MINOR_VERSION
  698. LOG4C_MAJOR_VERSION
  699. target_alias
  700. host_alias
  701. build_alias
  702. LIBS
  703. ECHO_T
  704. ECHO_N
  705. ECHO_C
  706. DEFS
  707. mandir
  708. localedir
  709. libdir
  710. psdir
  711. pdfdir
  712. dvidir
  713. htmldir
  714. infodir
  715. docdir
  716. oldincludedir
  717. includedir
  718. localstatedir
  719. sharedstatedir
  720. sysconfdir
  721. datadir
  722. datarootdir
  723. libexecdir
  724. sbindir
  725. bindir
  726. program_transform_name
  727. prefix
  728. exec_prefix
  729. PACKAGE_URL
  730. PACKAGE_BUGREPORT
  731. PACKAGE_STRING
  732. PACKAGE_VERSION
  733. PACKAGE_TARNAME
  734. PACKAGE_NAME
  735. PATH_SEPARATOR
  736. SHELL'
  737. ac_subst_files=''
  738. ac_user_opts='
  739. enable_option_checking
  740. enable_silent_rules
  741. enable_dependency_tracking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_debug
  750. enable_reread
  751. enable_test
  752. enable_doc
  753. enable_constructors
  754. with_expat
  755. with_expat_prefix
  756. enable_expattest
  757. '
  758. ac_precious_vars='build_alias
  759. host_alias
  760. target_alias
  761. YACC
  762. YFLAGS
  763. CC
  764. CFLAGS
  765. LDFLAGS
  766. LIBS
  767. CPPFLAGS
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. CCC
  772. CXXCPP'
  773. # Initialize some variables set by options.
  774. ac_init_help=
  775. ac_init_version=false
  776. ac_unrecognized_opts=
  777. ac_unrecognized_sep=
  778. # The variables have the same names as the options, with
  779. # dashes changed to underlines.
  780. cache_file=/dev/null
  781. exec_prefix=NONE
  782. no_create=
  783. no_recursion=
  784. prefix=NONE
  785. program_prefix=NONE
  786. program_suffix=NONE
  787. program_transform_name=s,x,x,
  788. silent=
  789. site=
  790. srcdir=
  791. verbose=
  792. x_includes=NONE
  793. x_libraries=NONE
  794. # Installation directory options.
  795. # These are left unexpanded so users can "make install exec_prefix=/foo"
  796. # and all the variables that are supposed to be based on exec_prefix
  797. # by default will actually change.
  798. # Use braces instead of parens because sh, perl, etc. also accept them.
  799. # (The list follows the same order as the GNU Coding Standards.)
  800. bindir='${exec_prefix}/bin'
  801. sbindir='${exec_prefix}/sbin'
  802. libexecdir='${exec_prefix}/libexec'
  803. datarootdir='${prefix}/share'
  804. datadir='${datarootdir}'
  805. sysconfdir='${prefix}/etc'
  806. sharedstatedir='${prefix}/com'
  807. localstatedir='${prefix}/var'
  808. includedir='${prefix}/include'
  809. oldincludedir='/usr/include'
  810. docdir='${datarootdir}/doc/${PACKAGE}'
  811. infodir='${datarootdir}/info'
  812. htmldir='${docdir}'
  813. dvidir='${docdir}'
  814. pdfdir='${docdir}'
  815. psdir='${docdir}'
  816. libdir='${exec_prefix}/lib'
  817. localedir='${datarootdir}/locale'
  818. mandir='${datarootdir}/man'
  819. ac_prev=
  820. ac_dashdash=
  821. for ac_option
  822. do
  823. # If the previous option needs an argument, assign it.
  824. if test -n "$ac_prev"; then
  825. eval $ac_prev=\$ac_option
  826. ac_prev=
  827. continue
  828. fi
  829. case $ac_option in
  830. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  831. *=) ac_optarg= ;;
  832. *) ac_optarg=yes ;;
  833. esac
  834. # Accept the important Cygnus configure options, so we can diagnose typos.
  835. case $ac_dashdash$ac_option in
  836. --)
  837. ac_dashdash=yes ;;
  838. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  839. ac_prev=bindir ;;
  840. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  841. bindir=$ac_optarg ;;
  842. -build | --build | --buil | --bui | --bu)
  843. ac_prev=build_alias ;;
  844. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  845. build_alias=$ac_optarg ;;
  846. -cache-file | --cache-file | --cache-fil | --cache-fi \
  847. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  848. ac_prev=cache_file ;;
  849. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  850. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  851. cache_file=$ac_optarg ;;
  852. --config-cache | -C)
  853. cache_file=config.cache ;;
  854. -datadir | --datadir | --datadi | --datad)
  855. ac_prev=datadir ;;
  856. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  857. datadir=$ac_optarg ;;
  858. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  859. | --dataroo | --dataro | --datar)
  860. ac_prev=datarootdir ;;
  861. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  862. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  863. datarootdir=$ac_optarg ;;
  864. -disable-* | --disable-*)
  865. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  866. # Reject names that are not valid shell variable names.
  867. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  868. as_fn_error $? "invalid feature name: $ac_useropt"
  869. ac_useropt_orig=$ac_useropt
  870. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  871. case $ac_user_opts in
  872. *"
  873. "enable_$ac_useropt"
  874. "*) ;;
  875. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  876. ac_unrecognized_sep=', ';;
  877. esac
  878. eval enable_$ac_useropt=no ;;
  879. -docdir | --docdir | --docdi | --doc | --do)
  880. ac_prev=docdir ;;
  881. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  882. docdir=$ac_optarg ;;
  883. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  884. ac_prev=dvidir ;;
  885. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  886. dvidir=$ac_optarg ;;
  887. -enable-* | --enable-*)
  888. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  891. as_fn_error $? "invalid feature name: $ac_useropt"
  892. ac_useropt_orig=$ac_useropt
  893. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  894. case $ac_user_opts in
  895. *"
  896. "enable_$ac_useropt"
  897. "*) ;;
  898. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  899. ac_unrecognized_sep=', ';;
  900. esac
  901. eval enable_$ac_useropt=\$ac_optarg ;;
  902. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  903. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  904. | --exec | --exe | --ex)
  905. ac_prev=exec_prefix ;;
  906. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  907. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  908. | --exec=* | --exe=* | --ex=*)
  909. exec_prefix=$ac_optarg ;;
  910. -gas | --gas | --ga | --g)
  911. # Obsolete; use --with-gas.
  912. with_gas=yes ;;
  913. -help | --help | --hel | --he | -h)
  914. ac_init_help=long ;;
  915. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  916. ac_init_help=recursive ;;
  917. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  918. ac_init_help=short ;;
  919. -host | --host | --hos | --ho)
  920. ac_prev=host_alias ;;
  921. -host=* | --host=* | --hos=* | --ho=*)
  922. host_alias=$ac_optarg ;;
  923. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  924. ac_prev=htmldir ;;
  925. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  926. | --ht=*)
  927. htmldir=$ac_optarg ;;
  928. -includedir | --includedir | --includedi | --included | --include \
  929. | --includ | --inclu | --incl | --inc)
  930. ac_prev=includedir ;;
  931. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  932. | --includ=* | --inclu=* | --incl=* | --inc=*)
  933. includedir=$ac_optarg ;;
  934. -infodir | --infodir | --infodi | --infod | --info | --inf)
  935. ac_prev=infodir ;;
  936. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  937. infodir=$ac_optarg ;;
  938. -libdir | --libdir | --libdi | --libd)
  939. ac_prev=libdir ;;
  940. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  941. libdir=$ac_optarg ;;
  942. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  943. | --libexe | --libex | --libe)
  944. ac_prev=libexecdir ;;
  945. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  946. | --libexe=* | --libex=* | --libe=*)
  947. libexecdir=$ac_optarg ;;
  948. -localedir | --localedir | --localedi | --localed | --locale)
  949. ac_prev=localedir ;;
  950. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  951. localedir=$ac_optarg ;;
  952. -localstatedir | --localstatedir | --localstatedi | --localstated \
  953. | --localstate | --localstat | --localsta | --localst | --locals)
  954. ac_prev=localstatedir ;;
  955. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  956. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  957. localstatedir=$ac_optarg ;;
  958. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  959. ac_prev=mandir ;;
  960. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  961. mandir=$ac_optarg ;;
  962. -nfp | --nfp | --nf)
  963. # Obsolete; use --without-fp.
  964. with_fp=no ;;
  965. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  966. | --no-cr | --no-c | -n)
  967. no_create=yes ;;
  968. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  969. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  970. no_recursion=yes ;;
  971. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  972. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  973. | --oldin | --oldi | --old | --ol | --o)
  974. ac_prev=oldincludedir ;;
  975. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  976. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  977. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  978. oldincludedir=$ac_optarg ;;
  979. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  980. ac_prev=prefix ;;
  981. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  982. prefix=$ac_optarg ;;
  983. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  984. | --program-pre | --program-pr | --program-p)
  985. ac_prev=program_prefix ;;
  986. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  987. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  988. program_prefix=$ac_optarg ;;
  989. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  990. | --program-suf | --program-su | --program-s)
  991. ac_prev=program_suffix ;;
  992. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  993. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  994. program_suffix=$ac_optarg ;;
  995. -program-transform-name | --program-transform-name \
  996. | --program-transform-nam | --program-transform-na \
  997. | --program-transform-n | --program-transform- \
  998. | --program-transform | --program-transfor \
  999. | --program-transfo | --program-transf \
  1000. | --program-trans | --program-tran \
  1001. | --progr-tra | --program-tr | --program-t)
  1002. ac_prev=program_transform_name ;;
  1003. -program-transform-name=* | --program-transform-name=* \
  1004. | --program-transform-nam=* | --program-transform-na=* \
  1005. | --program-transform-n=* | --program-transform-=* \
  1006. | --program-transform=* | --program-transfor=* \
  1007. | --program-transfo=* | --program-transf=* \
  1008. | --program-trans=* | --program-tran=* \
  1009. | --progr-tra=* | --program-tr=* | --program-t=*)
  1010. program_transform_name=$ac_optarg ;;
  1011. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1012. ac_prev=pdfdir ;;
  1013. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1014. pdfdir=$ac_optarg ;;
  1015. -psdir | --psdir | --psdi | --psd | --ps)
  1016. ac_prev=psdir ;;
  1017. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1018. psdir=$ac_optarg ;;
  1019. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1020. | -silent | --silent | --silen | --sile | --sil)
  1021. silent=yes ;;
  1022. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1023. ac_prev=sbindir ;;
  1024. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1025. | --sbi=* | --sb=*)
  1026. sbindir=$ac_optarg ;;
  1027. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1028. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1029. | --sharedst | --shareds | --shared | --share | --shar \
  1030. | --sha | --sh)
  1031. ac_prev=sharedstatedir ;;
  1032. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1033. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1034. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1035. | --sha=* | --sh=*)
  1036. sharedstatedir=$ac_optarg ;;
  1037. -site | --site | --sit)
  1038. ac_prev=site ;;
  1039. -site=* | --site=* | --sit=*)
  1040. site=$ac_optarg ;;
  1041. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1042. ac_prev=srcdir ;;
  1043. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1044. srcdir=$ac_optarg ;;
  1045. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1046. | --syscon | --sysco | --sysc | --sys | --sy)
  1047. ac_prev=sysconfdir ;;
  1048. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1049. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1050. sysconfdir=$ac_optarg ;;
  1051. -target | --target | --targe | --targ | --tar | --ta | --t)
  1052. ac_prev=target_alias ;;
  1053. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1054. target_alias=$ac_optarg ;;
  1055. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1056. verbose=yes ;;
  1057. -version | --version | --versio | --versi | --vers | -V)
  1058. ac_init_version=: ;;
  1059. -with-* | --with-*)
  1060. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1061. # Reject names that are not valid shell variable names.
  1062. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1063. as_fn_error $? "invalid package name: $ac_useropt"
  1064. ac_useropt_orig=$ac_useropt
  1065. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1066. case $ac_user_opts in
  1067. *"
  1068. "with_$ac_useropt"
  1069. "*) ;;
  1070. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1071. ac_unrecognized_sep=', ';;
  1072. esac
  1073. eval with_$ac_useropt=\$ac_optarg ;;
  1074. -without-* | --without-*)
  1075. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1076. # Reject names that are not valid shell variable names.
  1077. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1078. as_fn_error $? "invalid package name: $ac_useropt"
  1079. ac_useropt_orig=$ac_useropt
  1080. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1081. case $ac_user_opts in
  1082. *"
  1083. "with_$ac_useropt"
  1084. "*) ;;
  1085. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1086. ac_unrecognized_sep=', ';;
  1087. esac
  1088. eval with_$ac_useropt=no ;;
  1089. --x)
  1090. # Obsolete; use --with-x.
  1091. with_x=yes ;;
  1092. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1093. | --x-incl | --x-inc | --x-in | --x-i)
  1094. ac_prev=x_includes ;;
  1095. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1096. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1097. x_includes=$ac_optarg ;;
  1098. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1099. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1100. ac_prev=x_libraries ;;
  1101. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1102. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1103. x_libraries=$ac_optarg ;;
  1104. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1105. Try \`$0 --help' for more information"
  1106. ;;
  1107. *=*)
  1108. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1109. # Reject names that are not valid shell variable names.
  1110. case $ac_envvar in #(
  1111. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1112. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1113. esac
  1114. eval $ac_envvar=\$ac_optarg
  1115. export $ac_envvar ;;
  1116. *)
  1117. # FIXME: should be removed in autoconf 3.0.
  1118. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1119. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1120. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1121. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1122. ;;
  1123. esac
  1124. done
  1125. if test -n "$ac_prev"; then
  1126. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1127. as_fn_error $? "missing argument to $ac_option"
  1128. fi
  1129. if test -n "$ac_unrecognized_opts"; then
  1130. case $enable_option_checking in
  1131. no) ;;
  1132. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1133. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1134. esac
  1135. fi
  1136. # Check all directory arguments for consistency.
  1137. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1138. datadir sysconfdir sharedstatedir localstatedir includedir \
  1139. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1140. libdir localedir mandir
  1141. do
  1142. eval ac_val=\$$ac_var
  1143. # Remove trailing slashes.
  1144. case $ac_val in
  1145. */ )
  1146. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1147. eval $ac_var=\$ac_val;;
  1148. esac
  1149. # Be sure to have absolute directory names.
  1150. case $ac_val in
  1151. [\\/$]* | ?:[\\/]* ) continue;;
  1152. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1153. esac
  1154. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1155. done
  1156. # There might be people who depend on the old broken behavior: `$host'
  1157. # used to hold the argument of --host etc.
  1158. # FIXME: To remove some day.
  1159. build=$build_alias
  1160. host=$host_alias
  1161. target=$target_alias
  1162. # FIXME: To remove some day.
  1163. if test "x$host_alias" != x; then
  1164. if test "x$build_alias" = x; then
  1165. cross_compiling=maybe
  1166. elif test "x$build_alias" != "x$host_alias"; then
  1167. cross_compiling=yes
  1168. fi
  1169. fi
  1170. ac_tool_prefix=
  1171. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1172. test "$silent" = yes && exec 6>/dev/null
  1173. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1174. ac_ls_di=`ls -di .` &&
  1175. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1176. as_fn_error $? "working directory cannot be determined"
  1177. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1178. as_fn_error $? "pwd does not report name of working directory"
  1179. # Find the source files, if location was not specified.
  1180. if test -z "$srcdir"; then
  1181. ac_srcdir_defaulted=yes
  1182. # Try the directory containing this script, then the parent directory.
  1183. ac_confdir=`$as_dirname -- "$as_myself" ||
  1184. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1185. X"$as_myself" : 'X\(//\)[^/]' \| \
  1186. X"$as_myself" : 'X\(//\)$' \| \
  1187. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1188. $as_echo X"$as_myself" |
  1189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1190. s//\1/
  1191. q
  1192. }
  1193. /^X\(\/\/\)[^/].*/{
  1194. s//\1/
  1195. q
  1196. }
  1197. /^X\(\/\/\)$/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\).*/{
  1202. s//\1/
  1203. q
  1204. }
  1205. s/.*/./; q'`
  1206. srcdir=$ac_confdir
  1207. if test ! -r "$srcdir/$ac_unique_file"; then
  1208. srcdir=..
  1209. fi
  1210. else
  1211. ac_srcdir_defaulted=no
  1212. fi
  1213. if test ! -r "$srcdir/$ac_unique_file"; then
  1214. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1215. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1216. fi
  1217. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1218. ac_abs_confdir=`(
  1219. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1220. pwd)`
  1221. # When building in place, set srcdir=.
  1222. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1223. srcdir=.
  1224. fi
  1225. # Remove unnecessary trailing slashes from srcdir.
  1226. # Double slashes in file names in object file debugging info
  1227. # mess up M-x gdb in Emacs.
  1228. case $srcdir in
  1229. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1230. esac
  1231. for ac_var in $ac_precious_vars; do
  1232. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1233. eval ac_env_${ac_var}_value=\$${ac_var}
  1234. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1235. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1236. done
  1237. #
  1238. # Report the --help message.
  1239. #
  1240. if test "$ac_init_help" = "long"; then
  1241. # Omit some internal or obsolete options to make the list less imposing.
  1242. # This message is too long to be a string in the A/UX 3.1 sh.
  1243. cat <<_ACEOF
  1244. \`configure' configures this package to adapt to many kinds of systems.
  1245. Usage: $0 [OPTION]... [VAR=VALUE]...
  1246. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1247. VAR=VALUE. See below for descriptions of some of the useful variables.
  1248. Defaults for the options are specified in brackets.
  1249. Configuration:
  1250. -h, --help display this help and exit
  1251. --help=short display options specific to this package
  1252. --help=recursive display the short help of all the included packages
  1253. -V, --version display version information and exit
  1254. -q, --quiet, --silent do not print \`checking ...' messages
  1255. --cache-file=FILE cache test results in FILE [disabled]
  1256. -C, --config-cache alias for \`--cache-file=config.cache'
  1257. -n, --no-create do not create output files
  1258. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1259. Installation directories:
  1260. --prefix=PREFIX install architecture-independent files in PREFIX
  1261. [$ac_default_prefix]
  1262. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1263. [PREFIX]
  1264. By default, \`make install' will install all the files in
  1265. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1266. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1267. for instance \`--prefix=\$HOME'.
  1268. For better control, use the options below.
  1269. Fine tuning of the installation directories:
  1270. --bindir=DIR user executables [EPREFIX/bin]
  1271. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1272. --libexecdir=DIR program executables [EPREFIX/libexec]
  1273. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1274. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1275. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1276. --libdir=DIR object code libraries [EPREFIX/lib]
  1277. --includedir=DIR C header files [PREFIX/include]
  1278. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1279. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1280. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1281. --infodir=DIR info documentation [DATAROOTDIR/info]
  1282. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1283. --mandir=DIR man documentation [DATAROOTDIR/man]
  1284. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1285. --htmldir=DIR html documentation [DOCDIR]
  1286. --dvidir=DIR dvi documentation [DOCDIR]
  1287. --pdfdir=DIR pdf documentation [DOCDIR]
  1288. --psdir=DIR ps documentation [DOCDIR]
  1289. _ACEOF
  1290. cat <<\_ACEOF
  1291. Program names:
  1292. --program-prefix=PREFIX prepend PREFIX to installed program names
  1293. --program-suffix=SUFFIX append SUFFIX to installed program names
  1294. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1295. System types:
  1296. --build=BUILD configure for building on BUILD [guessed]
  1297. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1298. _ACEOF
  1299. fi
  1300. if test -n "$ac_init_help"; then
  1301. cat <<\_ACEOF
  1302. Optional Features:
  1303. --disable-option-checking ignore unrecognized --enable/--with options
  1304. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1305. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1306. --enable-silent-rules less verbose build output (undo: "make V=1")
  1307. --disable-silent-rules verbose build output (undo: "make V=0")
  1308. --enable-dependency-tracking
  1309. do not reject slow dependency extractors
  1310. --disable-dependency-tracking
  1311. speeds up one-time build
  1312. --enable-shared[=PKGS] build shared libraries [default=yes]
  1313. --enable-static[=PKGS] build static libraries [default=yes]
  1314. --enable-fast-install[=PKGS]
  1315. optimize for fast installation [default=yes]
  1316. --disable-libtool-lock avoid locking (might break parallel builds)
  1317. --enable-debug LOG4C: turn on debugging (default=no)
  1318. --enable-reread LOG4C: turn on re-read of log4crc file(default=no)i
  1319. --enable-test LOG4C: compile test programs (default=no)
  1320. --enable-doc LOG4C: create documentation with
  1321. doxygen--html/man/pdf (default=no)
  1322. --enable-constructors LOG4C: build with initialization constructors
  1323. [default=no]
  1324. --disable-expattest LOG4C: Do not try to compile and run a test EXPAT
  1325. program. (default is no). If without-expat is set to
  1326. yes this option has no effect.
  1327. Optional Packages:
  1328. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1329. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1330. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1331. both]
  1332. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1333. --with-sysroot=DIR Search for dependent libraries within DIR
  1334. (or the compiler's sysroot if not specified).
  1335. --without-expat LOG4C: build without expat (default=no). Set this
  1336. option to yes if you do not want Log4C to use expat
  1337. for parsing the configuration file. If without-expat
  1338. is set to yes then none of the other options related
  1339. to expat have any effect and Log4C uses some bundled
  1340. yacc/lex code for parsing it's configuration file.
  1341. --with-expat-prefix=PFX LOG4C: Prefix where EXPAT is installed (defaults to
  1342. just looking in the standard library locations). If
  1343. --without-expat is set to yes then this option has
  1344. no effect)
  1345. Some influential environment variables:
  1346. YACC The `Yet Another Compiler Compiler' implementation to use.
  1347. Defaults to the first program found out of: `bison -y', `byacc',
  1348. `yacc'.
  1349. YFLAGS The list of arguments that will be passed by default to $YACC.
  1350. This script will default YFLAGS to the empty string to avoid a
  1351. default value of `-d' given by some make applications.
  1352. CC C compiler command
  1353. CFLAGS C compiler flags
  1354. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1355. nonstandard directory <lib dir>
  1356. LIBS libraries to pass to the linker, e.g. -l<library>
  1357. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1358. you have headers in a nonstandard directory <include dir>
  1359. CPP C preprocessor
  1360. CXX C++ compiler command
  1361. CXXFLAGS C++ compiler flags
  1362. CXXCPP C++ preprocessor
  1363. Use these variables to override the choices made by `configure' or to help
  1364. it to find libraries and programs with nonstandard names/locations.
  1365. Report bugs to the package provider.
  1366. _ACEOF
  1367. ac_status=$?
  1368. fi
  1369. if test "$ac_init_help" = "recursive"; then
  1370. # If there are subdirs, report their specific --help.
  1371. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1372. test -d "$ac_dir" ||
  1373. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1374. continue
  1375. ac_builddir=.
  1376. case "$ac_dir" in
  1377. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1378. *)
  1379. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1380. # A ".." for each directory in $ac_dir_suffix.
  1381. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1382. case $ac_top_builddir_sub in
  1383. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1384. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1385. esac ;;
  1386. esac
  1387. ac_abs_top_builddir=$ac_pwd
  1388. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1389. # for backward compatibility:
  1390. ac_top_builddir=$ac_top_build_prefix
  1391. case $srcdir in
  1392. .) # We are building in place.
  1393. ac_srcdir=.
  1394. ac_top_srcdir=$ac_top_builddir_sub
  1395. ac_abs_top_srcdir=$ac_pwd ;;
  1396. [\\/]* | ?:[\\/]* ) # Absolute name.
  1397. ac_srcdir=$srcdir$ac_dir_suffix;
  1398. ac_top_srcdir=$srcdir
  1399. ac_abs_top_srcdir=$srcdir ;;
  1400. *) # Relative name.
  1401. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1402. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1403. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1404. esac
  1405. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1406. cd "$ac_dir" || { ac_status=$?; continue; }
  1407. # Check for guested configure.
  1408. if test -f "$ac_srcdir/configure.gnu"; then
  1409. echo &&
  1410. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1411. elif test -f "$ac_srcdir/configure"; then
  1412. echo &&
  1413. $SHELL "$ac_srcdir/configure" --help=recursive
  1414. else
  1415. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1416. fi || ac_status=$?
  1417. cd "$ac_pwd" || { ac_status=$?; break; }
  1418. done
  1419. fi
  1420. test -n "$ac_init_help" && exit $ac_status
  1421. if $ac_init_version; then
  1422. cat <<\_ACEOF
  1423. configure
  1424. generated by GNU Autoconf 2.69
  1425. Copyright (C) 2012 Free Software Foundation, Inc.
  1426. This configure script is free software; the Free Software Foundation
  1427. gives unlimited permission to copy, distribute and modify it.
  1428. _ACEOF
  1429. exit
  1430. fi
  1431. ## ------------------------ ##
  1432. ## Autoconf initialization. ##
  1433. ## ------------------------ ##
  1434. # ac_fn_c_try_compile LINENO
  1435. # --------------------------
  1436. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. rm -f conftest.$ac_objext
  1441. if { { ac_try="$ac_compile"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_compile") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } && {
  1457. test -z "$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. } && test -s conftest.$ac_objext; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: failed program was:" >&5
  1463. sed 's/^/| /' conftest.$ac_ext >&5
  1464. ac_retval=1
  1465. fi
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_c_try_compile
  1469. # ac_fn_c_try_cpp LINENO
  1470. # ----------------------
  1471. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1472. ac_fn_c_try_cpp ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1476. case "(($ac_try" in
  1477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1478. *) ac_try_echo=$ac_try;;
  1479. esac
  1480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1481. $as_echo "$ac_try_echo"; } >&5
  1482. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1483. ac_status=$?
  1484. if test -s conftest.err; then
  1485. grep -v '^ *+' conftest.err >conftest.er1
  1486. cat conftest.er1 >&5
  1487. mv -f conftest.er1 conftest.err
  1488. fi
  1489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1490. test $ac_status = 0; } > conftest.i && {
  1491. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1492. test ! -s conftest.err
  1493. }; then :
  1494. ac_retval=0
  1495. else
  1496. $as_echo "$as_me: failed program was:" >&5
  1497. sed 's/^/| /' conftest.$ac_ext >&5
  1498. ac_retval=1
  1499. fi
  1500. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1501. as_fn_set_status $ac_retval
  1502. } # ac_fn_c_try_cpp
  1503. # ac_fn_cxx_try_compile LINENO
  1504. # ----------------------------
  1505. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1506. ac_fn_cxx_try_compile ()
  1507. {
  1508. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1509. rm -f conftest.$ac_objext
  1510. if { { ac_try="$ac_compile"
  1511. case "(($ac_try" in
  1512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1513. *) ac_try_echo=$ac_try;;
  1514. esac
  1515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1516. $as_echo "$ac_try_echo"; } >&5
  1517. (eval "$ac_compile") 2>conftest.err
  1518. ac_status=$?
  1519. if test -s conftest.err; then
  1520. grep -v '^ *+' conftest.err >conftest.er1
  1521. cat conftest.er1 >&5
  1522. mv -f conftest.er1 conftest.err
  1523. fi
  1524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1525. test $ac_status = 0; } && {
  1526. test -z "$ac_cxx_werror_flag" ||
  1527. test ! -s conftest.err
  1528. } && test -s conftest.$ac_objext; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=1
  1534. fi
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. as_fn_set_status $ac_retval
  1537. } # ac_fn_cxx_try_compile
  1538. # ac_fn_c_try_link LINENO
  1539. # -----------------------
  1540. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1541. ac_fn_c_try_link ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. rm -f conftest.$ac_objext conftest$ac_exeext
  1545. if { { ac_try="$ac_link"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_link") 2>conftest.err
  1553. ac_status=$?
  1554. if test -s conftest.err; then
  1555. grep -v '^ *+' conftest.err >conftest.er1
  1556. cat conftest.er1 >&5
  1557. mv -f conftest.er1 conftest.err
  1558. fi
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && {
  1561. test -z "$ac_c_werror_flag" ||
  1562. test ! -s conftest.err
  1563. } && test -s conftest$ac_exeext && {
  1564. test "$cross_compiling" = yes ||
  1565. test -x conftest$ac_exeext
  1566. }; then :
  1567. ac_retval=0
  1568. else
  1569. $as_echo "$as_me: failed program was:" >&5
  1570. sed 's/^/| /' conftest.$ac_ext >&5
  1571. ac_retval=1
  1572. fi
  1573. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1574. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1575. # interfere with the next link command; also delete a directory that is
  1576. # left behind by Apple's compiler. We do this before executing the actions.
  1577. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_link
  1581. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1582. # -------------------------------------------------------
  1583. # Tests whether HEADER exists and can be compiled using the include files in
  1584. # INCLUDES, setting the cache variable VAR accordingly.
  1585. ac_fn_c_check_header_compile ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1589. $as_echo_n "checking for $2... " >&6; }
  1590. if eval \${$3+:} false; then :
  1591. $as_echo_n "(cached) " >&6
  1592. else
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. $4
  1596. #include <$2>
  1597. _ACEOF
  1598. if ac_fn_c_try_compile "$LINENO"; then :
  1599. eval "$3=yes"
  1600. else
  1601. eval "$3=no"
  1602. fi
  1603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1604. fi
  1605. eval ac_res=\$$3
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. $as_echo "$ac_res" >&6; }
  1608. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1609. } # ac_fn_c_check_header_compile
  1610. # ac_fn_c_try_run LINENO
  1611. # ----------------------
  1612. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1613. # that executables *can* be run.
  1614. ac_fn_c_try_run ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. if { { ac_try="$ac_link"
  1618. case "(($ac_try" in
  1619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1620. *) ac_try_echo=$ac_try;;
  1621. esac
  1622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1623. $as_echo "$ac_try_echo"; } >&5
  1624. (eval "$ac_link") 2>&5
  1625. ac_status=$?
  1626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1627. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1628. { { case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1633. $as_echo "$ac_try_echo"; } >&5
  1634. (eval "$ac_try") 2>&5
  1635. ac_status=$?
  1636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1637. test $ac_status = 0; }; }; then :
  1638. ac_retval=0
  1639. else
  1640. $as_echo "$as_me: program exited with status $ac_status" >&5
  1641. $as_echo "$as_me: failed program was:" >&5
  1642. sed 's/^/| /' conftest.$ac_ext >&5
  1643. ac_retval=$ac_status
  1644. fi
  1645. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1646. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1647. as_fn_set_status $ac_retval
  1648. } # ac_fn_c_try_run
  1649. # ac_fn_c_check_func LINENO FUNC VAR
  1650. # ----------------------------------
  1651. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1652. ac_fn_c_check_func ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1656. $as_echo_n "checking for $2... " >&6; }
  1657. if eval \${$3+:} false; then :
  1658. $as_echo_n "(cached) " >&6
  1659. else
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1663. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1664. #define $2 innocuous_$2
  1665. /* System header to define __stub macros and hopefully few prototypes,
  1666. which can conflict with char $2 (); below.
  1667. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1668. <limits.h> exists even on freestanding compilers. */
  1669. #ifdef __STDC__
  1670. # include <limits.h>
  1671. #else
  1672. # include <assert.h>
  1673. #endif
  1674. #undef $2
  1675. /* Override any GCC internal prototype to avoid an error.
  1676. Use char because int might match the return type of a GCC
  1677. builtin and then its argument prototype would still apply. */
  1678. #ifdef __cplusplus
  1679. extern "C"
  1680. #endif
  1681. char $2 ();
  1682. /* The GNU C library defines this for functions which it implements
  1683. to always fail with ENOSYS. Some functions are actually named
  1684. something starting with __ and the normal name is an alias. */
  1685. #if defined __stub_$2 || defined __stub___$2
  1686. choke me
  1687. #endif
  1688. int
  1689. main ()
  1690. {
  1691. return $2 ();
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_link "$LINENO"; then :
  1697. eval "$3=yes"
  1698. else
  1699. eval "$3=no"
  1700. fi
  1701. rm -f core conftest.err conftest.$ac_objext \
  1702. conftest$ac_exeext conftest.$ac_ext
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1708. } # ac_fn_c_check_func
  1709. # ac_fn_cxx_try_cpp LINENO
  1710. # ------------------------
  1711. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1712. ac_fn_cxx_try_cpp ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo"; } >&5
  1722. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1723. ac_status=$?
  1724. if test -s conftest.err; then
  1725. grep -v '^ *+' conftest.err >conftest.er1
  1726. cat conftest.er1 >&5
  1727. mv -f conftest.er1 conftest.err
  1728. fi
  1729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1730. test $ac_status = 0; } > conftest.i && {
  1731. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1732. test ! -s conftest.err
  1733. }; then :
  1734. ac_retval=0
  1735. else
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=1
  1739. fi
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_cxx_try_cpp
  1743. # ac_fn_cxx_try_link LINENO
  1744. # -------------------------
  1745. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1746. ac_fn_cxx_try_link ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. rm -f conftest.$ac_objext conftest$ac_exeext
  1750. if { { ac_try="$ac_link"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1756. $as_echo "$ac_try_echo"; } >&5
  1757. (eval "$ac_link") 2>conftest.err
  1758. ac_status=$?
  1759. if test -s conftest.err; then
  1760. grep -v '^ *+' conftest.err >conftest.er1
  1761. cat conftest.er1 >&5
  1762. mv -f conftest.er1 conftest.err
  1763. fi
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; } && {
  1766. test -z "$ac_cxx_werror_flag" ||
  1767. test ! -s conftest.err
  1768. } && test -s conftest$ac_exeext && {
  1769. test "$cross_compiling" = yes ||
  1770. test -x conftest$ac_exeext
  1771. }; then :
  1772. ac_retval=0
  1773. else
  1774. $as_echo "$as_me: failed program was:" >&5
  1775. sed 's/^/| /' conftest.$ac_ext >&5
  1776. ac_retval=1
  1777. fi
  1778. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1779. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1780. # interfere with the next link command; also delete a directory that is
  1781. # left behind by Apple's compiler. We do this before executing the actions.
  1782. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. as_fn_set_status $ac_retval
  1785. } # ac_fn_cxx_try_link
  1786. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1787. # -------------------------------------------------------
  1788. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1789. # the include files in INCLUDES and setting the cache variable VAR
  1790. # accordingly.
  1791. ac_fn_c_check_header_mongrel ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. if eval \${$3+:} false; then :
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1796. $as_echo_n "checking for $2... " >&6; }
  1797. if eval \${$3+:} false; then :
  1798. $as_echo_n "(cached) " >&6
  1799. fi
  1800. eval ac_res=\$$3
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. $as_echo "$ac_res" >&6; }
  1803. else
  1804. # Is the header compilable?
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1806. $as_echo_n "checking $2 usability... " >&6; }
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. $4
  1810. #include <$2>
  1811. _ACEOF
  1812. if ac_fn_c_try_compile "$LINENO"; then :
  1813. ac_header_compiler=yes
  1814. else
  1815. ac_header_compiler=no
  1816. fi
  1817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1819. $as_echo "$ac_header_compiler" >&6; }
  1820. # Is the header present?
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1822. $as_echo_n "checking $2 presence... " >&6; }
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. #include <$2>
  1826. _ACEOF
  1827. if ac_fn_c_try_cpp "$LINENO"; then :
  1828. ac_header_preproc=yes
  1829. else
  1830. ac_header_preproc=no
  1831. fi
  1832. rm -f conftest.err conftest.i conftest.$ac_ext
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1834. $as_echo "$ac_header_preproc" >&6; }
  1835. # So? What about this header?
  1836. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1837. yes:no: )
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1839. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1841. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1842. ;;
  1843. no:yes:* )
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1845. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1847. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1849. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1851. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1853. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1854. ;;
  1855. esac
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1857. $as_echo_n "checking for $2... " >&6; }
  1858. if eval \${$3+:} false; then :
  1859. $as_echo_n "(cached) " >&6
  1860. else
  1861. eval "$3=\$ac_header_compiler"
  1862. fi
  1863. eval ac_res=\$$3
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1865. $as_echo "$ac_res" >&6; }
  1866. fi
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. } # ac_fn_c_check_header_mongrel
  1869. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1870. # ---------------------------------------------
  1871. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1872. # accordingly.
  1873. ac_fn_c_check_decl ()
  1874. {
  1875. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1876. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1877. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1879. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. $4
  1886. int
  1887. main ()
  1888. {
  1889. #ifndef $as_decl_name
  1890. #ifdef __cplusplus
  1891. (void) $as_decl_use;
  1892. #else
  1893. (void) $as_decl_name;
  1894. #endif
  1895. #endif
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_c_try_compile "$LINENO"; then :
  1901. eval "$3=yes"
  1902. else
  1903. eval "$3=no"
  1904. fi
  1905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1906. fi
  1907. eval ac_res=\$$3
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1909. $as_echo "$ac_res" >&6; }
  1910. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1911. } # ac_fn_c_check_decl
  1912. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1913. # -------------------------------------------
  1914. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1915. # variable VAR accordingly.
  1916. ac_fn_c_check_type ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1920. $as_echo_n "checking for $2... " >&6; }
  1921. if eval \${$3+:} false; then :
  1922. $as_echo_n "(cached) " >&6
  1923. else
  1924. eval "$3=no"
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. $4
  1928. int
  1929. main ()
  1930. {
  1931. if (sizeof ($2))
  1932. return 0;
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $4
  1941. int
  1942. main ()
  1943. {
  1944. if (sizeof (($2)))
  1945. return 0;
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. if ac_fn_c_try_compile "$LINENO"; then :
  1951. else
  1952. eval "$3=yes"
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1957. fi
  1958. eval ac_res=\$$3
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1960. $as_echo "$ac_res" >&6; }
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. } # ac_fn_c_check_type
  1963. cat >config.log <<_ACEOF
  1964. This file contains any messages produced by compilers while
  1965. running configure, to aid debugging if configure makes a mistake.
  1966. It was created by $as_me, which was
  1967. generated by GNU Autoconf 2.69. Invocation command line was
  1968. $ $0 $@
  1969. _ACEOF
  1970. exec 5>>config.log
  1971. {
  1972. cat <<_ASUNAME
  1973. ## --------- ##
  1974. ## Platform. ##
  1975. ## --------- ##
  1976. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1977. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1978. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1979. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1980. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1981. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1982. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1983. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1984. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1985. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1986. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1987. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1988. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1989. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1990. _ASUNAME
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994. IFS=$as_save_IFS
  1995. test -z "$as_dir" && as_dir=.
  1996. $as_echo "PATH: $as_dir"
  1997. done
  1998. IFS=$as_save_IFS
  1999. } >&5
  2000. cat >&5 <<_ACEOF
  2001. ## ----------- ##
  2002. ## Core tests. ##
  2003. ## ----------- ##
  2004. _ACEOF
  2005. # Keep a trace of the command line.
  2006. # Strip out --no-create and --no-recursion so they do not pile up.
  2007. # Strip out --silent because we don't want to record it for future runs.
  2008. # Also quote any args containing shell meta-characters.
  2009. # Make two passes to allow for proper duplicate-argument suppression.
  2010. ac_configure_args=
  2011. ac_configure_args0=
  2012. ac_configure_args1=
  2013. ac_must_keep_next=false
  2014. for ac_pass in 1 2
  2015. do
  2016. for ac_arg
  2017. do
  2018. case $ac_arg in
  2019. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2020. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2021. | -silent | --silent | --silen | --sile | --sil)
  2022. continue ;;
  2023. *\'*)
  2024. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2025. esac
  2026. case $ac_pass in
  2027. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2028. 2)
  2029. as_fn_append ac_configure_args1 " '$ac_arg'"
  2030. if test $ac_must_keep_next = true; then
  2031. ac_must_keep_next=false # Got value, back to normal.
  2032. else
  2033. case $ac_arg in
  2034. *=* | --config-cache | -C | -disable-* | --disable-* \
  2035. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2036. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2037. | -with-* | --with-* | -without-* | --without-* | --x)
  2038. case "$ac_configure_args0 " in
  2039. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2040. esac
  2041. ;;
  2042. -* ) ac_must_keep_next=true ;;
  2043. esac
  2044. fi
  2045. as_fn_append ac_configure_args " '$ac_arg'"
  2046. ;;
  2047. esac
  2048. done
  2049. done
  2050. { ac_configure_args0=; unset ac_configure_args0;}
  2051. { ac_configure_args1=; unset ac_configure_args1;}
  2052. # When interrupted or exit'd, cleanup temporary files, and complete
  2053. # config.log. We remove comments because anyway the quotes in there
  2054. # would cause problems or look ugly.
  2055. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2056. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2057. trap 'exit_status=$?
  2058. # Save into config.log some information that might help in debugging.
  2059. {
  2060. echo
  2061. $as_echo "## ---------------- ##
  2062. ## Cache variables. ##
  2063. ## ---------------- ##"
  2064. echo
  2065. # The following way of writing the cache mishandles newlines in values,
  2066. (
  2067. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2068. eval ac_val=\$$ac_var
  2069. case $ac_val in #(
  2070. *${as_nl}*)
  2071. case $ac_var in #(
  2072. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2073. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2074. esac
  2075. case $ac_var in #(
  2076. _ | IFS | as_nl) ;; #(
  2077. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2078. *) { eval $ac_var=; unset $ac_var;} ;;
  2079. esac ;;
  2080. esac
  2081. done
  2082. (set) 2>&1 |
  2083. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2084. *${as_nl}ac_space=\ *)
  2085. sed -n \
  2086. "s/'\''/'\''\\\\'\'''\''/g;
  2087. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2088. ;; #(
  2089. *)
  2090. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2091. ;;
  2092. esac |
  2093. sort
  2094. )
  2095. echo
  2096. $as_echo "## ----------------- ##
  2097. ## Output variables. ##
  2098. ## ----------------- ##"
  2099. echo
  2100. for ac_var in $ac_subst_vars
  2101. do
  2102. eval ac_val=\$$ac_var
  2103. case $ac_val in
  2104. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2105. esac
  2106. $as_echo "$ac_var='\''$ac_val'\''"
  2107. done | sort
  2108. echo
  2109. if test -n "$ac_subst_files"; then
  2110. $as_echo "## ------------------- ##
  2111. ## File substitutions. ##
  2112. ## ------------------- ##"
  2113. echo
  2114. for ac_var in $ac_subst_files
  2115. do
  2116. eval ac_val=\$$ac_var
  2117. case $ac_val in
  2118. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2119. esac
  2120. $as_echo "$ac_var='\''$ac_val'\''"
  2121. done | sort
  2122. echo
  2123. fi
  2124. if test -s confdefs.h; then
  2125. $as_echo "## ----------- ##
  2126. ## confdefs.h. ##
  2127. ## ----------- ##"
  2128. echo
  2129. cat confdefs.h
  2130. echo
  2131. fi
  2132. test "$ac_signal" != 0 &&
  2133. $as_echo "$as_me: caught signal $ac_signal"
  2134. $as_echo "$as_me: exit $exit_status"
  2135. } >&5
  2136. rm -f core *.core core.conftest.* &&
  2137. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2138. exit $exit_status
  2139. ' 0
  2140. for ac_signal in 1 2 13 15; do
  2141. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2142. done
  2143. ac_signal=0
  2144. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2145. rm -f -r conftest* confdefs.h
  2146. $as_echo "/* confdefs.h */" > confdefs.h
  2147. # Predefined preprocessor variables.
  2148. cat >>confdefs.h <<_ACEOF
  2149. #define PACKAGE_NAME "$PACKAGE_NAME"
  2150. _ACEOF
  2151. cat >>confdefs.h <<_ACEOF
  2152. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2153. _ACEOF
  2154. cat >>confdefs.h <<_ACEOF
  2155. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2156. _ACEOF
  2157. cat >>confdefs.h <<_ACEOF
  2158. #define PACKAGE_STRING "$PACKAGE_STRING"
  2159. _ACEOF
  2160. cat >>confdefs.h <<_ACEOF
  2161. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2162. _ACEOF
  2163. cat >>confdefs.h <<_ACEOF
  2164. #define PACKAGE_URL "$PACKAGE_URL"
  2165. _ACEOF
  2166. # Let the site file select an alternate cache file if it wants to.
  2167. # Prefer an explicitly selected file to automatically selected ones.
  2168. ac_site_file1=NONE
  2169. ac_site_file2=NONE
  2170. if test -n "$CONFIG_SITE"; then
  2171. # We do not want a PATH search for config.site.
  2172. case $CONFIG_SITE in #((
  2173. -*) ac_site_file1=./$CONFIG_SITE;;
  2174. */*) ac_site_file1=$CONFIG_SITE;;
  2175. *) ac_site_file1=./$CONFIG_SITE;;
  2176. esac
  2177. elif test "x$prefix" != xNONE; then
  2178. ac_site_file1=$prefix/share/config.site
  2179. ac_site_file2=$prefix/etc/config.site
  2180. else
  2181. ac_site_file1=$ac_default_prefix/share/config.site
  2182. ac_site_file2=$ac_default_prefix/etc/config.site
  2183. fi
  2184. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2185. do
  2186. test "x$ac_site_file" = xNONE && continue
  2187. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2189. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2190. sed 's/^/| /' "$ac_site_file" >&5
  2191. . "$ac_site_file" \
  2192. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2194. as_fn_error $? "failed to load site script $ac_site_file
  2195. See \`config.log' for more details" "$LINENO" 5; }
  2196. fi
  2197. done
  2198. if test -r "$cache_file"; then
  2199. # Some versions of bash will fail to source /dev/null (special files
  2200. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2201. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2203. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2204. case $cache_file in
  2205. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2206. *) . "./$cache_file";;
  2207. esac
  2208. fi
  2209. else
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2211. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2212. >$cache_file
  2213. fi
  2214. as_fn_append ac_header_list " stdlib.h"
  2215. as_fn_append ac_header_list " unistd.h"
  2216. as_fn_append ac_header_list " sys/param.h"
  2217. as_fn_append ac_header_list " utime.h"
  2218. # Check that the precious variables saved in the cache have kept the same
  2219. # value.
  2220. ac_cache_corrupted=false
  2221. for ac_var in $ac_precious_vars; do
  2222. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2223. eval ac_new_set=\$ac_env_${ac_var}_set
  2224. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2225. eval ac_new_val=\$ac_env_${ac_var}_value
  2226. case $ac_old_set,$ac_new_set in
  2227. set,)
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2229. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2230. ac_cache_corrupted=: ;;
  2231. ,set)
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2233. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2234. ac_cache_corrupted=: ;;
  2235. ,);;
  2236. *)
  2237. if test "x$ac_old_val" != "x$ac_new_val"; then
  2238. # differences in whitespace do not lead to failure.
  2239. ac_old_val_w=`echo x $ac_old_val`
  2240. ac_new_val_w=`echo x $ac_new_val`
  2241. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2244. ac_cache_corrupted=:
  2245. else
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2247. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2248. eval $ac_var=\$ac_old_val
  2249. fi
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2251. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2253. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2254. fi;;
  2255. esac
  2256. # Pass precious variables to config.status.
  2257. if test "$ac_new_set" = set; then
  2258. case $ac_new_val in
  2259. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2260. *) ac_arg=$ac_var=$ac_new_val ;;
  2261. esac
  2262. case " $ac_configure_args " in
  2263. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2264. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2265. esac
  2266. fi
  2267. done
  2268. if $ac_cache_corrupted; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2272. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2273. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2274. fi
  2275. ## -------------------- ##
  2276. ## Main body of script. ##
  2277. ## -------------------- ##
  2278. ac_ext=c
  2279. ac_cpp='$CPP $CPPFLAGS'
  2280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2283. ac_aux_dir=
  2284. for ac_dir in config "$srcdir"/config; do
  2285. if test -f "$ac_dir/install-sh"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/install-sh -c"
  2288. break
  2289. elif test -f "$ac_dir/install.sh"; then
  2290. ac_aux_dir=$ac_dir
  2291. ac_install_sh="$ac_aux_dir/install.sh -c"
  2292. break
  2293. elif test -f "$ac_dir/shtool"; then
  2294. ac_aux_dir=$ac_dir
  2295. ac_install_sh="$ac_aux_dir/shtool install -c"
  2296. break
  2297. fi
  2298. done
  2299. if test -z "$ac_aux_dir"; then
  2300. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2301. fi
  2302. # These three variables are undocumented and unsupported,
  2303. # and are intended to be withdrawn in a future Autoconf release.
  2304. # They can cause serious problems if a builder's source tree is in a directory
  2305. # whose full name contains unusual characters.
  2306. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2307. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2308. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2309. ac_config_headers="$ac_config_headers src/config.h"
  2310. LOG4C_MAJOR_VERSION=1
  2311. LOG4C_MINOR_VERSION=2
  2312. LOG4C_MICRO_VERSION=4
  2313. VERSION=$LOG4C_MAJOR_VERSION.$LOG4C_MINOR_VERSION.$LOG4C_MICRO_VERSION${SNAPSHOT:+.$SNAPSHOT}
  2314. # +1 : ? : +1 == new interface that does not break old one
  2315. # +1 : ? : 0 == new interface that breaks old one
  2316. # ? : ? : 0 == no new interfaces, but breaks apps
  2317. # ? :+1 : ? == just some internal changes, nothing breaks but might work
  2318. # better
  2319. # CURRENT : REVISION : AGE
  2320. LT_VERSION=6:1:3
  2321. am__api_version='1.13'
  2322. # Find a good install program. We prefer a C program (faster),
  2323. # so one script is as good as another. But avoid the broken or
  2324. # incompatible versions:
  2325. # SysV /etc/install, /usr/sbin/install
  2326. # SunOS /usr/etc/install
  2327. # IRIX /sbin/install
  2328. # AIX /bin/install
  2329. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2330. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2331. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2332. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2333. # OS/2's system install, which has a completely different semantic
  2334. # ./install, which can be erroneously created by make from ./install.sh.
  2335. # Reject install programs that cannot install multiple files.
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2337. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2338. if test -z "$INSTALL"; then
  2339. if ${ac_cv_path_install+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2343. for as_dir in $PATH
  2344. do
  2345. IFS=$as_save_IFS
  2346. test -z "$as_dir" && as_dir=.
  2347. # Account for people who put trailing slashes in PATH elements.
  2348. case $as_dir/ in #((
  2349. ./ | .// | /[cC]/* | \
  2350. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2351. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2352. /usr/ucb/* ) ;;
  2353. *)
  2354. # OSF1 and SCO ODT 3.0 have their own names for install.
  2355. # Don't use installbsd from OSF since it installs stuff as root
  2356. # by default.
  2357. for ac_prog in ginstall scoinst install; do
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2360. if test $ac_prog = install &&
  2361. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2362. # AIX install. It has an incompatible calling convention.
  2363. :
  2364. elif test $ac_prog = install &&
  2365. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2366. # program-specific install script used by HP pwplus--don't use.
  2367. :
  2368. else
  2369. rm -rf conftest.one conftest.two conftest.dir
  2370. echo one > conftest.one
  2371. echo two > conftest.two
  2372. mkdir conftest.dir
  2373. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2374. test -s conftest.one && test -s conftest.two &&
  2375. test -s conftest.dir/conftest.one &&
  2376. test -s conftest.dir/conftest.two
  2377. then
  2378. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2379. break 3
  2380. fi
  2381. fi
  2382. fi
  2383. done
  2384. done
  2385. ;;
  2386. esac
  2387. done
  2388. IFS=$as_save_IFS
  2389. rm -rf conftest.one conftest.two conftest.dir
  2390. fi
  2391. if test "${ac_cv_path_install+set}" = set; then
  2392. INSTALL=$ac_cv_path_install
  2393. else
  2394. # As a last resort, use the slow shell script. Don't cache a
  2395. # value for INSTALL within a source directory, because that will
  2396. # break other packages using the cache if that directory is
  2397. # removed, or if the value is a relative name.
  2398. INSTALL=$ac_install_sh
  2399. fi
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2402. $as_echo "$INSTALL" >&6; }
  2403. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2404. # It thinks the first close brace ends the variable substitution.
  2405. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2406. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2407. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2409. $as_echo_n "checking whether build environment is sane... " >&6; }
  2410. # Reject unsafe characters in $srcdir or the absolute working directory
  2411. # name. Accept space and tab only in the latter.
  2412. am_lf='
  2413. '
  2414. case `pwd` in
  2415. *[\\\"\#\$\&\'\`$am_lf]*)
  2416. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2417. esac
  2418. case $srcdir in
  2419. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2420. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2421. esac
  2422. # Do 'set' in a subshell so we don't clobber the current shell's
  2423. # arguments. Must try -L first in case configure is actually a
  2424. # symlink; some systems play weird games with the mod time of symlinks
  2425. # (eg FreeBSD returns the mod time of the symlink's containing
  2426. # directory).
  2427. if (
  2428. am_has_slept=no
  2429. for am_try in 1 2; do
  2430. echo "timestamp, slept: $am_has_slept" > conftest.file
  2431. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2432. if test "$*" = "X"; then
  2433. # -L didn't work.
  2434. set X `ls -t "$srcdir/configure" conftest.file`
  2435. fi
  2436. if test "$*" != "X $srcdir/configure conftest.file" \
  2437. && test "$*" != "X conftest.file $srcdir/configure"; then
  2438. # If neither matched, then we have a broken ls. This can happen
  2439. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2440. # broken ls alias from the environment. This has actually
  2441. # happened. Such a system could not be considered "sane".
  2442. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2443. alias in your environment" "$LINENO" 5
  2444. fi
  2445. if test "$2" = conftest.file || test $am_try -eq 2; then
  2446. break
  2447. fi
  2448. # Just in case.
  2449. sleep 1
  2450. am_has_slept=yes
  2451. done
  2452. test "$2" = conftest.file
  2453. )
  2454. then
  2455. # Ok.
  2456. :
  2457. else
  2458. as_fn_error $? "newly created file is older than distributed files!
  2459. Check your system clock" "$LINENO" 5
  2460. fi
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2462. $as_echo "yes" >&6; }
  2463. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2464. # generated files are strictly newer.
  2465. am_sleep_pid=
  2466. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2467. ( sleep 1 ) &
  2468. am_sleep_pid=$!
  2469. fi
  2470. rm -f conftest.file
  2471. test "$program_prefix" != NONE &&
  2472. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2473. # Use a double $ so make ignores it.
  2474. test "$program_suffix" != NONE &&
  2475. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2476. # Double any \ or $.
  2477. # By default was `s,x,x', remove it if useless.
  2478. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2479. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2480. # expand $ac_aux_dir to an absolute path
  2481. am_aux_dir=`cd $ac_aux_dir && pwd`
  2482. if test x"${MISSING+set}" != xset; then
  2483. case $am_aux_dir in
  2484. *\ * | *\ *)
  2485. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2486. *)
  2487. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2488. esac
  2489. fi
  2490. # Use eval to expand $SHELL
  2491. if eval "$MISSING --is-lightweight"; then
  2492. am_missing_run="$MISSING "
  2493. else
  2494. am_missing_run=
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2496. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2497. fi
  2498. if test x"${install_sh}" != xset; then
  2499. case $am_aux_dir in
  2500. *\ * | *\ *)
  2501. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2502. *)
  2503. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2504. esac
  2505. fi
  2506. # Installed binaries are usually stripped using 'strip' when the user
  2507. # run "make install-strip". However 'strip' might not be the right
  2508. # tool to use in cross-compilation environments, therefore Automake
  2509. # will honor the 'STRIP' environment variable to overrule this program.
  2510. if test "$cross_compiling" != no; then
  2511. if test -n "$ac_tool_prefix"; then
  2512. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2513. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if ${ac_cv_prog_STRIP+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$STRIP"; then
  2520. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2521. else
  2522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2523. for as_dir in $PATH
  2524. do
  2525. IFS=$as_save_IFS
  2526. test -z "$as_dir" && as_dir=.
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2529. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2531. break 2
  2532. fi
  2533. done
  2534. done
  2535. IFS=$as_save_IFS
  2536. fi
  2537. fi
  2538. STRIP=$ac_cv_prog_STRIP
  2539. if test -n "$STRIP"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2541. $as_echo "$STRIP" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. fi
  2547. if test -z "$ac_cv_prog_STRIP"; then
  2548. ac_ct_STRIP=$STRIP
  2549. # Extract the first word of "strip", so it can be a program name with args.
  2550. set dummy strip; ac_word=$2
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2552. $as_echo_n "checking for $ac_word... " >&6; }
  2553. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$ac_ct_STRIP"; then
  2557. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_ac_ct_STRIP="strip"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. fi
  2574. fi
  2575. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2576. if test -n "$ac_ct_STRIP"; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2578. $as_echo "$ac_ct_STRIP" >&6; }
  2579. else
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2581. $as_echo "no" >&6; }
  2582. fi
  2583. if test "x$ac_ct_STRIP" = x; then
  2584. STRIP=":"
  2585. else
  2586. case $cross_compiling:$ac_tool_warned in
  2587. yes:)
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2590. ac_tool_warned=yes ;;
  2591. esac
  2592. STRIP=$ac_ct_STRIP
  2593. fi
  2594. else
  2595. STRIP="$ac_cv_prog_STRIP"
  2596. fi
  2597. fi
  2598. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2600. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2601. if test -z "$MKDIR_P"; then
  2602. if ${ac_cv_path_mkdir+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_prog in mkdir gmkdir; do
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2613. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2614. 'mkdir (GNU coreutils) '* | \
  2615. 'mkdir (coreutils) '* | \
  2616. 'mkdir (fileutils) '4.1*)
  2617. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2618. break 3;;
  2619. esac
  2620. done
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. test -d ./--version && rmdir ./--version
  2626. if test "${ac_cv_path_mkdir+set}" = set; then
  2627. MKDIR_P="$ac_cv_path_mkdir -p"
  2628. else
  2629. # As a last resort, use the slow shell script. Don't cache a
  2630. # value for MKDIR_P within a source directory, because that will
  2631. # break other packages using the cache if that directory is
  2632. # removed, or if the value is a relative name.
  2633. MKDIR_P="$ac_install_sh -d"
  2634. fi
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2637. $as_echo "$MKDIR_P" >&6; }
  2638. for ac_prog in gawk mawk nawk awk
  2639. do
  2640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2641. set dummy $ac_prog; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_AWK+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$AWK"; then
  2648. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2657. ac_cv_prog_AWK="$ac_prog"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. AWK=$ac_cv_prog_AWK
  2667. if test -n "$AWK"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2669. $as_echo "$AWK" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. test -n "$AWK" && break
  2675. done
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2677. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2678. set x ${MAKE-make}
  2679. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2680. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. cat >conftest.make <<\_ACEOF
  2684. SHELL = /bin/sh
  2685. all:
  2686. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2687. _ACEOF
  2688. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2689. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2690. *@@@%%%=?*=@@@%%%*)
  2691. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2692. *)
  2693. eval ac_cv_prog_make_${ac_make}_set=no;;
  2694. esac
  2695. rm -f conftest.make
  2696. fi
  2697. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2699. $as_echo "yes" >&6; }
  2700. SET_MAKE=
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. SET_MAKE="MAKE=${MAKE-make}"
  2705. fi
  2706. rm -rf .tst 2>/dev/null
  2707. mkdir .tst 2>/dev/null
  2708. if test -d .tst; then
  2709. am__leading_dot=.
  2710. else
  2711. am__leading_dot=_
  2712. fi
  2713. rmdir .tst 2>/dev/null
  2714. # Check whether --enable-silent-rules was given.
  2715. if test "${enable_silent_rules+set}" = set; then :
  2716. enableval=$enable_silent_rules;
  2717. fi
  2718. case $enable_silent_rules in # (((
  2719. yes) AM_DEFAULT_VERBOSITY=0;;
  2720. no) AM_DEFAULT_VERBOSITY=1;;
  2721. *) AM_DEFAULT_VERBOSITY=1;;
  2722. esac
  2723. am_make=${MAKE-make}
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2725. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2726. if ${am_cv_make_support_nested_variables+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if $as_echo 'TRUE=$(BAR$(V))
  2730. BAR0=false
  2731. BAR1=true
  2732. V=1
  2733. am__doit:
  2734. @$(TRUE)
  2735. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2736. am_cv_make_support_nested_variables=yes
  2737. else
  2738. am_cv_make_support_nested_variables=no
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2742. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2743. if test $am_cv_make_support_nested_variables = yes; then
  2744. AM_V='$(V)'
  2745. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2746. else
  2747. AM_V=$AM_DEFAULT_VERBOSITY
  2748. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2749. fi
  2750. AM_BACKSLASH='\'
  2751. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2752. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2753. # is not polluted with repeated "-I."
  2754. am__isrc=' -I$(srcdir)'
  2755. # test to see if srcdir already configured
  2756. if test -f $srcdir/config.status; then
  2757. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2758. fi
  2759. fi
  2760. # test whether we have cygpath
  2761. if test -z "$CYGPATH_W"; then
  2762. if (cygpath --version) >/dev/null 2>/dev/null; then
  2763. CYGPATH_W='cygpath -w'
  2764. else
  2765. CYGPATH_W=echo
  2766. fi
  2767. fi
  2768. # Define the identity of the package.
  2769. PACKAGE="log4c"
  2770. VERSION=$VERSION
  2771. cat >>confdefs.h <<_ACEOF
  2772. #define PACKAGE "$PACKAGE"
  2773. _ACEOF
  2774. cat >>confdefs.h <<_ACEOF
  2775. #define VERSION "$VERSION"
  2776. _ACEOF
  2777. # Some tools Automake needs.
  2778. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2779. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2780. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2781. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2782. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2783. # For better backward compatibility. To be removed once Automake 1.9.x
  2784. # dies out for good. For more background, see:
  2785. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2786. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2787. mkdir_p='$(MKDIR_P)'
  2788. # We need awk for the "check" target. The system "awk" is bad on
  2789. # some platforms.
  2790. # Always define AMTAR for backward compatibility. Yes, it's still used
  2791. # in the wild :-( We should find a proper way to deprecate it ...
  2792. AMTAR='$${TAR-tar}'
  2793. # We'll loop over all known methods to create a tar archive until one works.
  2794. _am_tools='gnutar pax cpio none'
  2795. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2796. # Make sure we can run config.sub.
  2797. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2798. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2800. $as_echo_n "checking build system type... " >&6; }
  2801. if ${ac_cv_build+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. ac_build_alias=$build_alias
  2805. test "x$ac_build_alias" = x &&
  2806. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2807. test "x$ac_build_alias" = x &&
  2808. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2809. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2810. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2813. $as_echo "$ac_cv_build" >&6; }
  2814. case $ac_cv_build in
  2815. *-*-*) ;;
  2816. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2817. esac
  2818. build=$ac_cv_build
  2819. ac_save_IFS=$IFS; IFS='-'
  2820. set x $ac_cv_build
  2821. shift
  2822. build_cpu=$1
  2823. build_vendor=$2
  2824. shift; shift
  2825. # Remember, the first character of IFS is used to create $*,
  2826. # except with old shells:
  2827. build_os=$*
  2828. IFS=$ac_save_IFS
  2829. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2831. $as_echo_n "checking host system type... " >&6; }
  2832. if ${ac_cv_host+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. if test "x$host_alias" = x; then
  2836. ac_cv_host=$ac_cv_build
  2837. else
  2838. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2839. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2840. fi
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2843. $as_echo "$ac_cv_host" >&6; }
  2844. case $ac_cv_host in
  2845. *-*-*) ;;
  2846. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2847. esac
  2848. host=$ac_cv_host
  2849. ac_save_IFS=$IFS; IFS='-'
  2850. set x $ac_cv_host
  2851. shift
  2852. host_cpu=$1
  2853. host_vendor=$2
  2854. shift; shift
  2855. # Remember, the first character of IFS is used to create $*,
  2856. # except with old shells:
  2857. host_os=$*
  2858. IFS=$ac_save_IFS
  2859. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2860. # Need this to get pthread etc.
  2861. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  2862. #####################
  2863. # Checks for programs
  2864. #.
  2865. for ac_prog in 'bison -y' byacc
  2866. do
  2867. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2868. set dummy $ac_prog; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if ${ac_cv_prog_YACC+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$YACC"; then
  2875. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2884. ac_cv_prog_YACC="$ac_prog"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. YACC=$ac_cv_prog_YACC
  2894. if test -n "$YACC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  2896. $as_echo "$YACC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. test -n "$YACC" && break
  2902. done
  2903. test -n "$YACC" || YACC="yacc"
  2904. ac_ext=c
  2905. ac_cpp='$CPP $CPPFLAGS'
  2906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2909. if test -n "$ac_tool_prefix"; then
  2910. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2911. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2913. $as_echo_n "checking for $ac_word... " >&6; }
  2914. if ${ac_cv_prog_CC+:} false; then :
  2915. $as_echo_n "(cached) " >&6
  2916. else
  2917. if test -n "$CC"; then
  2918. ac_cv_prog_CC="$CC" # Let the user override the test.
  2919. else
  2920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2921. for as_dir in $PATH
  2922. do
  2923. IFS=$as_save_IFS
  2924. test -z "$as_dir" && as_dir=.
  2925. for ac_exec_ext in '' $ac_executable_extensions; do
  2926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2927. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2929. break 2
  2930. fi
  2931. done
  2932. done
  2933. IFS=$as_save_IFS
  2934. fi
  2935. fi
  2936. CC=$ac_cv_prog_CC
  2937. if test -n "$CC"; then
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2939. $as_echo "$CC" >&6; }
  2940. else
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2942. $as_echo "no" >&6; }
  2943. fi
  2944. fi
  2945. if test -z "$ac_cv_prog_CC"; then
  2946. ac_ct_CC=$CC
  2947. # Extract the first word of "gcc", so it can be a program name with args.
  2948. set dummy gcc; ac_word=$2
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2950. $as_echo_n "checking for $ac_word... " >&6; }
  2951. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. if test -n "$ac_ct_CC"; then
  2955. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2956. else
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. for as_dir in $PATH
  2959. do
  2960. IFS=$as_save_IFS
  2961. test -z "$as_dir" && as_dir=.
  2962. for ac_exec_ext in '' $ac_executable_extensions; do
  2963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2964. ac_cv_prog_ac_ct_CC="gcc"
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2966. break 2
  2967. fi
  2968. done
  2969. done
  2970. IFS=$as_save_IFS
  2971. fi
  2972. fi
  2973. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2974. if test -n "$ac_ct_CC"; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2976. $as_echo "$ac_ct_CC" >&6; }
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. fi
  2981. if test "x$ac_ct_CC" = x; then
  2982. CC=""
  2983. else
  2984. case $cross_compiling:$ac_tool_warned in
  2985. yes:)
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2988. ac_tool_warned=yes ;;
  2989. esac
  2990. CC=$ac_ct_CC
  2991. fi
  2992. else
  2993. CC="$ac_cv_prog_CC"
  2994. fi
  2995. if test -z "$CC"; then
  2996. if test -n "$ac_tool_prefix"; then
  2997. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2998. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3000. $as_echo_n "checking for $ac_word... " >&6; }
  3001. if ${ac_cv_prog_CC+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. if test -n "$CC"; then
  3005. ac_cv_prog_CC="$CC" # Let the user override the test.
  3006. else
  3007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3008. for as_dir in $PATH
  3009. do
  3010. IFS=$as_save_IFS
  3011. test -z "$as_dir" && as_dir=.
  3012. for ac_exec_ext in '' $ac_executable_extensions; do
  3013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3014. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3016. break 2
  3017. fi
  3018. done
  3019. done
  3020. IFS=$as_save_IFS
  3021. fi
  3022. fi
  3023. CC=$ac_cv_prog_CC
  3024. if test -n "$CC"; then
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3026. $as_echo "$CC" >&6; }
  3027. else
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3029. $as_echo "no" >&6; }
  3030. fi
  3031. fi
  3032. fi
  3033. if test -z "$CC"; then
  3034. # Extract the first word of "cc", so it can be a program name with args.
  3035. set dummy cc; ac_word=$2
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3037. $as_echo_n "checking for $ac_word... " >&6; }
  3038. if ${ac_cv_prog_CC+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. if test -n "$CC"; then
  3042. ac_cv_prog_CC="$CC" # Let the user override the test.
  3043. else
  3044. ac_prog_rejected=no
  3045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3046. for as_dir in $PATH
  3047. do
  3048. IFS=$as_save_IFS
  3049. test -z "$as_dir" && as_dir=.
  3050. for ac_exec_ext in '' $ac_executable_extensions; do
  3051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3052. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3053. ac_prog_rejected=yes
  3054. continue
  3055. fi
  3056. ac_cv_prog_CC="cc"
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3058. break 2
  3059. fi
  3060. done
  3061. done
  3062. IFS=$as_save_IFS
  3063. if test $ac_prog_rejected = yes; then
  3064. # We found a bogon in the path, so make sure we never use it.
  3065. set dummy $ac_cv_prog_CC
  3066. shift
  3067. if test $# != 0; then
  3068. # We chose a different compiler from the bogus one.
  3069. # However, it has the same basename, so the bogon will be chosen
  3070. # first if we set CC to just the basename; use the full file name.
  3071. shift
  3072. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3073. fi
  3074. fi
  3075. fi
  3076. fi
  3077. CC=$ac_cv_prog_CC
  3078. if test -n "$CC"; then
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3080. $as_echo "$CC" >&6; }
  3081. else
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3083. $as_echo "no" >&6; }
  3084. fi
  3085. fi
  3086. if test -z "$CC"; then
  3087. if test -n "$ac_tool_prefix"; then
  3088. for ac_prog in cl.exe
  3089. do
  3090. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3091. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3093. $as_echo_n "checking for $ac_word... " >&6; }
  3094. if ${ac_cv_prog_CC+:} false; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. if test -n "$CC"; then
  3098. ac_cv_prog_CC="$CC" # Let the user override the test.
  3099. else
  3100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3101. for as_dir in $PATH
  3102. do
  3103. IFS=$as_save_IFS
  3104. test -z "$as_dir" && as_dir=.
  3105. for ac_exec_ext in '' $ac_executable_extensions; do
  3106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3107. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3109. break 2
  3110. fi
  3111. done
  3112. done
  3113. IFS=$as_save_IFS
  3114. fi
  3115. fi
  3116. CC=$ac_cv_prog_CC
  3117. if test -n "$CC"; then
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3119. $as_echo "$CC" >&6; }
  3120. else
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. $as_echo "no" >&6; }
  3123. fi
  3124. test -n "$CC" && break
  3125. done
  3126. fi
  3127. if test -z "$CC"; then
  3128. ac_ct_CC=$CC
  3129. for ac_prog in cl.exe
  3130. do
  3131. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3132. set dummy $ac_prog; ac_word=$2
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3134. $as_echo_n "checking for $ac_word... " >&6; }
  3135. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. if test -n "$ac_ct_CC"; then
  3139. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3140. else
  3141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3142. for as_dir in $PATH
  3143. do
  3144. IFS=$as_save_IFS
  3145. test -z "$as_dir" && as_dir=.
  3146. for ac_exec_ext in '' $ac_executable_extensions; do
  3147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3148. ac_cv_prog_ac_ct_CC="$ac_prog"
  3149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3150. break 2
  3151. fi
  3152. done
  3153. done
  3154. IFS=$as_save_IFS
  3155. fi
  3156. fi
  3157. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3158. if test -n "$ac_ct_CC"; then
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3160. $as_echo "$ac_ct_CC" >&6; }
  3161. else
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3163. $as_echo "no" >&6; }
  3164. fi
  3165. test -n "$ac_ct_CC" && break
  3166. done
  3167. if test "x$ac_ct_CC" = x; then
  3168. CC=""
  3169. else
  3170. case $cross_compiling:$ac_tool_warned in
  3171. yes:)
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3173. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3174. ac_tool_warned=yes ;;
  3175. esac
  3176. CC=$ac_ct_CC
  3177. fi
  3178. fi
  3179. fi
  3180. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3182. as_fn_error $? "no acceptable C compiler found in \$PATH
  3183. See \`config.log' for more details" "$LINENO" 5; }
  3184. # Provide some information about the compiler.
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3186. set X $ac_compile
  3187. ac_compiler=$2
  3188. for ac_option in --version -v -V -qversion; do
  3189. { { ac_try="$ac_compiler $ac_option >&5"
  3190. case "(($ac_try" in
  3191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. *) ac_try_echo=$ac_try;;
  3193. esac
  3194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3195. $as_echo "$ac_try_echo"; } >&5
  3196. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3197. ac_status=$?
  3198. if test -s conftest.err; then
  3199. sed '10a\
  3200. ... rest of stderr output deleted ...
  3201. 10q' conftest.err >conftest.er1
  3202. cat conftest.er1 >&5
  3203. fi
  3204. rm -f conftest.er1 conftest.err
  3205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3206. test $ac_status = 0; }
  3207. done
  3208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3209. /* end confdefs.h. */
  3210. int
  3211. main ()
  3212. {
  3213. ;
  3214. return 0;
  3215. }
  3216. _ACEOF
  3217. ac_clean_files_save=$ac_clean_files
  3218. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3219. # Try to create an executable without -o first, disregard a.out.
  3220. # It will help us diagnose broken compilers, and finding out an intuition
  3221. # of exeext.
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3223. $as_echo_n "checking whether the C compiler works... " >&6; }
  3224. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3225. # The possible output files:
  3226. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3227. ac_rmfiles=
  3228. for ac_file in $ac_files
  3229. do
  3230. case $ac_file in
  3231. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3232. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3233. esac
  3234. done
  3235. rm -f $ac_rmfiles
  3236. if { { ac_try="$ac_link_default"
  3237. case "(($ac_try" in
  3238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3239. *) ac_try_echo=$ac_try;;
  3240. esac
  3241. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3242. $as_echo "$ac_try_echo"; } >&5
  3243. (eval "$ac_link_default") 2>&5
  3244. ac_status=$?
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3246. test $ac_status = 0; }; then :
  3247. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3248. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3249. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3250. # so that the user can short-circuit this test for compilers unknown to
  3251. # Autoconf.
  3252. for ac_file in $ac_files ''
  3253. do
  3254. test -f "$ac_file" || continue
  3255. case $ac_file in
  3256. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3257. ;;
  3258. [ab].out )
  3259. # We found the default executable, but exeext='' is most
  3260. # certainly right.
  3261. break;;
  3262. *.* )
  3263. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3264. then :; else
  3265. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3266. fi
  3267. # We set ac_cv_exeext here because the later test for it is not
  3268. # safe: cross compilers may not add the suffix if given an `-o'
  3269. # argument, so we may need to know it at that point already.
  3270. # Even if this section looks crufty: it has the advantage of
  3271. # actually working.
  3272. break;;
  3273. * )
  3274. break;;
  3275. esac
  3276. done
  3277. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3278. else
  3279. ac_file=''
  3280. fi
  3281. if test -z "$ac_file"; then :
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3283. $as_echo "no" >&6; }
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error 77 "C compiler cannot create executables
  3289. See \`config.log' for more details" "$LINENO" 5; }
  3290. else
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3292. $as_echo "yes" >&6; }
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3295. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3297. $as_echo "$ac_file" >&6; }
  3298. ac_exeext=$ac_cv_exeext
  3299. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3300. ac_clean_files=$ac_clean_files_save
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3302. $as_echo_n "checking for suffix of executables... " >&6; }
  3303. if { { ac_try="$ac_link"
  3304. case "(($ac_try" in
  3305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3306. *) ac_try_echo=$ac_try;;
  3307. esac
  3308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3309. $as_echo "$ac_try_echo"; } >&5
  3310. (eval "$ac_link") 2>&5
  3311. ac_status=$?
  3312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3313. test $ac_status = 0; }; then :
  3314. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3315. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3316. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3317. # `rm'.
  3318. for ac_file in conftest.exe conftest conftest.*; do
  3319. test -f "$ac_file" || continue
  3320. case $ac_file in
  3321. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3322. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3323. break;;
  3324. * ) break;;
  3325. esac
  3326. done
  3327. else
  3328. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3329. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3330. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3331. See \`config.log' for more details" "$LINENO" 5; }
  3332. fi
  3333. rm -f conftest conftest$ac_cv_exeext
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3335. $as_echo "$ac_cv_exeext" >&6; }
  3336. rm -f conftest.$ac_ext
  3337. EXEEXT=$ac_cv_exeext
  3338. ac_exeext=$EXEEXT
  3339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3340. /* end confdefs.h. */
  3341. #include <stdio.h>
  3342. int
  3343. main ()
  3344. {
  3345. FILE *f = fopen ("conftest.out", "w");
  3346. return ferror (f) || fclose (f) != 0;
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. ac_clean_files="$ac_clean_files conftest.out"
  3352. # Check that the compiler produces executables we can run. If not, either
  3353. # the compiler is broken, or we cross compile.
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3355. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3356. if test "$cross_compiling" != yes; then
  3357. { { ac_try="$ac_link"
  3358. case "(($ac_try" in
  3359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3360. *) ac_try_echo=$ac_try;;
  3361. esac
  3362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3363. $as_echo "$ac_try_echo"; } >&5
  3364. (eval "$ac_link") 2>&5
  3365. ac_status=$?
  3366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3367. test $ac_status = 0; }
  3368. if { ac_try='./conftest$ac_cv_exeext'
  3369. { { case "(($ac_try" in
  3370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3371. *) ac_try_echo=$ac_try;;
  3372. esac
  3373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3374. $as_echo "$ac_try_echo"; } >&5
  3375. (eval "$ac_try") 2>&5
  3376. ac_status=$?
  3377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3378. test $ac_status = 0; }; }; then
  3379. cross_compiling=no
  3380. else
  3381. if test "$cross_compiling" = maybe; then
  3382. cross_compiling=yes
  3383. else
  3384. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3385. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3386. as_fn_error $? "cannot run C compiled programs.
  3387. If you meant to cross compile, use \`--host'.
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. fi
  3390. fi
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3393. $as_echo "$cross_compiling" >&6; }
  3394. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3395. ac_clean_files=$ac_clean_files_save
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3397. $as_echo_n "checking for suffix of object files... " >&6; }
  3398. if ${ac_cv_objext+:} false; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3402. /* end confdefs.h. */
  3403. int
  3404. main ()
  3405. {
  3406. ;
  3407. return 0;
  3408. }
  3409. _ACEOF
  3410. rm -f conftest.o conftest.obj
  3411. if { { ac_try="$ac_compile"
  3412. case "(($ac_try" in
  3413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3414. *) ac_try_echo=$ac_try;;
  3415. esac
  3416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3417. $as_echo "$ac_try_echo"; } >&5
  3418. (eval "$ac_compile") 2>&5
  3419. ac_status=$?
  3420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3421. test $ac_status = 0; }; then :
  3422. for ac_file in conftest.o conftest.obj conftest.*; do
  3423. test -f "$ac_file" || continue;
  3424. case $ac_file in
  3425. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3426. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3427. break;;
  3428. esac
  3429. done
  3430. else
  3431. $as_echo "$as_me: failed program was:" >&5
  3432. sed 's/^/| /' conftest.$ac_ext >&5
  3433. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3434. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3435. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3436. See \`config.log' for more details" "$LINENO" 5; }
  3437. fi
  3438. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3441. $as_echo "$ac_cv_objext" >&6; }
  3442. OBJEXT=$ac_cv_objext
  3443. ac_objext=$OBJEXT
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3445. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3446. if ${ac_cv_c_compiler_gnu+:} false; then :
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3450. /* end confdefs.h. */
  3451. int
  3452. main ()
  3453. {
  3454. #ifndef __GNUC__
  3455. choke me
  3456. #endif
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. if ac_fn_c_try_compile "$LINENO"; then :
  3462. ac_compiler_gnu=yes
  3463. else
  3464. ac_compiler_gnu=no
  3465. fi
  3466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3468. fi
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3470. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3471. if test $ac_compiler_gnu = yes; then
  3472. GCC=yes
  3473. else
  3474. GCC=
  3475. fi
  3476. ac_test_CFLAGS=${CFLAGS+set}
  3477. ac_save_CFLAGS=$CFLAGS
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3479. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3480. if ${ac_cv_prog_cc_g+:} false; then :
  3481. $as_echo_n "(cached) " >&6
  3482. else
  3483. ac_save_c_werror_flag=$ac_c_werror_flag
  3484. ac_c_werror_flag=yes
  3485. ac_cv_prog_cc_g=no
  3486. CFLAGS="-g"
  3487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3488. /* end confdefs.h. */
  3489. int
  3490. main ()
  3491. {
  3492. ;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. if ac_fn_c_try_compile "$LINENO"; then :
  3497. ac_cv_prog_cc_g=yes
  3498. else
  3499. CFLAGS=""
  3500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3501. /* end confdefs.h. */
  3502. int
  3503. main ()
  3504. {
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. if ac_fn_c_try_compile "$LINENO"; then :
  3510. else
  3511. ac_c_werror_flag=$ac_save_c_werror_flag
  3512. CFLAGS="-g"
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. if ac_fn_c_try_compile "$LINENO"; then :
  3523. ac_cv_prog_cc_g=yes
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526. fi
  3527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3528. fi
  3529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3530. ac_c_werror_flag=$ac_save_c_werror_flag
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3533. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3534. if test "$ac_test_CFLAGS" = set; then
  3535. CFLAGS=$ac_save_CFLAGS
  3536. elif test $ac_cv_prog_cc_g = yes; then
  3537. if test "$GCC" = yes; then
  3538. CFLAGS="-g -O2"
  3539. else
  3540. CFLAGS="-g"
  3541. fi
  3542. else
  3543. if test "$GCC" = yes; then
  3544. CFLAGS="-O2"
  3545. else
  3546. CFLAGS=
  3547. fi
  3548. fi
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3550. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3551. if ${ac_cv_prog_cc_c89+:} false; then :
  3552. $as_echo_n "(cached) " >&6
  3553. else
  3554. ac_cv_prog_cc_c89=no
  3555. ac_save_CC=$CC
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <stdarg.h>
  3559. #include <stdio.h>
  3560. struct stat;
  3561. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3562. struct buf { int x; };
  3563. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3564. static char *e (p, i)
  3565. char **p;
  3566. int i;
  3567. {
  3568. return p[i];
  3569. }
  3570. static char *f (char * (*g) (char **, int), char **p, ...)
  3571. {
  3572. char *s;
  3573. va_list v;
  3574. va_start (v,p);
  3575. s = g (p, va_arg (v,int));
  3576. va_end (v);
  3577. return s;
  3578. }
  3579. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3580. function prototypes and stuff, but not '\xHH' hex character constants.
  3581. These don't provoke an error unfortunately, instead are silently treated
  3582. as 'x'. The following induces an error, until -std is added to get
  3583. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3584. array size at least. It's necessary to write '\x00'==0 to get something
  3585. that's true only with -std. */
  3586. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3587. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3588. inside strings and character constants. */
  3589. #define FOO(x) 'x'
  3590. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3591. int test (int i, double x);
  3592. struct s1 {int (*f) (int a);};
  3593. struct s2 {int (*f) (double a);};
  3594. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3595. int argc;
  3596. char **argv;
  3597. int
  3598. main ()
  3599. {
  3600. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3606. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3607. do
  3608. CC="$ac_save_CC $ac_arg"
  3609. if ac_fn_c_try_compile "$LINENO"; then :
  3610. ac_cv_prog_cc_c89=$ac_arg
  3611. fi
  3612. rm -f core conftest.err conftest.$ac_objext
  3613. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3614. done
  3615. rm -f conftest.$ac_ext
  3616. CC=$ac_save_CC
  3617. fi
  3618. # AC_CACHE_VAL
  3619. case "x$ac_cv_prog_cc_c89" in
  3620. x)
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3622. $as_echo "none needed" >&6; } ;;
  3623. xno)
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3625. $as_echo "unsupported" >&6; } ;;
  3626. *)
  3627. CC="$CC $ac_cv_prog_cc_c89"
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3629. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3630. esac
  3631. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3632. fi
  3633. ac_ext=c
  3634. ac_cpp='$CPP $CPPFLAGS'
  3635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3638. DEPDIR="${am__leading_dot}deps"
  3639. ac_config_commands="$ac_config_commands depfiles"
  3640. am_make=${MAKE-make}
  3641. cat > confinc << 'END'
  3642. am__doit:
  3643. @echo this is the am__doit target
  3644. .PHONY: am__doit
  3645. END
  3646. # If we don't find an include directive, just comment out the code.
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3648. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3649. am__include="#"
  3650. am__quote=
  3651. _am_result=none
  3652. # First try GNU make style include.
  3653. echo "include confinc" > confmf
  3654. # Ignore all kinds of additional output from 'make'.
  3655. case `$am_make -s -f confmf 2> /dev/null` in #(
  3656. *the\ am__doit\ target*)
  3657. am__include=include
  3658. am__quote=
  3659. _am_result=GNU
  3660. ;;
  3661. esac
  3662. # Now try BSD make style include.
  3663. if test "$am__include" = "#"; then
  3664. echo '.include "confinc"' > confmf
  3665. case `$am_make -s -f confmf 2> /dev/null` in #(
  3666. *the\ am__doit\ target*)
  3667. am__include=.include
  3668. am__quote="\""
  3669. _am_result=BSD
  3670. ;;
  3671. esac
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3674. $as_echo "$_am_result" >&6; }
  3675. rm -f confinc confmf
  3676. # Check whether --enable-dependency-tracking was given.
  3677. if test "${enable_dependency_tracking+set}" = set; then :
  3678. enableval=$enable_dependency_tracking;
  3679. fi
  3680. if test "x$enable_dependency_tracking" != xno; then
  3681. am_depcomp="$ac_aux_dir/depcomp"
  3682. AMDEPBACKSLASH='\'
  3683. am__nodep='_no'
  3684. fi
  3685. if test "x$enable_dependency_tracking" != xno; then
  3686. AMDEP_TRUE=
  3687. AMDEP_FALSE='#'
  3688. else
  3689. AMDEP_TRUE='#'
  3690. AMDEP_FALSE=
  3691. fi
  3692. depcc="$CC" am_compiler_list=
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3694. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3695. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3699. # We make a subdir and do the tests there. Otherwise we can end up
  3700. # making bogus files that we don't know about and never remove. For
  3701. # instance it was reported that on HP-UX the gcc test will end up
  3702. # making a dummy file named 'D' -- because '-MD' means "put the output
  3703. # in D".
  3704. rm -rf conftest.dir
  3705. mkdir conftest.dir
  3706. # Copy depcomp to subdir because otherwise we won't find it if we're
  3707. # using a relative directory.
  3708. cp "$am_depcomp" conftest.dir
  3709. cd conftest.dir
  3710. # We will build objects and dependencies in a subdirectory because
  3711. # it helps to detect inapplicable dependency modes. For instance
  3712. # both Tru64's cc and ICC support -MD to output dependencies as a
  3713. # side effect of compilation, but ICC will put the dependencies in
  3714. # the current directory while Tru64 will put them in the object
  3715. # directory.
  3716. mkdir sub
  3717. am_cv_CC_dependencies_compiler_type=none
  3718. if test "$am_compiler_list" = ""; then
  3719. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3720. fi
  3721. am__universal=false
  3722. case " $depcc " in #(
  3723. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3724. esac
  3725. for depmode in $am_compiler_list; do
  3726. # Setup a source with many dependencies, because some compilers
  3727. # like to wrap large dependency lists on column 80 (with \), and
  3728. # we should not choose a depcomp mode which is confused by this.
  3729. #
  3730. # We need to recreate these files for each test, as the compiler may
  3731. # overwrite some of them when testing with obscure command lines.
  3732. # This happens at least with the AIX C compiler.
  3733. : > sub/conftest.c
  3734. for i in 1 2 3 4 5 6; do
  3735. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3736. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3737. # Solaris 10 /bin/sh.
  3738. echo '/* dummy */' > sub/conftst$i.h
  3739. done
  3740. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3741. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3742. # mode. It turns out that the SunPro C++ compiler does not properly
  3743. # handle '-M -o', and we need to detect this. Also, some Intel
  3744. # versions had trouble with output in subdirs.
  3745. am__obj=sub/conftest.${OBJEXT-o}
  3746. am__minus_obj="-o $am__obj"
  3747. case $depmode in
  3748. gcc)
  3749. # This depmode causes a compiler race in universal mode.
  3750. test "$am__universal" = false || continue
  3751. ;;
  3752. nosideeffect)
  3753. # After this tag, mechanisms are not by side-effect, so they'll
  3754. # only be used when explicitly requested.
  3755. if test "x$enable_dependency_tracking" = xyes; then
  3756. continue
  3757. else
  3758. break
  3759. fi
  3760. ;;
  3761. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3762. # This compiler won't grok '-c -o', but also, the minuso test has
  3763. # not run yet. These depmodes are late enough in the game, and
  3764. # so weak that their functioning should not be impacted.
  3765. am__obj=conftest.${OBJEXT-o}
  3766. am__minus_obj=
  3767. ;;
  3768. none) break ;;
  3769. esac
  3770. if depmode=$depmode \
  3771. source=sub/conftest.c object=$am__obj \
  3772. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3773. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3774. >/dev/null 2>conftest.err &&
  3775. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3776. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3777. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3778. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3779. # icc doesn't choke on unknown options, it will just issue warnings
  3780. # or remarks (even with -Werror). So we grep stderr for any message
  3781. # that says an option was ignored or not supported.
  3782. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3783. # icc: Command line warning: ignoring option '-M'; no argument required
  3784. # The diagnosis changed in icc 8.0:
  3785. # icc: Command line remark: option '-MP' not supported
  3786. if (grep 'ignoring option' conftest.err ||
  3787. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3788. am_cv_CC_dependencies_compiler_type=$depmode
  3789. break
  3790. fi
  3791. fi
  3792. done
  3793. cd ..
  3794. rm -rf conftest.dir
  3795. else
  3796. am_cv_CC_dependencies_compiler_type=none
  3797. fi
  3798. fi
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3800. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3801. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3802. if
  3803. test "x$enable_dependency_tracking" != xno \
  3804. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3805. am__fastdepCC_TRUE=
  3806. am__fastdepCC_FALSE='#'
  3807. else
  3808. am__fastdepCC_TRUE='#'
  3809. am__fastdepCC_FALSE=
  3810. fi
  3811. ac_ext=c
  3812. ac_cpp='$CPP $CPPFLAGS'
  3813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3817. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3818. # On Suns, sometimes $CPP names a directory.
  3819. if test -n "$CPP" && test -d "$CPP"; then
  3820. CPP=
  3821. fi
  3822. if test -z "$CPP"; then
  3823. if ${ac_cv_prog_CPP+:} false; then :
  3824. $as_echo_n "(cached) " >&6
  3825. else
  3826. # Double quotes because CPP needs to be expanded
  3827. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3828. do
  3829. ac_preproc_ok=false
  3830. for ac_c_preproc_warn_flag in '' yes
  3831. do
  3832. # Use a header file that comes with gcc, so configuring glibc
  3833. # with a fresh cross-compiler works.
  3834. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3835. # <limits.h> exists even on freestanding compilers.
  3836. # On the NeXT, cc -E runs the code through the compiler's parser,
  3837. # not just through cpp. "Syntax error" is here to catch this case.
  3838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3839. /* end confdefs.h. */
  3840. #ifdef __STDC__
  3841. # include <limits.h>
  3842. #else
  3843. # include <assert.h>
  3844. #endif
  3845. Syntax error
  3846. _ACEOF
  3847. if ac_fn_c_try_cpp "$LINENO"; then :
  3848. else
  3849. # Broken: fails on valid input.
  3850. continue
  3851. fi
  3852. rm -f conftest.err conftest.i conftest.$ac_ext
  3853. # OK, works on sane cases. Now check whether nonexistent headers
  3854. # can be detected and how.
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. #include <ac_nonexistent.h>
  3858. _ACEOF
  3859. if ac_fn_c_try_cpp "$LINENO"; then :
  3860. # Broken: success on invalid input.
  3861. continue
  3862. else
  3863. # Passes both tests.
  3864. ac_preproc_ok=:
  3865. break
  3866. fi
  3867. rm -f conftest.err conftest.i conftest.$ac_ext
  3868. done
  3869. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3870. rm -f conftest.i conftest.err conftest.$ac_ext
  3871. if $ac_preproc_ok; then :
  3872. break
  3873. fi
  3874. done
  3875. ac_cv_prog_CPP=$CPP
  3876. fi
  3877. CPP=$ac_cv_prog_CPP
  3878. else
  3879. ac_cv_prog_CPP=$CPP
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3882. $as_echo "$CPP" >&6; }
  3883. ac_preproc_ok=false
  3884. for ac_c_preproc_warn_flag in '' yes
  3885. do
  3886. # Use a header file that comes with gcc, so configuring glibc
  3887. # with a fresh cross-compiler works.
  3888. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3889. # <limits.h> exists even on freestanding compilers.
  3890. # On the NeXT, cc -E runs the code through the compiler's parser,
  3891. # not just through cpp. "Syntax error" is here to catch this case.
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. #ifdef __STDC__
  3895. # include <limits.h>
  3896. #else
  3897. # include <assert.h>
  3898. #endif
  3899. Syntax error
  3900. _ACEOF
  3901. if ac_fn_c_try_cpp "$LINENO"; then :
  3902. else
  3903. # Broken: fails on valid input.
  3904. continue
  3905. fi
  3906. rm -f conftest.err conftest.i conftest.$ac_ext
  3907. # OK, works on sane cases. Now check whether nonexistent headers
  3908. # can be detected and how.
  3909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3910. /* end confdefs.h. */
  3911. #include <ac_nonexistent.h>
  3912. _ACEOF
  3913. if ac_fn_c_try_cpp "$LINENO"; then :
  3914. # Broken: success on invalid input.
  3915. continue
  3916. else
  3917. # Passes both tests.
  3918. ac_preproc_ok=:
  3919. break
  3920. fi
  3921. rm -f conftest.err conftest.i conftest.$ac_ext
  3922. done
  3923. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3924. rm -f conftest.i conftest.err conftest.$ac_ext
  3925. if $ac_preproc_ok; then :
  3926. else
  3927. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3929. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3930. See \`config.log' for more details" "$LINENO" 5; }
  3931. fi
  3932. ac_ext=c
  3933. ac_cpp='$CPP $CPPFLAGS'
  3934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3937. ac_ext=cpp
  3938. ac_cpp='$CXXCPP $CPPFLAGS'
  3939. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3940. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3941. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3942. if test -z "$CXX"; then
  3943. if test -n "$CCC"; then
  3944. CXX=$CCC
  3945. else
  3946. if test -n "$ac_tool_prefix"; then
  3947. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3948. do
  3949. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3950. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3952. $as_echo_n "checking for $ac_word... " >&6; }
  3953. if ${ac_cv_prog_CXX+:} false; then :
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. if test -n "$CXX"; then
  3957. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3958. else
  3959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3960. for as_dir in $PATH
  3961. do
  3962. IFS=$as_save_IFS
  3963. test -z "$as_dir" && as_dir=.
  3964. for ac_exec_ext in '' $ac_executable_extensions; do
  3965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3966. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3968. break 2
  3969. fi
  3970. done
  3971. done
  3972. IFS=$as_save_IFS
  3973. fi
  3974. fi
  3975. CXX=$ac_cv_prog_CXX
  3976. if test -n "$CXX"; then
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3978. $as_echo "$CXX" >&6; }
  3979. else
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3981. $as_echo "no" >&6; }
  3982. fi
  3983. test -n "$CXX" && break
  3984. done
  3985. fi
  3986. if test -z "$CXX"; then
  3987. ac_ct_CXX=$CXX
  3988. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3989. do
  3990. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3991. set dummy $ac_prog; ac_word=$2
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3993. $as_echo_n "checking for $ac_word... " >&6; }
  3994. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. if test -n "$ac_ct_CXX"; then
  3998. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3999. else
  4000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4001. for as_dir in $PATH
  4002. do
  4003. IFS=$as_save_IFS
  4004. test -z "$as_dir" && as_dir=.
  4005. for ac_exec_ext in '' $ac_executable_extensions; do
  4006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4007. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4009. break 2
  4010. fi
  4011. done
  4012. done
  4013. IFS=$as_save_IFS
  4014. fi
  4015. fi
  4016. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4017. if test -n "$ac_ct_CXX"; then
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4019. $as_echo "$ac_ct_CXX" >&6; }
  4020. else
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4022. $as_echo "no" >&6; }
  4023. fi
  4024. test -n "$ac_ct_CXX" && break
  4025. done
  4026. if test "x$ac_ct_CXX" = x; then
  4027. CXX="g++"
  4028. else
  4029. case $cross_compiling:$ac_tool_warned in
  4030. yes:)
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4032. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4033. ac_tool_warned=yes ;;
  4034. esac
  4035. CXX=$ac_ct_CXX
  4036. fi
  4037. fi
  4038. fi
  4039. fi
  4040. # Provide some information about the compiler.
  4041. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4042. set X $ac_compile
  4043. ac_compiler=$2
  4044. for ac_option in --version -v -V -qversion; do
  4045. { { ac_try="$ac_compiler $ac_option >&5"
  4046. case "(($ac_try" in
  4047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4048. *) ac_try_echo=$ac_try;;
  4049. esac
  4050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4051. $as_echo "$ac_try_echo"; } >&5
  4052. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4053. ac_status=$?
  4054. if test -s conftest.err; then
  4055. sed '10a\
  4056. ... rest of stderr output deleted ...
  4057. 10q' conftest.err >conftest.er1
  4058. cat conftest.er1 >&5
  4059. fi
  4060. rm -f conftest.er1 conftest.err
  4061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4062. test $ac_status = 0; }
  4063. done
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4065. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4066. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4070. /* end confdefs.h. */
  4071. int
  4072. main ()
  4073. {
  4074. #ifndef __GNUC__
  4075. choke me
  4076. #endif
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. if ac_fn_cxx_try_compile "$LINENO"; then :
  4082. ac_compiler_gnu=yes
  4083. else
  4084. ac_compiler_gnu=no
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4087. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4090. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4091. if test $ac_compiler_gnu = yes; then
  4092. GXX=yes
  4093. else
  4094. GXX=
  4095. fi
  4096. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4097. ac_save_CXXFLAGS=$CXXFLAGS
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4099. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4100. if ${ac_cv_prog_cxx_g+:} false; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4104. ac_cxx_werror_flag=yes
  4105. ac_cv_prog_cxx_g=no
  4106. CXXFLAGS="-g"
  4107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4108. /* end confdefs.h. */
  4109. int
  4110. main ()
  4111. {
  4112. ;
  4113. return 0;
  4114. }
  4115. _ACEOF
  4116. if ac_fn_cxx_try_compile "$LINENO"; then :
  4117. ac_cv_prog_cxx_g=yes
  4118. else
  4119. CXXFLAGS=""
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. int
  4123. main ()
  4124. {
  4125. ;
  4126. return 0;
  4127. }
  4128. _ACEOF
  4129. if ac_fn_cxx_try_compile "$LINENO"; then :
  4130. else
  4131. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4132. CXXFLAGS="-g"
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. int
  4136. main ()
  4137. {
  4138. ;
  4139. return 0;
  4140. }
  4141. _ACEOF
  4142. if ac_fn_cxx_try_compile "$LINENO"; then :
  4143. ac_cv_prog_cxx_g=yes
  4144. fi
  4145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4146. fi
  4147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4148. fi
  4149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4150. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4151. fi
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4153. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4154. if test "$ac_test_CXXFLAGS" = set; then
  4155. CXXFLAGS=$ac_save_CXXFLAGS
  4156. elif test $ac_cv_prog_cxx_g = yes; then
  4157. if test "$GXX" = yes; then
  4158. CXXFLAGS="-g -O2"
  4159. else
  4160. CXXFLAGS="-g"
  4161. fi
  4162. else
  4163. if test "$GXX" = yes; then
  4164. CXXFLAGS="-O2"
  4165. else
  4166. CXXFLAGS=
  4167. fi
  4168. fi
  4169. ac_ext=c
  4170. ac_cpp='$CPP $CPPFLAGS'
  4171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4174. depcc="$CXX" am_compiler_list=
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4176. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4177. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4181. # We make a subdir and do the tests there. Otherwise we can end up
  4182. # making bogus files that we don't know about and never remove. For
  4183. # instance it was reported that on HP-UX the gcc test will end up
  4184. # making a dummy file named 'D' -- because '-MD' means "put the output
  4185. # in D".
  4186. rm -rf conftest.dir
  4187. mkdir conftest.dir
  4188. # Copy depcomp to subdir because otherwise we won't find it if we're
  4189. # using a relative directory.
  4190. cp "$am_depcomp" conftest.dir
  4191. cd conftest.dir
  4192. # We will build objects and dependencies in a subdirectory because
  4193. # it helps to detect inapplicable dependency modes. For instance
  4194. # both Tru64's cc and ICC support -MD to output dependencies as a
  4195. # side effect of compilation, but ICC will put the dependencies in
  4196. # the current directory while Tru64 will put them in the object
  4197. # directory.
  4198. mkdir sub
  4199. am_cv_CXX_dependencies_compiler_type=none
  4200. if test "$am_compiler_list" = ""; then
  4201. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4202. fi
  4203. am__universal=false
  4204. case " $depcc " in #(
  4205. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4206. esac
  4207. for depmode in $am_compiler_list; do
  4208. # Setup a source with many dependencies, because some compilers
  4209. # like to wrap large dependency lists on column 80 (with \), and
  4210. # we should not choose a depcomp mode which is confused by this.
  4211. #
  4212. # We need to recreate these files for each test, as the compiler may
  4213. # overwrite some of them when testing with obscure command lines.
  4214. # This happens at least with the AIX C compiler.
  4215. : > sub/conftest.c
  4216. for i in 1 2 3 4 5 6; do
  4217. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4218. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4219. # Solaris 10 /bin/sh.
  4220. echo '/* dummy */' > sub/conftst$i.h
  4221. done
  4222. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4223. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4224. # mode. It turns out that the SunPro C++ compiler does not properly
  4225. # handle '-M -o', and we need to detect this. Also, some Intel
  4226. # versions had trouble with output in subdirs.
  4227. am__obj=sub/conftest.${OBJEXT-o}
  4228. am__minus_obj="-o $am__obj"
  4229. case $depmode in
  4230. gcc)
  4231. # This depmode causes a compiler race in universal mode.
  4232. test "$am__universal" = false || continue
  4233. ;;
  4234. nosideeffect)
  4235. # After this tag, mechanisms are not by side-effect, so they'll
  4236. # only be used when explicitly requested.
  4237. if test "x$enable_dependency_tracking" = xyes; then
  4238. continue
  4239. else
  4240. break
  4241. fi
  4242. ;;
  4243. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4244. # This compiler won't grok '-c -o', but also, the minuso test has
  4245. # not run yet. These depmodes are late enough in the game, and
  4246. # so weak that their functioning should not be impacted.
  4247. am__obj=conftest.${OBJEXT-o}
  4248. am__minus_obj=
  4249. ;;
  4250. none) break ;;
  4251. esac
  4252. if depmode=$depmode \
  4253. source=sub/conftest.c object=$am__obj \
  4254. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4255. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4256. >/dev/null 2>conftest.err &&
  4257. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4258. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4259. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4260. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4261. # icc doesn't choke on unknown options, it will just issue warnings
  4262. # or remarks (even with -Werror). So we grep stderr for any message
  4263. # that says an option was ignored or not supported.
  4264. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4265. # icc: Command line warning: ignoring option '-M'; no argument required
  4266. # The diagnosis changed in icc 8.0:
  4267. # icc: Command line remark: option '-MP' not supported
  4268. if (grep 'ignoring option' conftest.err ||
  4269. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4270. am_cv_CXX_dependencies_compiler_type=$depmode
  4271. break
  4272. fi
  4273. fi
  4274. done
  4275. cd ..
  4276. rm -rf conftest.dir
  4277. else
  4278. am_cv_CXX_dependencies_compiler_type=none
  4279. fi
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4282. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4283. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4284. if
  4285. test "x$enable_dependency_tracking" != xno \
  4286. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4287. am__fastdepCXX_TRUE=
  4288. am__fastdepCXX_FALSE='#'
  4289. else
  4290. am__fastdepCXX_TRUE='#'
  4291. am__fastdepCXX_FALSE=
  4292. fi
  4293. for ac_prog in flex lex
  4294. do
  4295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4296. set dummy $ac_prog; ac_word=$2
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4298. $as_echo_n "checking for $ac_word... " >&6; }
  4299. if ${ac_cv_prog_LEX+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$LEX"; then
  4303. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4304. else
  4305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4306. for as_dir in $PATH
  4307. do
  4308. IFS=$as_save_IFS
  4309. test -z "$as_dir" && as_dir=.
  4310. for ac_exec_ext in '' $ac_executable_extensions; do
  4311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4312. ac_cv_prog_LEX="$ac_prog"
  4313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4314. break 2
  4315. fi
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. fi
  4320. fi
  4321. LEX=$ac_cv_prog_LEX
  4322. if test -n "$LEX"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  4324. $as_echo "$LEX" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4327. $as_echo "no" >&6; }
  4328. fi
  4329. test -n "$LEX" && break
  4330. done
  4331. test -n "$LEX" || LEX=":"
  4332. if test "x$LEX" != "x:"; then
  4333. cat >conftest.l <<_ACEOF
  4334. %%
  4335. a { ECHO; }
  4336. b { REJECT; }
  4337. c { yymore (); }
  4338. d { yyless (1); }
  4339. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4340. yyless ((input () != 0)); }
  4341. f { unput (yytext[0]); }
  4342. . { BEGIN INITIAL; }
  4343. %%
  4344. #ifdef YYTEXT_POINTER
  4345. extern char *yytext;
  4346. #endif
  4347. int
  4348. main (void)
  4349. {
  4350. return ! yylex () + ! yywrap ();
  4351. }
  4352. _ACEOF
  4353. { { ac_try="$LEX conftest.l"
  4354. case "(($ac_try" in
  4355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4356. *) ac_try_echo=$ac_try;;
  4357. esac
  4358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4359. $as_echo "$ac_try_echo"; } >&5
  4360. (eval "$LEX conftest.l") 2>&5
  4361. ac_status=$?
  4362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4363. test $ac_status = 0; }
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  4365. $as_echo_n "checking lex output file root... " >&6; }
  4366. if ${ac_cv_prog_lex_root+:} false; then :
  4367. $as_echo_n "(cached) " >&6
  4368. else
  4369. if test -f lex.yy.c; then
  4370. ac_cv_prog_lex_root=lex.yy
  4371. elif test -f lexyy.c; then
  4372. ac_cv_prog_lex_root=lexyy
  4373. else
  4374. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  4375. fi
  4376. fi
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  4378. $as_echo "$ac_cv_prog_lex_root" >&6; }
  4379. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  4380. if test -z "${LEXLIB+set}"; then
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  4382. $as_echo_n "checking lex library... " >&6; }
  4383. if ${ac_cv_lib_lex+:} false; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. ac_save_LIBS=$LIBS
  4387. ac_cv_lib_lex='none needed'
  4388. for ac_lib in '' -lfl -ll; do
  4389. LIBS="$ac_lib $ac_save_LIBS"
  4390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4391. /* end confdefs.h. */
  4392. `cat $LEX_OUTPUT_ROOT.c`
  4393. _ACEOF
  4394. if ac_fn_c_try_link "$LINENO"; then :
  4395. ac_cv_lib_lex=$ac_lib
  4396. fi
  4397. rm -f core conftest.err conftest.$ac_objext \
  4398. conftest$ac_exeext conftest.$ac_ext
  4399. test "$ac_cv_lib_lex" != 'none needed' && break
  4400. done
  4401. LIBS=$ac_save_LIBS
  4402. fi
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  4404. $as_echo "$ac_cv_lib_lex" >&6; }
  4405. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  4408. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  4409. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. # POSIX says lex can declare yytext either as a pointer or an array; the
  4413. # default is implementation-dependent. Figure out which it is, since
  4414. # not all implementations provide the %pointer and %array declarations.
  4415. ac_cv_prog_lex_yytext_pointer=no
  4416. ac_save_LIBS=$LIBS
  4417. LIBS="$LEXLIB $ac_save_LIBS"
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. #define YYTEXT_POINTER 1
  4421. `cat $LEX_OUTPUT_ROOT.c`
  4422. _ACEOF
  4423. if ac_fn_c_try_link "$LINENO"; then :
  4424. ac_cv_prog_lex_yytext_pointer=yes
  4425. fi
  4426. rm -f core conftest.err conftest.$ac_objext \
  4427. conftest$ac_exeext conftest.$ac_ext
  4428. LIBS=$ac_save_LIBS
  4429. fi
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  4431. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  4432. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  4433. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  4434. fi
  4435. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  4436. fi
  4437. if test "$LEX" = :; then
  4438. LEX=${am_missing_run}flex
  4439. fi
  4440. for ac_prog in gawk mawk nawk awk
  4441. do
  4442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4443. set dummy $ac_prog; ac_word=$2
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4445. $as_echo_n "checking for $ac_word... " >&6; }
  4446. if ${ac_cv_prog_AWK+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. if test -n "$AWK"; then
  4450. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4451. else
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4459. ac_cv_prog_AWK="$ac_prog"
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. AWK=$ac_cv_prog_AWK
  4469. if test -n "$AWK"; then
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4471. $as_echo "$AWK" >&6; }
  4472. else
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. $as_echo "no" >&6; }
  4475. fi
  4476. test -n "$AWK" && break
  4477. done
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4479. $as_echo_n "checking whether ln -s works... " >&6; }
  4480. LN_S=$as_ln_s
  4481. if test "$LN_S" = "ln -s"; then
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4483. $as_echo "yes" >&6; }
  4484. else
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4486. $as_echo "no, using $LN_S" >&6; }
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4489. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4490. set x ${MAKE-make}
  4491. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4492. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. cat >conftest.make <<\_ACEOF
  4496. SHELL = /bin/sh
  4497. all:
  4498. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4499. _ACEOF
  4500. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4501. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4502. *@@@%%%=?*=@@@%%%*)
  4503. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4504. *)
  4505. eval ac_cv_prog_make_${ac_make}_set=no;;
  4506. esac
  4507. rm -f conftest.make
  4508. fi
  4509. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4511. $as_echo "yes" >&6; }
  4512. SET_MAKE=
  4513. else
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4515. $as_echo "no" >&6; }
  4516. SET_MAKE="MAKE=${MAKE-make}"
  4517. fi
  4518. case `pwd` in
  4519. *\ * | *\ *)
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4521. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4522. esac
  4523. macro_version='2.4.2'
  4524. macro_revision='1.3337'
  4525. ltmain="$ac_aux_dir/ltmain.sh"
  4526. # Backslashify metacharacters that are still active within
  4527. # double-quoted strings.
  4528. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4529. # Same as above, but do not quote variable references.
  4530. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4531. # Sed substitution to delay expansion of an escaped shell variable in a
  4532. # double_quote_subst'ed string.
  4533. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4534. # Sed substitution to delay expansion of an escaped single quote.
  4535. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4536. # Sed substitution to avoid accidental globbing in evaled expressions
  4537. no_glob_subst='s/\*/\\\*/g'
  4538. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4539. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4540. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4542. $as_echo_n "checking how to print strings... " >&6; }
  4543. # Test print first, because it will be a builtin if present.
  4544. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4545. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4546. ECHO='print -r --'
  4547. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4548. ECHO='printf %s\n'
  4549. else
  4550. # Use this function as a fallback that always works.
  4551. func_fallback_echo ()
  4552. {
  4553. eval 'cat <<_LTECHO_EOF
  4554. $1
  4555. _LTECHO_EOF'
  4556. }
  4557. ECHO='func_fallback_echo'
  4558. fi
  4559. # func_echo_all arg...
  4560. # Invoke $ECHO with all args, space-separated.
  4561. func_echo_all ()
  4562. {
  4563. $ECHO ""
  4564. }
  4565. case "$ECHO" in
  4566. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4567. $as_echo "printf" >&6; } ;;
  4568. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4569. $as_echo "print -r" >&6; } ;;
  4570. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4571. $as_echo "cat" >&6; } ;;
  4572. esac
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4574. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4575. if ${ac_cv_path_SED+:} false; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4579. for ac_i in 1 2 3 4 5 6 7; do
  4580. ac_script="$ac_script$as_nl$ac_script"
  4581. done
  4582. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4583. { ac_script=; unset ac_script;}
  4584. if test -z "$SED"; then
  4585. ac_path_SED_found=false
  4586. # Loop through the user's path and test for each of PROGNAME-LIST
  4587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4588. for as_dir in $PATH
  4589. do
  4590. IFS=$as_save_IFS
  4591. test -z "$as_dir" && as_dir=.
  4592. for ac_prog in sed gsed; do
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4595. as_fn_executable_p "$ac_path_SED" || continue
  4596. # Check for GNU ac_path_SED and select it if it is found.
  4597. # Check for GNU $ac_path_SED
  4598. case `"$ac_path_SED" --version 2>&1` in
  4599. *GNU*)
  4600. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4601. *)
  4602. ac_count=0
  4603. $as_echo_n 0123456789 >"conftest.in"
  4604. while :
  4605. do
  4606. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4607. mv "conftest.tmp" "conftest.in"
  4608. cp "conftest.in" "conftest.nl"
  4609. $as_echo '' >> "conftest.nl"
  4610. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4611. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4612. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4613. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4614. # Best one so far, save it but keep looking for a better one
  4615. ac_cv_path_SED="$ac_path_SED"
  4616. ac_path_SED_max=$ac_count
  4617. fi
  4618. # 10*(2^10) chars as input seems more than enough
  4619. test $ac_count -gt 10 && break
  4620. done
  4621. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4622. esac
  4623. $ac_path_SED_found && break 3
  4624. done
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. if test -z "$ac_cv_path_SED"; then
  4629. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4630. fi
  4631. else
  4632. ac_cv_path_SED=$SED
  4633. fi
  4634. fi
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4636. $as_echo "$ac_cv_path_SED" >&6; }
  4637. SED="$ac_cv_path_SED"
  4638. rm -f conftest.sed
  4639. test -z "$SED" && SED=sed
  4640. Xsed="$SED -e 1s/^X//"
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4642. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4643. if ${ac_cv_path_GREP+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. if test -z "$GREP"; then
  4647. ac_path_GREP_found=false
  4648. # Loop through the user's path and test for each of PROGNAME-LIST
  4649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4650. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4651. do
  4652. IFS=$as_save_IFS
  4653. test -z "$as_dir" && as_dir=.
  4654. for ac_prog in grep ggrep; do
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4657. as_fn_executable_p "$ac_path_GREP" || continue
  4658. # Check for GNU ac_path_GREP and select it if it is found.
  4659. # Check for GNU $ac_path_GREP
  4660. case `"$ac_path_GREP" --version 2>&1` in
  4661. *GNU*)
  4662. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4663. *)
  4664. ac_count=0
  4665. $as_echo_n 0123456789 >"conftest.in"
  4666. while :
  4667. do
  4668. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4669. mv "conftest.tmp" "conftest.in"
  4670. cp "conftest.in" "conftest.nl"
  4671. $as_echo 'GREP' >> "conftest.nl"
  4672. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4673. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4674. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4675. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4676. # Best one so far, save it but keep looking for a better one
  4677. ac_cv_path_GREP="$ac_path_GREP"
  4678. ac_path_GREP_max=$ac_count
  4679. fi
  4680. # 10*(2^10) chars as input seems more than enough
  4681. test $ac_count -gt 10 && break
  4682. done
  4683. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4684. esac
  4685. $ac_path_GREP_found && break 3
  4686. done
  4687. done
  4688. done
  4689. IFS=$as_save_IFS
  4690. if test -z "$ac_cv_path_GREP"; then
  4691. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4692. fi
  4693. else
  4694. ac_cv_path_GREP=$GREP
  4695. fi
  4696. fi
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4698. $as_echo "$ac_cv_path_GREP" >&6; }
  4699. GREP="$ac_cv_path_GREP"
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4701. $as_echo_n "checking for egrep... " >&6; }
  4702. if ${ac_cv_path_EGREP+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4706. then ac_cv_path_EGREP="$GREP -E"
  4707. else
  4708. if test -z "$EGREP"; then
  4709. ac_path_EGREP_found=false
  4710. # Loop through the user's path and test for each of PROGNAME-LIST
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_prog in egrep; do
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4719. as_fn_executable_p "$ac_path_EGREP" || continue
  4720. # Check for GNU ac_path_EGREP and select it if it is found.
  4721. # Check for GNU $ac_path_EGREP
  4722. case `"$ac_path_EGREP" --version 2>&1` in
  4723. *GNU*)
  4724. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4725. *)
  4726. ac_count=0
  4727. $as_echo_n 0123456789 >"conftest.in"
  4728. while :
  4729. do
  4730. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4731. mv "conftest.tmp" "conftest.in"
  4732. cp "conftest.in" "conftest.nl"
  4733. $as_echo 'EGREP' >> "conftest.nl"
  4734. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4735. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4736. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4737. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4738. # Best one so far, save it but keep looking for a better one
  4739. ac_cv_path_EGREP="$ac_path_EGREP"
  4740. ac_path_EGREP_max=$ac_count
  4741. fi
  4742. # 10*(2^10) chars as input seems more than enough
  4743. test $ac_count -gt 10 && break
  4744. done
  4745. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4746. esac
  4747. $ac_path_EGREP_found && break 3
  4748. done
  4749. done
  4750. done
  4751. IFS=$as_save_IFS
  4752. if test -z "$ac_cv_path_EGREP"; then
  4753. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4754. fi
  4755. else
  4756. ac_cv_path_EGREP=$EGREP
  4757. fi
  4758. fi
  4759. fi
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4761. $as_echo "$ac_cv_path_EGREP" >&6; }
  4762. EGREP="$ac_cv_path_EGREP"
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4764. $as_echo_n "checking for fgrep... " >&6; }
  4765. if ${ac_cv_path_FGREP+:} false; then :
  4766. $as_echo_n "(cached) " >&6
  4767. else
  4768. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4769. then ac_cv_path_FGREP="$GREP -F"
  4770. else
  4771. if test -z "$FGREP"; then
  4772. ac_path_FGREP_found=false
  4773. # Loop through the user's path and test for each of PROGNAME-LIST
  4774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4775. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4776. do
  4777. IFS=$as_save_IFS
  4778. test -z "$as_dir" && as_dir=.
  4779. for ac_prog in fgrep; do
  4780. for ac_exec_ext in '' $ac_executable_extensions; do
  4781. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4782. as_fn_executable_p "$ac_path_FGREP" || continue
  4783. # Check for GNU ac_path_FGREP and select it if it is found.
  4784. # Check for GNU $ac_path_FGREP
  4785. case `"$ac_path_FGREP" --version 2>&1` in
  4786. *GNU*)
  4787. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4788. *)
  4789. ac_count=0
  4790. $as_echo_n 0123456789 >"conftest.in"
  4791. while :
  4792. do
  4793. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4794. mv "conftest.tmp" "conftest.in"
  4795. cp "conftest.in" "conftest.nl"
  4796. $as_echo 'FGREP' >> "conftest.nl"
  4797. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4798. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4799. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4800. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4801. # Best one so far, save it but keep looking for a better one
  4802. ac_cv_path_FGREP="$ac_path_FGREP"
  4803. ac_path_FGREP_max=$ac_count
  4804. fi
  4805. # 10*(2^10) chars as input seems more than enough
  4806. test $ac_count -gt 10 && break
  4807. done
  4808. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4809. esac
  4810. $ac_path_FGREP_found && break 3
  4811. done
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. if test -z "$ac_cv_path_FGREP"; then
  4816. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4817. fi
  4818. else
  4819. ac_cv_path_FGREP=$FGREP
  4820. fi
  4821. fi
  4822. fi
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4824. $as_echo "$ac_cv_path_FGREP" >&6; }
  4825. FGREP="$ac_cv_path_FGREP"
  4826. test -z "$GREP" && GREP=grep
  4827. # Check whether --with-gnu-ld was given.
  4828. if test "${with_gnu_ld+set}" = set; then :
  4829. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4830. else
  4831. with_gnu_ld=no
  4832. fi
  4833. ac_prog=ld
  4834. if test "$GCC" = yes; then
  4835. # Check if gcc -print-prog-name=ld gives a path.
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4837. $as_echo_n "checking for ld used by $CC... " >&6; }
  4838. case $host in
  4839. *-*-mingw*)
  4840. # gcc leaves a trailing carriage return which upsets mingw
  4841. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4842. *)
  4843. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4844. esac
  4845. case $ac_prog in
  4846. # Accept absolute paths.
  4847. [\\/]* | ?:[\\/]*)
  4848. re_direlt='/[^/][^/]*/\.\./'
  4849. # Canonicalize the pathname of ld
  4850. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4851. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4852. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4853. done
  4854. test -z "$LD" && LD="$ac_prog"
  4855. ;;
  4856. "")
  4857. # If it fails, then pretend we aren't using GCC.
  4858. ac_prog=ld
  4859. ;;
  4860. *)
  4861. # If it is relative, then search for the first ld in PATH.
  4862. with_gnu_ld=unknown
  4863. ;;
  4864. esac
  4865. elif test "$with_gnu_ld" = yes; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4867. $as_echo_n "checking for GNU ld... " >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4870. $as_echo_n "checking for non-GNU ld... " >&6; }
  4871. fi
  4872. if ${lt_cv_path_LD+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -z "$LD"; then
  4876. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4877. for ac_dir in $PATH; do
  4878. IFS="$lt_save_ifs"
  4879. test -z "$ac_dir" && ac_dir=.
  4880. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4881. lt_cv_path_LD="$ac_dir/$ac_prog"
  4882. # Check to see if the program is GNU ld. I'd rather use --version,
  4883. # but apparently some variants of GNU ld only accept -v.
  4884. # Break only if it was the GNU/non-GNU ld that we prefer.
  4885. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4886. *GNU* | *'with BFD'*)
  4887. test "$with_gnu_ld" != no && break
  4888. ;;
  4889. *)
  4890. test "$with_gnu_ld" != yes && break
  4891. ;;
  4892. esac
  4893. fi
  4894. done
  4895. IFS="$lt_save_ifs"
  4896. else
  4897. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4898. fi
  4899. fi
  4900. LD="$lt_cv_path_LD"
  4901. if test -n "$LD"; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4903. $as_echo "$LD" >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4910. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4911. if ${lt_cv_prog_gnu_ld+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4915. case `$LD -v 2>&1 </dev/null` in
  4916. *GNU* | *'with BFD'*)
  4917. lt_cv_prog_gnu_ld=yes
  4918. ;;
  4919. *)
  4920. lt_cv_prog_gnu_ld=no
  4921. ;;
  4922. esac
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4925. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4926. with_gnu_ld=$lt_cv_prog_gnu_ld
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4928. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4929. if ${lt_cv_path_NM+:} false; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if test -n "$NM"; then
  4933. # Let the user override the test.
  4934. lt_cv_path_NM="$NM"
  4935. else
  4936. lt_nm_to_check="${ac_tool_prefix}nm"
  4937. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4938. lt_nm_to_check="$lt_nm_to_check nm"
  4939. fi
  4940. for lt_tmp_nm in $lt_nm_to_check; do
  4941. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4942. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4943. IFS="$lt_save_ifs"
  4944. test -z "$ac_dir" && ac_dir=.
  4945. tmp_nm="$ac_dir/$lt_tmp_nm"
  4946. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4947. # Check to see if the nm accepts a BSD-compat flag.
  4948. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4949. # nm: unknown option "B" ignored
  4950. # Tru64's nm complains that /dev/null is an invalid object file
  4951. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4952. */dev/null* | *'Invalid file or object type'*)
  4953. lt_cv_path_NM="$tmp_nm -B"
  4954. break
  4955. ;;
  4956. *)
  4957. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4958. */dev/null*)
  4959. lt_cv_path_NM="$tmp_nm -p"
  4960. break
  4961. ;;
  4962. *)
  4963. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4964. continue # so that we can try to find one that supports BSD flags
  4965. ;;
  4966. esac
  4967. ;;
  4968. esac
  4969. fi
  4970. done
  4971. IFS="$lt_save_ifs"
  4972. done
  4973. : ${lt_cv_path_NM=no}
  4974. fi
  4975. fi
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4977. $as_echo "$lt_cv_path_NM" >&6; }
  4978. if test "$lt_cv_path_NM" != "no"; then
  4979. NM="$lt_cv_path_NM"
  4980. else
  4981. # Didn't find any BSD compatible name lister, look for dumpbin.
  4982. if test -n "$DUMPBIN"; then :
  4983. # Let the user override the test.
  4984. else
  4985. if test -n "$ac_tool_prefix"; then
  4986. for ac_prog in dumpbin "link -dump"
  4987. do
  4988. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4989. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4991. $as_echo_n "checking for $ac_word... " >&6; }
  4992. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. if test -n "$DUMPBIN"; then
  4996. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4997. else
  4998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4999. for as_dir in $PATH
  5000. do
  5001. IFS=$as_save_IFS
  5002. test -z "$as_dir" && as_dir=.
  5003. for ac_exec_ext in '' $ac_executable_extensions; do
  5004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5005. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5007. break 2
  5008. fi
  5009. done
  5010. done
  5011. IFS=$as_save_IFS
  5012. fi
  5013. fi
  5014. DUMPBIN=$ac_cv_prog_DUMPBIN
  5015. if test -n "$DUMPBIN"; then
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5017. $as_echo "$DUMPBIN" >&6; }
  5018. else
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5020. $as_echo "no" >&6; }
  5021. fi
  5022. test -n "$DUMPBIN" && break
  5023. done
  5024. fi
  5025. if test -z "$DUMPBIN"; then
  5026. ac_ct_DUMPBIN=$DUMPBIN
  5027. for ac_prog in dumpbin "link -dump"
  5028. do
  5029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5030. set dummy $ac_prog; ac_word=$2
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5032. $as_echo_n "checking for $ac_word... " >&6; }
  5033. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5034. $as_echo_n "(cached) " >&6
  5035. else
  5036. if test -n "$ac_ct_DUMPBIN"; then
  5037. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5038. else
  5039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5040. for as_dir in $PATH
  5041. do
  5042. IFS=$as_save_IFS
  5043. test -z "$as_dir" && as_dir=.
  5044. for ac_exec_ext in '' $ac_executable_extensions; do
  5045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5046. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5048. break 2
  5049. fi
  5050. done
  5051. done
  5052. IFS=$as_save_IFS
  5053. fi
  5054. fi
  5055. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5056. if test -n "$ac_ct_DUMPBIN"; then
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5058. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. $as_echo "no" >&6; }
  5062. fi
  5063. test -n "$ac_ct_DUMPBIN" && break
  5064. done
  5065. if test "x$ac_ct_DUMPBIN" = x; then
  5066. DUMPBIN=":"
  5067. else
  5068. case $cross_compiling:$ac_tool_warned in
  5069. yes:)
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5072. ac_tool_warned=yes ;;
  5073. esac
  5074. DUMPBIN=$ac_ct_DUMPBIN
  5075. fi
  5076. fi
  5077. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5078. *COFF*)
  5079. DUMPBIN="$DUMPBIN -symbols"
  5080. ;;
  5081. *)
  5082. DUMPBIN=:
  5083. ;;
  5084. esac
  5085. fi
  5086. if test "$DUMPBIN" != ":"; then
  5087. NM="$DUMPBIN"
  5088. fi
  5089. fi
  5090. test -z "$NM" && NM=nm
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5092. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5093. if ${lt_cv_nm_interface+:} false; then :
  5094. $as_echo_n "(cached) " >&6
  5095. else
  5096. lt_cv_nm_interface="BSD nm"
  5097. echo "int some_variable = 0;" > conftest.$ac_ext
  5098. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5099. (eval "$ac_compile" 2>conftest.err)
  5100. cat conftest.err >&5
  5101. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5102. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5103. cat conftest.err >&5
  5104. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5105. cat conftest.out >&5
  5106. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5107. lt_cv_nm_interface="MS dumpbin"
  5108. fi
  5109. rm -f conftest*
  5110. fi
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5112. $as_echo "$lt_cv_nm_interface" >&6; }
  5113. # find the maximum length of command line arguments
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5115. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5116. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5117. $as_echo_n "(cached) " >&6
  5118. else
  5119. i=0
  5120. teststring="ABCD"
  5121. case $build_os in
  5122. msdosdjgpp*)
  5123. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5124. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5125. # during glob expansion). Even if it were fixed, the result of this
  5126. # check would be larger than it should be.
  5127. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5128. ;;
  5129. gnu*)
  5130. # Under GNU Hurd, this test is not required because there is
  5131. # no limit to the length of command line arguments.
  5132. # Libtool will interpret -1 as no limit whatsoever
  5133. lt_cv_sys_max_cmd_len=-1;
  5134. ;;
  5135. cygwin* | mingw* | cegcc*)
  5136. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5137. # about 5 minutes as the teststring grows exponentially.
  5138. # Worse, since 9x/ME are not pre-emptively multitasking,
  5139. # you end up with a "frozen" computer, even though with patience
  5140. # the test eventually succeeds (with a max line length of 256k).
  5141. # Instead, let's just punt: use the minimum linelength reported by
  5142. # all of the supported platforms: 8192 (on NT/2K/XP).
  5143. lt_cv_sys_max_cmd_len=8192;
  5144. ;;
  5145. mint*)
  5146. # On MiNT this can take a long time and run out of memory.
  5147. lt_cv_sys_max_cmd_len=8192;
  5148. ;;
  5149. amigaos*)
  5150. # On AmigaOS with pdksh, this test takes hours, literally.
  5151. # So we just punt and use a minimum line length of 8192.
  5152. lt_cv_sys_max_cmd_len=8192;
  5153. ;;
  5154. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5155. # This has been around since 386BSD, at least. Likely further.
  5156. if test -x /sbin/sysctl; then
  5157. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5158. elif test -x /usr/sbin/sysctl; then
  5159. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5160. else
  5161. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5162. fi
  5163. # And add a safety zone
  5164. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5166. ;;
  5167. interix*)
  5168. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5169. lt_cv_sys_max_cmd_len=196608
  5170. ;;
  5171. os2*)
  5172. # The test takes a long time on OS/2.
  5173. lt_cv_sys_max_cmd_len=8192
  5174. ;;
  5175. osf*)
  5176. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5177. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5178. # nice to cause kernel panics so lets avoid the loop below.
  5179. # First set a reasonable default.
  5180. lt_cv_sys_max_cmd_len=16384
  5181. #
  5182. if test -x /sbin/sysconfig; then
  5183. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5184. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5185. esac
  5186. fi
  5187. ;;
  5188. sco3.2v5*)
  5189. lt_cv_sys_max_cmd_len=102400
  5190. ;;
  5191. sysv5* | sco5v6* | sysv4.2uw2*)
  5192. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5193. if test -n "$kargmax"; then
  5194. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5195. else
  5196. lt_cv_sys_max_cmd_len=32768
  5197. fi
  5198. ;;
  5199. *)
  5200. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5201. if test -n "$lt_cv_sys_max_cmd_len"; then
  5202. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5203. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5204. else
  5205. # Make teststring a little bigger before we do anything with it.
  5206. # a 1K string should be a reasonable start.
  5207. for i in 1 2 3 4 5 6 7 8 ; do
  5208. teststring=$teststring$teststring
  5209. done
  5210. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5211. # If test is not a shell built-in, we'll probably end up computing a
  5212. # maximum length that is only half of the actual maximum length, but
  5213. # we can't tell.
  5214. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5215. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5216. test $i != 17 # 1/2 MB should be enough
  5217. do
  5218. i=`expr $i + 1`
  5219. teststring=$teststring$teststring
  5220. done
  5221. # Only check the string length outside the loop.
  5222. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5223. teststring=
  5224. # Add a significant safety factor because C++ compilers can tack on
  5225. # massive amounts of additional arguments before passing them to the
  5226. # linker. It appears as though 1/2 is a usable value.
  5227. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5228. fi
  5229. ;;
  5230. esac
  5231. fi
  5232. if test -n $lt_cv_sys_max_cmd_len ; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5234. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5237. $as_echo "none" >&6; }
  5238. fi
  5239. max_cmd_len=$lt_cv_sys_max_cmd_len
  5240. : ${CP="cp -f"}
  5241. : ${MV="mv -f"}
  5242. : ${RM="rm -f"}
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5244. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5245. # Try some XSI features
  5246. xsi_shell=no
  5247. ( _lt_dummy="a/b/c"
  5248. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5249. = c,a/b,b/c, \
  5250. && eval 'test $(( 1 + 1 )) -eq 2 \
  5251. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5252. && xsi_shell=yes
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5254. $as_echo "$xsi_shell" >&6; }
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5256. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5257. lt_shell_append=no
  5258. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5259. >/dev/null 2>&1 \
  5260. && lt_shell_append=yes
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5262. $as_echo "$lt_shell_append" >&6; }
  5263. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5264. lt_unset=unset
  5265. else
  5266. lt_unset=false
  5267. fi
  5268. # test EBCDIC or ASCII
  5269. case `echo X|tr X '\101'` in
  5270. A) # ASCII based system
  5271. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5272. lt_SP2NL='tr \040 \012'
  5273. lt_NL2SP='tr \015\012 \040\040'
  5274. ;;
  5275. *) # EBCDIC based system
  5276. lt_SP2NL='tr \100 \n'
  5277. lt_NL2SP='tr \r\n \100\100'
  5278. ;;
  5279. esac
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5281. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5282. if ${lt_cv_to_host_file_cmd+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. case $host in
  5286. *-*-mingw* )
  5287. case $build in
  5288. *-*-mingw* ) # actually msys
  5289. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5290. ;;
  5291. *-*-cygwin* )
  5292. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5293. ;;
  5294. * ) # otherwise, assume *nix
  5295. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5296. ;;
  5297. esac
  5298. ;;
  5299. *-*-cygwin* )
  5300. case $build in
  5301. *-*-mingw* ) # actually msys
  5302. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5303. ;;
  5304. *-*-cygwin* )
  5305. lt_cv_to_host_file_cmd=func_convert_file_noop
  5306. ;;
  5307. * ) # otherwise, assume *nix
  5308. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5309. ;;
  5310. esac
  5311. ;;
  5312. * ) # unhandled hosts (and "normal" native builds)
  5313. lt_cv_to_host_file_cmd=func_convert_file_noop
  5314. ;;
  5315. esac
  5316. fi
  5317. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5319. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5321. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5322. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5323. $as_echo_n "(cached) " >&6
  5324. else
  5325. #assume ordinary cross tools, or native build.
  5326. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5327. case $host in
  5328. *-*-mingw* )
  5329. case $build in
  5330. *-*-mingw* ) # actually msys
  5331. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5332. ;;
  5333. esac
  5334. ;;
  5335. esac
  5336. fi
  5337. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5339. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5341. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5342. if ${lt_cv_ld_reload_flag+:} false; then :
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. lt_cv_ld_reload_flag='-r'
  5346. fi
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5348. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5349. reload_flag=$lt_cv_ld_reload_flag
  5350. case $reload_flag in
  5351. "" | " "*) ;;
  5352. *) reload_flag=" $reload_flag" ;;
  5353. esac
  5354. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5355. case $host_os in
  5356. cygwin* | mingw* | pw32* | cegcc*)
  5357. if test "$GCC" != yes; then
  5358. reload_cmds=false
  5359. fi
  5360. ;;
  5361. darwin*)
  5362. if test "$GCC" = yes; then
  5363. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5364. else
  5365. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5366. fi
  5367. ;;
  5368. esac
  5369. if test -n "$ac_tool_prefix"; then
  5370. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5371. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5373. $as_echo_n "checking for $ac_word... " >&6; }
  5374. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. if test -n "$OBJDUMP"; then
  5378. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5379. else
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383. IFS=$as_save_IFS
  5384. test -z "$as_dir" && as_dir=.
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5387. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. OBJDUMP=$ac_cv_prog_OBJDUMP
  5397. if test -n "$OBJDUMP"; then
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5399. $as_echo "$OBJDUMP" >&6; }
  5400. else
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5402. $as_echo "no" >&6; }
  5403. fi
  5404. fi
  5405. if test -z "$ac_cv_prog_OBJDUMP"; then
  5406. ac_ct_OBJDUMP=$OBJDUMP
  5407. # Extract the first word of "objdump", so it can be a program name with args.
  5408. set dummy objdump; ac_word=$2
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5410. $as_echo_n "checking for $ac_word... " >&6; }
  5411. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. if test -n "$ac_ct_OBJDUMP"; then
  5415. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5416. else
  5417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5418. for as_dir in $PATH
  5419. do
  5420. IFS=$as_save_IFS
  5421. test -z "$as_dir" && as_dir=.
  5422. for ac_exec_ext in '' $ac_executable_extensions; do
  5423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5424. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5426. break 2
  5427. fi
  5428. done
  5429. done
  5430. IFS=$as_save_IFS
  5431. fi
  5432. fi
  5433. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5434. if test -n "$ac_ct_OBJDUMP"; then
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5436. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5437. else
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5439. $as_echo "no" >&6; }
  5440. fi
  5441. if test "x$ac_ct_OBJDUMP" = x; then
  5442. OBJDUMP="false"
  5443. else
  5444. case $cross_compiling:$ac_tool_warned in
  5445. yes:)
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5448. ac_tool_warned=yes ;;
  5449. esac
  5450. OBJDUMP=$ac_ct_OBJDUMP
  5451. fi
  5452. else
  5453. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5454. fi
  5455. test -z "$OBJDUMP" && OBJDUMP=objdump
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5457. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5458. if ${lt_cv_deplibs_check_method+:} false; then :
  5459. $as_echo_n "(cached) " >&6
  5460. else
  5461. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5462. lt_cv_file_magic_test_file=
  5463. lt_cv_deplibs_check_method='unknown'
  5464. # Need to set the preceding variable on all platforms that support
  5465. # interlibrary dependencies.
  5466. # 'none' -- dependencies not supported.
  5467. # `unknown' -- same as none, but documents that we really don't know.
  5468. # 'pass_all' -- all dependencies passed with no checks.
  5469. # 'test_compile' -- check by making test program.
  5470. # 'file_magic [[regex]]' -- check by looking for files in library path
  5471. # which responds to the $file_magic_cmd with a given extended regex.
  5472. # If you have `file' or equivalent on your system and you're not sure
  5473. # whether `pass_all' will *always* work, you probably want this one.
  5474. case $host_os in
  5475. aix[4-9]*)
  5476. lt_cv_deplibs_check_method=pass_all
  5477. ;;
  5478. beos*)
  5479. lt_cv_deplibs_check_method=pass_all
  5480. ;;
  5481. bsdi[45]*)
  5482. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5483. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5484. lt_cv_file_magic_test_file=/shlib/libc.so
  5485. ;;
  5486. cygwin*)
  5487. # func_win32_libid is a shell function defined in ltmain.sh
  5488. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5489. lt_cv_file_magic_cmd='func_win32_libid'
  5490. ;;
  5491. mingw* | pw32*)
  5492. # Base MSYS/MinGW do not provide the 'file' command needed by
  5493. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5494. # unless we find 'file', for example because we are cross-compiling.
  5495. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5496. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5497. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5498. lt_cv_file_magic_cmd='func_win32_libid'
  5499. else
  5500. # Keep this pattern in sync with the one in func_win32_libid.
  5501. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5502. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5503. fi
  5504. ;;
  5505. cegcc*)
  5506. # use the weaker test based on 'objdump'. See mingw*.
  5507. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5508. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5509. ;;
  5510. darwin* | rhapsody*)
  5511. lt_cv_deplibs_check_method=pass_all
  5512. ;;
  5513. freebsd* | dragonfly*)
  5514. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5515. case $host_cpu in
  5516. i*86 )
  5517. # Not sure whether the presence of OpenBSD here was a mistake.
  5518. # Let's accept both of them until this is cleared up.
  5519. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5520. lt_cv_file_magic_cmd=/usr/bin/file
  5521. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5522. ;;
  5523. esac
  5524. else
  5525. lt_cv_deplibs_check_method=pass_all
  5526. fi
  5527. ;;
  5528. gnu*)
  5529. lt_cv_deplibs_check_method=pass_all
  5530. ;;
  5531. haiku*)
  5532. lt_cv_deplibs_check_method=pass_all
  5533. ;;
  5534. hpux10.20* | hpux11*)
  5535. lt_cv_file_magic_cmd=/usr/bin/file
  5536. case $host_cpu in
  5537. ia64*)
  5538. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5539. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5540. ;;
  5541. hppa*64*)
  5542. 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]'
  5543. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5544. ;;
  5545. *)
  5546. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5547. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5548. ;;
  5549. esac
  5550. ;;
  5551. interix[3-9]*)
  5552. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5553. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5554. ;;
  5555. irix5* | irix6* | nonstopux*)
  5556. case $LD in
  5557. *-32|*"-32 ") libmagic=32-bit;;
  5558. *-n32|*"-n32 ") libmagic=N32;;
  5559. *-64|*"-64 ") libmagic=64-bit;;
  5560. *) libmagic=never-match;;
  5561. esac
  5562. lt_cv_deplibs_check_method=pass_all
  5563. ;;
  5564. # This must be glibc/ELF.
  5565. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5566. lt_cv_deplibs_check_method=pass_all
  5567. ;;
  5568. netbsd*)
  5569. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5570. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5571. else
  5572. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5573. fi
  5574. ;;
  5575. newos6*)
  5576. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5577. lt_cv_file_magic_cmd=/usr/bin/file
  5578. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5579. ;;
  5580. *nto* | *qnx*)
  5581. lt_cv_deplibs_check_method=pass_all
  5582. ;;
  5583. openbsd*)
  5584. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5585. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5586. else
  5587. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5588. fi
  5589. ;;
  5590. osf3* | osf4* | osf5*)
  5591. lt_cv_deplibs_check_method=pass_all
  5592. ;;
  5593. rdos*)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. solaris*)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5600. lt_cv_deplibs_check_method=pass_all
  5601. ;;
  5602. sysv4 | sysv4.3*)
  5603. case $host_vendor in
  5604. motorola)
  5605. 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]'
  5606. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5607. ;;
  5608. ncr)
  5609. lt_cv_deplibs_check_method=pass_all
  5610. ;;
  5611. sequent)
  5612. lt_cv_file_magic_cmd='/bin/file'
  5613. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5614. ;;
  5615. sni)
  5616. lt_cv_file_magic_cmd='/bin/file'
  5617. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5618. lt_cv_file_magic_test_file=/lib/libc.so
  5619. ;;
  5620. siemens)
  5621. lt_cv_deplibs_check_method=pass_all
  5622. ;;
  5623. pc)
  5624. lt_cv_deplibs_check_method=pass_all
  5625. ;;
  5626. esac
  5627. ;;
  5628. tpf*)
  5629. lt_cv_deplibs_check_method=pass_all
  5630. ;;
  5631. esac
  5632. fi
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5634. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5635. file_magic_glob=
  5636. want_nocaseglob=no
  5637. if test "$build" = "$host"; then
  5638. case $host_os in
  5639. mingw* | pw32*)
  5640. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5641. want_nocaseglob=yes
  5642. else
  5643. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5644. fi
  5645. ;;
  5646. esac
  5647. fi
  5648. file_magic_cmd=$lt_cv_file_magic_cmd
  5649. deplibs_check_method=$lt_cv_deplibs_check_method
  5650. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5651. if test -n "$ac_tool_prefix"; then
  5652. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5653. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5655. $as_echo_n "checking for $ac_word... " >&6; }
  5656. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. if test -n "$DLLTOOL"; then
  5660. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. DLLTOOL=$ac_cv_prog_DLLTOOL
  5679. if test -n "$DLLTOOL"; then
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5681. $as_echo "$DLLTOOL" >&6; }
  5682. else
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. fi
  5687. if test -z "$ac_cv_prog_DLLTOOL"; then
  5688. ac_ct_DLLTOOL=$DLLTOOL
  5689. # Extract the first word of "dlltool", so it can be a program name with args.
  5690. set dummy dlltool; ac_word=$2
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5692. $as_echo_n "checking for $ac_word... " >&6; }
  5693. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. if test -n "$ac_ct_DLLTOOL"; then
  5697. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5698. else
  5699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5700. for as_dir in $PATH
  5701. do
  5702. IFS=$as_save_IFS
  5703. test -z "$as_dir" && as_dir=.
  5704. for ac_exec_ext in '' $ac_executable_extensions; do
  5705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5706. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5708. break 2
  5709. fi
  5710. done
  5711. done
  5712. IFS=$as_save_IFS
  5713. fi
  5714. fi
  5715. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5716. if test -n "$ac_ct_DLLTOOL"; then
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5718. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5719. else
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5721. $as_echo "no" >&6; }
  5722. fi
  5723. if test "x$ac_ct_DLLTOOL" = x; then
  5724. DLLTOOL="false"
  5725. else
  5726. case $cross_compiling:$ac_tool_warned in
  5727. yes:)
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5729. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5730. ac_tool_warned=yes ;;
  5731. esac
  5732. DLLTOOL=$ac_ct_DLLTOOL
  5733. fi
  5734. else
  5735. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5736. fi
  5737. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5739. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5740. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5741. $as_echo_n "(cached) " >&6
  5742. else
  5743. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5744. case $host_os in
  5745. cygwin* | mingw* | pw32* | cegcc*)
  5746. # two different shell functions defined in ltmain.sh
  5747. # decide which to use based on capabilities of $DLLTOOL
  5748. case `$DLLTOOL --help 2>&1` in
  5749. *--identify-strict*)
  5750. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5751. ;;
  5752. *)
  5753. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5754. ;;
  5755. esac
  5756. ;;
  5757. *)
  5758. # fallback: assume linklib IS sharedlib
  5759. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5760. ;;
  5761. esac
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5764. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5765. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5766. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5767. if test -n "$ac_tool_prefix"; then
  5768. for ac_prog in ar
  5769. do
  5770. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5771. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if ${ac_cv_prog_AR+:} false; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. if test -n "$AR"; then
  5778. ac_cv_prog_AR="$AR" # Let the user override the test.
  5779. else
  5780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5781. for as_dir in $PATH
  5782. do
  5783. IFS=$as_save_IFS
  5784. test -z "$as_dir" && as_dir=.
  5785. for ac_exec_ext in '' $ac_executable_extensions; do
  5786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5787. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5789. break 2
  5790. fi
  5791. done
  5792. done
  5793. IFS=$as_save_IFS
  5794. fi
  5795. fi
  5796. AR=$ac_cv_prog_AR
  5797. if test -n "$AR"; then
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5799. $as_echo "$AR" >&6; }
  5800. else
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. $as_echo "no" >&6; }
  5803. fi
  5804. test -n "$AR" && break
  5805. done
  5806. fi
  5807. if test -z "$AR"; then
  5808. ac_ct_AR=$AR
  5809. for ac_prog in ar
  5810. do
  5811. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5812. set dummy $ac_prog; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$ac_ct_AR"; then
  5819. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_ac_ct_AR="$ac_prog"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5838. if test -n "$ac_ct_AR"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5840. $as_echo "$ac_ct_AR" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. test -n "$ac_ct_AR" && break
  5846. done
  5847. if test "x$ac_ct_AR" = x; then
  5848. AR="false"
  5849. else
  5850. case $cross_compiling:$ac_tool_warned in
  5851. yes:)
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5854. ac_tool_warned=yes ;;
  5855. esac
  5856. AR=$ac_ct_AR
  5857. fi
  5858. fi
  5859. : ${AR=ar}
  5860. : ${AR_FLAGS=cru}
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5862. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5863. if ${lt_cv_ar_at_file+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. lt_cv_ar_at_file=no
  5867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5868. /* end confdefs.h. */
  5869. int
  5870. main ()
  5871. {
  5872. ;
  5873. return 0;
  5874. }
  5875. _ACEOF
  5876. if ac_fn_c_try_compile "$LINENO"; then :
  5877. echo conftest.$ac_objext > conftest.lst
  5878. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5879. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5880. (eval $lt_ar_try) 2>&5
  5881. ac_status=$?
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5883. test $ac_status = 0; }
  5884. if test "$ac_status" -eq 0; then
  5885. # Ensure the archiver fails upon bogus file names.
  5886. rm -f conftest.$ac_objext libconftest.a
  5887. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5888. (eval $lt_ar_try) 2>&5
  5889. ac_status=$?
  5890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5891. test $ac_status = 0; }
  5892. if test "$ac_status" -ne 0; then
  5893. lt_cv_ar_at_file=@
  5894. fi
  5895. fi
  5896. rm -f conftest.* libconftest.a
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5899. fi
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5901. $as_echo "$lt_cv_ar_at_file" >&6; }
  5902. if test "x$lt_cv_ar_at_file" = xno; then
  5903. archiver_list_spec=
  5904. else
  5905. archiver_list_spec=$lt_cv_ar_at_file
  5906. fi
  5907. if test -n "$ac_tool_prefix"; then
  5908. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5909. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_STRIP+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. if test -n "$STRIP"; then
  5916. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921. IFS=$as_save_IFS
  5922. test -z "$as_dir" && as_dir=.
  5923. for ac_exec_ext in '' $ac_executable_extensions; do
  5924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5925. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927. break 2
  5928. fi
  5929. done
  5930. done
  5931. IFS=$as_save_IFS
  5932. fi
  5933. fi
  5934. STRIP=$ac_cv_prog_STRIP
  5935. if test -n "$STRIP"; then
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5937. $as_echo "$STRIP" >&6; }
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5940. $as_echo "no" >&6; }
  5941. fi
  5942. fi
  5943. if test -z "$ac_cv_prog_STRIP"; then
  5944. ac_ct_STRIP=$STRIP
  5945. # Extract the first word of "strip", so it can be a program name with args.
  5946. set dummy strip; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$ac_ct_STRIP"; then
  5953. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_ac_ct_STRIP="strip"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5972. if test -n "$ac_ct_STRIP"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5974. $as_echo "$ac_ct_STRIP" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. if test "x$ac_ct_STRIP" = x; then
  5980. STRIP=":"
  5981. else
  5982. case $cross_compiling:$ac_tool_warned in
  5983. yes:)
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5986. ac_tool_warned=yes ;;
  5987. esac
  5988. STRIP=$ac_ct_STRIP
  5989. fi
  5990. else
  5991. STRIP="$ac_cv_prog_STRIP"
  5992. fi
  5993. test -z "$STRIP" && STRIP=:
  5994. if test -n "$ac_tool_prefix"; then
  5995. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5996. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5998. $as_echo_n "checking for $ac_word... " >&6; }
  5999. if ${ac_cv_prog_RANLIB+:} false; then :
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. if test -n "$RANLIB"; then
  6003. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6004. else
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_exec_ext in '' $ac_executable_extensions; do
  6011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6012. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6014. break 2
  6015. fi
  6016. done
  6017. done
  6018. IFS=$as_save_IFS
  6019. fi
  6020. fi
  6021. RANLIB=$ac_cv_prog_RANLIB
  6022. if test -n "$RANLIB"; then
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6024. $as_echo "$RANLIB" >&6; }
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. fi
  6030. if test -z "$ac_cv_prog_RANLIB"; then
  6031. ac_ct_RANLIB=$RANLIB
  6032. # Extract the first word of "ranlib", so it can be a program name with args.
  6033. set dummy ranlib; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. if test -n "$ac_ct_RANLIB"; then
  6040. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6041. else
  6042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6043. for as_dir in $PATH
  6044. do
  6045. IFS=$as_save_IFS
  6046. test -z "$as_dir" && as_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6049. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6051. break 2
  6052. fi
  6053. done
  6054. done
  6055. IFS=$as_save_IFS
  6056. fi
  6057. fi
  6058. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6059. if test -n "$ac_ct_RANLIB"; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6061. $as_echo "$ac_ct_RANLIB" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. if test "x$ac_ct_RANLIB" = x; then
  6067. RANLIB=":"
  6068. else
  6069. case $cross_compiling:$ac_tool_warned in
  6070. yes:)
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6072. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6073. ac_tool_warned=yes ;;
  6074. esac
  6075. RANLIB=$ac_ct_RANLIB
  6076. fi
  6077. else
  6078. RANLIB="$ac_cv_prog_RANLIB"
  6079. fi
  6080. test -z "$RANLIB" && RANLIB=:
  6081. # Determine commands to create old-style static archives.
  6082. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6083. old_postinstall_cmds='chmod 644 $oldlib'
  6084. old_postuninstall_cmds=
  6085. if test -n "$RANLIB"; then
  6086. case $host_os in
  6087. openbsd*)
  6088. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6089. ;;
  6090. *)
  6091. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6092. ;;
  6093. esac
  6094. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6095. fi
  6096. case $host_os in
  6097. darwin*)
  6098. lock_old_archive_extraction=yes ;;
  6099. *)
  6100. lock_old_archive_extraction=no ;;
  6101. esac
  6102. # If no C compiler was specified, use CC.
  6103. LTCC=${LTCC-"$CC"}
  6104. # If no C compiler flags were specified, use CFLAGS.
  6105. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6106. # Allow CC to be a program name with arguments.
  6107. compiler=$CC
  6108. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6110. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6111. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. # These are sane defaults that work on at least a few old systems.
  6115. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6116. # Character class describing NM global symbol codes.
  6117. symcode='[BCDEGRST]'
  6118. # Regexp to match symbols that can be accessed directly from C.
  6119. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6120. # Define system-specific variables.
  6121. case $host_os in
  6122. aix*)
  6123. symcode='[BCDT]'
  6124. ;;
  6125. cygwin* | mingw* | pw32* | cegcc*)
  6126. symcode='[ABCDGISTW]'
  6127. ;;
  6128. hpux*)
  6129. if test "$host_cpu" = ia64; then
  6130. symcode='[ABCDEGRST]'
  6131. fi
  6132. ;;
  6133. irix* | nonstopux*)
  6134. symcode='[BCDEGRST]'
  6135. ;;
  6136. osf*)
  6137. symcode='[BCDEGQRST]'
  6138. ;;
  6139. solaris*)
  6140. symcode='[BDRT]'
  6141. ;;
  6142. sco3.2v5*)
  6143. symcode='[DT]'
  6144. ;;
  6145. sysv4.2uw2*)
  6146. symcode='[DT]'
  6147. ;;
  6148. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6149. symcode='[ABDT]'
  6150. ;;
  6151. sysv4)
  6152. symcode='[DFNSTU]'
  6153. ;;
  6154. esac
  6155. # If we're using GNU nm, then use its standard symbol codes.
  6156. case `$NM -V 2>&1` in
  6157. *GNU* | *'with BFD'*)
  6158. symcode='[ABCDGIRSTW]' ;;
  6159. esac
  6160. # Transform an extracted symbol line into a proper C declaration.
  6161. # Some systems (esp. on ia64) link data and code symbols differently,
  6162. # so use this general approach.
  6163. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6164. # Transform an extracted symbol line into symbol name and symbol address
  6165. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6166. 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'"
  6167. # Handle CRLF in mingw tool chain
  6168. opt_cr=
  6169. case $build_os in
  6170. mingw*)
  6171. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6172. ;;
  6173. esac
  6174. # Try without a prefix underscore, then with it.
  6175. for ac_symprfx in "" "_"; do
  6176. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6177. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6178. # Write the raw and C identifiers.
  6179. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6180. # Fake it for dumpbin and say T for any non-static function
  6181. # and D for any global variable.
  6182. # Also find C++ and __fastcall symbols from MSVC++,
  6183. # which start with @ or ?.
  6184. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6185. " {last_section=section; section=\$ 3};"\
  6186. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6187. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6188. " \$ 0!~/External *\|/{next};"\
  6189. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6190. " {if(hide[section]) next};"\
  6191. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6192. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6193. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6194. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6195. " ' prfx=^$ac_symprfx"
  6196. else
  6197. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6198. fi
  6199. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6200. # Check to see that the pipe works correctly.
  6201. pipe_works=no
  6202. rm -f conftest*
  6203. cat > conftest.$ac_ext <<_LT_EOF
  6204. #ifdef __cplusplus
  6205. extern "C" {
  6206. #endif
  6207. char nm_test_var;
  6208. void nm_test_func(void);
  6209. void nm_test_func(void){}
  6210. #ifdef __cplusplus
  6211. }
  6212. #endif
  6213. int main(){nm_test_var='a';nm_test_func();return(0);}
  6214. _LT_EOF
  6215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6216. (eval $ac_compile) 2>&5
  6217. ac_status=$?
  6218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6219. test $ac_status = 0; }; then
  6220. # Now try to grab the symbols.
  6221. nlist=conftest.nm
  6222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6223. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6224. ac_status=$?
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6226. test $ac_status = 0; } && test -s "$nlist"; then
  6227. # Try sorting and uniquifying the output.
  6228. if sort "$nlist" | uniq > "$nlist"T; then
  6229. mv -f "$nlist"T "$nlist"
  6230. else
  6231. rm -f "$nlist"T
  6232. fi
  6233. # Make sure that we snagged all the symbols we need.
  6234. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6235. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6236. cat <<_LT_EOF > conftest.$ac_ext
  6237. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6238. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6239. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6240. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6241. # define LT_DLSYM_CONST
  6242. #elif defined(__osf__)
  6243. /* This system does not cope well with relocations in const data. */
  6244. # define LT_DLSYM_CONST
  6245. #else
  6246. # define LT_DLSYM_CONST const
  6247. #endif
  6248. #ifdef __cplusplus
  6249. extern "C" {
  6250. #endif
  6251. _LT_EOF
  6252. # Now generate the symbol file.
  6253. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6254. cat <<_LT_EOF >> conftest.$ac_ext
  6255. /* The mapping between symbol names and symbols. */
  6256. LT_DLSYM_CONST struct {
  6257. const char *name;
  6258. void *address;
  6259. }
  6260. lt__PROGRAM__LTX_preloaded_symbols[] =
  6261. {
  6262. { "@PROGRAM@", (void *) 0 },
  6263. _LT_EOF
  6264. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6265. cat <<\_LT_EOF >> conftest.$ac_ext
  6266. {0, (void *) 0}
  6267. };
  6268. /* This works around a problem in FreeBSD linker */
  6269. #ifdef FREEBSD_WORKAROUND
  6270. static const void *lt_preloaded_setup() {
  6271. return lt__PROGRAM__LTX_preloaded_symbols;
  6272. }
  6273. #endif
  6274. #ifdef __cplusplus
  6275. }
  6276. #endif
  6277. _LT_EOF
  6278. # Now try linking the two files.
  6279. mv conftest.$ac_objext conftstm.$ac_objext
  6280. lt_globsym_save_LIBS=$LIBS
  6281. lt_globsym_save_CFLAGS=$CFLAGS
  6282. LIBS="conftstm.$ac_objext"
  6283. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6284. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6285. (eval $ac_link) 2>&5
  6286. ac_status=$?
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6288. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6289. pipe_works=yes
  6290. fi
  6291. LIBS=$lt_globsym_save_LIBS
  6292. CFLAGS=$lt_globsym_save_CFLAGS
  6293. else
  6294. echo "cannot find nm_test_func in $nlist" >&5
  6295. fi
  6296. else
  6297. echo "cannot find nm_test_var in $nlist" >&5
  6298. fi
  6299. else
  6300. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6301. fi
  6302. else
  6303. echo "$progname: failed program was:" >&5
  6304. cat conftest.$ac_ext >&5
  6305. fi
  6306. rm -rf conftest* conftst*
  6307. # Do not use the global_symbol_pipe unless it works.
  6308. if test "$pipe_works" = yes; then
  6309. break
  6310. else
  6311. lt_cv_sys_global_symbol_pipe=
  6312. fi
  6313. done
  6314. fi
  6315. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6316. lt_cv_sys_global_symbol_to_cdecl=
  6317. fi
  6318. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6320. $as_echo "failed" >&6; }
  6321. else
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6323. $as_echo "ok" >&6; }
  6324. fi
  6325. # Response file support.
  6326. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6327. nm_file_list_spec='@'
  6328. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6329. nm_file_list_spec='@'
  6330. fi
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6332. $as_echo_n "checking for sysroot... " >&6; }
  6333. # Check whether --with-sysroot was given.
  6334. if test "${with_sysroot+set}" = set; then :
  6335. withval=$with_sysroot;
  6336. else
  6337. with_sysroot=no
  6338. fi
  6339. lt_sysroot=
  6340. case ${with_sysroot} in #(
  6341. yes)
  6342. if test "$GCC" = yes; then
  6343. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6344. fi
  6345. ;; #(
  6346. /*)
  6347. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6348. ;; #(
  6349. no|'')
  6350. ;; #(
  6351. *)
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6353. $as_echo "${with_sysroot}" >&6; }
  6354. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6355. ;;
  6356. esac
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6358. $as_echo "${lt_sysroot:-no}" >&6; }
  6359. # Check whether --enable-libtool-lock was given.
  6360. if test "${enable_libtool_lock+set}" = set; then :
  6361. enableval=$enable_libtool_lock;
  6362. fi
  6363. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6364. # Some flags need to be propagated to the compiler or linker for good
  6365. # libtool support.
  6366. case $host in
  6367. ia64-*-hpux*)
  6368. # Find out which ABI we are using.
  6369. echo 'int i;' > conftest.$ac_ext
  6370. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6371. (eval $ac_compile) 2>&5
  6372. ac_status=$?
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6374. test $ac_status = 0; }; then
  6375. case `/usr/bin/file conftest.$ac_objext` in
  6376. *ELF-32*)
  6377. HPUX_IA64_MODE="32"
  6378. ;;
  6379. *ELF-64*)
  6380. HPUX_IA64_MODE="64"
  6381. ;;
  6382. esac
  6383. fi
  6384. rm -rf conftest*
  6385. ;;
  6386. *-*-irix6*)
  6387. # Find out which ABI we are using.
  6388. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6390. (eval $ac_compile) 2>&5
  6391. ac_status=$?
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6393. test $ac_status = 0; }; then
  6394. if test "$lt_cv_prog_gnu_ld" = yes; then
  6395. case `/usr/bin/file conftest.$ac_objext` in
  6396. *32-bit*)
  6397. LD="${LD-ld} -melf32bsmip"
  6398. ;;
  6399. *N32*)
  6400. LD="${LD-ld} -melf32bmipn32"
  6401. ;;
  6402. *64-bit*)
  6403. LD="${LD-ld} -melf64bmip"
  6404. ;;
  6405. esac
  6406. else
  6407. case `/usr/bin/file conftest.$ac_objext` in
  6408. *32-bit*)
  6409. LD="${LD-ld} -32"
  6410. ;;
  6411. *N32*)
  6412. LD="${LD-ld} -n32"
  6413. ;;
  6414. *64-bit*)
  6415. LD="${LD-ld} -64"
  6416. ;;
  6417. esac
  6418. fi
  6419. fi
  6420. rm -rf conftest*
  6421. ;;
  6422. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6423. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6424. # Find out which ABI we are using.
  6425. echo 'int i;' > conftest.$ac_ext
  6426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6427. (eval $ac_compile) 2>&5
  6428. ac_status=$?
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6430. test $ac_status = 0; }; then
  6431. case `/usr/bin/file conftest.o` in
  6432. *32-bit*)
  6433. case $host in
  6434. x86_64-*kfreebsd*-gnu)
  6435. LD="${LD-ld} -m elf_i386_fbsd"
  6436. ;;
  6437. x86_64-*linux*)
  6438. LD="${LD-ld} -m elf_i386"
  6439. ;;
  6440. ppc64-*linux*|powerpc64-*linux*)
  6441. LD="${LD-ld} -m elf32ppclinux"
  6442. ;;
  6443. s390x-*linux*)
  6444. LD="${LD-ld} -m elf_s390"
  6445. ;;
  6446. sparc64-*linux*)
  6447. LD="${LD-ld} -m elf32_sparc"
  6448. ;;
  6449. esac
  6450. ;;
  6451. *64-bit*)
  6452. case $host in
  6453. x86_64-*kfreebsd*-gnu)
  6454. LD="${LD-ld} -m elf_x86_64_fbsd"
  6455. ;;
  6456. x86_64-*linux*)
  6457. LD="${LD-ld} -m elf_x86_64"
  6458. ;;
  6459. ppc*-*linux*|powerpc*-*linux*)
  6460. LD="${LD-ld} -m elf64ppc"
  6461. ;;
  6462. s390*-*linux*|s390*-*tpf*)
  6463. LD="${LD-ld} -m elf64_s390"
  6464. ;;
  6465. sparc*-*linux*)
  6466. LD="${LD-ld} -m elf64_sparc"
  6467. ;;
  6468. esac
  6469. ;;
  6470. esac
  6471. fi
  6472. rm -rf conftest*
  6473. ;;
  6474. *-*-sco3.2v5*)
  6475. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6476. SAVE_CFLAGS="$CFLAGS"
  6477. CFLAGS="$CFLAGS -belf"
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6479. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6480. if ${lt_cv_cc_needs_belf+:} false; then :
  6481. $as_echo_n "(cached) " >&6
  6482. else
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6489. /* end confdefs.h. */
  6490. int
  6491. main ()
  6492. {
  6493. ;
  6494. return 0;
  6495. }
  6496. _ACEOF
  6497. if ac_fn_c_try_link "$LINENO"; then :
  6498. lt_cv_cc_needs_belf=yes
  6499. else
  6500. lt_cv_cc_needs_belf=no
  6501. fi
  6502. rm -f core conftest.err conftest.$ac_objext \
  6503. conftest$ac_exeext conftest.$ac_ext
  6504. ac_ext=c
  6505. ac_cpp='$CPP $CPPFLAGS'
  6506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6509. fi
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6511. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6512. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6513. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6514. CFLAGS="$SAVE_CFLAGS"
  6515. fi
  6516. ;;
  6517. *-*solaris*)
  6518. # Find out which ABI we are using.
  6519. echo 'int i;' > conftest.$ac_ext
  6520. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6521. (eval $ac_compile) 2>&5
  6522. ac_status=$?
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6524. test $ac_status = 0; }; then
  6525. case `/usr/bin/file conftest.o` in
  6526. *64-bit*)
  6527. case $lt_cv_prog_gnu_ld in
  6528. yes*)
  6529. case $host in
  6530. i?86-*-solaris*)
  6531. LD="${LD-ld} -m elf_x86_64"
  6532. ;;
  6533. sparc*-*-solaris*)
  6534. LD="${LD-ld} -m elf64_sparc"
  6535. ;;
  6536. esac
  6537. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6538. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6539. LD="${LD-ld}_sol2"
  6540. fi
  6541. ;;
  6542. *)
  6543. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6544. LD="${LD-ld} -64"
  6545. fi
  6546. ;;
  6547. esac
  6548. ;;
  6549. esac
  6550. fi
  6551. rm -rf conftest*
  6552. ;;
  6553. esac
  6554. need_locks="$enable_libtool_lock"
  6555. if test -n "$ac_tool_prefix"; then
  6556. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6557. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6559. $as_echo_n "checking for $ac_word... " >&6; }
  6560. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. if test -n "$MANIFEST_TOOL"; then
  6564. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6565. else
  6566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6567. for as_dir in $PATH
  6568. do
  6569. IFS=$as_save_IFS
  6570. test -z "$as_dir" && as_dir=.
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6573. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6575. break 2
  6576. fi
  6577. done
  6578. done
  6579. IFS=$as_save_IFS
  6580. fi
  6581. fi
  6582. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6583. if test -n "$MANIFEST_TOOL"; then
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6585. $as_echo "$MANIFEST_TOOL" >&6; }
  6586. else
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6588. $as_echo "no" >&6; }
  6589. fi
  6590. fi
  6591. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6592. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6593. # Extract the first word of "mt", so it can be a program name with args.
  6594. set dummy mt; ac_word=$2
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6596. $as_echo_n "checking for $ac_word... " >&6; }
  6597. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6601. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6602. else
  6603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6604. for as_dir in $PATH
  6605. do
  6606. IFS=$as_save_IFS
  6607. test -z "$as_dir" && as_dir=.
  6608. for ac_exec_ext in '' $ac_executable_extensions; do
  6609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6610. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6612. break 2
  6613. fi
  6614. done
  6615. done
  6616. IFS=$as_save_IFS
  6617. fi
  6618. fi
  6619. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6620. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6622. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6628. MANIFEST_TOOL=":"
  6629. else
  6630. case $cross_compiling:$ac_tool_warned in
  6631. yes:)
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6634. ac_tool_warned=yes ;;
  6635. esac
  6636. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6637. fi
  6638. else
  6639. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6640. fi
  6641. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6643. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6644. if ${lt_cv_path_mainfest_tool+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. lt_cv_path_mainfest_tool=no
  6648. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6649. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6650. cat conftest.err >&5
  6651. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6652. lt_cv_path_mainfest_tool=yes
  6653. fi
  6654. rm -f conftest*
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6657. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6658. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6659. MANIFEST_TOOL=:
  6660. fi
  6661. case $host_os in
  6662. rhapsody* | darwin*)
  6663. if test -n "$ac_tool_prefix"; then
  6664. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6665. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. $as_echo_n "checking for $ac_word... " >&6; }
  6668. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test -n "$DSYMUTIL"; then
  6672. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6673. else
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6681. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6691. if test -n "$DSYMUTIL"; then
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6693. $as_echo "$DSYMUTIL" >&6; }
  6694. else
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. $as_echo "no" >&6; }
  6697. fi
  6698. fi
  6699. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6700. ac_ct_DSYMUTIL=$DSYMUTIL
  6701. # Extract the first word of "dsymutil", so it can be a program name with args.
  6702. set dummy dsymutil; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$ac_ct_DSYMUTIL"; then
  6709. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6718. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6728. if test -n "$ac_ct_DSYMUTIL"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6730. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. if test "x$ac_ct_DSYMUTIL" = x; then
  6736. DSYMUTIL=":"
  6737. else
  6738. case $cross_compiling:$ac_tool_warned in
  6739. yes:)
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6742. ac_tool_warned=yes ;;
  6743. esac
  6744. DSYMUTIL=$ac_ct_DSYMUTIL
  6745. fi
  6746. else
  6747. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6748. fi
  6749. if test -n "$ac_tool_prefix"; then
  6750. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6751. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. $as_echo_n "checking for $ac_word... " >&6; }
  6754. if ${ac_cv_prog_NMEDIT+:} false; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. if test -n "$NMEDIT"; then
  6758. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6759. else
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. test -z "$as_dir" && as_dir=.
  6765. for ac_exec_ext in '' $ac_executable_extensions; do
  6766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6767. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6769. break 2
  6770. fi
  6771. done
  6772. done
  6773. IFS=$as_save_IFS
  6774. fi
  6775. fi
  6776. NMEDIT=$ac_cv_prog_NMEDIT
  6777. if test -n "$NMEDIT"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6779. $as_echo "$NMEDIT" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. fi
  6785. if test -z "$ac_cv_prog_NMEDIT"; then
  6786. ac_ct_NMEDIT=$NMEDIT
  6787. # Extract the first word of "nmedit", so it can be a program name with args.
  6788. set dummy nmedit; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$ac_ct_NMEDIT"; then
  6795. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6804. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6814. if test -n "$ac_ct_NMEDIT"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6816. $as_echo "$ac_ct_NMEDIT" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. if test "x$ac_ct_NMEDIT" = x; then
  6822. NMEDIT=":"
  6823. else
  6824. case $cross_compiling:$ac_tool_warned in
  6825. yes:)
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6828. ac_tool_warned=yes ;;
  6829. esac
  6830. NMEDIT=$ac_ct_NMEDIT
  6831. fi
  6832. else
  6833. NMEDIT="$ac_cv_prog_NMEDIT"
  6834. fi
  6835. if test -n "$ac_tool_prefix"; then
  6836. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6837. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6839. $as_echo_n "checking for $ac_word... " >&6; }
  6840. if ${ac_cv_prog_LIPO+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. if test -n "$LIPO"; then
  6844. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6845. else
  6846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. for as_dir in $PATH
  6848. do
  6849. IFS=$as_save_IFS
  6850. test -z "$as_dir" && as_dir=.
  6851. for ac_exec_ext in '' $ac_executable_extensions; do
  6852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6853. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6855. break 2
  6856. fi
  6857. done
  6858. done
  6859. IFS=$as_save_IFS
  6860. fi
  6861. fi
  6862. LIPO=$ac_cv_prog_LIPO
  6863. if test -n "$LIPO"; then
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6865. $as_echo "$LIPO" >&6; }
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. fi
  6871. if test -z "$ac_cv_prog_LIPO"; then
  6872. ac_ct_LIPO=$LIPO
  6873. # Extract the first word of "lipo", so it can be a program name with args.
  6874. set dummy lipo; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$ac_ct_LIPO"; then
  6881. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6890. ac_cv_prog_ac_ct_LIPO="lipo"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6900. if test -n "$ac_ct_LIPO"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6902. $as_echo "$ac_ct_LIPO" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. if test "x$ac_ct_LIPO" = x; then
  6908. LIPO=":"
  6909. else
  6910. case $cross_compiling:$ac_tool_warned in
  6911. yes:)
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6914. ac_tool_warned=yes ;;
  6915. esac
  6916. LIPO=$ac_ct_LIPO
  6917. fi
  6918. else
  6919. LIPO="$ac_cv_prog_LIPO"
  6920. fi
  6921. if test -n "$ac_tool_prefix"; then
  6922. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6923. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6925. $as_echo_n "checking for $ac_word... " >&6; }
  6926. if ${ac_cv_prog_OTOOL+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. if test -n "$OTOOL"; then
  6930. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6931. else
  6932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933. for as_dir in $PATH
  6934. do
  6935. IFS=$as_save_IFS
  6936. test -z "$as_dir" && as_dir=.
  6937. for ac_exec_ext in '' $ac_executable_extensions; do
  6938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6939. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941. break 2
  6942. fi
  6943. done
  6944. done
  6945. IFS=$as_save_IFS
  6946. fi
  6947. fi
  6948. OTOOL=$ac_cv_prog_OTOOL
  6949. if test -n "$OTOOL"; then
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6951. $as_echo "$OTOOL" >&6; }
  6952. else
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. fi
  6956. fi
  6957. if test -z "$ac_cv_prog_OTOOL"; then
  6958. ac_ct_OTOOL=$OTOOL
  6959. # Extract the first word of "otool", so it can be a program name with args.
  6960. set dummy otool; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$ac_ct_OTOOL"; then
  6967. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6976. ac_cv_prog_ac_ct_OTOOL="otool"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6986. if test -n "$ac_ct_OTOOL"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6988. $as_echo "$ac_ct_OTOOL" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. if test "x$ac_ct_OTOOL" = x; then
  6994. OTOOL=":"
  6995. else
  6996. case $cross_compiling:$ac_tool_warned in
  6997. yes:)
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7000. ac_tool_warned=yes ;;
  7001. esac
  7002. OTOOL=$ac_ct_OTOOL
  7003. fi
  7004. else
  7005. OTOOL="$ac_cv_prog_OTOOL"
  7006. fi
  7007. if test -n "$ac_tool_prefix"; then
  7008. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7009. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7011. $as_echo_n "checking for $ac_word... " >&6; }
  7012. if ${ac_cv_prog_OTOOL64+:} false; then :
  7013. $as_echo_n "(cached) " >&6
  7014. else
  7015. if test -n "$OTOOL64"; then
  7016. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7017. else
  7018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7019. for as_dir in $PATH
  7020. do
  7021. IFS=$as_save_IFS
  7022. test -z "$as_dir" && as_dir=.
  7023. for ac_exec_ext in '' $ac_executable_extensions; do
  7024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7025. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7027. break 2
  7028. fi
  7029. done
  7030. done
  7031. IFS=$as_save_IFS
  7032. fi
  7033. fi
  7034. OTOOL64=$ac_cv_prog_OTOOL64
  7035. if test -n "$OTOOL64"; then
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7037. $as_echo "$OTOOL64" >&6; }
  7038. else
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7040. $as_echo "no" >&6; }
  7041. fi
  7042. fi
  7043. if test -z "$ac_cv_prog_OTOOL64"; then
  7044. ac_ct_OTOOL64=$OTOOL64
  7045. # Extract the first word of "otool64", so it can be a program name with args.
  7046. set dummy otool64; ac_word=$2
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7048. $as_echo_n "checking for $ac_word... " >&6; }
  7049. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7050. $as_echo_n "(cached) " >&6
  7051. else
  7052. if test -n "$ac_ct_OTOOL64"; then
  7053. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7054. else
  7055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7056. for as_dir in $PATH
  7057. do
  7058. IFS=$as_save_IFS
  7059. test -z "$as_dir" && as_dir=.
  7060. for ac_exec_ext in '' $ac_executable_extensions; do
  7061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7062. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7064. break 2
  7065. fi
  7066. done
  7067. done
  7068. IFS=$as_save_IFS
  7069. fi
  7070. fi
  7071. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7072. if test -n "$ac_ct_OTOOL64"; then
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7074. $as_echo "$ac_ct_OTOOL64" >&6; }
  7075. else
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7077. $as_echo "no" >&6; }
  7078. fi
  7079. if test "x$ac_ct_OTOOL64" = x; then
  7080. OTOOL64=":"
  7081. else
  7082. case $cross_compiling:$ac_tool_warned in
  7083. yes:)
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7085. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7086. ac_tool_warned=yes ;;
  7087. esac
  7088. OTOOL64=$ac_ct_OTOOL64
  7089. fi
  7090. else
  7091. OTOOL64="$ac_cv_prog_OTOOL64"
  7092. fi
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7094. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7095. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7096. $as_echo_n "(cached) " >&6
  7097. else
  7098. lt_cv_apple_cc_single_mod=no
  7099. if test -z "${LT_MULTI_MODULE}"; then
  7100. # By default we will add the -single_module flag. You can override
  7101. # by either setting the environment variable LT_MULTI_MODULE
  7102. # non-empty at configure time, or by adding -multi_module to the
  7103. # link flags.
  7104. rm -rf libconftest.dylib*
  7105. echo "int foo(void){return 1;}" > conftest.c
  7106. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7107. -dynamiclib -Wl,-single_module conftest.c" >&5
  7108. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7109. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7110. _lt_result=$?
  7111. # If there is a non-empty error log, and "single_module"
  7112. # appears in it, assume the flag caused a linker warning
  7113. if test -s conftest.err && $GREP single_module conftest.err; then
  7114. cat conftest.err >&5
  7115. # Otherwise, if the output was created with a 0 exit code from
  7116. # the compiler, it worked.
  7117. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7118. lt_cv_apple_cc_single_mod=yes
  7119. else
  7120. cat conftest.err >&5
  7121. fi
  7122. rm -rf libconftest.dylib*
  7123. rm -f conftest.*
  7124. fi
  7125. fi
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7127. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7129. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7130. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7131. $as_echo_n "(cached) " >&6
  7132. else
  7133. lt_cv_ld_exported_symbols_list=no
  7134. save_LDFLAGS=$LDFLAGS
  7135. echo "_main" > conftest.sym
  7136. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. int
  7140. main ()
  7141. {
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_link "$LINENO"; then :
  7147. lt_cv_ld_exported_symbols_list=yes
  7148. else
  7149. lt_cv_ld_exported_symbols_list=no
  7150. fi
  7151. rm -f core conftest.err conftest.$ac_objext \
  7152. conftest$ac_exeext conftest.$ac_ext
  7153. LDFLAGS="$save_LDFLAGS"
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7156. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7158. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7159. if ${lt_cv_ld_force_load+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. lt_cv_ld_force_load=no
  7163. cat > conftest.c << _LT_EOF
  7164. int forced_loaded() { return 2;}
  7165. _LT_EOF
  7166. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7167. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7168. echo "$AR cru libconftest.a conftest.o" >&5
  7169. $AR cru libconftest.a conftest.o 2>&5
  7170. echo "$RANLIB libconftest.a" >&5
  7171. $RANLIB libconftest.a 2>&5
  7172. cat > conftest.c << _LT_EOF
  7173. int main() { return 0;}
  7174. _LT_EOF
  7175. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7176. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7177. _lt_result=$?
  7178. if test -s conftest.err && $GREP force_load conftest.err; then
  7179. cat conftest.err >&5
  7180. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7181. lt_cv_ld_force_load=yes
  7182. else
  7183. cat conftest.err >&5
  7184. fi
  7185. rm -f conftest.err libconftest.a conftest conftest.c
  7186. rm -rf conftest.dSYM
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7189. $as_echo "$lt_cv_ld_force_load" >&6; }
  7190. case $host_os in
  7191. rhapsody* | darwin1.[012])
  7192. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7193. darwin1.*)
  7194. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7195. darwin*) # darwin 5.x on
  7196. # if running on 10.5 or later, the deployment target defaults
  7197. # to the OS version, if on x86, and 10.4, the deployment
  7198. # target defaults to 10.4. Don't you love it?
  7199. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7200. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7201. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7202. 10.[012]*)
  7203. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7204. 10.*)
  7205. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7206. esac
  7207. ;;
  7208. esac
  7209. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7210. _lt_dar_single_mod='$single_module'
  7211. fi
  7212. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7213. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7214. else
  7215. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7216. fi
  7217. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7218. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7219. else
  7220. _lt_dsymutil=
  7221. fi
  7222. ;;
  7223. esac
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7225. $as_echo_n "checking for ANSI C header files... " >&6; }
  7226. if ${ac_cv_header_stdc+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7230. /* end confdefs.h. */
  7231. #include <stdlib.h>
  7232. #include <stdarg.h>
  7233. #include <string.h>
  7234. #include <float.h>
  7235. int
  7236. main ()
  7237. {
  7238. ;
  7239. return 0;
  7240. }
  7241. _ACEOF
  7242. if ac_fn_c_try_compile "$LINENO"; then :
  7243. ac_cv_header_stdc=yes
  7244. else
  7245. ac_cv_header_stdc=no
  7246. fi
  7247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7248. if test $ac_cv_header_stdc = yes; then
  7249. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7251. /* end confdefs.h. */
  7252. #include <string.h>
  7253. _ACEOF
  7254. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7255. $EGREP "memchr" >/dev/null 2>&1; then :
  7256. else
  7257. ac_cv_header_stdc=no
  7258. fi
  7259. rm -f conftest*
  7260. fi
  7261. if test $ac_cv_header_stdc = yes; then
  7262. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7264. /* end confdefs.h. */
  7265. #include <stdlib.h>
  7266. _ACEOF
  7267. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7268. $EGREP "free" >/dev/null 2>&1; then :
  7269. else
  7270. ac_cv_header_stdc=no
  7271. fi
  7272. rm -f conftest*
  7273. fi
  7274. if test $ac_cv_header_stdc = yes; then
  7275. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7276. if test "$cross_compiling" = yes; then :
  7277. :
  7278. else
  7279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7280. /* end confdefs.h. */
  7281. #include <ctype.h>
  7282. #include <stdlib.h>
  7283. #if ((' ' & 0x0FF) == 0x020)
  7284. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7285. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7286. #else
  7287. # define ISLOWER(c) \
  7288. (('a' <= (c) && (c) <= 'i') \
  7289. || ('j' <= (c) && (c) <= 'r') \
  7290. || ('s' <= (c) && (c) <= 'z'))
  7291. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7292. #endif
  7293. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7294. int
  7295. main ()
  7296. {
  7297. int i;
  7298. for (i = 0; i < 256; i++)
  7299. if (XOR (islower (i), ISLOWER (i))
  7300. || toupper (i) != TOUPPER (i))
  7301. return 2;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. if ac_fn_c_try_run "$LINENO"; then :
  7306. else
  7307. ac_cv_header_stdc=no
  7308. fi
  7309. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7310. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7311. fi
  7312. fi
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7315. $as_echo "$ac_cv_header_stdc" >&6; }
  7316. if test $ac_cv_header_stdc = yes; then
  7317. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7318. fi
  7319. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7320. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7321. inttypes.h stdint.h unistd.h
  7322. do :
  7323. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7324. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7325. "
  7326. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7327. cat >>confdefs.h <<_ACEOF
  7328. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7329. _ACEOF
  7330. fi
  7331. done
  7332. for ac_header in dlfcn.h
  7333. do :
  7334. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7335. "
  7336. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7337. cat >>confdefs.h <<_ACEOF
  7338. #define HAVE_DLFCN_H 1
  7339. _ACEOF
  7340. fi
  7341. done
  7342. func_stripname_cnf ()
  7343. {
  7344. case ${2} in
  7345. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7346. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7347. esac
  7348. } # func_stripname_cnf
  7349. # Set options
  7350. enable_dlopen=no
  7351. enable_win32_dll=no
  7352. # Check whether --enable-shared was given.
  7353. if test "${enable_shared+set}" = set; then :
  7354. enableval=$enable_shared; p=${PACKAGE-default}
  7355. case $enableval in
  7356. yes) enable_shared=yes ;;
  7357. no) enable_shared=no ;;
  7358. *)
  7359. enable_shared=no
  7360. # Look at the argument we got. We use all the common list separators.
  7361. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7362. for pkg in $enableval; do
  7363. IFS="$lt_save_ifs"
  7364. if test "X$pkg" = "X$p"; then
  7365. enable_shared=yes
  7366. fi
  7367. done
  7368. IFS="$lt_save_ifs"
  7369. ;;
  7370. esac
  7371. else
  7372. enable_shared=yes
  7373. fi
  7374. # Check whether --enable-static was given.
  7375. if test "${enable_static+set}" = set; then :
  7376. enableval=$enable_static; p=${PACKAGE-default}
  7377. case $enableval in
  7378. yes) enable_static=yes ;;
  7379. no) enable_static=no ;;
  7380. *)
  7381. enable_static=no
  7382. # Look at the argument we got. We use all the common list separators.
  7383. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7384. for pkg in $enableval; do
  7385. IFS="$lt_save_ifs"
  7386. if test "X$pkg" = "X$p"; then
  7387. enable_static=yes
  7388. fi
  7389. done
  7390. IFS="$lt_save_ifs"
  7391. ;;
  7392. esac
  7393. else
  7394. enable_static=yes
  7395. fi
  7396. # Check whether --with-pic was given.
  7397. if test "${with_pic+set}" = set; then :
  7398. withval=$with_pic; lt_p=${PACKAGE-default}
  7399. case $withval in
  7400. yes|no) pic_mode=$withval ;;
  7401. *)
  7402. pic_mode=default
  7403. # Look at the argument we got. We use all the common list separators.
  7404. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7405. for lt_pkg in $withval; do
  7406. IFS="$lt_save_ifs"
  7407. if test "X$lt_pkg" = "X$lt_p"; then
  7408. pic_mode=yes
  7409. fi
  7410. done
  7411. IFS="$lt_save_ifs"
  7412. ;;
  7413. esac
  7414. else
  7415. pic_mode=default
  7416. fi
  7417. test -z "$pic_mode" && pic_mode=default
  7418. # Check whether --enable-fast-install was given.
  7419. if test "${enable_fast_install+set}" = set; then :
  7420. enableval=$enable_fast_install; p=${PACKAGE-default}
  7421. case $enableval in
  7422. yes) enable_fast_install=yes ;;
  7423. no) enable_fast_install=no ;;
  7424. *)
  7425. enable_fast_install=no
  7426. # Look at the argument we got. We use all the common list separators.
  7427. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7428. for pkg in $enableval; do
  7429. IFS="$lt_save_ifs"
  7430. if test "X$pkg" = "X$p"; then
  7431. enable_fast_install=yes
  7432. fi
  7433. done
  7434. IFS="$lt_save_ifs"
  7435. ;;
  7436. esac
  7437. else
  7438. enable_fast_install=yes
  7439. fi
  7440. # This can be used to rebuild libtool when needed
  7441. LIBTOOL_DEPS="$ltmain"
  7442. # Always use our own libtool.
  7443. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7444. test -z "$LN_S" && LN_S="ln -s"
  7445. if test -n "${ZSH_VERSION+set}" ; then
  7446. setopt NO_GLOB_SUBST
  7447. fi
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7449. $as_echo_n "checking for objdir... " >&6; }
  7450. if ${lt_cv_objdir+:} false; then :
  7451. $as_echo_n "(cached) " >&6
  7452. else
  7453. rm -f .libs 2>/dev/null
  7454. mkdir .libs 2>/dev/null
  7455. if test -d .libs; then
  7456. lt_cv_objdir=.libs
  7457. else
  7458. # MS-DOS does not allow filenames that begin with a dot.
  7459. lt_cv_objdir=_libs
  7460. fi
  7461. rmdir .libs 2>/dev/null
  7462. fi
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7464. $as_echo "$lt_cv_objdir" >&6; }
  7465. objdir=$lt_cv_objdir
  7466. cat >>confdefs.h <<_ACEOF
  7467. #define LT_OBJDIR "$lt_cv_objdir/"
  7468. _ACEOF
  7469. case $host_os in
  7470. aix3*)
  7471. # AIX sometimes has problems with the GCC collect2 program. For some
  7472. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7473. # vanish in a puff of smoke.
  7474. if test "X${COLLECT_NAMES+set}" != Xset; then
  7475. COLLECT_NAMES=
  7476. export COLLECT_NAMES
  7477. fi
  7478. ;;
  7479. esac
  7480. # Global variables:
  7481. ofile=libtool
  7482. can_build_shared=yes
  7483. # All known linkers require a `.a' archive for static linking (except MSVC,
  7484. # which needs '.lib').
  7485. libext=a
  7486. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7487. old_CC="$CC"
  7488. old_CFLAGS="$CFLAGS"
  7489. # Set sane defaults for various variables
  7490. test -z "$CC" && CC=cc
  7491. test -z "$LTCC" && LTCC=$CC
  7492. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7493. test -z "$LD" && LD=ld
  7494. test -z "$ac_objext" && ac_objext=o
  7495. for cc_temp in $compiler""; do
  7496. case $cc_temp in
  7497. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7498. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7499. \-*) ;;
  7500. *) break;;
  7501. esac
  7502. done
  7503. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7504. # Only perform the check for file, if the check method requires it
  7505. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7506. case $deplibs_check_method in
  7507. file_magic*)
  7508. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7510. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7511. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. case $MAGIC_CMD in
  7515. [\\/*] | ?:[\\/]*)
  7516. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7517. ;;
  7518. *)
  7519. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7520. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7521. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7522. for ac_dir in $ac_dummy; do
  7523. IFS="$lt_save_ifs"
  7524. test -z "$ac_dir" && ac_dir=.
  7525. if test -f $ac_dir/${ac_tool_prefix}file; then
  7526. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7527. if test -n "$file_magic_test_file"; then
  7528. case $deplibs_check_method in
  7529. "file_magic "*)
  7530. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7531. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7532. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7533. $EGREP "$file_magic_regex" > /dev/null; then
  7534. :
  7535. else
  7536. cat <<_LT_EOF 1>&2
  7537. *** Warning: the command libtool uses to detect shared libraries,
  7538. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7539. *** The result is that libtool may fail to recognize shared libraries
  7540. *** as such. This will affect the creation of libtool libraries that
  7541. *** depend on shared libraries, but programs linked with such libtool
  7542. *** libraries will work regardless of this problem. Nevertheless, you
  7543. *** may want to report the problem to your system manager and/or to
  7544. *** bug-libtool@gnu.org
  7545. _LT_EOF
  7546. fi ;;
  7547. esac
  7548. fi
  7549. break
  7550. fi
  7551. done
  7552. IFS="$lt_save_ifs"
  7553. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7554. ;;
  7555. esac
  7556. fi
  7557. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7558. if test -n "$MAGIC_CMD"; then
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7560. $as_echo "$MAGIC_CMD" >&6; }
  7561. else
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7563. $as_echo "no" >&6; }
  7564. fi
  7565. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7566. if test -n "$ac_tool_prefix"; then
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7568. $as_echo_n "checking for file... " >&6; }
  7569. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7570. $as_echo_n "(cached) " >&6
  7571. else
  7572. case $MAGIC_CMD in
  7573. [\\/*] | ?:[\\/]*)
  7574. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7575. ;;
  7576. *)
  7577. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7578. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7579. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7580. for ac_dir in $ac_dummy; do
  7581. IFS="$lt_save_ifs"
  7582. test -z "$ac_dir" && ac_dir=.
  7583. if test -f $ac_dir/file; then
  7584. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7585. if test -n "$file_magic_test_file"; then
  7586. case $deplibs_check_method in
  7587. "file_magic "*)
  7588. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7589. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7590. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7591. $EGREP "$file_magic_regex" > /dev/null; then
  7592. :
  7593. else
  7594. cat <<_LT_EOF 1>&2
  7595. *** Warning: the command libtool uses to detect shared libraries,
  7596. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7597. *** The result is that libtool may fail to recognize shared libraries
  7598. *** as such. This will affect the creation of libtool libraries that
  7599. *** depend on shared libraries, but programs linked with such libtool
  7600. *** libraries will work regardless of this problem. Nevertheless, you
  7601. *** may want to report the problem to your system manager and/or to
  7602. *** bug-libtool@gnu.org
  7603. _LT_EOF
  7604. fi ;;
  7605. esac
  7606. fi
  7607. break
  7608. fi
  7609. done
  7610. IFS="$lt_save_ifs"
  7611. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7612. ;;
  7613. esac
  7614. fi
  7615. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7616. if test -n "$MAGIC_CMD"; then
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7618. $as_echo "$MAGIC_CMD" >&6; }
  7619. else
  7620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7621. $as_echo "no" >&6; }
  7622. fi
  7623. else
  7624. MAGIC_CMD=:
  7625. fi
  7626. fi
  7627. fi
  7628. ;;
  7629. esac
  7630. # Use C for the default configuration in the libtool script
  7631. lt_save_CC="$CC"
  7632. ac_ext=c
  7633. ac_cpp='$CPP $CPPFLAGS'
  7634. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7635. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7636. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7637. # Source file extension for C test sources.
  7638. ac_ext=c
  7639. # Object file extension for compiled C test sources.
  7640. objext=o
  7641. objext=$objext
  7642. # Code to be used in simple compile tests
  7643. lt_simple_compile_test_code="int some_variable = 0;"
  7644. # Code to be used in simple link tests
  7645. lt_simple_link_test_code='int main(){return(0);}'
  7646. # If no C compiler was specified, use CC.
  7647. LTCC=${LTCC-"$CC"}
  7648. # If no C compiler flags were specified, use CFLAGS.
  7649. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7650. # Allow CC to be a program name with arguments.
  7651. compiler=$CC
  7652. # Save the default compiler, since it gets overwritten when the other
  7653. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7654. compiler_DEFAULT=$CC
  7655. # save warnings/boilerplate of simple test code
  7656. ac_outfile=conftest.$ac_objext
  7657. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7658. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7659. _lt_compiler_boilerplate=`cat conftest.err`
  7660. $RM conftest*
  7661. ac_outfile=conftest.$ac_objext
  7662. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7663. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7664. _lt_linker_boilerplate=`cat conftest.err`
  7665. $RM -r conftest*
  7666. ## CAVEAT EMPTOR:
  7667. ## There is no encapsulation within the following macros, do not change
  7668. ## the running order or otherwise move them around unless you know exactly
  7669. ## what you are doing...
  7670. if test -n "$compiler"; then
  7671. lt_prog_compiler_no_builtin_flag=
  7672. if test "$GCC" = yes; then
  7673. case $cc_basename in
  7674. nvcc*)
  7675. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7676. *)
  7677. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7678. esac
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7680. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7681. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. lt_cv_prog_compiler_rtti_exceptions=no
  7685. ac_outfile=conftest.$ac_objext
  7686. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7687. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7688. # Insert the option either (1) after the last *FLAGS variable, or
  7689. # (2) before a word containing "conftest.", or (3) at the end.
  7690. # Note that $ac_compile itself does not contain backslashes and begins
  7691. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7692. # The option is referenced via a variable to avoid confusing sed.
  7693. lt_compile=`echo "$ac_compile" | $SED \
  7694. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7695. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7696. -e 's:$: $lt_compiler_flag:'`
  7697. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7698. (eval "$lt_compile" 2>conftest.err)
  7699. ac_status=$?
  7700. cat conftest.err >&5
  7701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7702. if (exit $ac_status) && test -s "$ac_outfile"; then
  7703. # The compiler can only warn and ignore the option if not recognized
  7704. # So say no if there are warnings other than the usual output.
  7705. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7706. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7707. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7708. lt_cv_prog_compiler_rtti_exceptions=yes
  7709. fi
  7710. fi
  7711. $RM conftest*
  7712. fi
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7714. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7715. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7716. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7717. else
  7718. :
  7719. fi
  7720. fi
  7721. lt_prog_compiler_wl=
  7722. lt_prog_compiler_pic=
  7723. lt_prog_compiler_static=
  7724. if test "$GCC" = yes; then
  7725. lt_prog_compiler_wl='-Wl,'
  7726. lt_prog_compiler_static='-static'
  7727. case $host_os in
  7728. aix*)
  7729. # All AIX code is PIC.
  7730. if test "$host_cpu" = ia64; then
  7731. # AIX 5 now supports IA64 processor
  7732. lt_prog_compiler_static='-Bstatic'
  7733. fi
  7734. ;;
  7735. amigaos*)
  7736. case $host_cpu in
  7737. powerpc)
  7738. # see comment about AmigaOS4 .so support
  7739. lt_prog_compiler_pic='-fPIC'
  7740. ;;
  7741. m68k)
  7742. # FIXME: we need at least 68020 code to build shared libraries, but
  7743. # adding the `-m68020' flag to GCC prevents building anything better,
  7744. # like `-m68040'.
  7745. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7746. ;;
  7747. esac
  7748. ;;
  7749. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7750. # PIC is the default for these OSes.
  7751. ;;
  7752. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7753. # This hack is so that the source file can tell whether it is being
  7754. # built for inclusion in a dll (and should export symbols for example).
  7755. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7756. # (--disable-auto-import) libraries
  7757. lt_prog_compiler_pic='-DDLL_EXPORT'
  7758. ;;
  7759. darwin* | rhapsody*)
  7760. # PIC is the default on this platform
  7761. # Common symbols not allowed in MH_DYLIB files
  7762. lt_prog_compiler_pic='-fno-common'
  7763. ;;
  7764. haiku*)
  7765. # PIC is the default for Haiku.
  7766. # The "-static" flag exists, but is broken.
  7767. lt_prog_compiler_static=
  7768. ;;
  7769. hpux*)
  7770. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7771. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7772. # sets the default TLS model and affects inlining.
  7773. case $host_cpu in
  7774. hppa*64*)
  7775. # +Z the default
  7776. ;;
  7777. *)
  7778. lt_prog_compiler_pic='-fPIC'
  7779. ;;
  7780. esac
  7781. ;;
  7782. interix[3-9]*)
  7783. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7784. # Instead, we relocate shared libraries at runtime.
  7785. ;;
  7786. msdosdjgpp*)
  7787. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7788. # on systems that don't support them.
  7789. lt_prog_compiler_can_build_shared=no
  7790. enable_shared=no
  7791. ;;
  7792. *nto* | *qnx*)
  7793. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7794. # it will coredump.
  7795. lt_prog_compiler_pic='-fPIC -shared'
  7796. ;;
  7797. sysv4*MP*)
  7798. if test -d /usr/nec; then
  7799. lt_prog_compiler_pic=-Kconform_pic
  7800. fi
  7801. ;;
  7802. *)
  7803. lt_prog_compiler_pic='-fPIC'
  7804. ;;
  7805. esac
  7806. case $cc_basename in
  7807. nvcc*) # Cuda Compiler Driver 2.2
  7808. lt_prog_compiler_wl='-Xlinker '
  7809. if test -n "$lt_prog_compiler_pic"; then
  7810. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7811. fi
  7812. ;;
  7813. esac
  7814. else
  7815. # PORTME Check for flag to pass linker flags through the system compiler.
  7816. case $host_os in
  7817. aix*)
  7818. lt_prog_compiler_wl='-Wl,'
  7819. if test "$host_cpu" = ia64; then
  7820. # AIX 5 now supports IA64 processor
  7821. lt_prog_compiler_static='-Bstatic'
  7822. else
  7823. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7824. fi
  7825. ;;
  7826. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7827. # This hack is so that the source file can tell whether it is being
  7828. # built for inclusion in a dll (and should export symbols for example).
  7829. lt_prog_compiler_pic='-DDLL_EXPORT'
  7830. ;;
  7831. hpux9* | hpux10* | hpux11*)
  7832. lt_prog_compiler_wl='-Wl,'
  7833. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7834. # not for PA HP-UX.
  7835. case $host_cpu in
  7836. hppa*64*|ia64*)
  7837. # +Z the default
  7838. ;;
  7839. *)
  7840. lt_prog_compiler_pic='+Z'
  7841. ;;
  7842. esac
  7843. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7844. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7845. ;;
  7846. irix5* | irix6* | nonstopux*)
  7847. lt_prog_compiler_wl='-Wl,'
  7848. # PIC (with -KPIC) is the default.
  7849. lt_prog_compiler_static='-non_shared'
  7850. ;;
  7851. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7852. case $cc_basename in
  7853. # old Intel for x86_64 which still supported -KPIC.
  7854. ecc*)
  7855. lt_prog_compiler_wl='-Wl,'
  7856. lt_prog_compiler_pic='-KPIC'
  7857. lt_prog_compiler_static='-static'
  7858. ;;
  7859. # icc used to be incompatible with GCC.
  7860. # ICC 10 doesn't accept -KPIC any more.
  7861. icc* | ifort*)
  7862. lt_prog_compiler_wl='-Wl,'
  7863. lt_prog_compiler_pic='-fPIC'
  7864. lt_prog_compiler_static='-static'
  7865. ;;
  7866. # Lahey Fortran 8.1.
  7867. lf95*)
  7868. lt_prog_compiler_wl='-Wl,'
  7869. lt_prog_compiler_pic='--shared'
  7870. lt_prog_compiler_static='--static'
  7871. ;;
  7872. nagfor*)
  7873. # NAG Fortran compiler
  7874. lt_prog_compiler_wl='-Wl,-Wl,,'
  7875. lt_prog_compiler_pic='-PIC'
  7876. lt_prog_compiler_static='-Bstatic'
  7877. ;;
  7878. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7879. # Portland Group compilers (*not* the Pentium gcc compiler,
  7880. # which looks to be a dead project)
  7881. lt_prog_compiler_wl='-Wl,'
  7882. lt_prog_compiler_pic='-fpic'
  7883. lt_prog_compiler_static='-Bstatic'
  7884. ;;
  7885. ccc*)
  7886. lt_prog_compiler_wl='-Wl,'
  7887. # All Alpha code is PIC.
  7888. lt_prog_compiler_static='-non_shared'
  7889. ;;
  7890. xl* | bgxl* | bgf* | mpixl*)
  7891. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7892. lt_prog_compiler_wl='-Wl,'
  7893. lt_prog_compiler_pic='-qpic'
  7894. lt_prog_compiler_static='-qstaticlink'
  7895. ;;
  7896. *)
  7897. case `$CC -V 2>&1 | sed 5q` in
  7898. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7899. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7900. lt_prog_compiler_pic='-KPIC'
  7901. lt_prog_compiler_static='-Bstatic'
  7902. lt_prog_compiler_wl=''
  7903. ;;
  7904. *Sun\ F* | *Sun*Fortran*)
  7905. lt_prog_compiler_pic='-KPIC'
  7906. lt_prog_compiler_static='-Bstatic'
  7907. lt_prog_compiler_wl='-Qoption ld '
  7908. ;;
  7909. *Sun\ C*)
  7910. # Sun C 5.9
  7911. lt_prog_compiler_pic='-KPIC'
  7912. lt_prog_compiler_static='-Bstatic'
  7913. lt_prog_compiler_wl='-Wl,'
  7914. ;;
  7915. *Intel*\ [CF]*Compiler*)
  7916. lt_prog_compiler_wl='-Wl,'
  7917. lt_prog_compiler_pic='-fPIC'
  7918. lt_prog_compiler_static='-static'
  7919. ;;
  7920. *Portland\ Group*)
  7921. lt_prog_compiler_wl='-Wl,'
  7922. lt_prog_compiler_pic='-fpic'
  7923. lt_prog_compiler_static='-Bstatic'
  7924. ;;
  7925. esac
  7926. ;;
  7927. esac
  7928. ;;
  7929. newsos6)
  7930. lt_prog_compiler_pic='-KPIC'
  7931. lt_prog_compiler_static='-Bstatic'
  7932. ;;
  7933. *nto* | *qnx*)
  7934. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7935. # it will coredump.
  7936. lt_prog_compiler_pic='-fPIC -shared'
  7937. ;;
  7938. osf3* | osf4* | osf5*)
  7939. lt_prog_compiler_wl='-Wl,'
  7940. # All OSF/1 code is PIC.
  7941. lt_prog_compiler_static='-non_shared'
  7942. ;;
  7943. rdos*)
  7944. lt_prog_compiler_static='-non_shared'
  7945. ;;
  7946. solaris*)
  7947. lt_prog_compiler_pic='-KPIC'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. case $cc_basename in
  7950. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7951. lt_prog_compiler_wl='-Qoption ld ';;
  7952. *)
  7953. lt_prog_compiler_wl='-Wl,';;
  7954. esac
  7955. ;;
  7956. sunos4*)
  7957. lt_prog_compiler_wl='-Qoption ld '
  7958. lt_prog_compiler_pic='-PIC'
  7959. lt_prog_compiler_static='-Bstatic'
  7960. ;;
  7961. sysv4 | sysv4.2uw2* | sysv4.3*)
  7962. lt_prog_compiler_wl='-Wl,'
  7963. lt_prog_compiler_pic='-KPIC'
  7964. lt_prog_compiler_static='-Bstatic'
  7965. ;;
  7966. sysv4*MP*)
  7967. if test -d /usr/nec ;then
  7968. lt_prog_compiler_pic='-Kconform_pic'
  7969. lt_prog_compiler_static='-Bstatic'
  7970. fi
  7971. ;;
  7972. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7973. lt_prog_compiler_wl='-Wl,'
  7974. lt_prog_compiler_pic='-KPIC'
  7975. lt_prog_compiler_static='-Bstatic'
  7976. ;;
  7977. unicos*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_can_build_shared=no
  7980. ;;
  7981. uts4*)
  7982. lt_prog_compiler_pic='-pic'
  7983. lt_prog_compiler_static='-Bstatic'
  7984. ;;
  7985. *)
  7986. lt_prog_compiler_can_build_shared=no
  7987. ;;
  7988. esac
  7989. fi
  7990. case $host_os in
  7991. # For platforms which do not support PIC, -DPIC is meaningless:
  7992. *djgpp*)
  7993. lt_prog_compiler_pic=
  7994. ;;
  7995. *)
  7996. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7997. ;;
  7998. esac
  7999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8000. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8001. if ${lt_cv_prog_compiler_pic+:} false; then :
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8005. fi
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8007. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8008. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8009. #
  8010. # Check to make sure the PIC flag actually works.
  8011. #
  8012. if test -n "$lt_prog_compiler_pic"; then
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8014. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8015. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8016. $as_echo_n "(cached) " >&6
  8017. else
  8018. lt_cv_prog_compiler_pic_works=no
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8021. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8022. # Insert the option either (1) after the last *FLAGS variable, or
  8023. # (2) before a word containing "conftest.", or (3) at the end.
  8024. # Note that $ac_compile itself does not contain backslashes and begins
  8025. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8026. # The option is referenced via a variable to avoid confusing sed.
  8027. lt_compile=`echo "$ac_compile" | $SED \
  8028. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8029. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8030. -e 's:$: $lt_compiler_flag:'`
  8031. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8032. (eval "$lt_compile" 2>conftest.err)
  8033. ac_status=$?
  8034. cat conftest.err >&5
  8035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036. if (exit $ac_status) && test -s "$ac_outfile"; then
  8037. # The compiler can only warn and ignore the option if not recognized
  8038. # So say no if there are warnings other than the usual output.
  8039. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8040. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8041. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8042. lt_cv_prog_compiler_pic_works=yes
  8043. fi
  8044. fi
  8045. $RM conftest*
  8046. fi
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8048. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8049. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8050. case $lt_prog_compiler_pic in
  8051. "" | " "*) ;;
  8052. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8053. esac
  8054. else
  8055. lt_prog_compiler_pic=
  8056. lt_prog_compiler_can_build_shared=no
  8057. fi
  8058. fi
  8059. #
  8060. # Check to make sure the static flag actually works.
  8061. #
  8062. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8064. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8065. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8066. $as_echo_n "(cached) " >&6
  8067. else
  8068. lt_cv_prog_compiler_static_works=no
  8069. save_LDFLAGS="$LDFLAGS"
  8070. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8071. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8072. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8073. # The linker can only warn and ignore the option if not recognized
  8074. # So say no if there are warnings
  8075. if test -s conftest.err; then
  8076. # Append any errors to the config.log.
  8077. cat conftest.err 1>&5
  8078. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8079. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8080. if diff conftest.exp conftest.er2 >/dev/null; then
  8081. lt_cv_prog_compiler_static_works=yes
  8082. fi
  8083. else
  8084. lt_cv_prog_compiler_static_works=yes
  8085. fi
  8086. fi
  8087. $RM -r conftest*
  8088. LDFLAGS="$save_LDFLAGS"
  8089. fi
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8091. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8092. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8093. :
  8094. else
  8095. lt_prog_compiler_static=
  8096. fi
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8098. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8099. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. lt_cv_prog_compiler_c_o=no
  8103. $RM -r conftest 2>/dev/null
  8104. mkdir conftest
  8105. cd conftest
  8106. mkdir out
  8107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8108. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8109. # Insert the option either (1) after the last *FLAGS variable, or
  8110. # (2) before a word containing "conftest.", or (3) at the end.
  8111. # Note that $ac_compile itself does not contain backslashes and begins
  8112. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8113. lt_compile=`echo "$ac_compile" | $SED \
  8114. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8115. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8116. -e 's:$: $lt_compiler_flag:'`
  8117. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8118. (eval "$lt_compile" 2>out/conftest.err)
  8119. ac_status=$?
  8120. cat out/conftest.err >&5
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8123. then
  8124. # The compiler can only warn and ignore the option if not recognized
  8125. # So say no if there are warnings
  8126. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8127. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8128. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8129. lt_cv_prog_compiler_c_o=yes
  8130. fi
  8131. fi
  8132. chmod u+w . 2>&5
  8133. $RM conftest*
  8134. # SGI C++ compiler will create directory out/ii_files/ for
  8135. # template instantiation
  8136. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8137. $RM out/* && rmdir out
  8138. cd ..
  8139. $RM -r conftest
  8140. $RM conftest*
  8141. fi
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8143. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8145. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8146. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8147. $as_echo_n "(cached) " >&6
  8148. else
  8149. lt_cv_prog_compiler_c_o=no
  8150. $RM -r conftest 2>/dev/null
  8151. mkdir conftest
  8152. cd conftest
  8153. mkdir out
  8154. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8155. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8156. # Insert the option either (1) after the last *FLAGS variable, or
  8157. # (2) before a word containing "conftest.", or (3) at the end.
  8158. # Note that $ac_compile itself does not contain backslashes and begins
  8159. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8160. lt_compile=`echo "$ac_compile" | $SED \
  8161. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8162. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8163. -e 's:$: $lt_compiler_flag:'`
  8164. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8165. (eval "$lt_compile" 2>out/conftest.err)
  8166. ac_status=$?
  8167. cat out/conftest.err >&5
  8168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8169. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8170. then
  8171. # The compiler can only warn and ignore the option if not recognized
  8172. # So say no if there are warnings
  8173. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8174. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8175. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8176. lt_cv_prog_compiler_c_o=yes
  8177. fi
  8178. fi
  8179. chmod u+w . 2>&5
  8180. $RM conftest*
  8181. # SGI C++ compiler will create directory out/ii_files/ for
  8182. # template instantiation
  8183. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8184. $RM out/* && rmdir out
  8185. cd ..
  8186. $RM -r conftest
  8187. $RM conftest*
  8188. fi
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8190. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8191. hard_links="nottested"
  8192. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8193. # do not overwrite the value of need_locks provided by the user
  8194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8195. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8196. hard_links=yes
  8197. $RM conftest*
  8198. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8199. touch conftest.a
  8200. ln conftest.a conftest.b 2>&5 || hard_links=no
  8201. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8203. $as_echo "$hard_links" >&6; }
  8204. if test "$hard_links" = no; then
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8206. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8207. need_locks=warn
  8208. fi
  8209. else
  8210. need_locks=no
  8211. fi
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8213. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8214. runpath_var=
  8215. allow_undefined_flag=
  8216. always_export_symbols=no
  8217. archive_cmds=
  8218. archive_expsym_cmds=
  8219. compiler_needs_object=no
  8220. enable_shared_with_static_runtimes=no
  8221. export_dynamic_flag_spec=
  8222. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8223. hardcode_automatic=no
  8224. hardcode_direct=no
  8225. hardcode_direct_absolute=no
  8226. hardcode_libdir_flag_spec=
  8227. hardcode_libdir_separator=
  8228. hardcode_minus_L=no
  8229. hardcode_shlibpath_var=unsupported
  8230. inherit_rpath=no
  8231. link_all_deplibs=unknown
  8232. module_cmds=
  8233. module_expsym_cmds=
  8234. old_archive_from_new_cmds=
  8235. old_archive_from_expsyms_cmds=
  8236. thread_safe_flag_spec=
  8237. whole_archive_flag_spec=
  8238. # include_expsyms should be a list of space-separated symbols to be *always*
  8239. # included in the symbol list
  8240. include_expsyms=
  8241. # exclude_expsyms can be an extended regexp of symbols to exclude
  8242. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8243. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8244. # as well as any symbol that contains `d'.
  8245. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8246. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8247. # platforms (ab)use it in PIC code, but their linkers get confused if
  8248. # the symbol is explicitly referenced. Since portable code cannot
  8249. # rely on this symbol name, it's probably fine to never include it in
  8250. # preloaded symbol tables.
  8251. # Exclude shared library initialization/finalization symbols.
  8252. extract_expsyms_cmds=
  8253. case $host_os in
  8254. cygwin* | mingw* | pw32* | cegcc*)
  8255. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8256. # When not using gcc, we currently assume that we are using
  8257. # Microsoft Visual C++.
  8258. if test "$GCC" != yes; then
  8259. with_gnu_ld=no
  8260. fi
  8261. ;;
  8262. interix*)
  8263. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8264. with_gnu_ld=yes
  8265. ;;
  8266. openbsd*)
  8267. with_gnu_ld=no
  8268. ;;
  8269. esac
  8270. ld_shlibs=yes
  8271. # On some targets, GNU ld is compatible enough with the native linker
  8272. # that we're better off using the native interface for both.
  8273. lt_use_gnu_ld_interface=no
  8274. if test "$with_gnu_ld" = yes; then
  8275. case $host_os in
  8276. aix*)
  8277. # The AIX port of GNU ld has always aspired to compatibility
  8278. # with the native linker. However, as the warning in the GNU ld
  8279. # block says, versions before 2.19.5* couldn't really create working
  8280. # shared libraries, regardless of the interface used.
  8281. case `$LD -v 2>&1` in
  8282. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8283. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8284. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8285. *)
  8286. lt_use_gnu_ld_interface=yes
  8287. ;;
  8288. esac
  8289. ;;
  8290. *)
  8291. lt_use_gnu_ld_interface=yes
  8292. ;;
  8293. esac
  8294. fi
  8295. if test "$lt_use_gnu_ld_interface" = yes; then
  8296. # If archive_cmds runs LD, not CC, wlarc should be empty
  8297. wlarc='${wl}'
  8298. # Set some defaults for GNU ld with shared library support. These
  8299. # are reset later if shared libraries are not supported. Putting them
  8300. # here allows them to be overridden if necessary.
  8301. runpath_var=LD_RUN_PATH
  8302. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8303. export_dynamic_flag_spec='${wl}--export-dynamic'
  8304. # ancient GNU ld didn't support --whole-archive et. al.
  8305. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8306. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8307. else
  8308. whole_archive_flag_spec=
  8309. fi
  8310. supports_anon_versioning=no
  8311. case `$LD -v 2>&1` in
  8312. *GNU\ gold*) supports_anon_versioning=yes ;;
  8313. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8314. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8315. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8316. *\ 2.11.*) ;; # other 2.11 versions
  8317. *) supports_anon_versioning=yes ;;
  8318. esac
  8319. # See if GNU ld supports shared libraries.
  8320. case $host_os in
  8321. aix[3-9]*)
  8322. # On AIX/PPC, the GNU linker is very broken
  8323. if test "$host_cpu" != ia64; then
  8324. ld_shlibs=no
  8325. cat <<_LT_EOF 1>&2
  8326. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8327. *** to be unable to reliably create shared libraries on AIX.
  8328. *** Therefore, libtool is disabling shared libraries support. If you
  8329. *** really care for shared libraries, you may want to install binutils
  8330. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8331. *** You will then need to restart the configuration process.
  8332. _LT_EOF
  8333. fi
  8334. ;;
  8335. amigaos*)
  8336. case $host_cpu in
  8337. powerpc)
  8338. # see comment about AmigaOS4 .so support
  8339. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8340. archive_expsym_cmds=''
  8341. ;;
  8342. m68k)
  8343. 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)'
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. hardcode_minus_L=yes
  8346. ;;
  8347. esac
  8348. ;;
  8349. beos*)
  8350. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8351. allow_undefined_flag=unsupported
  8352. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8353. # support --undefined. This deserves some investigation. FIXME
  8354. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8355. else
  8356. ld_shlibs=no
  8357. fi
  8358. ;;
  8359. cygwin* | mingw* | pw32* | cegcc*)
  8360. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8361. # as there is no search path for DLLs.
  8362. hardcode_libdir_flag_spec='-L$libdir'
  8363. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8364. allow_undefined_flag=unsupported
  8365. always_export_symbols=no
  8366. enable_shared_with_static_runtimes=yes
  8367. 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'
  8368. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8369. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8370. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8371. # If the export-symbols file already is a .def file (1st line
  8372. # is EXPORTS), use it as is; otherwise, prepend...
  8373. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8374. cp $export_symbols $output_objdir/$soname.def;
  8375. else
  8376. echo EXPORTS > $output_objdir/$soname.def;
  8377. cat $export_symbols >> $output_objdir/$soname.def;
  8378. fi~
  8379. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8380. else
  8381. ld_shlibs=no
  8382. fi
  8383. ;;
  8384. haiku*)
  8385. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8386. link_all_deplibs=yes
  8387. ;;
  8388. interix[3-9]*)
  8389. hardcode_direct=no
  8390. hardcode_shlibpath_var=no
  8391. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8392. export_dynamic_flag_spec='${wl}-E'
  8393. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8394. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8395. # default) and relocated if they conflict, which is a slow very memory
  8396. # consuming and fragmenting process. To avoid this, we pick a random,
  8397. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8398. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8399. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8400. 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'
  8401. ;;
  8402. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8403. tmp_diet=no
  8404. if test "$host_os" = linux-dietlibc; then
  8405. case $cc_basename in
  8406. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8407. esac
  8408. fi
  8409. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8410. && test "$tmp_diet" = no
  8411. then
  8412. tmp_addflag=' $pic_flag'
  8413. tmp_sharedflag='-shared'
  8414. case $cc_basename,$host_cpu in
  8415. pgcc*) # Portland Group C compiler
  8416. 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'
  8417. tmp_addflag=' $pic_flag'
  8418. ;;
  8419. pgf77* | pgf90* | pgf95* | pgfortran*)
  8420. # Portland Group f77 and f90 compilers
  8421. 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'
  8422. tmp_addflag=' $pic_flag -Mnomain' ;;
  8423. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8424. tmp_addflag=' -i_dynamic' ;;
  8425. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8426. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8427. ifc* | ifort*) # Intel Fortran compiler
  8428. tmp_addflag=' -nofor_main' ;;
  8429. lf95*) # Lahey Fortran 8.1
  8430. whole_archive_flag_spec=
  8431. tmp_sharedflag='--shared' ;;
  8432. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8433. tmp_sharedflag='-qmkshrobj'
  8434. tmp_addflag= ;;
  8435. nvcc*) # Cuda Compiler Driver 2.2
  8436. 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'
  8437. compiler_needs_object=yes
  8438. ;;
  8439. esac
  8440. case `$CC -V 2>&1 | sed 5q` in
  8441. *Sun\ C*) # Sun C 5.9
  8442. 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'
  8443. compiler_needs_object=yes
  8444. tmp_sharedflag='-G' ;;
  8445. *Sun\ F*) # Sun Fortran 8.3
  8446. tmp_sharedflag='-G' ;;
  8447. esac
  8448. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8449. if test "x$supports_anon_versioning" = xyes; then
  8450. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8451. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8452. echo "local: *; };" >> $output_objdir/$libname.ver~
  8453. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8454. fi
  8455. case $cc_basename in
  8456. xlf* | bgf* | bgxlf* | mpixlf*)
  8457. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8458. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8459. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8460. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8461. if test "x$supports_anon_versioning" = xyes; then
  8462. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8463. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8464. echo "local: *; };" >> $output_objdir/$libname.ver~
  8465. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8466. fi
  8467. ;;
  8468. esac
  8469. else
  8470. ld_shlibs=no
  8471. fi
  8472. ;;
  8473. netbsd*)
  8474. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8475. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8476. wlarc=
  8477. else
  8478. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8479. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8480. fi
  8481. ;;
  8482. solaris*)
  8483. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8484. ld_shlibs=no
  8485. cat <<_LT_EOF 1>&2
  8486. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8487. *** create shared libraries on Solaris systems. Therefore, libtool
  8488. *** is disabling shared libraries support. We urge you to upgrade GNU
  8489. *** binutils to release 2.9.1 or newer. Another option is to modify
  8490. *** your PATH or compiler configuration so that the native linker is
  8491. *** used, and then restart.
  8492. _LT_EOF
  8493. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8494. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8495. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8496. else
  8497. ld_shlibs=no
  8498. fi
  8499. ;;
  8500. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8501. case `$LD -v 2>&1` in
  8502. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8503. ld_shlibs=no
  8504. cat <<_LT_EOF 1>&2
  8505. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8506. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8507. *** is disabling shared libraries support. We urge you to upgrade GNU
  8508. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8509. *** your PATH or compiler configuration so that the native linker is
  8510. *** used, and then restart.
  8511. _LT_EOF
  8512. ;;
  8513. *)
  8514. # For security reasons, it is highly recommended that you always
  8515. # use absolute paths for naming shared libraries, and exclude the
  8516. # DT_RUNPATH tag from executables and libraries. But doing so
  8517. # requires that you compile everything twice, which is a pain.
  8518. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8519. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8521. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8522. else
  8523. ld_shlibs=no
  8524. fi
  8525. ;;
  8526. esac
  8527. ;;
  8528. sunos4*)
  8529. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8530. wlarc=
  8531. hardcode_direct=yes
  8532. hardcode_shlibpath_var=no
  8533. ;;
  8534. *)
  8535. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8536. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8537. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8538. else
  8539. ld_shlibs=no
  8540. fi
  8541. ;;
  8542. esac
  8543. if test "$ld_shlibs" = no; then
  8544. runpath_var=
  8545. hardcode_libdir_flag_spec=
  8546. export_dynamic_flag_spec=
  8547. whole_archive_flag_spec=
  8548. fi
  8549. else
  8550. # PORTME fill in a description of your system's linker (not GNU ld)
  8551. case $host_os in
  8552. aix3*)
  8553. allow_undefined_flag=unsupported
  8554. always_export_symbols=yes
  8555. 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'
  8556. # Note: this linker hardcodes the directories in LIBPATH if there
  8557. # are no directories specified by -L.
  8558. hardcode_minus_L=yes
  8559. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8560. # Neither direct hardcoding nor static linking is supported with a
  8561. # broken collect2.
  8562. hardcode_direct=unsupported
  8563. fi
  8564. ;;
  8565. aix[4-9]*)
  8566. if test "$host_cpu" = ia64; then
  8567. # On IA64, the linker does run time linking by default, so we don't
  8568. # have to do anything special.
  8569. aix_use_runtimelinking=no
  8570. exp_sym_flag='-Bexport'
  8571. no_entry_flag=""
  8572. else
  8573. # If we're using GNU nm, then we don't want the "-C" option.
  8574. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8575. # Also, AIX nm treats weak defined symbols like other global
  8576. # defined symbols, whereas GNU nm marks them as "W".
  8577. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8578. 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'
  8579. else
  8580. 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'
  8581. fi
  8582. aix_use_runtimelinking=no
  8583. # Test if we are trying to use run time linking or normal
  8584. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8585. # need to do runtime linking.
  8586. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8587. for ld_flag in $LDFLAGS; do
  8588. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8589. aix_use_runtimelinking=yes
  8590. break
  8591. fi
  8592. done
  8593. ;;
  8594. esac
  8595. exp_sym_flag='-bexport'
  8596. no_entry_flag='-bnoentry'
  8597. fi
  8598. # When large executables or shared objects are built, AIX ld can
  8599. # have problems creating the table of contents. If linking a library
  8600. # or program results in "error TOC overflow" add -mminimal-toc to
  8601. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8602. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8603. archive_cmds=''
  8604. hardcode_direct=yes
  8605. hardcode_direct_absolute=yes
  8606. hardcode_libdir_separator=':'
  8607. link_all_deplibs=yes
  8608. file_list_spec='${wl}-f,'
  8609. if test "$GCC" = yes; then
  8610. case $host_os in aix4.[012]|aix4.[012].*)
  8611. # We only want to do this on AIX 4.2 and lower, the check
  8612. # below for broken collect2 doesn't work under 4.3+
  8613. collect2name=`${CC} -print-prog-name=collect2`
  8614. if test -f "$collect2name" &&
  8615. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8616. then
  8617. # We have reworked collect2
  8618. :
  8619. else
  8620. # We have old collect2
  8621. hardcode_direct=unsupported
  8622. # It fails to find uninstalled libraries when the uninstalled
  8623. # path is not listed in the libpath. Setting hardcode_minus_L
  8624. # to unsupported forces relinking
  8625. hardcode_minus_L=yes
  8626. hardcode_libdir_flag_spec='-L$libdir'
  8627. hardcode_libdir_separator=
  8628. fi
  8629. ;;
  8630. esac
  8631. shared_flag='-shared'
  8632. if test "$aix_use_runtimelinking" = yes; then
  8633. shared_flag="$shared_flag "'${wl}-G'
  8634. fi
  8635. else
  8636. # not using gcc
  8637. if test "$host_cpu" = ia64; then
  8638. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8639. # chokes on -Wl,-G. The following line is correct:
  8640. shared_flag='-G'
  8641. else
  8642. if test "$aix_use_runtimelinking" = yes; then
  8643. shared_flag='${wl}-G'
  8644. else
  8645. shared_flag='${wl}-bM:SRE'
  8646. fi
  8647. fi
  8648. fi
  8649. export_dynamic_flag_spec='${wl}-bexpall'
  8650. # It seems that -bexpall does not export symbols beginning with
  8651. # underscore (_), so it is better to generate a list of symbols to export.
  8652. always_export_symbols=yes
  8653. if test "$aix_use_runtimelinking" = yes; then
  8654. # Warning - without using the other runtime loading flags (-brtl),
  8655. # -berok will link without error, but may produce a broken library.
  8656. allow_undefined_flag='-berok'
  8657. # Determine the default libpath from the value encoded in an
  8658. # empty executable.
  8659. if test "${lt_cv_aix_libpath+set}" = set; then
  8660. aix_libpath=$lt_cv_aix_libpath
  8661. else
  8662. if ${lt_cv_aix_libpath_+:} false; then :
  8663. $as_echo_n "(cached) " >&6
  8664. else
  8665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8666. /* end confdefs.h. */
  8667. int
  8668. main ()
  8669. {
  8670. ;
  8671. return 0;
  8672. }
  8673. _ACEOF
  8674. if ac_fn_c_try_link "$LINENO"; then :
  8675. lt_aix_libpath_sed='
  8676. /Import File Strings/,/^$/ {
  8677. /^0/ {
  8678. s/^0 *\([^ ]*\) *$/\1/
  8679. p
  8680. }
  8681. }'
  8682. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8683. # Check for a 64-bit object if we didn't find anything.
  8684. if test -z "$lt_cv_aix_libpath_"; then
  8685. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8686. fi
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. if test -z "$lt_cv_aix_libpath_"; then
  8691. lt_cv_aix_libpath_="/usr/lib:/lib"
  8692. fi
  8693. fi
  8694. aix_libpath=$lt_cv_aix_libpath_
  8695. fi
  8696. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8697. 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"
  8698. else
  8699. if test "$host_cpu" = ia64; then
  8700. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8701. allow_undefined_flag="-z nodefs"
  8702. 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"
  8703. else
  8704. # Determine the default libpath from the value encoded in an
  8705. # empty executable.
  8706. if test "${lt_cv_aix_libpath+set}" = set; then
  8707. aix_libpath=$lt_cv_aix_libpath
  8708. else
  8709. if ${lt_cv_aix_libpath_+:} false; then :
  8710. $as_echo_n "(cached) " >&6
  8711. else
  8712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8713. /* end confdefs.h. */
  8714. int
  8715. main ()
  8716. {
  8717. ;
  8718. return 0;
  8719. }
  8720. _ACEOF
  8721. if ac_fn_c_try_link "$LINENO"; then :
  8722. lt_aix_libpath_sed='
  8723. /Import File Strings/,/^$/ {
  8724. /^0/ {
  8725. s/^0 *\([^ ]*\) *$/\1/
  8726. p
  8727. }
  8728. }'
  8729. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8730. # Check for a 64-bit object if we didn't find anything.
  8731. if test -z "$lt_cv_aix_libpath_"; then
  8732. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8733. fi
  8734. fi
  8735. rm -f core conftest.err conftest.$ac_objext \
  8736. conftest$ac_exeext conftest.$ac_ext
  8737. if test -z "$lt_cv_aix_libpath_"; then
  8738. lt_cv_aix_libpath_="/usr/lib:/lib"
  8739. fi
  8740. fi
  8741. aix_libpath=$lt_cv_aix_libpath_
  8742. fi
  8743. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8744. # Warning - without using the other run time loading flags,
  8745. # -berok will link without error, but may produce a broken library.
  8746. no_undefined_flag=' ${wl}-bernotok'
  8747. allow_undefined_flag=' ${wl}-berok'
  8748. if test "$with_gnu_ld" = yes; then
  8749. # We only use this code for GNU lds that support --whole-archive.
  8750. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8751. else
  8752. # Exported symbols can be pulled into shared objects from archives
  8753. whole_archive_flag_spec='$convenience'
  8754. fi
  8755. archive_cmds_need_lc=yes
  8756. # This is similar to how AIX traditionally builds its shared libraries.
  8757. 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'
  8758. fi
  8759. fi
  8760. ;;
  8761. amigaos*)
  8762. case $host_cpu in
  8763. powerpc)
  8764. # see comment about AmigaOS4 .so support
  8765. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8766. archive_expsym_cmds=''
  8767. ;;
  8768. m68k)
  8769. 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)'
  8770. hardcode_libdir_flag_spec='-L$libdir'
  8771. hardcode_minus_L=yes
  8772. ;;
  8773. esac
  8774. ;;
  8775. bsdi[45]*)
  8776. export_dynamic_flag_spec=-rdynamic
  8777. ;;
  8778. cygwin* | mingw* | pw32* | cegcc*)
  8779. # When not using gcc, we currently assume that we are using
  8780. # Microsoft Visual C++.
  8781. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8782. # no search path for DLLs.
  8783. case $cc_basename in
  8784. cl*)
  8785. # Native MSVC
  8786. hardcode_libdir_flag_spec=' '
  8787. allow_undefined_flag=unsupported
  8788. always_export_symbols=yes
  8789. file_list_spec='@'
  8790. # Tell ltmain to make .lib files, not .a files.
  8791. libext=lib
  8792. # Tell ltmain to make .dll files, not .so files.
  8793. shrext_cmds=".dll"
  8794. # FIXME: Setting linknames here is a bad hack.
  8795. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8796. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8797. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8798. else
  8799. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8800. fi~
  8801. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8802. linknames='
  8803. # The linker will not automatically build a static lib if we build a DLL.
  8804. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8805. enable_shared_with_static_runtimes=yes
  8806. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8807. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8808. # Don't use ranlib
  8809. old_postinstall_cmds='chmod 644 $oldlib'
  8810. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8811. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8812. case $lt_outputfile in
  8813. *.exe|*.EXE) ;;
  8814. *)
  8815. lt_outputfile="$lt_outputfile.exe"
  8816. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8817. ;;
  8818. esac~
  8819. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8820. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8821. $RM "$lt_outputfile.manifest";
  8822. fi'
  8823. ;;
  8824. *)
  8825. # Assume MSVC wrapper
  8826. hardcode_libdir_flag_spec=' '
  8827. allow_undefined_flag=unsupported
  8828. # Tell ltmain to make .lib files, not .a files.
  8829. libext=lib
  8830. # Tell ltmain to make .dll files, not .so files.
  8831. shrext_cmds=".dll"
  8832. # FIXME: Setting linknames here is a bad hack.
  8833. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8834. # The linker will automatically build a .lib file if we build a DLL.
  8835. old_archive_from_new_cmds='true'
  8836. # FIXME: Should let the user specify the lib program.
  8837. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8838. enable_shared_with_static_runtimes=yes
  8839. ;;
  8840. esac
  8841. ;;
  8842. darwin* | rhapsody*)
  8843. archive_cmds_need_lc=no
  8844. hardcode_direct=no
  8845. hardcode_automatic=yes
  8846. hardcode_shlibpath_var=unsupported
  8847. if test "$lt_cv_ld_force_load" = "yes"; then
  8848. 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\"`'
  8849. else
  8850. whole_archive_flag_spec=''
  8851. fi
  8852. link_all_deplibs=yes
  8853. allow_undefined_flag="$_lt_dar_allow_undefined"
  8854. case $cc_basename in
  8855. ifort*) _lt_dar_can_shared=yes ;;
  8856. *) _lt_dar_can_shared=$GCC ;;
  8857. esac
  8858. if test "$_lt_dar_can_shared" = "yes"; then
  8859. output_verbose_link_cmd=func_echo_all
  8860. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8861. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8862. 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}"
  8863. 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}"
  8864. else
  8865. ld_shlibs=no
  8866. fi
  8867. ;;
  8868. dgux*)
  8869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8870. hardcode_libdir_flag_spec='-L$libdir'
  8871. hardcode_shlibpath_var=no
  8872. ;;
  8873. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8874. # support. Future versions do this automatically, but an explicit c++rt0.o
  8875. # does not break anything, and helps significantly (at the cost of a little
  8876. # extra space).
  8877. freebsd2.2*)
  8878. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8879. hardcode_libdir_flag_spec='-R$libdir'
  8880. hardcode_direct=yes
  8881. hardcode_shlibpath_var=no
  8882. ;;
  8883. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8884. freebsd2.*)
  8885. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8886. hardcode_direct=yes
  8887. hardcode_minus_L=yes
  8888. hardcode_shlibpath_var=no
  8889. ;;
  8890. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8891. freebsd* | dragonfly*)
  8892. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8893. hardcode_libdir_flag_spec='-R$libdir'
  8894. hardcode_direct=yes
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. hpux9*)
  8898. if test "$GCC" = yes; then
  8899. 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'
  8900. else
  8901. 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'
  8902. fi
  8903. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8904. hardcode_libdir_separator=:
  8905. hardcode_direct=yes
  8906. # hardcode_minus_L: Not really in the search PATH,
  8907. # but as the default location of the library.
  8908. hardcode_minus_L=yes
  8909. export_dynamic_flag_spec='${wl}-E'
  8910. ;;
  8911. hpux10*)
  8912. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8913. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8914. else
  8915. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8916. fi
  8917. if test "$with_gnu_ld" = no; then
  8918. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8919. hardcode_libdir_separator=:
  8920. hardcode_direct=yes
  8921. hardcode_direct_absolute=yes
  8922. export_dynamic_flag_spec='${wl}-E'
  8923. # hardcode_minus_L: Not really in the search PATH,
  8924. # but as the default location of the library.
  8925. hardcode_minus_L=yes
  8926. fi
  8927. ;;
  8928. hpux11*)
  8929. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8930. case $host_cpu in
  8931. hppa*64*)
  8932. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. ;;
  8934. ia64*)
  8935. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8936. ;;
  8937. *)
  8938. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8939. ;;
  8940. esac
  8941. else
  8942. case $host_cpu in
  8943. hppa*64*)
  8944. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. ;;
  8946. ia64*)
  8947. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8948. ;;
  8949. *)
  8950. # Older versions of the 11.00 compiler do not understand -b yet
  8951. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8953. $as_echo_n "checking if $CC understands -b... " >&6; }
  8954. if ${lt_cv_prog_compiler__b+:} false; then :
  8955. $as_echo_n "(cached) " >&6
  8956. else
  8957. lt_cv_prog_compiler__b=no
  8958. save_LDFLAGS="$LDFLAGS"
  8959. LDFLAGS="$LDFLAGS -b"
  8960. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8961. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8962. # The linker can only warn and ignore the option if not recognized
  8963. # So say no if there are warnings
  8964. if test -s conftest.err; then
  8965. # Append any errors to the config.log.
  8966. cat conftest.err 1>&5
  8967. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8968. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8969. if diff conftest.exp conftest.er2 >/dev/null; then
  8970. lt_cv_prog_compiler__b=yes
  8971. fi
  8972. else
  8973. lt_cv_prog_compiler__b=yes
  8974. fi
  8975. fi
  8976. $RM -r conftest*
  8977. LDFLAGS="$save_LDFLAGS"
  8978. fi
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8980. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8981. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8982. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8983. else
  8984. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8985. fi
  8986. ;;
  8987. esac
  8988. fi
  8989. if test "$with_gnu_ld" = no; then
  8990. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8991. hardcode_libdir_separator=:
  8992. case $host_cpu in
  8993. hppa*64*|ia64*)
  8994. hardcode_direct=no
  8995. hardcode_shlibpath_var=no
  8996. ;;
  8997. *)
  8998. hardcode_direct=yes
  8999. hardcode_direct_absolute=yes
  9000. export_dynamic_flag_spec='${wl}-E'
  9001. # hardcode_minus_L: Not really in the search PATH,
  9002. # but as the default location of the library.
  9003. hardcode_minus_L=yes
  9004. ;;
  9005. esac
  9006. fi
  9007. ;;
  9008. irix5* | irix6* | nonstopux*)
  9009. if test "$GCC" = yes; then
  9010. 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'
  9011. # Try to use the -exported_symbol ld option, if it does not
  9012. # work, assume that -exports_file does not work either and
  9013. # implicitly export all symbols.
  9014. # This should be the same for all languages, so no per-tag cache variable.
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9016. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9017. if ${lt_cv_irix_exported_symbol+:} false; then :
  9018. $as_echo_n "(cached) " >&6
  9019. else
  9020. save_LDFLAGS="$LDFLAGS"
  9021. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9023. /* end confdefs.h. */
  9024. int foo (void) { return 0; }
  9025. _ACEOF
  9026. if ac_fn_c_try_link "$LINENO"; then :
  9027. lt_cv_irix_exported_symbol=yes
  9028. else
  9029. lt_cv_irix_exported_symbol=no
  9030. fi
  9031. rm -f core conftest.err conftest.$ac_objext \
  9032. conftest$ac_exeext conftest.$ac_ext
  9033. LDFLAGS="$save_LDFLAGS"
  9034. fi
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9036. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9037. if test "$lt_cv_irix_exported_symbol" = yes; then
  9038. 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'
  9039. fi
  9040. else
  9041. 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'
  9042. 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'
  9043. fi
  9044. archive_cmds_need_lc='no'
  9045. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9046. hardcode_libdir_separator=:
  9047. inherit_rpath=yes
  9048. link_all_deplibs=yes
  9049. ;;
  9050. netbsd*)
  9051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9052. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9053. else
  9054. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9055. fi
  9056. hardcode_libdir_flag_spec='-R$libdir'
  9057. hardcode_direct=yes
  9058. hardcode_shlibpath_var=no
  9059. ;;
  9060. newsos6)
  9061. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9062. hardcode_direct=yes
  9063. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9064. hardcode_libdir_separator=:
  9065. hardcode_shlibpath_var=no
  9066. ;;
  9067. *nto* | *qnx*)
  9068. ;;
  9069. openbsd*)
  9070. if test -f /usr/libexec/ld.so; then
  9071. hardcode_direct=yes
  9072. hardcode_shlibpath_var=no
  9073. hardcode_direct_absolute=yes
  9074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9075. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9076. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9077. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9078. export_dynamic_flag_spec='${wl}-E'
  9079. else
  9080. case $host_os in
  9081. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9082. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9083. hardcode_libdir_flag_spec='-R$libdir'
  9084. ;;
  9085. *)
  9086. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9087. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9088. ;;
  9089. esac
  9090. fi
  9091. else
  9092. ld_shlibs=no
  9093. fi
  9094. ;;
  9095. os2*)
  9096. hardcode_libdir_flag_spec='-L$libdir'
  9097. hardcode_minus_L=yes
  9098. allow_undefined_flag=unsupported
  9099. 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'
  9100. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9101. ;;
  9102. osf3*)
  9103. if test "$GCC" = yes; then
  9104. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9105. 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'
  9106. else
  9107. allow_undefined_flag=' -expect_unresolved \*'
  9108. 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'
  9109. fi
  9110. archive_cmds_need_lc='no'
  9111. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9112. hardcode_libdir_separator=:
  9113. ;;
  9114. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9115. if test "$GCC" = yes; then
  9116. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9117. 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'
  9118. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9119. else
  9120. allow_undefined_flag=' -expect_unresolved \*'
  9121. 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'
  9122. 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~
  9123. $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'
  9124. # Both c and cxx compiler support -rpath directly
  9125. hardcode_libdir_flag_spec='-rpath $libdir'
  9126. fi
  9127. archive_cmds_need_lc='no'
  9128. hardcode_libdir_separator=:
  9129. ;;
  9130. solaris*)
  9131. no_undefined_flag=' -z defs'
  9132. if test "$GCC" = yes; then
  9133. wlarc='${wl}'
  9134. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9135. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9136. $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'
  9137. else
  9138. case `$CC -V 2>&1` in
  9139. *"Compilers 5.0"*)
  9140. wlarc=''
  9141. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9142. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9143. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9144. ;;
  9145. *)
  9146. wlarc='${wl}'
  9147. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9148. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9149. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9150. ;;
  9151. esac
  9152. fi
  9153. hardcode_libdir_flag_spec='-R$libdir'
  9154. hardcode_shlibpath_var=no
  9155. case $host_os in
  9156. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9157. *)
  9158. # The compiler driver will combine and reorder linker options,
  9159. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9160. # but is careful enough not to reorder.
  9161. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9162. if test "$GCC" = yes; then
  9163. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9164. else
  9165. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9166. fi
  9167. ;;
  9168. esac
  9169. link_all_deplibs=yes
  9170. ;;
  9171. sunos4*)
  9172. if test "x$host_vendor" = xsequent; then
  9173. # Use $CC to link under sequent, because it throws in some extra .o
  9174. # files that make .init and .fini sections work.
  9175. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9176. else
  9177. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9178. fi
  9179. hardcode_libdir_flag_spec='-L$libdir'
  9180. hardcode_direct=yes
  9181. hardcode_minus_L=yes
  9182. hardcode_shlibpath_var=no
  9183. ;;
  9184. sysv4)
  9185. case $host_vendor in
  9186. sni)
  9187. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9188. hardcode_direct=yes # is this really true???
  9189. ;;
  9190. siemens)
  9191. ## LD is ld it makes a PLAMLIB
  9192. ## CC just makes a GrossModule.
  9193. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9194. reload_cmds='$CC -r -o $output$reload_objs'
  9195. hardcode_direct=no
  9196. ;;
  9197. motorola)
  9198. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9199. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9200. ;;
  9201. esac
  9202. runpath_var='LD_RUN_PATH'
  9203. hardcode_shlibpath_var=no
  9204. ;;
  9205. sysv4.3*)
  9206. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9207. hardcode_shlibpath_var=no
  9208. export_dynamic_flag_spec='-Bexport'
  9209. ;;
  9210. sysv4*MP*)
  9211. if test -d /usr/nec; then
  9212. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9213. hardcode_shlibpath_var=no
  9214. runpath_var=LD_RUN_PATH
  9215. hardcode_runpath_var=yes
  9216. ld_shlibs=yes
  9217. fi
  9218. ;;
  9219. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9220. no_undefined_flag='${wl}-z,text'
  9221. archive_cmds_need_lc=no
  9222. hardcode_shlibpath_var=no
  9223. runpath_var='LD_RUN_PATH'
  9224. if test "$GCC" = yes; then
  9225. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9226. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9227. else
  9228. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9229. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9230. fi
  9231. ;;
  9232. sysv5* | sco3.2v5* | sco5v6*)
  9233. # Note: We can NOT use -z defs as we might desire, because we do not
  9234. # link with -lc, and that would cause any symbols used from libc to
  9235. # always be unresolved, which means just about no library would
  9236. # ever link correctly. If we're not using GNU ld we use -z text
  9237. # though, which does catch some bad symbols but isn't as heavy-handed
  9238. # as -z defs.
  9239. no_undefined_flag='${wl}-z,text'
  9240. allow_undefined_flag='${wl}-z,nodefs'
  9241. archive_cmds_need_lc=no
  9242. hardcode_shlibpath_var=no
  9243. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9244. hardcode_libdir_separator=':'
  9245. link_all_deplibs=yes
  9246. export_dynamic_flag_spec='${wl}-Bexport'
  9247. runpath_var='LD_RUN_PATH'
  9248. if test "$GCC" = yes; then
  9249. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9250. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9251. else
  9252. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9253. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9254. fi
  9255. ;;
  9256. uts4*)
  9257. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9258. hardcode_libdir_flag_spec='-L$libdir'
  9259. hardcode_shlibpath_var=no
  9260. ;;
  9261. *)
  9262. ld_shlibs=no
  9263. ;;
  9264. esac
  9265. if test x$host_vendor = xsni; then
  9266. case $host in
  9267. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9268. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9269. ;;
  9270. esac
  9271. fi
  9272. fi
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9274. $as_echo "$ld_shlibs" >&6; }
  9275. test "$ld_shlibs" = no && can_build_shared=no
  9276. with_gnu_ld=$with_gnu_ld
  9277. #
  9278. # Do we need to explicitly link libc?
  9279. #
  9280. case "x$archive_cmds_need_lc" in
  9281. x|xyes)
  9282. # Assume -lc should be added
  9283. archive_cmds_need_lc=yes
  9284. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9285. case $archive_cmds in
  9286. *'~'*)
  9287. # FIXME: we may have to deal with multi-command sequences.
  9288. ;;
  9289. '$CC '*)
  9290. # Test whether the compiler implicitly links with -lc since on some
  9291. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9292. # to ld, don't add -lc before -lgcc.
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9294. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9295. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9296. $as_echo_n "(cached) " >&6
  9297. else
  9298. $RM conftest*
  9299. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9301. (eval $ac_compile) 2>&5
  9302. ac_status=$?
  9303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9304. test $ac_status = 0; } 2>conftest.err; then
  9305. soname=conftest
  9306. lib=conftest
  9307. libobjs=conftest.$ac_objext
  9308. deplibs=
  9309. wl=$lt_prog_compiler_wl
  9310. pic_flag=$lt_prog_compiler_pic
  9311. compiler_flags=-v
  9312. linker_flags=-v
  9313. verstring=
  9314. output_objdir=.
  9315. libname=conftest
  9316. lt_save_allow_undefined_flag=$allow_undefined_flag
  9317. allow_undefined_flag=
  9318. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9319. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9320. ac_status=$?
  9321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9322. test $ac_status = 0; }
  9323. then
  9324. lt_cv_archive_cmds_need_lc=no
  9325. else
  9326. lt_cv_archive_cmds_need_lc=yes
  9327. fi
  9328. allow_undefined_flag=$lt_save_allow_undefined_flag
  9329. else
  9330. cat conftest.err 1>&5
  9331. fi
  9332. $RM conftest*
  9333. fi
  9334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9335. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9336. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9337. ;;
  9338. esac
  9339. fi
  9340. ;;
  9341. esac
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9343. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9344. if test "$GCC" = yes; then
  9345. case $host_os in
  9346. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9347. *) lt_awk_arg="/^libraries:/" ;;
  9348. esac
  9349. case $host_os in
  9350. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9351. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9352. esac
  9353. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9354. case $lt_search_path_spec in
  9355. *\;*)
  9356. # if the path contains ";" then we assume it to be the separator
  9357. # otherwise default to the standard path separator (i.e. ":") - it is
  9358. # assumed that no part of a normal pathname contains ";" but that should
  9359. # okay in the real world where ";" in dirpaths is itself problematic.
  9360. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9361. ;;
  9362. *)
  9363. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9364. ;;
  9365. esac
  9366. # Ok, now we have the path, separated by spaces, we can step through it
  9367. # and add multilib dir if necessary.
  9368. lt_tmp_lt_search_path_spec=
  9369. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9370. for lt_sys_path in $lt_search_path_spec; do
  9371. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9372. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9373. else
  9374. test -d "$lt_sys_path" && \
  9375. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9376. fi
  9377. done
  9378. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9379. BEGIN {RS=" "; FS="/|\n";} {
  9380. lt_foo="";
  9381. lt_count=0;
  9382. for (lt_i = NF; lt_i > 0; lt_i--) {
  9383. if ($lt_i != "" && $lt_i != ".") {
  9384. if ($lt_i == "..") {
  9385. lt_count++;
  9386. } else {
  9387. if (lt_count == 0) {
  9388. lt_foo="/" $lt_i lt_foo;
  9389. } else {
  9390. lt_count--;
  9391. }
  9392. }
  9393. }
  9394. }
  9395. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9396. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9397. }'`
  9398. # AWK program above erroneously prepends '/' to C:/dos/paths
  9399. # for these hosts.
  9400. case $host_os in
  9401. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9402. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9403. esac
  9404. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9405. else
  9406. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9407. fi
  9408. library_names_spec=
  9409. libname_spec='lib$name'
  9410. soname_spec=
  9411. shrext_cmds=".so"
  9412. postinstall_cmds=
  9413. postuninstall_cmds=
  9414. finish_cmds=
  9415. finish_eval=
  9416. shlibpath_var=
  9417. shlibpath_overrides_runpath=unknown
  9418. version_type=none
  9419. dynamic_linker="$host_os ld.so"
  9420. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9421. need_lib_prefix=unknown
  9422. hardcode_into_libs=no
  9423. # when you set need_version to no, make sure it does not cause -set_version
  9424. # flags to be left without arguments
  9425. need_version=unknown
  9426. case $host_os in
  9427. aix3*)
  9428. version_type=linux # correct to gnu/linux during the next big refactor
  9429. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9430. shlibpath_var=LIBPATH
  9431. # AIX 3 has no versioning support, so we append a major version to the name.
  9432. soname_spec='${libname}${release}${shared_ext}$major'
  9433. ;;
  9434. aix[4-9]*)
  9435. version_type=linux # correct to gnu/linux during the next big refactor
  9436. need_lib_prefix=no
  9437. need_version=no
  9438. hardcode_into_libs=yes
  9439. if test "$host_cpu" = ia64; then
  9440. # AIX 5 supports IA64
  9441. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9442. shlibpath_var=LD_LIBRARY_PATH
  9443. else
  9444. # With GCC up to 2.95.x, collect2 would create an import file
  9445. # for dependence libraries. The import file would start with
  9446. # the line `#! .'. This would cause the generated library to
  9447. # depend on `.', always an invalid library. This was fixed in
  9448. # development snapshots of GCC prior to 3.0.
  9449. case $host_os in
  9450. aix4 | aix4.[01] | aix4.[01].*)
  9451. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9452. echo ' yes '
  9453. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9454. :
  9455. else
  9456. can_build_shared=no
  9457. fi
  9458. ;;
  9459. esac
  9460. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9461. # soname into executable. Probably we can add versioning support to
  9462. # collect2, so additional links can be useful in future.
  9463. if test "$aix_use_runtimelinking" = yes; then
  9464. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9465. # instead of lib<name>.a to let people know that these are not
  9466. # typical AIX shared libraries.
  9467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9468. else
  9469. # We preserve .a as extension for shared libraries through AIX4.2
  9470. # and later when we are not doing run time linking.
  9471. library_names_spec='${libname}${release}.a $libname.a'
  9472. soname_spec='${libname}${release}${shared_ext}$major'
  9473. fi
  9474. shlibpath_var=LIBPATH
  9475. fi
  9476. ;;
  9477. amigaos*)
  9478. case $host_cpu in
  9479. powerpc)
  9480. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9481. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9483. ;;
  9484. m68k)
  9485. library_names_spec='$libname.ixlibrary $libname.a'
  9486. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9487. 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'
  9488. ;;
  9489. esac
  9490. ;;
  9491. beos*)
  9492. library_names_spec='${libname}${shared_ext}'
  9493. dynamic_linker="$host_os ld.so"
  9494. shlibpath_var=LIBRARY_PATH
  9495. ;;
  9496. bsdi[45]*)
  9497. version_type=linux # correct to gnu/linux during the next big refactor
  9498. need_version=no
  9499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9500. soname_spec='${libname}${release}${shared_ext}$major'
  9501. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9502. shlibpath_var=LD_LIBRARY_PATH
  9503. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9504. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9505. # the default ld.so.conf also contains /usr/contrib/lib and
  9506. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9507. # libtool to hard-code these into programs
  9508. ;;
  9509. cygwin* | mingw* | pw32* | cegcc*)
  9510. version_type=windows
  9511. shrext_cmds=".dll"
  9512. need_version=no
  9513. need_lib_prefix=no
  9514. case $GCC,$cc_basename in
  9515. yes,*)
  9516. # gcc
  9517. library_names_spec='$libname.dll.a'
  9518. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9519. postinstall_cmds='base_file=`basename \${file}`~
  9520. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9521. dldir=$destdir/`dirname \$dlpath`~
  9522. test -d \$dldir || mkdir -p \$dldir~
  9523. $install_prog $dir/$dlname \$dldir/$dlname~
  9524. chmod a+x \$dldir/$dlname~
  9525. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9526. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9527. fi'
  9528. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9529. dlpath=$dir/\$dldll~
  9530. $RM \$dlpath'
  9531. shlibpath_overrides_runpath=yes
  9532. case $host_os in
  9533. cygwin*)
  9534. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9535. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9536. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9537. ;;
  9538. mingw* | cegcc*)
  9539. # MinGW DLLs use traditional 'lib' prefix
  9540. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9541. ;;
  9542. pw32*)
  9543. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9544. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9545. ;;
  9546. esac
  9547. dynamic_linker='Win32 ld.exe'
  9548. ;;
  9549. *,cl*)
  9550. # Native MSVC
  9551. libname_spec='$name'
  9552. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9553. library_names_spec='${libname}.dll.lib'
  9554. case $build_os in
  9555. mingw*)
  9556. sys_lib_search_path_spec=
  9557. lt_save_ifs=$IFS
  9558. IFS=';'
  9559. for lt_path in $LIB
  9560. do
  9561. IFS=$lt_save_ifs
  9562. # Let DOS variable expansion print the short 8.3 style file name.
  9563. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9564. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9565. done
  9566. IFS=$lt_save_ifs
  9567. # Convert to MSYS style.
  9568. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9569. ;;
  9570. cygwin*)
  9571. # Convert to unix form, then to dos form, then back to unix form
  9572. # but this time dos style (no spaces!) so that the unix form looks
  9573. # like /cygdrive/c/PROGRA~1:/cygdr...
  9574. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9575. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9576. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9577. ;;
  9578. *)
  9579. sys_lib_search_path_spec="$LIB"
  9580. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9581. # It is most probably a Windows format PATH.
  9582. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9583. else
  9584. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9585. fi
  9586. # FIXME: find the short name or the path components, as spaces are
  9587. # common. (e.g. "Program Files" -> "PROGRA~1")
  9588. ;;
  9589. esac
  9590. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9591. postinstall_cmds='base_file=`basename \${file}`~
  9592. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9593. dldir=$destdir/`dirname \$dlpath`~
  9594. test -d \$dldir || mkdir -p \$dldir~
  9595. $install_prog $dir/$dlname \$dldir/$dlname'
  9596. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9597. dlpath=$dir/\$dldll~
  9598. $RM \$dlpath'
  9599. shlibpath_overrides_runpath=yes
  9600. dynamic_linker='Win32 link.exe'
  9601. ;;
  9602. *)
  9603. # Assume MSVC wrapper
  9604. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9605. dynamic_linker='Win32 ld.exe'
  9606. ;;
  9607. esac
  9608. # FIXME: first we should search . and the directory the executable is in
  9609. shlibpath_var=PATH
  9610. ;;
  9611. darwin* | rhapsody*)
  9612. dynamic_linker="$host_os dyld"
  9613. version_type=darwin
  9614. need_lib_prefix=no
  9615. need_version=no
  9616. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9617. soname_spec='${libname}${release}${major}$shared_ext'
  9618. shlibpath_overrides_runpath=yes
  9619. shlibpath_var=DYLD_LIBRARY_PATH
  9620. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9621. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9622. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9623. ;;
  9624. dgux*)
  9625. version_type=linux # correct to gnu/linux during the next big refactor
  9626. need_lib_prefix=no
  9627. need_version=no
  9628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9629. soname_spec='${libname}${release}${shared_ext}$major'
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. ;;
  9632. freebsd* | dragonfly*)
  9633. # DragonFly does not have aout. When/if they implement a new
  9634. # versioning mechanism, adjust this.
  9635. if test -x /usr/bin/objformat; then
  9636. objformat=`/usr/bin/objformat`
  9637. else
  9638. case $host_os in
  9639. freebsd[23].*) objformat=aout ;;
  9640. *) objformat=elf ;;
  9641. esac
  9642. fi
  9643. version_type=freebsd-$objformat
  9644. case $version_type in
  9645. freebsd-elf*)
  9646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9647. need_version=no
  9648. need_lib_prefix=no
  9649. ;;
  9650. freebsd-*)
  9651. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9652. need_version=yes
  9653. ;;
  9654. esac
  9655. shlibpath_var=LD_LIBRARY_PATH
  9656. case $host_os in
  9657. freebsd2.*)
  9658. shlibpath_overrides_runpath=yes
  9659. ;;
  9660. freebsd3.[01]* | freebsdelf3.[01]*)
  9661. shlibpath_overrides_runpath=yes
  9662. hardcode_into_libs=yes
  9663. ;;
  9664. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9665. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9666. shlibpath_overrides_runpath=no
  9667. hardcode_into_libs=yes
  9668. ;;
  9669. *) # from 4.6 on, and DragonFly
  9670. shlibpath_overrides_runpath=yes
  9671. hardcode_into_libs=yes
  9672. ;;
  9673. esac
  9674. ;;
  9675. gnu*)
  9676. version_type=linux # correct to gnu/linux during the next big refactor
  9677. need_lib_prefix=no
  9678. need_version=no
  9679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9680. soname_spec='${libname}${release}${shared_ext}$major'
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. shlibpath_overrides_runpath=no
  9683. hardcode_into_libs=yes
  9684. ;;
  9685. haiku*)
  9686. version_type=linux # correct to gnu/linux during the next big refactor
  9687. need_lib_prefix=no
  9688. need_version=no
  9689. dynamic_linker="$host_os runtime_loader"
  9690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9691. soname_spec='${libname}${release}${shared_ext}$major'
  9692. shlibpath_var=LIBRARY_PATH
  9693. shlibpath_overrides_runpath=yes
  9694. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9695. hardcode_into_libs=yes
  9696. ;;
  9697. hpux9* | hpux10* | hpux11*)
  9698. # Give a soname corresponding to the major version so that dld.sl refuses to
  9699. # link against other versions.
  9700. version_type=sunos
  9701. need_lib_prefix=no
  9702. need_version=no
  9703. case $host_cpu in
  9704. ia64*)
  9705. shrext_cmds='.so'
  9706. hardcode_into_libs=yes
  9707. dynamic_linker="$host_os dld.so"
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9711. soname_spec='${libname}${release}${shared_ext}$major'
  9712. if test "X$HPUX_IA64_MODE" = X32; then
  9713. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9714. else
  9715. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9716. fi
  9717. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9718. ;;
  9719. hppa*64*)
  9720. shrext_cmds='.sl'
  9721. hardcode_into_libs=yes
  9722. dynamic_linker="$host_os dld.sl"
  9723. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9724. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9726. soname_spec='${libname}${release}${shared_ext}$major'
  9727. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9728. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9729. ;;
  9730. *)
  9731. shrext_cmds='.sl'
  9732. dynamic_linker="$host_os dld.sl"
  9733. shlibpath_var=SHLIB_PATH
  9734. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9736. soname_spec='${libname}${release}${shared_ext}$major'
  9737. ;;
  9738. esac
  9739. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9740. postinstall_cmds='chmod 555 $lib'
  9741. # or fails outright, so override atomically:
  9742. install_override_mode=555
  9743. ;;
  9744. interix[3-9]*)
  9745. version_type=linux # correct to gnu/linux during the next big refactor
  9746. need_lib_prefix=no
  9747. need_version=no
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9749. soname_spec='${libname}${release}${shared_ext}$major'
  9750. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9751. shlibpath_var=LD_LIBRARY_PATH
  9752. shlibpath_overrides_runpath=no
  9753. hardcode_into_libs=yes
  9754. ;;
  9755. irix5* | irix6* | nonstopux*)
  9756. case $host_os in
  9757. nonstopux*) version_type=nonstopux ;;
  9758. *)
  9759. if test "$lt_cv_prog_gnu_ld" = yes; then
  9760. version_type=linux # correct to gnu/linux during the next big refactor
  9761. else
  9762. version_type=irix
  9763. fi ;;
  9764. esac
  9765. need_lib_prefix=no
  9766. need_version=no
  9767. soname_spec='${libname}${release}${shared_ext}$major'
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9769. case $host_os in
  9770. irix5* | nonstopux*)
  9771. libsuff= shlibsuff=
  9772. ;;
  9773. *)
  9774. case $LD in # libtool.m4 will add one of these switches to LD
  9775. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9776. libsuff= shlibsuff= libmagic=32-bit;;
  9777. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9778. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9779. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9780. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9781. *) libsuff= shlibsuff= libmagic=never-match;;
  9782. esac
  9783. ;;
  9784. esac
  9785. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9786. shlibpath_overrides_runpath=no
  9787. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9788. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9789. hardcode_into_libs=yes
  9790. ;;
  9791. # No shared lib support for Linux oldld, aout, or coff.
  9792. linux*oldld* | linux*aout* | linux*coff*)
  9793. dynamic_linker=no
  9794. ;;
  9795. # This must be glibc/ELF.
  9796. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9797. version_type=linux # correct to gnu/linux during the next big refactor
  9798. need_lib_prefix=no
  9799. need_version=no
  9800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9801. soname_spec='${libname}${release}${shared_ext}$major'
  9802. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. shlibpath_overrides_runpath=no
  9805. # Some binutils ld are patched to set DT_RUNPATH
  9806. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9807. $as_echo_n "(cached) " >&6
  9808. else
  9809. lt_cv_shlibpath_overrides_runpath=no
  9810. save_LDFLAGS=$LDFLAGS
  9811. save_libdir=$libdir
  9812. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9813. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9815. /* end confdefs.h. */
  9816. int
  9817. main ()
  9818. {
  9819. ;
  9820. return 0;
  9821. }
  9822. _ACEOF
  9823. if ac_fn_c_try_link "$LINENO"; then :
  9824. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9825. lt_cv_shlibpath_overrides_runpath=yes
  9826. fi
  9827. fi
  9828. rm -f core conftest.err conftest.$ac_objext \
  9829. conftest$ac_exeext conftest.$ac_ext
  9830. LDFLAGS=$save_LDFLAGS
  9831. libdir=$save_libdir
  9832. fi
  9833. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9834. # This implies no fast_install, which is unacceptable.
  9835. # Some rework will be needed to allow for fast_install
  9836. # before this can be enabled.
  9837. hardcode_into_libs=yes
  9838. # Add ABI-specific directories to the system library path.
  9839. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9840. # Append ld.so.conf contents to the search path
  9841. if test -f /etc/ld.so.conf; then
  9842. 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' ' '`
  9843. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9844. fi
  9845. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9846. # powerpc, because MkLinux only supported shared libraries with the
  9847. # GNU dynamic linker. Since this was broken with cross compilers,
  9848. # most powerpc-linux boxes support dynamic linking these days and
  9849. # people can always --disable-shared, the test was removed, and we
  9850. # assume the GNU/Linux dynamic linker is in use.
  9851. dynamic_linker='GNU/Linux ld.so'
  9852. ;;
  9853. netbsd*)
  9854. version_type=sunos
  9855. need_lib_prefix=no
  9856. need_version=no
  9857. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9859. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9860. dynamic_linker='NetBSD (a.out) ld.so'
  9861. else
  9862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. dynamic_linker='NetBSD ld.elf_so'
  9865. fi
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. shlibpath_overrides_runpath=yes
  9868. hardcode_into_libs=yes
  9869. ;;
  9870. newsos6)
  9871. version_type=linux # correct to gnu/linux during the next big refactor
  9872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9873. shlibpath_var=LD_LIBRARY_PATH
  9874. shlibpath_overrides_runpath=yes
  9875. ;;
  9876. *nto* | *qnx*)
  9877. version_type=qnx
  9878. need_lib_prefix=no
  9879. need_version=no
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. soname_spec='${libname}${release}${shared_ext}$major'
  9882. shlibpath_var=LD_LIBRARY_PATH
  9883. shlibpath_overrides_runpath=no
  9884. hardcode_into_libs=yes
  9885. dynamic_linker='ldqnx.so'
  9886. ;;
  9887. openbsd*)
  9888. version_type=sunos
  9889. sys_lib_dlsearch_path_spec="/usr/lib"
  9890. need_lib_prefix=no
  9891. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9892. case $host_os in
  9893. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9894. *) need_version=no ;;
  9895. esac
  9896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9897. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9898. shlibpath_var=LD_LIBRARY_PATH
  9899. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9900. case $host_os in
  9901. openbsd2.[89] | openbsd2.[89].*)
  9902. shlibpath_overrides_runpath=no
  9903. ;;
  9904. *)
  9905. shlibpath_overrides_runpath=yes
  9906. ;;
  9907. esac
  9908. else
  9909. shlibpath_overrides_runpath=yes
  9910. fi
  9911. ;;
  9912. os2*)
  9913. libname_spec='$name'
  9914. shrext_cmds=".dll"
  9915. need_lib_prefix=no
  9916. library_names_spec='$libname${shared_ext} $libname.a'
  9917. dynamic_linker='OS/2 ld.exe'
  9918. shlibpath_var=LIBPATH
  9919. ;;
  9920. osf3* | osf4* | osf5*)
  9921. version_type=osf
  9922. need_lib_prefix=no
  9923. need_version=no
  9924. soname_spec='${libname}${release}${shared_ext}$major'
  9925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9926. shlibpath_var=LD_LIBRARY_PATH
  9927. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9928. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9929. ;;
  9930. rdos*)
  9931. dynamic_linker=no
  9932. ;;
  9933. solaris*)
  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. shlibpath_var=LD_LIBRARY_PATH
  9940. shlibpath_overrides_runpath=yes
  9941. hardcode_into_libs=yes
  9942. # ldd complains unless libraries are executable
  9943. postinstall_cmds='chmod +x $lib'
  9944. ;;
  9945. sunos4*)
  9946. version_type=sunos
  9947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9948. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9949. shlibpath_var=LD_LIBRARY_PATH
  9950. shlibpath_overrides_runpath=yes
  9951. if test "$with_gnu_ld" = yes; then
  9952. need_lib_prefix=no
  9953. fi
  9954. need_version=yes
  9955. ;;
  9956. sysv4 | sysv4.3*)
  9957. version_type=linux # correct to gnu/linux during the next big refactor
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. shlibpath_var=LD_LIBRARY_PATH
  9961. case $host_vendor in
  9962. sni)
  9963. shlibpath_overrides_runpath=no
  9964. need_lib_prefix=no
  9965. runpath_var=LD_RUN_PATH
  9966. ;;
  9967. siemens)
  9968. need_lib_prefix=no
  9969. ;;
  9970. motorola)
  9971. need_lib_prefix=no
  9972. need_version=no
  9973. shlibpath_overrides_runpath=no
  9974. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9975. ;;
  9976. esac
  9977. ;;
  9978. sysv4*MP*)
  9979. if test -d /usr/nec ;then
  9980. version_type=linux # correct to gnu/linux during the next big refactor
  9981. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9982. soname_spec='$libname${shared_ext}.$major'
  9983. shlibpath_var=LD_LIBRARY_PATH
  9984. fi
  9985. ;;
  9986. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9987. version_type=freebsd-elf
  9988. need_lib_prefix=no
  9989. need_version=no
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9991. soname_spec='${libname}${release}${shared_ext}$major'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. shlibpath_overrides_runpath=yes
  9994. hardcode_into_libs=yes
  9995. if test "$with_gnu_ld" = yes; then
  9996. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9997. else
  9998. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9999. case $host_os in
  10000. sco3.2v5*)
  10001. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10002. ;;
  10003. esac
  10004. fi
  10005. sys_lib_dlsearch_path_spec='/usr/lib'
  10006. ;;
  10007. tpf*)
  10008. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10009. version_type=linux # correct to gnu/linux during the next big refactor
  10010. need_lib_prefix=no
  10011. need_version=no
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10013. shlibpath_var=LD_LIBRARY_PATH
  10014. shlibpath_overrides_runpath=no
  10015. hardcode_into_libs=yes
  10016. ;;
  10017. uts4*)
  10018. version_type=linux # correct to gnu/linux during the next big refactor
  10019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10020. soname_spec='${libname}${release}${shared_ext}$major'
  10021. shlibpath_var=LD_LIBRARY_PATH
  10022. ;;
  10023. *)
  10024. dynamic_linker=no
  10025. ;;
  10026. esac
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10028. $as_echo "$dynamic_linker" >&6; }
  10029. test "$dynamic_linker" = no && can_build_shared=no
  10030. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10031. if test "$GCC" = yes; then
  10032. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10033. fi
  10034. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10035. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10036. fi
  10037. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10038. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10039. fi
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10041. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10042. hardcode_action=
  10043. if test -n "$hardcode_libdir_flag_spec" ||
  10044. test -n "$runpath_var" ||
  10045. test "X$hardcode_automatic" = "Xyes" ; then
  10046. # We can hardcode non-existent directories.
  10047. if test "$hardcode_direct" != no &&
  10048. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10049. # have to relink, otherwise we might link with an installed library
  10050. # when we should be linking with a yet-to-be-installed one
  10051. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10052. test "$hardcode_minus_L" != no; then
  10053. # Linking always hardcodes the temporary library directory.
  10054. hardcode_action=relink
  10055. else
  10056. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10057. hardcode_action=immediate
  10058. fi
  10059. else
  10060. # We cannot hardcode anything, or else we can only hardcode existing
  10061. # directories.
  10062. hardcode_action=unsupported
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10065. $as_echo "$hardcode_action" >&6; }
  10066. if test "$hardcode_action" = relink ||
  10067. test "$inherit_rpath" = yes; then
  10068. # Fast installation is not supported
  10069. enable_fast_install=no
  10070. elif test "$shlibpath_overrides_runpath" = yes ||
  10071. test "$enable_shared" = no; then
  10072. # Fast installation is not necessary
  10073. enable_fast_install=needless
  10074. fi
  10075. if test "x$enable_dlopen" != xyes; then
  10076. enable_dlopen=unknown
  10077. enable_dlopen_self=unknown
  10078. enable_dlopen_self_static=unknown
  10079. else
  10080. lt_cv_dlopen=no
  10081. lt_cv_dlopen_libs=
  10082. case $host_os in
  10083. beos*)
  10084. lt_cv_dlopen="load_add_on"
  10085. lt_cv_dlopen_libs=
  10086. lt_cv_dlopen_self=yes
  10087. ;;
  10088. mingw* | pw32* | cegcc*)
  10089. lt_cv_dlopen="LoadLibrary"
  10090. lt_cv_dlopen_libs=
  10091. ;;
  10092. cygwin*)
  10093. lt_cv_dlopen="dlopen"
  10094. lt_cv_dlopen_libs=
  10095. ;;
  10096. darwin*)
  10097. # if libdl is installed we need to link against it
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10099. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10100. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. ac_check_lib_save_LIBS=$LIBS
  10104. LIBS="-ldl $LIBS"
  10105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10106. /* end confdefs.h. */
  10107. /* Override any GCC internal prototype to avoid an error.
  10108. Use char because int might match the return type of a GCC
  10109. builtin and then its argument prototype would still apply. */
  10110. #ifdef __cplusplus
  10111. extern "C"
  10112. #endif
  10113. char dlopen ();
  10114. int
  10115. main ()
  10116. {
  10117. return dlopen ();
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. if ac_fn_c_try_link "$LINENO"; then :
  10123. ac_cv_lib_dl_dlopen=yes
  10124. else
  10125. ac_cv_lib_dl_dlopen=no
  10126. fi
  10127. rm -f core conftest.err conftest.$ac_objext \
  10128. conftest$ac_exeext conftest.$ac_ext
  10129. LIBS=$ac_check_lib_save_LIBS
  10130. fi
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10132. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10133. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10134. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10135. else
  10136. lt_cv_dlopen="dyld"
  10137. lt_cv_dlopen_libs=
  10138. lt_cv_dlopen_self=yes
  10139. fi
  10140. ;;
  10141. *)
  10142. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10143. if test "x$ac_cv_func_shl_load" = xyes; then :
  10144. lt_cv_dlopen="shl_load"
  10145. else
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10147. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10148. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10149. $as_echo_n "(cached) " >&6
  10150. else
  10151. ac_check_lib_save_LIBS=$LIBS
  10152. LIBS="-ldld $LIBS"
  10153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10154. /* end confdefs.h. */
  10155. /* Override any GCC internal prototype to avoid an error.
  10156. Use char because int might match the return type of a GCC
  10157. builtin and then its argument prototype would still apply. */
  10158. #ifdef __cplusplus
  10159. extern "C"
  10160. #endif
  10161. char shl_load ();
  10162. int
  10163. main ()
  10164. {
  10165. return shl_load ();
  10166. ;
  10167. return 0;
  10168. }
  10169. _ACEOF
  10170. if ac_fn_c_try_link "$LINENO"; then :
  10171. ac_cv_lib_dld_shl_load=yes
  10172. else
  10173. ac_cv_lib_dld_shl_load=no
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext \
  10176. conftest$ac_exeext conftest.$ac_ext
  10177. LIBS=$ac_check_lib_save_LIBS
  10178. fi
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10180. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10181. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10182. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10183. else
  10184. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10185. if test "x$ac_cv_func_dlopen" = xyes; then :
  10186. lt_cv_dlopen="dlopen"
  10187. else
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10189. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10190. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10191. $as_echo_n "(cached) " >&6
  10192. else
  10193. ac_check_lib_save_LIBS=$LIBS
  10194. LIBS="-ldl $LIBS"
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. /* Override any GCC internal prototype to avoid an error.
  10198. Use char because int might match the return type of a GCC
  10199. builtin and then its argument prototype would still apply. */
  10200. #ifdef __cplusplus
  10201. extern "C"
  10202. #endif
  10203. char dlopen ();
  10204. int
  10205. main ()
  10206. {
  10207. return dlopen ();
  10208. ;
  10209. return 0;
  10210. }
  10211. _ACEOF
  10212. if ac_fn_c_try_link "$LINENO"; then :
  10213. ac_cv_lib_dl_dlopen=yes
  10214. else
  10215. ac_cv_lib_dl_dlopen=no
  10216. fi
  10217. rm -f core conftest.err conftest.$ac_objext \
  10218. conftest$ac_exeext conftest.$ac_ext
  10219. LIBS=$ac_check_lib_save_LIBS
  10220. fi
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10222. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10223. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10224. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10225. else
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10227. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10228. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10229. $as_echo_n "(cached) " >&6
  10230. else
  10231. ac_check_lib_save_LIBS=$LIBS
  10232. LIBS="-lsvld $LIBS"
  10233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10234. /* end confdefs.h. */
  10235. /* Override any GCC internal prototype to avoid an error.
  10236. Use char because int might match the return type of a GCC
  10237. builtin and then its argument prototype would still apply. */
  10238. #ifdef __cplusplus
  10239. extern "C"
  10240. #endif
  10241. char dlopen ();
  10242. int
  10243. main ()
  10244. {
  10245. return dlopen ();
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. if ac_fn_c_try_link "$LINENO"; then :
  10251. ac_cv_lib_svld_dlopen=yes
  10252. else
  10253. ac_cv_lib_svld_dlopen=no
  10254. fi
  10255. rm -f core conftest.err conftest.$ac_objext \
  10256. conftest$ac_exeext conftest.$ac_ext
  10257. LIBS=$ac_check_lib_save_LIBS
  10258. fi
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10260. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10261. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10262. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10263. else
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10265. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10266. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10267. $as_echo_n "(cached) " >&6
  10268. else
  10269. ac_check_lib_save_LIBS=$LIBS
  10270. LIBS="-ldld $LIBS"
  10271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10272. /* end confdefs.h. */
  10273. /* Override any GCC internal prototype to avoid an error.
  10274. Use char because int might match the return type of a GCC
  10275. builtin and then its argument prototype would still apply. */
  10276. #ifdef __cplusplus
  10277. extern "C"
  10278. #endif
  10279. char dld_link ();
  10280. int
  10281. main ()
  10282. {
  10283. return dld_link ();
  10284. ;
  10285. return 0;
  10286. }
  10287. _ACEOF
  10288. if ac_fn_c_try_link "$LINENO"; then :
  10289. ac_cv_lib_dld_dld_link=yes
  10290. else
  10291. ac_cv_lib_dld_dld_link=no
  10292. fi
  10293. rm -f core conftest.err conftest.$ac_objext \
  10294. conftest$ac_exeext conftest.$ac_ext
  10295. LIBS=$ac_check_lib_save_LIBS
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10298. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10299. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10300. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10301. fi
  10302. fi
  10303. fi
  10304. fi
  10305. fi
  10306. fi
  10307. ;;
  10308. esac
  10309. if test "x$lt_cv_dlopen" != xno; then
  10310. enable_dlopen=yes
  10311. else
  10312. enable_dlopen=no
  10313. fi
  10314. case $lt_cv_dlopen in
  10315. dlopen)
  10316. save_CPPFLAGS="$CPPFLAGS"
  10317. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10318. save_LDFLAGS="$LDFLAGS"
  10319. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10320. save_LIBS="$LIBS"
  10321. LIBS="$lt_cv_dlopen_libs $LIBS"
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10323. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10324. if ${lt_cv_dlopen_self+:} false; then :
  10325. $as_echo_n "(cached) " >&6
  10326. else
  10327. if test "$cross_compiling" = yes; then :
  10328. lt_cv_dlopen_self=cross
  10329. else
  10330. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10331. lt_status=$lt_dlunknown
  10332. cat > conftest.$ac_ext <<_LT_EOF
  10333. #line $LINENO "configure"
  10334. #include "confdefs.h"
  10335. #if HAVE_DLFCN_H
  10336. #include <dlfcn.h>
  10337. #endif
  10338. #include <stdio.h>
  10339. #ifdef RTLD_GLOBAL
  10340. # define LT_DLGLOBAL RTLD_GLOBAL
  10341. #else
  10342. # ifdef DL_GLOBAL
  10343. # define LT_DLGLOBAL DL_GLOBAL
  10344. # else
  10345. # define LT_DLGLOBAL 0
  10346. # endif
  10347. #endif
  10348. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10349. find out it does not work in some platform. */
  10350. #ifndef LT_DLLAZY_OR_NOW
  10351. # ifdef RTLD_LAZY
  10352. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10353. # else
  10354. # ifdef DL_LAZY
  10355. # define LT_DLLAZY_OR_NOW DL_LAZY
  10356. # else
  10357. # ifdef RTLD_NOW
  10358. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10359. # else
  10360. # ifdef DL_NOW
  10361. # define LT_DLLAZY_OR_NOW DL_NOW
  10362. # else
  10363. # define LT_DLLAZY_OR_NOW 0
  10364. # endif
  10365. # endif
  10366. # endif
  10367. # endif
  10368. #endif
  10369. /* When -fvisbility=hidden is used, assume the code has been annotated
  10370. correspondingly for the symbols needed. */
  10371. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10372. int fnord () __attribute__((visibility("default")));
  10373. #endif
  10374. int fnord () { return 42; }
  10375. int main ()
  10376. {
  10377. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10378. int status = $lt_dlunknown;
  10379. if (self)
  10380. {
  10381. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10382. else
  10383. {
  10384. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10385. else puts (dlerror ());
  10386. }
  10387. /* dlclose (self); */
  10388. }
  10389. else
  10390. puts (dlerror ());
  10391. return status;
  10392. }
  10393. _LT_EOF
  10394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10395. (eval $ac_link) 2>&5
  10396. ac_status=$?
  10397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10398. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10399. (./conftest; exit; ) >&5 2>/dev/null
  10400. lt_status=$?
  10401. case x$lt_status in
  10402. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10403. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10404. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10405. esac
  10406. else :
  10407. # compilation failed
  10408. lt_cv_dlopen_self=no
  10409. fi
  10410. fi
  10411. rm -fr conftest*
  10412. fi
  10413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10414. $as_echo "$lt_cv_dlopen_self" >&6; }
  10415. if test "x$lt_cv_dlopen_self" = xyes; then
  10416. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10418. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10419. if ${lt_cv_dlopen_self_static+:} false; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. if test "$cross_compiling" = yes; then :
  10423. lt_cv_dlopen_self_static=cross
  10424. else
  10425. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10426. lt_status=$lt_dlunknown
  10427. cat > conftest.$ac_ext <<_LT_EOF
  10428. #line $LINENO "configure"
  10429. #include "confdefs.h"
  10430. #if HAVE_DLFCN_H
  10431. #include <dlfcn.h>
  10432. #endif
  10433. #include <stdio.h>
  10434. #ifdef RTLD_GLOBAL
  10435. # define LT_DLGLOBAL RTLD_GLOBAL
  10436. #else
  10437. # ifdef DL_GLOBAL
  10438. # define LT_DLGLOBAL DL_GLOBAL
  10439. # else
  10440. # define LT_DLGLOBAL 0
  10441. # endif
  10442. #endif
  10443. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10444. find out it does not work in some platform. */
  10445. #ifndef LT_DLLAZY_OR_NOW
  10446. # ifdef RTLD_LAZY
  10447. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10448. # else
  10449. # ifdef DL_LAZY
  10450. # define LT_DLLAZY_OR_NOW DL_LAZY
  10451. # else
  10452. # ifdef RTLD_NOW
  10453. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10454. # else
  10455. # ifdef DL_NOW
  10456. # define LT_DLLAZY_OR_NOW DL_NOW
  10457. # else
  10458. # define LT_DLLAZY_OR_NOW 0
  10459. # endif
  10460. # endif
  10461. # endif
  10462. # endif
  10463. #endif
  10464. /* When -fvisbility=hidden is used, assume the code has been annotated
  10465. correspondingly for the symbols needed. */
  10466. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10467. int fnord () __attribute__((visibility("default")));
  10468. #endif
  10469. int fnord () { return 42; }
  10470. int main ()
  10471. {
  10472. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10473. int status = $lt_dlunknown;
  10474. if (self)
  10475. {
  10476. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10477. else
  10478. {
  10479. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10480. else puts (dlerror ());
  10481. }
  10482. /* dlclose (self); */
  10483. }
  10484. else
  10485. puts (dlerror ());
  10486. return status;
  10487. }
  10488. _LT_EOF
  10489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10490. (eval $ac_link) 2>&5
  10491. ac_status=$?
  10492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10493. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10494. (./conftest; exit; ) >&5 2>/dev/null
  10495. lt_status=$?
  10496. case x$lt_status in
  10497. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10498. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10499. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10500. esac
  10501. else :
  10502. # compilation failed
  10503. lt_cv_dlopen_self_static=no
  10504. fi
  10505. fi
  10506. rm -fr conftest*
  10507. fi
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10509. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10510. fi
  10511. CPPFLAGS="$save_CPPFLAGS"
  10512. LDFLAGS="$save_LDFLAGS"
  10513. LIBS="$save_LIBS"
  10514. ;;
  10515. esac
  10516. case $lt_cv_dlopen_self in
  10517. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10518. *) enable_dlopen_self=unknown ;;
  10519. esac
  10520. case $lt_cv_dlopen_self_static in
  10521. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10522. *) enable_dlopen_self_static=unknown ;;
  10523. esac
  10524. fi
  10525. striplib=
  10526. old_striplib=
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10528. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10529. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10530. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10531. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10533. $as_echo "yes" >&6; }
  10534. else
  10535. # FIXME - insert some real tests, host_os isn't really good enough
  10536. case $host_os in
  10537. darwin*)
  10538. if test -n "$STRIP" ; then
  10539. striplib="$STRIP -x"
  10540. old_striplib="$STRIP -S"
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10542. $as_echo "yes" >&6; }
  10543. else
  10544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10545. $as_echo "no" >&6; }
  10546. fi
  10547. ;;
  10548. *)
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10550. $as_echo "no" >&6; }
  10551. ;;
  10552. esac
  10553. fi
  10554. # Report which library types will actually be built
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10556. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10558. $as_echo "$can_build_shared" >&6; }
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10560. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10561. test "$can_build_shared" = "no" && enable_shared=no
  10562. # On AIX, shared libraries and static libraries use the same namespace, and
  10563. # are all built from PIC.
  10564. case $host_os in
  10565. aix3*)
  10566. test "$enable_shared" = yes && enable_static=no
  10567. if test -n "$RANLIB"; then
  10568. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10569. postinstall_cmds='$RANLIB $lib'
  10570. fi
  10571. ;;
  10572. aix[4-9]*)
  10573. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10574. test "$enable_shared" = yes && enable_static=no
  10575. fi
  10576. ;;
  10577. esac
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10579. $as_echo "$enable_shared" >&6; }
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10581. $as_echo_n "checking whether to build static libraries... " >&6; }
  10582. # Make sure either enable_shared or enable_static is yes.
  10583. test "$enable_shared" = yes || enable_static=yes
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10585. $as_echo "$enable_static" >&6; }
  10586. fi
  10587. ac_ext=c
  10588. ac_cpp='$CPP $CPPFLAGS'
  10589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10592. CC="$lt_save_CC"
  10593. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10594. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10595. (test "X$CXX" != "Xg++"))) ; then
  10596. ac_ext=cpp
  10597. ac_cpp='$CXXCPP $CPPFLAGS'
  10598. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10599. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10600. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10602. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10603. if test -z "$CXXCPP"; then
  10604. if ${ac_cv_prog_CXXCPP+:} false; then :
  10605. $as_echo_n "(cached) " >&6
  10606. else
  10607. # Double quotes because CXXCPP needs to be expanded
  10608. for CXXCPP in "$CXX -E" "/lib/cpp"
  10609. do
  10610. ac_preproc_ok=false
  10611. for ac_cxx_preproc_warn_flag in '' yes
  10612. do
  10613. # Use a header file that comes with gcc, so configuring glibc
  10614. # with a fresh cross-compiler works.
  10615. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10616. # <limits.h> exists even on freestanding compilers.
  10617. # On the NeXT, cc -E runs the code through the compiler's parser,
  10618. # not just through cpp. "Syntax error" is here to catch this case.
  10619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10620. /* end confdefs.h. */
  10621. #ifdef __STDC__
  10622. # include <limits.h>
  10623. #else
  10624. # include <assert.h>
  10625. #endif
  10626. Syntax error
  10627. _ACEOF
  10628. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10629. else
  10630. # Broken: fails on valid input.
  10631. continue
  10632. fi
  10633. rm -f conftest.err conftest.i conftest.$ac_ext
  10634. # OK, works on sane cases. Now check whether nonexistent headers
  10635. # can be detected and how.
  10636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10637. /* end confdefs.h. */
  10638. #include <ac_nonexistent.h>
  10639. _ACEOF
  10640. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10641. # Broken: success on invalid input.
  10642. continue
  10643. else
  10644. # Passes both tests.
  10645. ac_preproc_ok=:
  10646. break
  10647. fi
  10648. rm -f conftest.err conftest.i conftest.$ac_ext
  10649. done
  10650. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10651. rm -f conftest.i conftest.err conftest.$ac_ext
  10652. if $ac_preproc_ok; then :
  10653. break
  10654. fi
  10655. done
  10656. ac_cv_prog_CXXCPP=$CXXCPP
  10657. fi
  10658. CXXCPP=$ac_cv_prog_CXXCPP
  10659. else
  10660. ac_cv_prog_CXXCPP=$CXXCPP
  10661. fi
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10663. $as_echo "$CXXCPP" >&6; }
  10664. ac_preproc_ok=false
  10665. for ac_cxx_preproc_warn_flag in '' yes
  10666. do
  10667. # Use a header file that comes with gcc, so configuring glibc
  10668. # with a fresh cross-compiler works.
  10669. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10670. # <limits.h> exists even on freestanding compilers.
  10671. # On the NeXT, cc -E runs the code through the compiler's parser,
  10672. # not just through cpp. "Syntax error" is here to catch this case.
  10673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10674. /* end confdefs.h. */
  10675. #ifdef __STDC__
  10676. # include <limits.h>
  10677. #else
  10678. # include <assert.h>
  10679. #endif
  10680. Syntax error
  10681. _ACEOF
  10682. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10683. else
  10684. # Broken: fails on valid input.
  10685. continue
  10686. fi
  10687. rm -f conftest.err conftest.i conftest.$ac_ext
  10688. # OK, works on sane cases. Now check whether nonexistent headers
  10689. # can be detected and how.
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. #include <ac_nonexistent.h>
  10693. _ACEOF
  10694. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10695. # Broken: success on invalid input.
  10696. continue
  10697. else
  10698. # Passes both tests.
  10699. ac_preproc_ok=:
  10700. break
  10701. fi
  10702. rm -f conftest.err conftest.i conftest.$ac_ext
  10703. done
  10704. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10705. rm -f conftest.i conftest.err conftest.$ac_ext
  10706. if $ac_preproc_ok; then :
  10707. else
  10708. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10709. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10710. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10711. See \`config.log' for more details" "$LINENO" 5; }
  10712. fi
  10713. ac_ext=c
  10714. ac_cpp='$CPP $CPPFLAGS'
  10715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10718. else
  10719. _lt_caught_CXX_error=yes
  10720. fi
  10721. ac_ext=cpp
  10722. ac_cpp='$CXXCPP $CPPFLAGS'
  10723. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10724. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10725. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10726. archive_cmds_need_lc_CXX=no
  10727. allow_undefined_flag_CXX=
  10728. always_export_symbols_CXX=no
  10729. archive_expsym_cmds_CXX=
  10730. compiler_needs_object_CXX=no
  10731. export_dynamic_flag_spec_CXX=
  10732. hardcode_direct_CXX=no
  10733. hardcode_direct_absolute_CXX=no
  10734. hardcode_libdir_flag_spec_CXX=
  10735. hardcode_libdir_separator_CXX=
  10736. hardcode_minus_L_CXX=no
  10737. hardcode_shlibpath_var_CXX=unsupported
  10738. hardcode_automatic_CXX=no
  10739. inherit_rpath_CXX=no
  10740. module_cmds_CXX=
  10741. module_expsym_cmds_CXX=
  10742. link_all_deplibs_CXX=unknown
  10743. old_archive_cmds_CXX=$old_archive_cmds
  10744. reload_flag_CXX=$reload_flag
  10745. reload_cmds_CXX=$reload_cmds
  10746. no_undefined_flag_CXX=
  10747. whole_archive_flag_spec_CXX=
  10748. enable_shared_with_static_runtimes_CXX=no
  10749. # Source file extension for C++ test sources.
  10750. ac_ext=cpp
  10751. # Object file extension for compiled C++ test sources.
  10752. objext=o
  10753. objext_CXX=$objext
  10754. # No sense in running all these tests if we already determined that
  10755. # the CXX compiler isn't working. Some variables (like enable_shared)
  10756. # are currently assumed to apply to all compilers on this platform,
  10757. # and will be corrupted by setting them based on a non-working compiler.
  10758. if test "$_lt_caught_CXX_error" != yes; then
  10759. # Code to be used in simple compile tests
  10760. lt_simple_compile_test_code="int some_variable = 0;"
  10761. # Code to be used in simple link tests
  10762. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10763. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10764. # If no C compiler was specified, use CC.
  10765. LTCC=${LTCC-"$CC"}
  10766. # If no C compiler flags were specified, use CFLAGS.
  10767. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10768. # Allow CC to be a program name with arguments.
  10769. compiler=$CC
  10770. # save warnings/boilerplate of simple test code
  10771. ac_outfile=conftest.$ac_objext
  10772. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10773. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10774. _lt_compiler_boilerplate=`cat conftest.err`
  10775. $RM conftest*
  10776. ac_outfile=conftest.$ac_objext
  10777. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10778. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10779. _lt_linker_boilerplate=`cat conftest.err`
  10780. $RM -r conftest*
  10781. # Allow CC to be a program name with arguments.
  10782. lt_save_CC=$CC
  10783. lt_save_CFLAGS=$CFLAGS
  10784. lt_save_LD=$LD
  10785. lt_save_GCC=$GCC
  10786. GCC=$GXX
  10787. lt_save_with_gnu_ld=$with_gnu_ld
  10788. lt_save_path_LD=$lt_cv_path_LD
  10789. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10790. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10791. else
  10792. $as_unset lt_cv_prog_gnu_ld
  10793. fi
  10794. if test -n "${lt_cv_path_LDCXX+set}"; then
  10795. lt_cv_path_LD=$lt_cv_path_LDCXX
  10796. else
  10797. $as_unset lt_cv_path_LD
  10798. fi
  10799. test -z "${LDCXX+set}" || LD=$LDCXX
  10800. CC=${CXX-"c++"}
  10801. CFLAGS=$CXXFLAGS
  10802. compiler=$CC
  10803. compiler_CXX=$CC
  10804. for cc_temp in $compiler""; do
  10805. case $cc_temp in
  10806. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10807. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10808. \-*) ;;
  10809. *) break;;
  10810. esac
  10811. done
  10812. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10813. if test -n "$compiler"; then
  10814. # We don't want -fno-exception when compiling C++ code, so set the
  10815. # no_builtin_flag separately
  10816. if test "$GXX" = yes; then
  10817. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10818. else
  10819. lt_prog_compiler_no_builtin_flag_CXX=
  10820. fi
  10821. if test "$GXX" = yes; then
  10822. # Set up default GNU C++ configuration
  10823. # Check whether --with-gnu-ld was given.
  10824. if test "${with_gnu_ld+set}" = set; then :
  10825. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10826. else
  10827. with_gnu_ld=no
  10828. fi
  10829. ac_prog=ld
  10830. if test "$GCC" = yes; then
  10831. # Check if gcc -print-prog-name=ld gives a path.
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10833. $as_echo_n "checking for ld used by $CC... " >&6; }
  10834. case $host in
  10835. *-*-mingw*)
  10836. # gcc leaves a trailing carriage return which upsets mingw
  10837. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10838. *)
  10839. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10840. esac
  10841. case $ac_prog in
  10842. # Accept absolute paths.
  10843. [\\/]* | ?:[\\/]*)
  10844. re_direlt='/[^/][^/]*/\.\./'
  10845. # Canonicalize the pathname of ld
  10846. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10847. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10848. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10849. done
  10850. test -z "$LD" && LD="$ac_prog"
  10851. ;;
  10852. "")
  10853. # If it fails, then pretend we aren't using GCC.
  10854. ac_prog=ld
  10855. ;;
  10856. *)
  10857. # If it is relative, then search for the first ld in PATH.
  10858. with_gnu_ld=unknown
  10859. ;;
  10860. esac
  10861. elif test "$with_gnu_ld" = yes; then
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10863. $as_echo_n "checking for GNU ld... " >&6; }
  10864. else
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10866. $as_echo_n "checking for non-GNU ld... " >&6; }
  10867. fi
  10868. if ${lt_cv_path_LD+:} false; then :
  10869. $as_echo_n "(cached) " >&6
  10870. else
  10871. if test -z "$LD"; then
  10872. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10873. for ac_dir in $PATH; do
  10874. IFS="$lt_save_ifs"
  10875. test -z "$ac_dir" && ac_dir=.
  10876. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10877. lt_cv_path_LD="$ac_dir/$ac_prog"
  10878. # Check to see if the program is GNU ld. I'd rather use --version,
  10879. # but apparently some variants of GNU ld only accept -v.
  10880. # Break only if it was the GNU/non-GNU ld that we prefer.
  10881. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10882. *GNU* | *'with BFD'*)
  10883. test "$with_gnu_ld" != no && break
  10884. ;;
  10885. *)
  10886. test "$with_gnu_ld" != yes && break
  10887. ;;
  10888. esac
  10889. fi
  10890. done
  10891. IFS="$lt_save_ifs"
  10892. else
  10893. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10894. fi
  10895. fi
  10896. LD="$lt_cv_path_LD"
  10897. if test -n "$LD"; then
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10899. $as_echo "$LD" >&6; }
  10900. else
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10902. $as_echo "no" >&6; }
  10903. fi
  10904. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10906. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10907. if ${lt_cv_prog_gnu_ld+:} false; then :
  10908. $as_echo_n "(cached) " >&6
  10909. else
  10910. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10911. case `$LD -v 2>&1 </dev/null` in
  10912. *GNU* | *'with BFD'*)
  10913. lt_cv_prog_gnu_ld=yes
  10914. ;;
  10915. *)
  10916. lt_cv_prog_gnu_ld=no
  10917. ;;
  10918. esac
  10919. fi
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10921. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10922. with_gnu_ld=$lt_cv_prog_gnu_ld
  10923. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10924. # archiving commands below assume that GNU ld is being used.
  10925. if test "$with_gnu_ld" = yes; then
  10926. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10927. 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'
  10928. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10929. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10930. # If archive_cmds runs LD, not CC, wlarc should be empty
  10931. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10932. # investigate it a little bit more. (MM)
  10933. wlarc='${wl}'
  10934. # ancient GNU ld didn't support --whole-archive et. al.
  10935. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10936. $GREP 'no-whole-archive' > /dev/null; then
  10937. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10938. else
  10939. whole_archive_flag_spec_CXX=
  10940. fi
  10941. else
  10942. with_gnu_ld=no
  10943. wlarc=
  10944. # A generic and very simple default shared library creation
  10945. # command for GNU C++ for the case where it uses the native
  10946. # linker, instead of GNU ld. If possible, this setting should
  10947. # overridden to take advantage of the native linker features on
  10948. # the platform it is being used on.
  10949. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10950. fi
  10951. # Commands to make compiler produce verbose output that lists
  10952. # what "hidden" libraries, object files and flags are used when
  10953. # linking a shared library.
  10954. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10955. else
  10956. GXX=no
  10957. with_gnu_ld=no
  10958. wlarc=
  10959. fi
  10960. # PORTME: fill in a description of your system's C++ link characteristics
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10962. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10963. ld_shlibs_CXX=yes
  10964. case $host_os in
  10965. aix3*)
  10966. # FIXME: insert proper C++ library support
  10967. ld_shlibs_CXX=no
  10968. ;;
  10969. aix[4-9]*)
  10970. if test "$host_cpu" = ia64; then
  10971. # On IA64, the linker does run time linking by default, so we don't
  10972. # have to do anything special.
  10973. aix_use_runtimelinking=no
  10974. exp_sym_flag='-Bexport'
  10975. no_entry_flag=""
  10976. else
  10977. aix_use_runtimelinking=no
  10978. # Test if we are trying to use run time linking or normal
  10979. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10980. # need to do runtime linking.
  10981. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10982. for ld_flag in $LDFLAGS; do
  10983. case $ld_flag in
  10984. *-brtl*)
  10985. aix_use_runtimelinking=yes
  10986. break
  10987. ;;
  10988. esac
  10989. done
  10990. ;;
  10991. esac
  10992. exp_sym_flag='-bexport'
  10993. no_entry_flag='-bnoentry'
  10994. fi
  10995. # When large executables or shared objects are built, AIX ld can
  10996. # have problems creating the table of contents. If linking a library
  10997. # or program results in "error TOC overflow" add -mminimal-toc to
  10998. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10999. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11000. archive_cmds_CXX=''
  11001. hardcode_direct_CXX=yes
  11002. hardcode_direct_absolute_CXX=yes
  11003. hardcode_libdir_separator_CXX=':'
  11004. link_all_deplibs_CXX=yes
  11005. file_list_spec_CXX='${wl}-f,'
  11006. if test "$GXX" = yes; then
  11007. case $host_os in aix4.[012]|aix4.[012].*)
  11008. # We only want to do this on AIX 4.2 and lower, the check
  11009. # below for broken collect2 doesn't work under 4.3+
  11010. collect2name=`${CC} -print-prog-name=collect2`
  11011. if test -f "$collect2name" &&
  11012. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11013. then
  11014. # We have reworked collect2
  11015. :
  11016. else
  11017. # We have old collect2
  11018. hardcode_direct_CXX=unsupported
  11019. # It fails to find uninstalled libraries when the uninstalled
  11020. # path is not listed in the libpath. Setting hardcode_minus_L
  11021. # to unsupported forces relinking
  11022. hardcode_minus_L_CXX=yes
  11023. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11024. hardcode_libdir_separator_CXX=
  11025. fi
  11026. esac
  11027. shared_flag='-shared'
  11028. if test "$aix_use_runtimelinking" = yes; then
  11029. shared_flag="$shared_flag "'${wl}-G'
  11030. fi
  11031. else
  11032. # not using gcc
  11033. if test "$host_cpu" = ia64; then
  11034. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11035. # chokes on -Wl,-G. The following line is correct:
  11036. shared_flag='-G'
  11037. else
  11038. if test "$aix_use_runtimelinking" = yes; then
  11039. shared_flag='${wl}-G'
  11040. else
  11041. shared_flag='${wl}-bM:SRE'
  11042. fi
  11043. fi
  11044. fi
  11045. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11046. # It seems that -bexpall does not export symbols beginning with
  11047. # underscore (_), so it is better to generate a list of symbols to
  11048. # export.
  11049. always_export_symbols_CXX=yes
  11050. if test "$aix_use_runtimelinking" = yes; then
  11051. # Warning - without using the other runtime loading flags (-brtl),
  11052. # -berok will link without error, but may produce a broken library.
  11053. allow_undefined_flag_CXX='-berok'
  11054. # Determine the default libpath from the value encoded in an empty
  11055. # executable.
  11056. if test "${lt_cv_aix_libpath+set}" = set; then
  11057. aix_libpath=$lt_cv_aix_libpath
  11058. else
  11059. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11060. $as_echo_n "(cached) " >&6
  11061. else
  11062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11063. /* end confdefs.h. */
  11064. int
  11065. main ()
  11066. {
  11067. ;
  11068. return 0;
  11069. }
  11070. _ACEOF
  11071. if ac_fn_cxx_try_link "$LINENO"; then :
  11072. lt_aix_libpath_sed='
  11073. /Import File Strings/,/^$/ {
  11074. /^0/ {
  11075. s/^0 *\([^ ]*\) *$/\1/
  11076. p
  11077. }
  11078. }'
  11079. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11080. # Check for a 64-bit object if we didn't find anything.
  11081. if test -z "$lt_cv_aix_libpath__CXX"; then
  11082. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11083. fi
  11084. fi
  11085. rm -f core conftest.err conftest.$ac_objext \
  11086. conftest$ac_exeext conftest.$ac_ext
  11087. if test -z "$lt_cv_aix_libpath__CXX"; then
  11088. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11089. fi
  11090. fi
  11091. aix_libpath=$lt_cv_aix_libpath__CXX
  11092. fi
  11093. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11094. 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"
  11095. else
  11096. if test "$host_cpu" = ia64; then
  11097. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11098. allow_undefined_flag_CXX="-z nodefs"
  11099. 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"
  11100. else
  11101. # Determine the default libpath from the value encoded in an
  11102. # empty executable.
  11103. if test "${lt_cv_aix_libpath+set}" = set; then
  11104. aix_libpath=$lt_cv_aix_libpath
  11105. else
  11106. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11107. $as_echo_n "(cached) " >&6
  11108. else
  11109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11110. /* end confdefs.h. */
  11111. int
  11112. main ()
  11113. {
  11114. ;
  11115. return 0;
  11116. }
  11117. _ACEOF
  11118. if ac_fn_cxx_try_link "$LINENO"; then :
  11119. lt_aix_libpath_sed='
  11120. /Import File Strings/,/^$/ {
  11121. /^0/ {
  11122. s/^0 *\([^ ]*\) *$/\1/
  11123. p
  11124. }
  11125. }'
  11126. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11127. # Check for a 64-bit object if we didn't find anything.
  11128. if test -z "$lt_cv_aix_libpath__CXX"; then
  11129. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11130. fi
  11131. fi
  11132. rm -f core conftest.err conftest.$ac_objext \
  11133. conftest$ac_exeext conftest.$ac_ext
  11134. if test -z "$lt_cv_aix_libpath__CXX"; then
  11135. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11136. fi
  11137. fi
  11138. aix_libpath=$lt_cv_aix_libpath__CXX
  11139. fi
  11140. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11141. # Warning - without using the other run time loading flags,
  11142. # -berok will link without error, but may produce a broken library.
  11143. no_undefined_flag_CXX=' ${wl}-bernotok'
  11144. allow_undefined_flag_CXX=' ${wl}-berok'
  11145. if test "$with_gnu_ld" = yes; then
  11146. # We only use this code for GNU lds that support --whole-archive.
  11147. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11148. else
  11149. # Exported symbols can be pulled into shared objects from archives
  11150. whole_archive_flag_spec_CXX='$convenience'
  11151. fi
  11152. archive_cmds_need_lc_CXX=yes
  11153. # This is similar to how AIX traditionally builds its shared
  11154. # libraries.
  11155. 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'
  11156. fi
  11157. fi
  11158. ;;
  11159. beos*)
  11160. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11161. allow_undefined_flag_CXX=unsupported
  11162. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11163. # support --undefined. This deserves some investigation. FIXME
  11164. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11165. else
  11166. ld_shlibs_CXX=no
  11167. fi
  11168. ;;
  11169. chorus*)
  11170. case $cc_basename in
  11171. *)
  11172. # FIXME: insert proper C++ library support
  11173. ld_shlibs_CXX=no
  11174. ;;
  11175. esac
  11176. ;;
  11177. cygwin* | mingw* | pw32* | cegcc*)
  11178. case $GXX,$cc_basename in
  11179. ,cl* | no,cl*)
  11180. # Native MSVC
  11181. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11182. # no search path for DLLs.
  11183. hardcode_libdir_flag_spec_CXX=' '
  11184. allow_undefined_flag_CXX=unsupported
  11185. always_export_symbols_CXX=yes
  11186. file_list_spec_CXX='@'
  11187. # Tell ltmain to make .lib files, not .a files.
  11188. libext=lib
  11189. # Tell ltmain to make .dll files, not .so files.
  11190. shrext_cmds=".dll"
  11191. # FIXME: Setting linknames here is a bad hack.
  11192. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11193. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11194. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11195. else
  11196. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11197. fi~
  11198. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11199. linknames='
  11200. # The linker will not automatically build a static lib if we build a DLL.
  11201. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11202. enable_shared_with_static_runtimes_CXX=yes
  11203. # Don't use ranlib
  11204. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11205. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11206. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11207. case $lt_outputfile in
  11208. *.exe|*.EXE) ;;
  11209. *)
  11210. lt_outputfile="$lt_outputfile.exe"
  11211. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11212. ;;
  11213. esac~
  11214. func_to_tool_file "$lt_outputfile"~
  11215. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11216. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11217. $RM "$lt_outputfile.manifest";
  11218. fi'
  11219. ;;
  11220. *)
  11221. # g++
  11222. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11223. # as there is no search path for DLLs.
  11224. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11225. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11226. allow_undefined_flag_CXX=unsupported
  11227. always_export_symbols_CXX=no
  11228. enable_shared_with_static_runtimes_CXX=yes
  11229. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11230. 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'
  11231. # If the export-symbols file already is a .def file (1st line
  11232. # is EXPORTS), use it as is; otherwise, prepend...
  11233. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11234. cp $export_symbols $output_objdir/$soname.def;
  11235. else
  11236. echo EXPORTS > $output_objdir/$soname.def;
  11237. cat $export_symbols >> $output_objdir/$soname.def;
  11238. fi~
  11239. $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'
  11240. else
  11241. ld_shlibs_CXX=no
  11242. fi
  11243. ;;
  11244. esac
  11245. ;;
  11246. darwin* | rhapsody*)
  11247. archive_cmds_need_lc_CXX=no
  11248. hardcode_direct_CXX=no
  11249. hardcode_automatic_CXX=yes
  11250. hardcode_shlibpath_var_CXX=unsupported
  11251. if test "$lt_cv_ld_force_load" = "yes"; then
  11252. 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\"`'
  11253. else
  11254. whole_archive_flag_spec_CXX=''
  11255. fi
  11256. link_all_deplibs_CXX=yes
  11257. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11258. case $cc_basename in
  11259. ifort*) _lt_dar_can_shared=yes ;;
  11260. *) _lt_dar_can_shared=$GCC ;;
  11261. esac
  11262. if test "$_lt_dar_can_shared" = "yes"; then
  11263. output_verbose_link_cmd=func_echo_all
  11264. 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}"
  11265. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11266. 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}"
  11267. 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}"
  11268. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11269. 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}"
  11270. 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}"
  11271. fi
  11272. else
  11273. ld_shlibs_CXX=no
  11274. fi
  11275. ;;
  11276. dgux*)
  11277. case $cc_basename in
  11278. ec++*)
  11279. # FIXME: insert proper C++ library support
  11280. ld_shlibs_CXX=no
  11281. ;;
  11282. ghcx*)
  11283. # Green Hills C++ Compiler
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. ;;
  11287. *)
  11288. # FIXME: insert proper C++ library support
  11289. ld_shlibs_CXX=no
  11290. ;;
  11291. esac
  11292. ;;
  11293. freebsd2.*)
  11294. # C++ shared libraries reported to be fairly broken before
  11295. # switch to ELF
  11296. ld_shlibs_CXX=no
  11297. ;;
  11298. freebsd-elf*)
  11299. archive_cmds_need_lc_CXX=no
  11300. ;;
  11301. freebsd* | dragonfly*)
  11302. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11303. # conventions
  11304. ld_shlibs_CXX=yes
  11305. ;;
  11306. gnu*)
  11307. ;;
  11308. haiku*)
  11309. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11310. link_all_deplibs_CXX=yes
  11311. ;;
  11312. hpux9*)
  11313. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11314. hardcode_libdir_separator_CXX=:
  11315. export_dynamic_flag_spec_CXX='${wl}-E'
  11316. hardcode_direct_CXX=yes
  11317. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11318. # but as the default
  11319. # location of the library.
  11320. case $cc_basename in
  11321. CC*)
  11322. # FIXME: insert proper C++ library support
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. aCC*)
  11326. 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'
  11327. # Commands to make compiler produce verbose output that lists
  11328. # what "hidden" libraries, object files and flags are used when
  11329. # linking a shared library.
  11330. #
  11331. # There doesn't appear to be a way to prevent this compiler from
  11332. # explicitly linking system object files so we need to strip them
  11333. # from the output so that they don't get included in the library
  11334. # dependencies.
  11335. 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"'
  11336. ;;
  11337. *)
  11338. if test "$GXX" = yes; then
  11339. 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'
  11340. else
  11341. # FIXME: insert proper C++ library support
  11342. ld_shlibs_CXX=no
  11343. fi
  11344. ;;
  11345. esac
  11346. ;;
  11347. hpux10*|hpux11*)
  11348. if test $with_gnu_ld = no; then
  11349. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11350. hardcode_libdir_separator_CXX=:
  11351. case $host_cpu in
  11352. hppa*64*|ia64*)
  11353. ;;
  11354. *)
  11355. export_dynamic_flag_spec_CXX='${wl}-E'
  11356. ;;
  11357. esac
  11358. fi
  11359. case $host_cpu in
  11360. hppa*64*|ia64*)
  11361. hardcode_direct_CXX=no
  11362. hardcode_shlibpath_var_CXX=no
  11363. ;;
  11364. *)
  11365. hardcode_direct_CXX=yes
  11366. hardcode_direct_absolute_CXX=yes
  11367. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11368. # but as the default
  11369. # location of the library.
  11370. ;;
  11371. esac
  11372. case $cc_basename in
  11373. CC*)
  11374. # FIXME: insert proper C++ library support
  11375. ld_shlibs_CXX=no
  11376. ;;
  11377. aCC*)
  11378. case $host_cpu in
  11379. hppa*64*)
  11380. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11381. ;;
  11382. ia64*)
  11383. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11384. ;;
  11385. *)
  11386. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11387. ;;
  11388. esac
  11389. # Commands to make compiler produce verbose output that lists
  11390. # what "hidden" libraries, object files and flags are used when
  11391. # linking a shared library.
  11392. #
  11393. # There doesn't appear to be a way to prevent this compiler from
  11394. # explicitly linking system object files so we need to strip them
  11395. # from the output so that they don't get included in the library
  11396. # dependencies.
  11397. 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"'
  11398. ;;
  11399. *)
  11400. if test "$GXX" = yes; then
  11401. if test $with_gnu_ld = no; then
  11402. case $host_cpu in
  11403. hppa*64*)
  11404. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11405. ;;
  11406. ia64*)
  11407. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11408. ;;
  11409. *)
  11410. 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'
  11411. ;;
  11412. esac
  11413. fi
  11414. else
  11415. # FIXME: insert proper C++ library support
  11416. ld_shlibs_CXX=no
  11417. fi
  11418. ;;
  11419. esac
  11420. ;;
  11421. interix[3-9]*)
  11422. hardcode_direct_CXX=no
  11423. hardcode_shlibpath_var_CXX=no
  11424. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11425. export_dynamic_flag_spec_CXX='${wl}-E'
  11426. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11427. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11428. # default) and relocated if they conflict, which is a slow very memory
  11429. # consuming and fragmenting process. To avoid this, we pick a random,
  11430. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11431. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11432. 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'
  11433. 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'
  11434. ;;
  11435. irix5* | irix6*)
  11436. case $cc_basename in
  11437. CC*)
  11438. # SGI C++
  11439. 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'
  11440. # Archives containing C++ object files must be created using
  11441. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11442. # necessary to make sure instantiated templates are included
  11443. # in the archive.
  11444. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11445. ;;
  11446. *)
  11447. if test "$GXX" = yes; then
  11448. if test "$with_gnu_ld" = no; then
  11449. 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'
  11450. else
  11451. 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'
  11452. fi
  11453. fi
  11454. link_all_deplibs_CXX=yes
  11455. ;;
  11456. esac
  11457. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11458. hardcode_libdir_separator_CXX=:
  11459. inherit_rpath_CXX=yes
  11460. ;;
  11461. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11462. case $cc_basename in
  11463. KCC*)
  11464. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11465. # KCC will only create a shared library if the output file
  11466. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11467. # to its proper name (with version) after linking.
  11468. 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'
  11469. 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'
  11470. # Commands to make compiler produce verbose output that lists
  11471. # what "hidden" libraries, object files and flags are used when
  11472. # linking a shared library.
  11473. #
  11474. # There doesn't appear to be a way to prevent this compiler from
  11475. # explicitly linking system object files so we need to strip them
  11476. # from the output so that they don't get included in the library
  11477. # dependencies.
  11478. 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"'
  11479. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11480. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11481. # Archives containing C++ object files must be created using
  11482. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11483. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11484. ;;
  11485. icpc* | ecpc* )
  11486. # Intel C++
  11487. with_gnu_ld=yes
  11488. # version 8.0 and above of icpc choke on multiply defined symbols
  11489. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11490. # earlier do not add the objects themselves.
  11491. case `$CC -V 2>&1` in
  11492. *"Version 7."*)
  11493. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11494. 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'
  11495. ;;
  11496. *) # Version 8.0 or newer
  11497. tmp_idyn=
  11498. case $host_cpu in
  11499. ia64*) tmp_idyn=' -i_dynamic';;
  11500. esac
  11501. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11502. 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'
  11503. ;;
  11504. esac
  11505. archive_cmds_need_lc_CXX=no
  11506. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11507. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11508. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11509. ;;
  11510. pgCC* | pgcpp*)
  11511. # Portland Group C++ compiler
  11512. case `$CC -V` in
  11513. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11514. prelink_cmds_CXX='tpldir=Template.dir~
  11515. rm -rf $tpldir~
  11516. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11517. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11518. old_archive_cmds_CXX='tpldir=Template.dir~
  11519. rm -rf $tpldir~
  11520. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11521. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11522. $RANLIB $oldlib'
  11523. archive_cmds_CXX='tpldir=Template.dir~
  11524. rm -rf $tpldir~
  11525. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11526. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11527. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11528. rm -rf $tpldir~
  11529. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11530. $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'
  11531. ;;
  11532. *) # Version 6 and above use weak symbols
  11533. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11534. 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'
  11535. ;;
  11536. esac
  11537. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11538. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11539. 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'
  11540. ;;
  11541. cxx*)
  11542. # Compaq C++
  11543. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11544. 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'
  11545. runpath_var=LD_RUN_PATH
  11546. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11547. hardcode_libdir_separator_CXX=:
  11548. # Commands to make compiler produce verbose output that lists
  11549. # what "hidden" libraries, object files and flags are used when
  11550. # linking a shared library.
  11551. #
  11552. # There doesn't appear to be a way to prevent this compiler from
  11553. # explicitly linking system object files so we need to strip them
  11554. # from the output so that they don't get included in the library
  11555. # dependencies.
  11556. 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'
  11557. ;;
  11558. xl* | mpixl* | bgxl*)
  11559. # IBM XL 8.0 on PPC, with GNU ld
  11560. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11561. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11562. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11563. if test "x$supports_anon_versioning" = xyes; then
  11564. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11565. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11566. echo "local: *; };" >> $output_objdir/$libname.ver~
  11567. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11568. fi
  11569. ;;
  11570. *)
  11571. case `$CC -V 2>&1 | sed 5q` in
  11572. *Sun\ C*)
  11573. # Sun C++ 5.9
  11574. no_undefined_flag_CXX=' -zdefs'
  11575. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11576. 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'
  11577. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11578. 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'
  11579. compiler_needs_object_CXX=yes
  11580. # Not sure whether something based on
  11581. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11582. # would be better.
  11583. output_verbose_link_cmd='func_echo_all'
  11584. # Archives containing C++ object files must be created using
  11585. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11586. # necessary to make sure instantiated templates are included
  11587. # in the archive.
  11588. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11589. ;;
  11590. esac
  11591. ;;
  11592. esac
  11593. ;;
  11594. lynxos*)
  11595. # FIXME: insert proper C++ library support
  11596. ld_shlibs_CXX=no
  11597. ;;
  11598. m88k*)
  11599. # FIXME: insert proper C++ library support
  11600. ld_shlibs_CXX=no
  11601. ;;
  11602. mvs*)
  11603. case $cc_basename in
  11604. cxx*)
  11605. # FIXME: insert proper C++ library support
  11606. ld_shlibs_CXX=no
  11607. ;;
  11608. *)
  11609. # FIXME: insert proper C++ library support
  11610. ld_shlibs_CXX=no
  11611. ;;
  11612. esac
  11613. ;;
  11614. netbsd*)
  11615. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11616. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11617. wlarc=
  11618. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11619. hardcode_direct_CXX=yes
  11620. hardcode_shlibpath_var_CXX=no
  11621. fi
  11622. # Workaround some broken pre-1.5 toolchains
  11623. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11624. ;;
  11625. *nto* | *qnx*)
  11626. ld_shlibs_CXX=yes
  11627. ;;
  11628. openbsd2*)
  11629. # C++ shared libraries are fairly broken
  11630. ld_shlibs_CXX=no
  11631. ;;
  11632. openbsd*)
  11633. if test -f /usr/libexec/ld.so; then
  11634. hardcode_direct_CXX=yes
  11635. hardcode_shlibpath_var_CXX=no
  11636. hardcode_direct_absolute_CXX=yes
  11637. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11638. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11639. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11640. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11641. export_dynamic_flag_spec_CXX='${wl}-E'
  11642. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11643. fi
  11644. output_verbose_link_cmd=func_echo_all
  11645. else
  11646. ld_shlibs_CXX=no
  11647. fi
  11648. ;;
  11649. osf3* | osf4* | osf5*)
  11650. case $cc_basename in
  11651. KCC*)
  11652. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11653. # KCC will only create a shared library if the output file
  11654. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11655. # to its proper name (with version) after linking.
  11656. 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'
  11657. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11658. hardcode_libdir_separator_CXX=:
  11659. # Archives containing C++ object files must be created using
  11660. # the KAI C++ compiler.
  11661. case $host in
  11662. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11663. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11664. esac
  11665. ;;
  11666. RCC*)
  11667. # Rational C++ 2.4.1
  11668. # FIXME: insert proper C++ library support
  11669. ld_shlibs_CXX=no
  11670. ;;
  11671. cxx*)
  11672. case $host in
  11673. osf3*)
  11674. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11675. 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'
  11676. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11677. ;;
  11678. *)
  11679. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11680. 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'
  11681. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11682. echo "-hidden">> $lib.exp~
  11683. $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~
  11684. $RM $lib.exp'
  11685. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11686. ;;
  11687. esac
  11688. hardcode_libdir_separator_CXX=:
  11689. # Commands to make compiler produce verbose output that lists
  11690. # what "hidden" libraries, object files and flags are used when
  11691. # linking a shared library.
  11692. #
  11693. # There doesn't appear to be a way to prevent this compiler from
  11694. # explicitly linking system object files so we need to strip them
  11695. # from the output so that they don't get included in the library
  11696. # dependencies.
  11697. 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"'
  11698. ;;
  11699. *)
  11700. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11701. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11702. case $host in
  11703. osf3*)
  11704. 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'
  11705. ;;
  11706. *)
  11707. 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'
  11708. ;;
  11709. esac
  11710. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11711. hardcode_libdir_separator_CXX=:
  11712. # Commands to make compiler produce verbose output that lists
  11713. # what "hidden" libraries, object files and flags are used when
  11714. # linking a shared library.
  11715. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11716. else
  11717. # FIXME: insert proper C++ library support
  11718. ld_shlibs_CXX=no
  11719. fi
  11720. ;;
  11721. esac
  11722. ;;
  11723. psos*)
  11724. # FIXME: insert proper C++ library support
  11725. ld_shlibs_CXX=no
  11726. ;;
  11727. sunos4*)
  11728. case $cc_basename in
  11729. CC*)
  11730. # Sun C++ 4.x
  11731. # FIXME: insert proper C++ library support
  11732. ld_shlibs_CXX=no
  11733. ;;
  11734. lcc*)
  11735. # Lucid
  11736. # FIXME: insert proper C++ library support
  11737. ld_shlibs_CXX=no
  11738. ;;
  11739. *)
  11740. # FIXME: insert proper C++ library support
  11741. ld_shlibs_CXX=no
  11742. ;;
  11743. esac
  11744. ;;
  11745. solaris*)
  11746. case $cc_basename in
  11747. CC* | sunCC*)
  11748. # Sun C++ 4.2, 5.x and Centerline C++
  11749. archive_cmds_need_lc_CXX=yes
  11750. no_undefined_flag_CXX=' -zdefs'
  11751. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11752. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11753. $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'
  11754. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11755. hardcode_shlibpath_var_CXX=no
  11756. case $host_os in
  11757. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11758. *)
  11759. # The compiler driver will combine and reorder linker options,
  11760. # but understands `-z linker_flag'.
  11761. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11762. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11763. ;;
  11764. esac
  11765. link_all_deplibs_CXX=yes
  11766. output_verbose_link_cmd='func_echo_all'
  11767. # Archives containing C++ object files must be created using
  11768. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11769. # necessary to make sure instantiated templates are included
  11770. # in the archive.
  11771. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11772. ;;
  11773. gcx*)
  11774. # Green Hills C++ Compiler
  11775. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11776. # The C++ compiler must be used to create the archive.
  11777. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11778. ;;
  11779. *)
  11780. # GNU C++ compiler with Solaris linker
  11781. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11782. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11783. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11784. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11785. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11786. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11787. # Commands to make compiler produce verbose output that lists
  11788. # what "hidden" libraries, object files and flags are used when
  11789. # linking a shared library.
  11790. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11791. else
  11792. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11793. # platform.
  11794. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11795. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11796. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11797. # Commands to make compiler produce verbose output that lists
  11798. # what "hidden" libraries, object files and flags are used when
  11799. # linking a shared library.
  11800. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11801. fi
  11802. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11803. case $host_os in
  11804. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11805. *)
  11806. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11807. ;;
  11808. esac
  11809. fi
  11810. ;;
  11811. esac
  11812. ;;
  11813. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11814. no_undefined_flag_CXX='${wl}-z,text'
  11815. archive_cmds_need_lc_CXX=no
  11816. hardcode_shlibpath_var_CXX=no
  11817. runpath_var='LD_RUN_PATH'
  11818. case $cc_basename in
  11819. CC*)
  11820. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11821. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11822. ;;
  11823. *)
  11824. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11825. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11826. ;;
  11827. esac
  11828. ;;
  11829. sysv5* | sco3.2v5* | sco5v6*)
  11830. # Note: We can NOT use -z defs as we might desire, because we do not
  11831. # link with -lc, and that would cause any symbols used from libc to
  11832. # always be unresolved, which means just about no library would
  11833. # ever link correctly. If we're not using GNU ld we use -z text
  11834. # though, which does catch some bad symbols but isn't as heavy-handed
  11835. # as -z defs.
  11836. no_undefined_flag_CXX='${wl}-z,text'
  11837. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11838. archive_cmds_need_lc_CXX=no
  11839. hardcode_shlibpath_var_CXX=no
  11840. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11841. hardcode_libdir_separator_CXX=':'
  11842. link_all_deplibs_CXX=yes
  11843. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11844. runpath_var='LD_RUN_PATH'
  11845. case $cc_basename in
  11846. CC*)
  11847. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11848. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11849. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11850. '"$old_archive_cmds_CXX"
  11851. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11852. '"$reload_cmds_CXX"
  11853. ;;
  11854. *)
  11855. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11856. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11857. ;;
  11858. esac
  11859. ;;
  11860. tandem*)
  11861. case $cc_basename in
  11862. NCC*)
  11863. # NonStop-UX NCC 3.20
  11864. # FIXME: insert proper C++ library support
  11865. ld_shlibs_CXX=no
  11866. ;;
  11867. *)
  11868. # FIXME: insert proper C++ library support
  11869. ld_shlibs_CXX=no
  11870. ;;
  11871. esac
  11872. ;;
  11873. vxworks*)
  11874. # FIXME: insert proper C++ library support
  11875. ld_shlibs_CXX=no
  11876. ;;
  11877. *)
  11878. # FIXME: insert proper C++ library support
  11879. ld_shlibs_CXX=no
  11880. ;;
  11881. esac
  11882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11883. $as_echo "$ld_shlibs_CXX" >&6; }
  11884. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11885. GCC_CXX="$GXX"
  11886. LD_CXX="$LD"
  11887. ## CAVEAT EMPTOR:
  11888. ## There is no encapsulation within the following macros, do not change
  11889. ## the running order or otherwise move them around unless you know exactly
  11890. ## what you are doing...
  11891. # Dependencies to place before and after the object being linked:
  11892. predep_objects_CXX=
  11893. postdep_objects_CXX=
  11894. predeps_CXX=
  11895. postdeps_CXX=
  11896. compiler_lib_search_path_CXX=
  11897. cat > conftest.$ac_ext <<_LT_EOF
  11898. class Foo
  11899. {
  11900. public:
  11901. Foo (void) { a = 0; }
  11902. private:
  11903. int a;
  11904. };
  11905. _LT_EOF
  11906. _lt_libdeps_save_CFLAGS=$CFLAGS
  11907. case "$CC $CFLAGS " in #(
  11908. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11909. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11910. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11911. esac
  11912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11913. (eval $ac_compile) 2>&5
  11914. ac_status=$?
  11915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11916. test $ac_status = 0; }; then
  11917. # Parse the compiler output and extract the necessary
  11918. # objects, libraries and library flags.
  11919. # Sentinel used to keep track of whether or not we are before
  11920. # the conftest object file.
  11921. pre_test_object_deps_done=no
  11922. for p in `eval "$output_verbose_link_cmd"`; do
  11923. case ${prev}${p} in
  11924. -L* | -R* | -l*)
  11925. # Some compilers place space between "-{L,R}" and the path.
  11926. # Remove the space.
  11927. if test $p = "-L" ||
  11928. test $p = "-R"; then
  11929. prev=$p
  11930. continue
  11931. fi
  11932. # Expand the sysroot to ease extracting the directories later.
  11933. if test -z "$prev"; then
  11934. case $p in
  11935. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11936. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11937. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11938. esac
  11939. fi
  11940. case $p in
  11941. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11942. esac
  11943. if test "$pre_test_object_deps_done" = no; then
  11944. case ${prev} in
  11945. -L | -R)
  11946. # Internal compiler library paths should come after those
  11947. # provided the user. The postdeps already come after the
  11948. # user supplied libs so there is no need to process them.
  11949. if test -z "$compiler_lib_search_path_CXX"; then
  11950. compiler_lib_search_path_CXX="${prev}${p}"
  11951. else
  11952. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11953. fi
  11954. ;;
  11955. # The "-l" case would never come before the object being
  11956. # linked, so don't bother handling this case.
  11957. esac
  11958. else
  11959. if test -z "$postdeps_CXX"; then
  11960. postdeps_CXX="${prev}${p}"
  11961. else
  11962. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11963. fi
  11964. fi
  11965. prev=
  11966. ;;
  11967. *.lto.$objext) ;; # Ignore GCC LTO objects
  11968. *.$objext)
  11969. # This assumes that the test object file only shows up
  11970. # once in the compiler output.
  11971. if test "$p" = "conftest.$objext"; then
  11972. pre_test_object_deps_done=yes
  11973. continue
  11974. fi
  11975. if test "$pre_test_object_deps_done" = no; then
  11976. if test -z "$predep_objects_CXX"; then
  11977. predep_objects_CXX="$p"
  11978. else
  11979. predep_objects_CXX="$predep_objects_CXX $p"
  11980. fi
  11981. else
  11982. if test -z "$postdep_objects_CXX"; then
  11983. postdep_objects_CXX="$p"
  11984. else
  11985. postdep_objects_CXX="$postdep_objects_CXX $p"
  11986. fi
  11987. fi
  11988. ;;
  11989. *) ;; # Ignore the rest.
  11990. esac
  11991. done
  11992. # Clean up.
  11993. rm -f a.out a.exe
  11994. else
  11995. echo "libtool.m4: error: problem compiling CXX test program"
  11996. fi
  11997. $RM -f confest.$objext
  11998. CFLAGS=$_lt_libdeps_save_CFLAGS
  11999. # PORTME: override above test on systems where it is broken
  12000. case $host_os in
  12001. interix[3-9]*)
  12002. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12003. # hack all around it, let's just trust "g++" to DTRT.
  12004. predep_objects_CXX=
  12005. postdep_objects_CXX=
  12006. postdeps_CXX=
  12007. ;;
  12008. linux*)
  12009. case `$CC -V 2>&1 | sed 5q` in
  12010. *Sun\ C*)
  12011. # Sun C++ 5.9
  12012. # The more standards-conforming stlport4 library is
  12013. # incompatible with the Cstd library. Avoid specifying
  12014. # it if it's in CXXFLAGS. Ignore libCrun as
  12015. # -library=stlport4 depends on it.
  12016. case " $CXX $CXXFLAGS " in
  12017. *" -library=stlport4 "*)
  12018. solaris_use_stlport4=yes
  12019. ;;
  12020. esac
  12021. if test "$solaris_use_stlport4" != yes; then
  12022. postdeps_CXX='-library=Cstd -library=Crun'
  12023. fi
  12024. ;;
  12025. esac
  12026. ;;
  12027. solaris*)
  12028. case $cc_basename in
  12029. CC* | sunCC*)
  12030. # The more standards-conforming stlport4 library is
  12031. # incompatible with the Cstd library. Avoid specifying
  12032. # it if it's in CXXFLAGS. Ignore libCrun as
  12033. # -library=stlport4 depends on it.
  12034. case " $CXX $CXXFLAGS " in
  12035. *" -library=stlport4 "*)
  12036. solaris_use_stlport4=yes
  12037. ;;
  12038. esac
  12039. # Adding this requires a known-good setup of shared libraries for
  12040. # Sun compiler versions before 5.6, else PIC objects from an old
  12041. # archive will be linked into the output, leading to subtle bugs.
  12042. if test "$solaris_use_stlport4" != yes; then
  12043. postdeps_CXX='-library=Cstd -library=Crun'
  12044. fi
  12045. ;;
  12046. esac
  12047. ;;
  12048. esac
  12049. case " $postdeps_CXX " in
  12050. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12051. esac
  12052. compiler_lib_search_dirs_CXX=
  12053. if test -n "${compiler_lib_search_path_CXX}"; then
  12054. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12055. fi
  12056. lt_prog_compiler_wl_CXX=
  12057. lt_prog_compiler_pic_CXX=
  12058. lt_prog_compiler_static_CXX=
  12059. # C++ specific cases for pic, static, wl, etc.
  12060. if test "$GXX" = yes; then
  12061. lt_prog_compiler_wl_CXX='-Wl,'
  12062. lt_prog_compiler_static_CXX='-static'
  12063. case $host_os in
  12064. aix*)
  12065. # All AIX code is PIC.
  12066. if test "$host_cpu" = ia64; then
  12067. # AIX 5 now supports IA64 processor
  12068. lt_prog_compiler_static_CXX='-Bstatic'
  12069. fi
  12070. ;;
  12071. amigaos*)
  12072. case $host_cpu in
  12073. powerpc)
  12074. # see comment about AmigaOS4 .so support
  12075. lt_prog_compiler_pic_CXX='-fPIC'
  12076. ;;
  12077. m68k)
  12078. # FIXME: we need at least 68020 code to build shared libraries, but
  12079. # adding the `-m68020' flag to GCC prevents building anything better,
  12080. # like `-m68040'.
  12081. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12082. ;;
  12083. esac
  12084. ;;
  12085. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12086. # PIC is the default for these OSes.
  12087. ;;
  12088. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12089. # This hack is so that the source file can tell whether it is being
  12090. # built for inclusion in a dll (and should export symbols for example).
  12091. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12092. # (--disable-auto-import) libraries
  12093. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12094. ;;
  12095. darwin* | rhapsody*)
  12096. # PIC is the default on this platform
  12097. # Common symbols not allowed in MH_DYLIB files
  12098. lt_prog_compiler_pic_CXX='-fno-common'
  12099. ;;
  12100. *djgpp*)
  12101. # DJGPP does not support shared libraries at all
  12102. lt_prog_compiler_pic_CXX=
  12103. ;;
  12104. haiku*)
  12105. # PIC is the default for Haiku.
  12106. # The "-static" flag exists, but is broken.
  12107. lt_prog_compiler_static_CXX=
  12108. ;;
  12109. interix[3-9]*)
  12110. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12111. # Instead, we relocate shared libraries at runtime.
  12112. ;;
  12113. sysv4*MP*)
  12114. if test -d /usr/nec; then
  12115. lt_prog_compiler_pic_CXX=-Kconform_pic
  12116. fi
  12117. ;;
  12118. hpux*)
  12119. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12120. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12121. # sets the default TLS model and affects inlining.
  12122. case $host_cpu in
  12123. hppa*64*)
  12124. ;;
  12125. *)
  12126. lt_prog_compiler_pic_CXX='-fPIC'
  12127. ;;
  12128. esac
  12129. ;;
  12130. *qnx* | *nto*)
  12131. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12132. # it will coredump.
  12133. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12134. ;;
  12135. *)
  12136. lt_prog_compiler_pic_CXX='-fPIC'
  12137. ;;
  12138. esac
  12139. else
  12140. case $host_os in
  12141. aix[4-9]*)
  12142. # All AIX code is PIC.
  12143. if test "$host_cpu" = ia64; then
  12144. # AIX 5 now supports IA64 processor
  12145. lt_prog_compiler_static_CXX='-Bstatic'
  12146. else
  12147. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12148. fi
  12149. ;;
  12150. chorus*)
  12151. case $cc_basename in
  12152. cxch68*)
  12153. # Green Hills C++ Compiler
  12154. # _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"
  12155. ;;
  12156. esac
  12157. ;;
  12158. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12159. # This hack is so that the source file can tell whether it is being
  12160. # built for inclusion in a dll (and should export symbols for example).
  12161. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12162. ;;
  12163. dgux*)
  12164. case $cc_basename in
  12165. ec++*)
  12166. lt_prog_compiler_pic_CXX='-KPIC'
  12167. ;;
  12168. ghcx*)
  12169. # Green Hills C++ Compiler
  12170. lt_prog_compiler_pic_CXX='-pic'
  12171. ;;
  12172. *)
  12173. ;;
  12174. esac
  12175. ;;
  12176. freebsd* | dragonfly*)
  12177. # FreeBSD uses GNU C++
  12178. ;;
  12179. hpux9* | hpux10* | hpux11*)
  12180. case $cc_basename in
  12181. CC*)
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12184. if test "$host_cpu" != ia64; then
  12185. lt_prog_compiler_pic_CXX='+Z'
  12186. fi
  12187. ;;
  12188. aCC*)
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12191. case $host_cpu in
  12192. hppa*64*|ia64*)
  12193. # +Z the default
  12194. ;;
  12195. *)
  12196. lt_prog_compiler_pic_CXX='+Z'
  12197. ;;
  12198. esac
  12199. ;;
  12200. *)
  12201. ;;
  12202. esac
  12203. ;;
  12204. interix*)
  12205. # This is c89, which is MS Visual C++ (no shared libs)
  12206. # Anyone wants to do a port?
  12207. ;;
  12208. irix5* | irix6* | nonstopux*)
  12209. case $cc_basename in
  12210. CC*)
  12211. lt_prog_compiler_wl_CXX='-Wl,'
  12212. lt_prog_compiler_static_CXX='-non_shared'
  12213. # CC pic flag -KPIC is the default.
  12214. ;;
  12215. *)
  12216. ;;
  12217. esac
  12218. ;;
  12219. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12220. case $cc_basename in
  12221. KCC*)
  12222. # KAI C++ Compiler
  12223. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12224. lt_prog_compiler_pic_CXX='-fPIC'
  12225. ;;
  12226. ecpc* )
  12227. # old Intel C++ for x86_64 which still supported -KPIC.
  12228. lt_prog_compiler_wl_CXX='-Wl,'
  12229. lt_prog_compiler_pic_CXX='-KPIC'
  12230. lt_prog_compiler_static_CXX='-static'
  12231. ;;
  12232. icpc* )
  12233. # Intel C++, used to be incompatible with GCC.
  12234. # ICC 10 doesn't accept -KPIC any more.
  12235. lt_prog_compiler_wl_CXX='-Wl,'
  12236. lt_prog_compiler_pic_CXX='-fPIC'
  12237. lt_prog_compiler_static_CXX='-static'
  12238. ;;
  12239. pgCC* | pgcpp*)
  12240. # Portland Group C++ compiler
  12241. lt_prog_compiler_wl_CXX='-Wl,'
  12242. lt_prog_compiler_pic_CXX='-fpic'
  12243. lt_prog_compiler_static_CXX='-Bstatic'
  12244. ;;
  12245. cxx*)
  12246. # Compaq C++
  12247. # Make sure the PIC flag is empty. It appears that all Alpha
  12248. # Linux and Compaq Tru64 Unix objects are PIC.
  12249. lt_prog_compiler_pic_CXX=
  12250. lt_prog_compiler_static_CXX='-non_shared'
  12251. ;;
  12252. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12253. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. lt_prog_compiler_pic_CXX='-qpic'
  12256. lt_prog_compiler_static_CXX='-qstaticlink'
  12257. ;;
  12258. *)
  12259. case `$CC -V 2>&1 | sed 5q` in
  12260. *Sun\ C*)
  12261. # Sun C++ 5.9
  12262. lt_prog_compiler_pic_CXX='-KPIC'
  12263. lt_prog_compiler_static_CXX='-Bstatic'
  12264. lt_prog_compiler_wl_CXX='-Qoption ld '
  12265. ;;
  12266. esac
  12267. ;;
  12268. esac
  12269. ;;
  12270. lynxos*)
  12271. ;;
  12272. m88k*)
  12273. ;;
  12274. mvs*)
  12275. case $cc_basename in
  12276. cxx*)
  12277. lt_prog_compiler_pic_CXX='-W c,exportall'
  12278. ;;
  12279. *)
  12280. ;;
  12281. esac
  12282. ;;
  12283. netbsd*)
  12284. ;;
  12285. *qnx* | *nto*)
  12286. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12287. # it will coredump.
  12288. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12289. ;;
  12290. osf3* | osf4* | osf5*)
  12291. case $cc_basename in
  12292. KCC*)
  12293. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12294. ;;
  12295. RCC*)
  12296. # Rational C++ 2.4.1
  12297. lt_prog_compiler_pic_CXX='-pic'
  12298. ;;
  12299. cxx*)
  12300. # Digital/Compaq C++
  12301. lt_prog_compiler_wl_CXX='-Wl,'
  12302. # Make sure the PIC flag is empty. It appears that all Alpha
  12303. # Linux and Compaq Tru64 Unix objects are PIC.
  12304. lt_prog_compiler_pic_CXX=
  12305. lt_prog_compiler_static_CXX='-non_shared'
  12306. ;;
  12307. *)
  12308. ;;
  12309. esac
  12310. ;;
  12311. psos*)
  12312. ;;
  12313. solaris*)
  12314. case $cc_basename in
  12315. CC* | sunCC*)
  12316. # Sun C++ 4.2, 5.x and Centerline C++
  12317. lt_prog_compiler_pic_CXX='-KPIC'
  12318. lt_prog_compiler_static_CXX='-Bstatic'
  12319. lt_prog_compiler_wl_CXX='-Qoption ld '
  12320. ;;
  12321. gcx*)
  12322. # Green Hills C++ Compiler
  12323. lt_prog_compiler_pic_CXX='-PIC'
  12324. ;;
  12325. *)
  12326. ;;
  12327. esac
  12328. ;;
  12329. sunos4*)
  12330. case $cc_basename in
  12331. CC*)
  12332. # Sun C++ 4.x
  12333. lt_prog_compiler_pic_CXX='-pic'
  12334. lt_prog_compiler_static_CXX='-Bstatic'
  12335. ;;
  12336. lcc*)
  12337. # Lucid
  12338. lt_prog_compiler_pic_CXX='-pic'
  12339. ;;
  12340. *)
  12341. ;;
  12342. esac
  12343. ;;
  12344. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12345. case $cc_basename in
  12346. CC*)
  12347. lt_prog_compiler_wl_CXX='-Wl,'
  12348. lt_prog_compiler_pic_CXX='-KPIC'
  12349. lt_prog_compiler_static_CXX='-Bstatic'
  12350. ;;
  12351. esac
  12352. ;;
  12353. tandem*)
  12354. case $cc_basename in
  12355. NCC*)
  12356. # NonStop-UX NCC 3.20
  12357. lt_prog_compiler_pic_CXX='-KPIC'
  12358. ;;
  12359. *)
  12360. ;;
  12361. esac
  12362. ;;
  12363. vxworks*)
  12364. ;;
  12365. *)
  12366. lt_prog_compiler_can_build_shared_CXX=no
  12367. ;;
  12368. esac
  12369. fi
  12370. case $host_os in
  12371. # For platforms which do not support PIC, -DPIC is meaningless:
  12372. *djgpp*)
  12373. lt_prog_compiler_pic_CXX=
  12374. ;;
  12375. *)
  12376. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12377. ;;
  12378. esac
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12380. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12381. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12382. $as_echo_n "(cached) " >&6
  12383. else
  12384. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12385. fi
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12387. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12388. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12389. #
  12390. # Check to make sure the PIC flag actually works.
  12391. #
  12392. if test -n "$lt_prog_compiler_pic_CXX"; then
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12394. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12395. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12396. $as_echo_n "(cached) " >&6
  12397. else
  12398. lt_cv_prog_compiler_pic_works_CXX=no
  12399. ac_outfile=conftest.$ac_objext
  12400. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12401. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12402. # Insert the option either (1) after the last *FLAGS variable, or
  12403. # (2) before a word containing "conftest.", or (3) at the end.
  12404. # Note that $ac_compile itself does not contain backslashes and begins
  12405. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12406. # The option is referenced via a variable to avoid confusing sed.
  12407. lt_compile=`echo "$ac_compile" | $SED \
  12408. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12409. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12410. -e 's:$: $lt_compiler_flag:'`
  12411. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12412. (eval "$lt_compile" 2>conftest.err)
  12413. ac_status=$?
  12414. cat conftest.err >&5
  12415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12416. if (exit $ac_status) && test -s "$ac_outfile"; then
  12417. # The compiler can only warn and ignore the option if not recognized
  12418. # So say no if there are warnings other than the usual output.
  12419. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12420. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12421. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12422. lt_cv_prog_compiler_pic_works_CXX=yes
  12423. fi
  12424. fi
  12425. $RM conftest*
  12426. fi
  12427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12428. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12429. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12430. case $lt_prog_compiler_pic_CXX in
  12431. "" | " "*) ;;
  12432. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12433. esac
  12434. else
  12435. lt_prog_compiler_pic_CXX=
  12436. lt_prog_compiler_can_build_shared_CXX=no
  12437. fi
  12438. fi
  12439. #
  12440. # Check to make sure the static flag actually works.
  12441. #
  12442. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12444. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12445. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12446. $as_echo_n "(cached) " >&6
  12447. else
  12448. lt_cv_prog_compiler_static_works_CXX=no
  12449. save_LDFLAGS="$LDFLAGS"
  12450. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12451. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12452. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12453. # The linker can only warn and ignore the option if not recognized
  12454. # So say no if there are warnings
  12455. if test -s conftest.err; then
  12456. # Append any errors to the config.log.
  12457. cat conftest.err 1>&5
  12458. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12459. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12460. if diff conftest.exp conftest.er2 >/dev/null; then
  12461. lt_cv_prog_compiler_static_works_CXX=yes
  12462. fi
  12463. else
  12464. lt_cv_prog_compiler_static_works_CXX=yes
  12465. fi
  12466. fi
  12467. $RM -r conftest*
  12468. LDFLAGS="$save_LDFLAGS"
  12469. fi
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12471. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12472. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12473. :
  12474. else
  12475. lt_prog_compiler_static_CXX=
  12476. fi
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12478. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12479. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12480. $as_echo_n "(cached) " >&6
  12481. else
  12482. lt_cv_prog_compiler_c_o_CXX=no
  12483. $RM -r conftest 2>/dev/null
  12484. mkdir conftest
  12485. cd conftest
  12486. mkdir out
  12487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12488. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12489. # Insert the option either (1) after the last *FLAGS variable, or
  12490. # (2) before a word containing "conftest.", or (3) at the end.
  12491. # Note that $ac_compile itself does not contain backslashes and begins
  12492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12493. lt_compile=`echo "$ac_compile" | $SED \
  12494. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12495. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12496. -e 's:$: $lt_compiler_flag:'`
  12497. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12498. (eval "$lt_compile" 2>out/conftest.err)
  12499. ac_status=$?
  12500. cat out/conftest.err >&5
  12501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12502. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12503. then
  12504. # The compiler can only warn and ignore the option if not recognized
  12505. # So say no if there are warnings
  12506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12507. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12508. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12509. lt_cv_prog_compiler_c_o_CXX=yes
  12510. fi
  12511. fi
  12512. chmod u+w . 2>&5
  12513. $RM conftest*
  12514. # SGI C++ compiler will create directory out/ii_files/ for
  12515. # template instantiation
  12516. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12517. $RM out/* && rmdir out
  12518. cd ..
  12519. $RM -r conftest
  12520. $RM conftest*
  12521. fi
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12523. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12525. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12526. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12527. $as_echo_n "(cached) " >&6
  12528. else
  12529. lt_cv_prog_compiler_c_o_CXX=no
  12530. $RM -r conftest 2>/dev/null
  12531. mkdir conftest
  12532. cd conftest
  12533. mkdir out
  12534. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12535. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12536. # Insert the option either (1) after the last *FLAGS variable, or
  12537. # (2) before a word containing "conftest.", or (3) at the end.
  12538. # Note that $ac_compile itself does not contain backslashes and begins
  12539. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12540. lt_compile=`echo "$ac_compile" | $SED \
  12541. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12542. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12543. -e 's:$: $lt_compiler_flag:'`
  12544. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12545. (eval "$lt_compile" 2>out/conftest.err)
  12546. ac_status=$?
  12547. cat out/conftest.err >&5
  12548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12549. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12550. then
  12551. # The compiler can only warn and ignore the option if not recognized
  12552. # So say no if there are warnings
  12553. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12554. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12555. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12556. lt_cv_prog_compiler_c_o_CXX=yes
  12557. fi
  12558. fi
  12559. chmod u+w . 2>&5
  12560. $RM conftest*
  12561. # SGI C++ compiler will create directory out/ii_files/ for
  12562. # template instantiation
  12563. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12564. $RM out/* && rmdir out
  12565. cd ..
  12566. $RM -r conftest
  12567. $RM conftest*
  12568. fi
  12569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12570. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12571. hard_links="nottested"
  12572. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12573. # do not overwrite the value of need_locks provided by the user
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12575. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12576. hard_links=yes
  12577. $RM conftest*
  12578. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12579. touch conftest.a
  12580. ln conftest.a conftest.b 2>&5 || hard_links=no
  12581. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12583. $as_echo "$hard_links" >&6; }
  12584. if test "$hard_links" = no; then
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12586. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12587. need_locks=warn
  12588. fi
  12589. else
  12590. need_locks=no
  12591. fi
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12593. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12594. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12595. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12596. case $host_os in
  12597. aix[4-9]*)
  12598. # If we're using GNU nm, then we don't want the "-C" option.
  12599. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12600. # Also, AIX nm treats weak defined symbols like other global defined
  12601. # symbols, whereas GNU nm marks them as "W".
  12602. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12603. 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'
  12604. else
  12605. 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'
  12606. fi
  12607. ;;
  12608. pw32*)
  12609. export_symbols_cmds_CXX="$ltdll_cmds"
  12610. ;;
  12611. cygwin* | mingw* | cegcc*)
  12612. case $cc_basename in
  12613. cl*)
  12614. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12615. ;;
  12616. *)
  12617. 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'
  12618. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12619. ;;
  12620. esac
  12621. ;;
  12622. *)
  12623. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12624. ;;
  12625. esac
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12627. $as_echo "$ld_shlibs_CXX" >&6; }
  12628. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12629. with_gnu_ld_CXX=$with_gnu_ld
  12630. #
  12631. # Do we need to explicitly link libc?
  12632. #
  12633. case "x$archive_cmds_need_lc_CXX" in
  12634. x|xyes)
  12635. # Assume -lc should be added
  12636. archive_cmds_need_lc_CXX=yes
  12637. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12638. case $archive_cmds_CXX in
  12639. *'~'*)
  12640. # FIXME: we may have to deal with multi-command sequences.
  12641. ;;
  12642. '$CC '*)
  12643. # Test whether the compiler implicitly links with -lc since on some
  12644. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12645. # to ld, don't add -lc before -lgcc.
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12647. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12648. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12649. $as_echo_n "(cached) " >&6
  12650. else
  12651. $RM conftest*
  12652. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12654. (eval $ac_compile) 2>&5
  12655. ac_status=$?
  12656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12657. test $ac_status = 0; } 2>conftest.err; then
  12658. soname=conftest
  12659. lib=conftest
  12660. libobjs=conftest.$ac_objext
  12661. deplibs=
  12662. wl=$lt_prog_compiler_wl_CXX
  12663. pic_flag=$lt_prog_compiler_pic_CXX
  12664. compiler_flags=-v
  12665. linker_flags=-v
  12666. verstring=
  12667. output_objdir=.
  12668. libname=conftest
  12669. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12670. allow_undefined_flag_CXX=
  12671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12672. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12673. ac_status=$?
  12674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12675. test $ac_status = 0; }
  12676. then
  12677. lt_cv_archive_cmds_need_lc_CXX=no
  12678. else
  12679. lt_cv_archive_cmds_need_lc_CXX=yes
  12680. fi
  12681. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12682. else
  12683. cat conftest.err 1>&5
  12684. fi
  12685. $RM conftest*
  12686. fi
  12687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12688. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12689. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12690. ;;
  12691. esac
  12692. fi
  12693. ;;
  12694. esac
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12696. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12697. library_names_spec=
  12698. libname_spec='lib$name'
  12699. soname_spec=
  12700. shrext_cmds=".so"
  12701. postinstall_cmds=
  12702. postuninstall_cmds=
  12703. finish_cmds=
  12704. finish_eval=
  12705. shlibpath_var=
  12706. shlibpath_overrides_runpath=unknown
  12707. version_type=none
  12708. dynamic_linker="$host_os ld.so"
  12709. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12710. need_lib_prefix=unknown
  12711. hardcode_into_libs=no
  12712. # when you set need_version to no, make sure it does not cause -set_version
  12713. # flags to be left without arguments
  12714. need_version=unknown
  12715. case $host_os in
  12716. aix3*)
  12717. version_type=linux # correct to gnu/linux during the next big refactor
  12718. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12719. shlibpath_var=LIBPATH
  12720. # AIX 3 has no versioning support, so we append a major version to the name.
  12721. soname_spec='${libname}${release}${shared_ext}$major'
  12722. ;;
  12723. aix[4-9]*)
  12724. version_type=linux # correct to gnu/linux during the next big refactor
  12725. need_lib_prefix=no
  12726. need_version=no
  12727. hardcode_into_libs=yes
  12728. if test "$host_cpu" = ia64; then
  12729. # AIX 5 supports IA64
  12730. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12731. shlibpath_var=LD_LIBRARY_PATH
  12732. else
  12733. # With GCC up to 2.95.x, collect2 would create an import file
  12734. # for dependence libraries. The import file would start with
  12735. # the line `#! .'. This would cause the generated library to
  12736. # depend on `.', always an invalid library. This was fixed in
  12737. # development snapshots of GCC prior to 3.0.
  12738. case $host_os in
  12739. aix4 | aix4.[01] | aix4.[01].*)
  12740. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12741. echo ' yes '
  12742. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12743. :
  12744. else
  12745. can_build_shared=no
  12746. fi
  12747. ;;
  12748. esac
  12749. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12750. # soname into executable. Probably we can add versioning support to
  12751. # collect2, so additional links can be useful in future.
  12752. if test "$aix_use_runtimelinking" = yes; then
  12753. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12754. # instead of lib<name>.a to let people know that these are not
  12755. # typical AIX shared libraries.
  12756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12757. else
  12758. # We preserve .a as extension for shared libraries through AIX4.2
  12759. # and later when we are not doing run time linking.
  12760. library_names_spec='${libname}${release}.a $libname.a'
  12761. soname_spec='${libname}${release}${shared_ext}$major'
  12762. fi
  12763. shlibpath_var=LIBPATH
  12764. fi
  12765. ;;
  12766. amigaos*)
  12767. case $host_cpu in
  12768. powerpc)
  12769. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12770. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12772. ;;
  12773. m68k)
  12774. library_names_spec='$libname.ixlibrary $libname.a'
  12775. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12776. 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'
  12777. ;;
  12778. esac
  12779. ;;
  12780. beos*)
  12781. library_names_spec='${libname}${shared_ext}'
  12782. dynamic_linker="$host_os ld.so"
  12783. shlibpath_var=LIBRARY_PATH
  12784. ;;
  12785. bsdi[45]*)
  12786. version_type=linux # correct to gnu/linux during the next big refactor
  12787. need_version=no
  12788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12789. soname_spec='${libname}${release}${shared_ext}$major'
  12790. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12791. shlibpath_var=LD_LIBRARY_PATH
  12792. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12793. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12794. # the default ld.so.conf also contains /usr/contrib/lib and
  12795. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12796. # libtool to hard-code these into programs
  12797. ;;
  12798. cygwin* | mingw* | pw32* | cegcc*)
  12799. version_type=windows
  12800. shrext_cmds=".dll"
  12801. need_version=no
  12802. need_lib_prefix=no
  12803. case $GCC,$cc_basename in
  12804. yes,*)
  12805. # gcc
  12806. library_names_spec='$libname.dll.a'
  12807. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12808. postinstall_cmds='base_file=`basename \${file}`~
  12809. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12810. dldir=$destdir/`dirname \$dlpath`~
  12811. test -d \$dldir || mkdir -p \$dldir~
  12812. $install_prog $dir/$dlname \$dldir/$dlname~
  12813. chmod a+x \$dldir/$dlname~
  12814. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12815. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12816. fi'
  12817. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12818. dlpath=$dir/\$dldll~
  12819. $RM \$dlpath'
  12820. shlibpath_overrides_runpath=yes
  12821. case $host_os in
  12822. cygwin*)
  12823. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12824. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12825. ;;
  12826. mingw* | cegcc*)
  12827. # MinGW DLLs use traditional 'lib' prefix
  12828. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12829. ;;
  12830. pw32*)
  12831. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12832. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12833. ;;
  12834. esac
  12835. dynamic_linker='Win32 ld.exe'
  12836. ;;
  12837. *,cl*)
  12838. # Native MSVC
  12839. libname_spec='$name'
  12840. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12841. library_names_spec='${libname}.dll.lib'
  12842. case $build_os in
  12843. mingw*)
  12844. sys_lib_search_path_spec=
  12845. lt_save_ifs=$IFS
  12846. IFS=';'
  12847. for lt_path in $LIB
  12848. do
  12849. IFS=$lt_save_ifs
  12850. # Let DOS variable expansion print the short 8.3 style file name.
  12851. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12852. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12853. done
  12854. IFS=$lt_save_ifs
  12855. # Convert to MSYS style.
  12856. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12857. ;;
  12858. cygwin*)
  12859. # Convert to unix form, then to dos form, then back to unix form
  12860. # but this time dos style (no spaces!) so that the unix form looks
  12861. # like /cygdrive/c/PROGRA~1:/cygdr...
  12862. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12863. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12864. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12865. ;;
  12866. *)
  12867. sys_lib_search_path_spec="$LIB"
  12868. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12869. # It is most probably a Windows format PATH.
  12870. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12871. else
  12872. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12873. fi
  12874. # FIXME: find the short name or the path components, as spaces are
  12875. # common. (e.g. "Program Files" -> "PROGRA~1")
  12876. ;;
  12877. esac
  12878. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12879. postinstall_cmds='base_file=`basename \${file}`~
  12880. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12881. dldir=$destdir/`dirname \$dlpath`~
  12882. test -d \$dldir || mkdir -p \$dldir~
  12883. $install_prog $dir/$dlname \$dldir/$dlname'
  12884. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12885. dlpath=$dir/\$dldll~
  12886. $RM \$dlpath'
  12887. shlibpath_overrides_runpath=yes
  12888. dynamic_linker='Win32 link.exe'
  12889. ;;
  12890. *)
  12891. # Assume MSVC wrapper
  12892. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12893. dynamic_linker='Win32 ld.exe'
  12894. ;;
  12895. esac
  12896. # FIXME: first we should search . and the directory the executable is in
  12897. shlibpath_var=PATH
  12898. ;;
  12899. darwin* | rhapsody*)
  12900. dynamic_linker="$host_os dyld"
  12901. version_type=darwin
  12902. need_lib_prefix=no
  12903. need_version=no
  12904. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12905. soname_spec='${libname}${release}${major}$shared_ext'
  12906. shlibpath_overrides_runpath=yes
  12907. shlibpath_var=DYLD_LIBRARY_PATH
  12908. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12909. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12910. ;;
  12911. dgux*)
  12912. version_type=linux # correct to gnu/linux during the next big refactor
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12916. soname_spec='${libname}${release}${shared_ext}$major'
  12917. shlibpath_var=LD_LIBRARY_PATH
  12918. ;;
  12919. freebsd* | dragonfly*)
  12920. # DragonFly does not have aout. When/if they implement a new
  12921. # versioning mechanism, adjust this.
  12922. if test -x /usr/bin/objformat; then
  12923. objformat=`/usr/bin/objformat`
  12924. else
  12925. case $host_os in
  12926. freebsd[23].*) objformat=aout ;;
  12927. *) objformat=elf ;;
  12928. esac
  12929. fi
  12930. version_type=freebsd-$objformat
  12931. case $version_type in
  12932. freebsd-elf*)
  12933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12934. need_version=no
  12935. need_lib_prefix=no
  12936. ;;
  12937. freebsd-*)
  12938. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12939. need_version=yes
  12940. ;;
  12941. esac
  12942. shlibpath_var=LD_LIBRARY_PATH
  12943. case $host_os in
  12944. freebsd2.*)
  12945. shlibpath_overrides_runpath=yes
  12946. ;;
  12947. freebsd3.[01]* | freebsdelf3.[01]*)
  12948. shlibpath_overrides_runpath=yes
  12949. hardcode_into_libs=yes
  12950. ;;
  12951. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12952. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12953. shlibpath_overrides_runpath=no
  12954. hardcode_into_libs=yes
  12955. ;;
  12956. *) # from 4.6 on, and DragonFly
  12957. shlibpath_overrides_runpath=yes
  12958. hardcode_into_libs=yes
  12959. ;;
  12960. esac
  12961. ;;
  12962. gnu*)
  12963. version_type=linux # correct to gnu/linux during the next big refactor
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. shlibpath_overrides_runpath=no
  12970. hardcode_into_libs=yes
  12971. ;;
  12972. haiku*)
  12973. version_type=linux # correct to gnu/linux during the next big refactor
  12974. need_lib_prefix=no
  12975. need_version=no
  12976. dynamic_linker="$host_os runtime_loader"
  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. shlibpath_var=LIBRARY_PATH
  12980. shlibpath_overrides_runpath=yes
  12981. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12982. hardcode_into_libs=yes
  12983. ;;
  12984. hpux9* | hpux10* | hpux11*)
  12985. # Give a soname corresponding to the major version so that dld.sl refuses to
  12986. # link against other versions.
  12987. version_type=sunos
  12988. need_lib_prefix=no
  12989. need_version=no
  12990. case $host_cpu in
  12991. ia64*)
  12992. shrext_cmds='.so'
  12993. hardcode_into_libs=yes
  12994. dynamic_linker="$host_os dld.so"
  12995. shlibpath_var=LD_LIBRARY_PATH
  12996. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. if test "X$HPUX_IA64_MODE" = X32; then
  13000. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13001. else
  13002. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13003. fi
  13004. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13005. ;;
  13006. hppa*64*)
  13007. shrext_cmds='.sl'
  13008. hardcode_into_libs=yes
  13009. dynamic_linker="$host_os dld.sl"
  13010. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13011. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13013. soname_spec='${libname}${release}${shared_ext}$major'
  13014. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13015. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13016. ;;
  13017. *)
  13018. shrext_cmds='.sl'
  13019. dynamic_linker="$host_os dld.sl"
  13020. shlibpath_var=SHLIB_PATH
  13021. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13023. soname_spec='${libname}${release}${shared_ext}$major'
  13024. ;;
  13025. esac
  13026. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13027. postinstall_cmds='chmod 555 $lib'
  13028. # or fails outright, so override atomically:
  13029. install_override_mode=555
  13030. ;;
  13031. interix[3-9]*)
  13032. version_type=linux # correct to gnu/linux during the next big refactor
  13033. need_lib_prefix=no
  13034. need_version=no
  13035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13036. soname_spec='${libname}${release}${shared_ext}$major'
  13037. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13038. shlibpath_var=LD_LIBRARY_PATH
  13039. shlibpath_overrides_runpath=no
  13040. hardcode_into_libs=yes
  13041. ;;
  13042. irix5* | irix6* | nonstopux*)
  13043. case $host_os in
  13044. nonstopux*) version_type=nonstopux ;;
  13045. *)
  13046. if test "$lt_cv_prog_gnu_ld" = yes; then
  13047. version_type=linux # correct to gnu/linux during the next big refactor
  13048. else
  13049. version_type=irix
  13050. fi ;;
  13051. esac
  13052. need_lib_prefix=no
  13053. need_version=no
  13054. soname_spec='${libname}${release}${shared_ext}$major'
  13055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13056. case $host_os in
  13057. irix5* | nonstopux*)
  13058. libsuff= shlibsuff=
  13059. ;;
  13060. *)
  13061. case $LD in # libtool.m4 will add one of these switches to LD
  13062. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13063. libsuff= shlibsuff= libmagic=32-bit;;
  13064. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13065. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13066. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13067. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13068. *) libsuff= shlibsuff= libmagic=never-match;;
  13069. esac
  13070. ;;
  13071. esac
  13072. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13073. shlibpath_overrides_runpath=no
  13074. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13075. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13076. hardcode_into_libs=yes
  13077. ;;
  13078. # No shared lib support for Linux oldld, aout, or coff.
  13079. linux*oldld* | linux*aout* | linux*coff*)
  13080. dynamic_linker=no
  13081. ;;
  13082. # This must be glibc/ELF.
  13083. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13084. version_type=linux # correct to gnu/linux during the next big refactor
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13088. soname_spec='${libname}${release}${shared_ext}$major'
  13089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13090. shlibpath_var=LD_LIBRARY_PATH
  13091. shlibpath_overrides_runpath=no
  13092. # Some binutils ld are patched to set DT_RUNPATH
  13093. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13094. $as_echo_n "(cached) " >&6
  13095. else
  13096. lt_cv_shlibpath_overrides_runpath=no
  13097. save_LDFLAGS=$LDFLAGS
  13098. save_libdir=$libdir
  13099. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13100. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13102. /* end confdefs.h. */
  13103. int
  13104. main ()
  13105. {
  13106. ;
  13107. return 0;
  13108. }
  13109. _ACEOF
  13110. if ac_fn_cxx_try_link "$LINENO"; then :
  13111. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13112. lt_cv_shlibpath_overrides_runpath=yes
  13113. fi
  13114. fi
  13115. rm -f core conftest.err conftest.$ac_objext \
  13116. conftest$ac_exeext conftest.$ac_ext
  13117. LDFLAGS=$save_LDFLAGS
  13118. libdir=$save_libdir
  13119. fi
  13120. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13121. # This implies no fast_install, which is unacceptable.
  13122. # Some rework will be needed to allow for fast_install
  13123. # before this can be enabled.
  13124. hardcode_into_libs=yes
  13125. # Add ABI-specific directories to the system library path.
  13126. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13127. # Append ld.so.conf contents to the search path
  13128. if test -f /etc/ld.so.conf; then
  13129. 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' ' '`
  13130. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13131. fi
  13132. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13133. # powerpc, because MkLinux only supported shared libraries with the
  13134. # GNU dynamic linker. Since this was broken with cross compilers,
  13135. # most powerpc-linux boxes support dynamic linking these days and
  13136. # people can always --disable-shared, the test was removed, and we
  13137. # assume the GNU/Linux dynamic linker is in use.
  13138. dynamic_linker='GNU/Linux ld.so'
  13139. ;;
  13140. netbsd*)
  13141. version_type=sunos
  13142. need_lib_prefix=no
  13143. need_version=no
  13144. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13147. dynamic_linker='NetBSD (a.out) ld.so'
  13148. else
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. dynamic_linker='NetBSD ld.elf_so'
  13152. fi
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. shlibpath_overrides_runpath=yes
  13155. hardcode_into_libs=yes
  13156. ;;
  13157. newsos6)
  13158. version_type=linux # correct to gnu/linux during the next big refactor
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13160. shlibpath_var=LD_LIBRARY_PATH
  13161. shlibpath_overrides_runpath=yes
  13162. ;;
  13163. *nto* | *qnx*)
  13164. version_type=qnx
  13165. need_lib_prefix=no
  13166. need_version=no
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. soname_spec='${libname}${release}${shared_ext}$major'
  13169. shlibpath_var=LD_LIBRARY_PATH
  13170. shlibpath_overrides_runpath=no
  13171. hardcode_into_libs=yes
  13172. dynamic_linker='ldqnx.so'
  13173. ;;
  13174. openbsd*)
  13175. version_type=sunos
  13176. sys_lib_dlsearch_path_spec="/usr/lib"
  13177. need_lib_prefix=no
  13178. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13179. case $host_os in
  13180. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13181. *) need_version=no ;;
  13182. esac
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13184. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13185. shlibpath_var=LD_LIBRARY_PATH
  13186. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13187. case $host_os in
  13188. openbsd2.[89] | openbsd2.[89].*)
  13189. shlibpath_overrides_runpath=no
  13190. ;;
  13191. *)
  13192. shlibpath_overrides_runpath=yes
  13193. ;;
  13194. esac
  13195. else
  13196. shlibpath_overrides_runpath=yes
  13197. fi
  13198. ;;
  13199. os2*)
  13200. libname_spec='$name'
  13201. shrext_cmds=".dll"
  13202. need_lib_prefix=no
  13203. library_names_spec='$libname${shared_ext} $libname.a'
  13204. dynamic_linker='OS/2 ld.exe'
  13205. shlibpath_var=LIBPATH
  13206. ;;
  13207. osf3* | osf4* | osf5*)
  13208. version_type=osf
  13209. need_lib_prefix=no
  13210. need_version=no
  13211. soname_spec='${libname}${release}${shared_ext}$major'
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13213. shlibpath_var=LD_LIBRARY_PATH
  13214. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13215. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13216. ;;
  13217. rdos*)
  13218. dynamic_linker=no
  13219. ;;
  13220. solaris*)
  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. shlibpath_var=LD_LIBRARY_PATH
  13227. shlibpath_overrides_runpath=yes
  13228. hardcode_into_libs=yes
  13229. # ldd complains unless libraries are executable
  13230. postinstall_cmds='chmod +x $lib'
  13231. ;;
  13232. sunos4*)
  13233. version_type=sunos
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13235. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13236. shlibpath_var=LD_LIBRARY_PATH
  13237. shlibpath_overrides_runpath=yes
  13238. if test "$with_gnu_ld" = yes; then
  13239. need_lib_prefix=no
  13240. fi
  13241. need_version=yes
  13242. ;;
  13243. sysv4 | sysv4.3*)
  13244. version_type=linux # correct to gnu/linux during the next big refactor
  13245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13246. soname_spec='${libname}${release}${shared_ext}$major'
  13247. shlibpath_var=LD_LIBRARY_PATH
  13248. case $host_vendor in
  13249. sni)
  13250. shlibpath_overrides_runpath=no
  13251. need_lib_prefix=no
  13252. runpath_var=LD_RUN_PATH
  13253. ;;
  13254. siemens)
  13255. need_lib_prefix=no
  13256. ;;
  13257. motorola)
  13258. need_lib_prefix=no
  13259. need_version=no
  13260. shlibpath_overrides_runpath=no
  13261. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13262. ;;
  13263. esac
  13264. ;;
  13265. sysv4*MP*)
  13266. if test -d /usr/nec ;then
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13269. soname_spec='$libname${shared_ext}.$major'
  13270. shlibpath_var=LD_LIBRARY_PATH
  13271. fi
  13272. ;;
  13273. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13274. version_type=freebsd-elf
  13275. need_lib_prefix=no
  13276. need_version=no
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. shlibpath_overrides_runpath=yes
  13281. hardcode_into_libs=yes
  13282. if test "$with_gnu_ld" = yes; then
  13283. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13284. else
  13285. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13286. case $host_os in
  13287. sco3.2v5*)
  13288. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13289. ;;
  13290. esac
  13291. fi
  13292. sys_lib_dlsearch_path_spec='/usr/lib'
  13293. ;;
  13294. tpf*)
  13295. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13296. version_type=linux # correct to gnu/linux during the next big refactor
  13297. need_lib_prefix=no
  13298. need_version=no
  13299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13300. shlibpath_var=LD_LIBRARY_PATH
  13301. shlibpath_overrides_runpath=no
  13302. hardcode_into_libs=yes
  13303. ;;
  13304. uts4*)
  13305. version_type=linux # correct to gnu/linux during the next big refactor
  13306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13307. soname_spec='${libname}${release}${shared_ext}$major'
  13308. shlibpath_var=LD_LIBRARY_PATH
  13309. ;;
  13310. *)
  13311. dynamic_linker=no
  13312. ;;
  13313. esac
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13315. $as_echo "$dynamic_linker" >&6; }
  13316. test "$dynamic_linker" = no && can_build_shared=no
  13317. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13318. if test "$GCC" = yes; then
  13319. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13320. fi
  13321. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13322. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13323. fi
  13324. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13325. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13326. fi
  13327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13328. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13329. hardcode_action_CXX=
  13330. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13331. test -n "$runpath_var_CXX" ||
  13332. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13333. # We can hardcode non-existent directories.
  13334. if test "$hardcode_direct_CXX" != no &&
  13335. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13336. # have to relink, otherwise we might link with an installed library
  13337. # when we should be linking with a yet-to-be-installed one
  13338. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13339. test "$hardcode_minus_L_CXX" != no; then
  13340. # Linking always hardcodes the temporary library directory.
  13341. hardcode_action_CXX=relink
  13342. else
  13343. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13344. hardcode_action_CXX=immediate
  13345. fi
  13346. else
  13347. # We cannot hardcode anything, or else we can only hardcode existing
  13348. # directories.
  13349. hardcode_action_CXX=unsupported
  13350. fi
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13352. $as_echo "$hardcode_action_CXX" >&6; }
  13353. if test "$hardcode_action_CXX" = relink ||
  13354. test "$inherit_rpath_CXX" = yes; then
  13355. # Fast installation is not supported
  13356. enable_fast_install=no
  13357. elif test "$shlibpath_overrides_runpath" = yes ||
  13358. test "$enable_shared" = no; then
  13359. # Fast installation is not necessary
  13360. enable_fast_install=needless
  13361. fi
  13362. fi # test -n "$compiler"
  13363. CC=$lt_save_CC
  13364. CFLAGS=$lt_save_CFLAGS
  13365. LDCXX=$LD
  13366. LD=$lt_save_LD
  13367. GCC=$lt_save_GCC
  13368. with_gnu_ld=$lt_save_with_gnu_ld
  13369. lt_cv_path_LDCXX=$lt_cv_path_LD
  13370. lt_cv_path_LD=$lt_save_path_LD
  13371. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13372. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13373. fi # test "$_lt_caught_CXX_error" != yes
  13374. ac_ext=c
  13375. ac_cpp='$CPP $CPPFLAGS'
  13376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13379. ac_config_commands="$ac_config_commands libtool"
  13380. # Only expand once:
  13381. # platform idioms
  13382. case "$host" in
  13383. *-hp-hpux*)
  13384. CFLAGS="-g"
  13385. ;;
  13386. *-mingw*)
  13387. LDFLAGS_NOUNDEFINED="-no-undefined"
  13388. l4c_have_win=yes
  13389. ;;
  13390. *)
  13391. ;;
  13392. esac
  13393. if test "x$l4c_have_win" = "xyes"; then
  13394. WIN32_TRUE=
  13395. WIN32_FALSE='#'
  13396. else
  13397. WIN32_TRUE='#'
  13398. WIN32_FALSE=
  13399. fi
  13400. if test "x$GCC" = "xyes"; then
  13401. case " $CFLAGS " in
  13402. *\ \ -Wall\ \ *) ;;
  13403. *) CFLAGS="$CFLAGS -Wall" ;;
  13404. esac
  13405. fi
  13406. ##########################
  13407. # Enable debug if required
  13408. #
  13409. # Check whether --enable-debug was given.
  13410. if test "${enable_debug+set}" = set; then :
  13411. enableval=$enable_debug;
  13412. fi
  13413. if test x$enable_debug = xyes; then
  13414. CFLAGS="$CFLAGS -D__SD_DEBUG__ -D__LOG4C_DEBUG__"
  13415. fi
  13416. ########################
  13417. # Enable reread if flagged
  13418. #
  13419. # Check whether --enable-reread was given.
  13420. if test "${enable_reread+set}" = set; then :
  13421. enableval=$enable_reread; if test x$enable_reread = xyes; then
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabled automatic reread of log4crc file" >&5
  13423. $as_echo "$as_me: Enabled automatic reread of log4crc file" >&6;}
  13424. $as_echo "#define __ENABLE_REREAD__ /**/" >>confdefs.h
  13425. fi
  13426. fi
  13427. ####################################################################
  13428. # Test for pthread and enable rollingfile code which depends on that
  13429. # if we find it
  13430. #
  13431. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  13432. if test "x$ac_cv_header_pthread_h" = xyes; then :
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
  13434. $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
  13435. if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
  13436. $as_echo_n "(cached) " >&6
  13437. else
  13438. ac_check_lib_save_LIBS=$LIBS
  13439. LIBS="-lpthread $LIBS"
  13440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13441. /* end confdefs.h. */
  13442. /* Override any GCC internal prototype to avoid an error.
  13443. Use char because int might match the return type of a GCC
  13444. builtin and then its argument prototype would still apply. */
  13445. #ifdef __cplusplus
  13446. extern "C"
  13447. #endif
  13448. char pthread_mutex_init ();
  13449. int
  13450. main ()
  13451. {
  13452. return pthread_mutex_init ();
  13453. ;
  13454. return 0;
  13455. }
  13456. _ACEOF
  13457. if ac_fn_c_try_link "$LINENO"; then :
  13458. ac_cv_lib_pthread_pthread_mutex_init=yes
  13459. else
  13460. ac_cv_lib_pthread_pthread_mutex_init=no
  13461. fi
  13462. rm -f core conftest.err conftest.$ac_objext \
  13463. conftest$ac_exeext conftest.$ac_ext
  13464. LIBS=$ac_check_lib_save_LIBS
  13465. fi
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  13467. $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
  13468. if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
  13469. LIBS="$LIBS -lpthread"
  13470. $as_echo "#define WITH_ROLLINGFILE /**/" >>confdefs.h
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: Compile with rollingfile code" >&5
  13472. $as_echo "$as_me: Compile with rollingfile code" >&6;}
  13473. with_rollingfile=true
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: No pthread--not compiling rollingfile code" >&5
  13476. $as_echo "$as_me: No pthread--not compiling rollingfile code" >&6;}
  13477. fi
  13478. fi
  13479. if test "x$with_rollingfile" = "xtrue"; then
  13480. WITH_ROLLINGFILE_TRUE=
  13481. WITH_ROLLINGFILE_FALSE='#'
  13482. else
  13483. WITH_ROLLINGFILE_TRUE='#'
  13484. WITH_ROLLINGFILE_FALSE=
  13485. fi
  13486. #####################################
  13487. # Enable test compilation if required
  13488. #
  13489. # Check whether --enable-test was given.
  13490. if test "${enable_test+set}" = set; then :
  13491. enableval=$enable_test;
  13492. fi
  13493. if test x$enable_test = xyes; then
  13494. TEST_TRUE=
  13495. TEST_FALSE='#'
  13496. else
  13497. TEST_TRUE='#'
  13498. TEST_FALSE=
  13499. fi
  13500. #####################################
  13501. # Checks for libraries.
  13502. #
  13503. #####################################
  13504. # Checks for header files.
  13505. #
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13507. $as_echo_n "checking for ANSI C header files... " >&6; }
  13508. if ${ac_cv_header_stdc+:} false; then :
  13509. $as_echo_n "(cached) " >&6
  13510. else
  13511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13512. /* end confdefs.h. */
  13513. #include <stdlib.h>
  13514. #include <stdarg.h>
  13515. #include <string.h>
  13516. #include <float.h>
  13517. int
  13518. main ()
  13519. {
  13520. ;
  13521. return 0;
  13522. }
  13523. _ACEOF
  13524. if ac_fn_c_try_compile "$LINENO"; then :
  13525. ac_cv_header_stdc=yes
  13526. else
  13527. ac_cv_header_stdc=no
  13528. fi
  13529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13530. if test $ac_cv_header_stdc = yes; then
  13531. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13533. /* end confdefs.h. */
  13534. #include <string.h>
  13535. _ACEOF
  13536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13537. $EGREP "memchr" >/dev/null 2>&1; then :
  13538. else
  13539. ac_cv_header_stdc=no
  13540. fi
  13541. rm -f conftest*
  13542. fi
  13543. if test $ac_cv_header_stdc = yes; then
  13544. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13546. /* end confdefs.h. */
  13547. #include <stdlib.h>
  13548. _ACEOF
  13549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13550. $EGREP "free" >/dev/null 2>&1; then :
  13551. else
  13552. ac_cv_header_stdc=no
  13553. fi
  13554. rm -f conftest*
  13555. fi
  13556. if test $ac_cv_header_stdc = yes; then
  13557. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13558. if test "$cross_compiling" = yes; then :
  13559. :
  13560. else
  13561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13562. /* end confdefs.h. */
  13563. #include <ctype.h>
  13564. #include <stdlib.h>
  13565. #if ((' ' & 0x0FF) == 0x020)
  13566. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13567. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13568. #else
  13569. # define ISLOWER(c) \
  13570. (('a' <= (c) && (c) <= 'i') \
  13571. || ('j' <= (c) && (c) <= 'r') \
  13572. || ('s' <= (c) && (c) <= 'z'))
  13573. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13574. #endif
  13575. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13576. int
  13577. main ()
  13578. {
  13579. int i;
  13580. for (i = 0; i < 256; i++)
  13581. if (XOR (islower (i), ISLOWER (i))
  13582. || toupper (i) != TOUPPER (i))
  13583. return 2;
  13584. return 0;
  13585. }
  13586. _ACEOF
  13587. if ac_fn_c_try_run "$LINENO"; then :
  13588. else
  13589. ac_cv_header_stdc=no
  13590. fi
  13591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13593. fi
  13594. fi
  13595. fi
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13597. $as_echo "$ac_cv_header_stdc" >&6; }
  13598. if test $ac_cv_header_stdc = yes; then
  13599. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13600. fi
  13601. for ac_header in alloc.h fcntl.h inttypes.h langinfo.h limits.h malloc.h stddef.h stdint.h \
  13602. stdlib.h string.h sys/time.h syslog.h unistd.h stdarg.h varargs.h getopt.h \
  13603. pthread.h
  13604. do :
  13605. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13606. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13607. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13608. cat >>confdefs.h <<_ACEOF
  13609. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13610. _ACEOF
  13611. fi
  13612. done
  13613. for ac_func in sleep gmtime_r localtime_r
  13614. do :
  13615. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13616. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13617. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13618. cat >>confdefs.h <<_ACEOF
  13619. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13620. _ACEOF
  13621. fi
  13622. done
  13623. ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
  13624. "
  13625. if test "x$ac_cv_have_decl_sleep" = xyes; then :
  13626. ac_have_decl=1
  13627. else
  13628. ac_have_decl=0
  13629. fi
  13630. cat >>confdefs.h <<_ACEOF
  13631. #define HAVE_DECL_SLEEP $ac_have_decl
  13632. _ACEOF
  13633. ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h>
  13634. "
  13635. if test "x$ac_cv_have_decl_gmtime_r" = xyes; then :
  13636. ac_have_decl=1
  13637. else
  13638. ac_have_decl=0
  13639. fi
  13640. cat >>confdefs.h <<_ACEOF
  13641. #define HAVE_DECL_GMTIME_R $ac_have_decl
  13642. _ACEOF
  13643. ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
  13644. "
  13645. if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
  13646. ac_have_decl=1
  13647. else
  13648. ac_have_decl=0
  13649. fi
  13650. cat >>confdefs.h <<_ACEOF
  13651. #define HAVE_DECL_LOCALTIME_R $ac_have_decl
  13652. _ACEOF
  13653. # Checks for typedefs, structures, and compiler characteristics.
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13655. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13656. if ${ac_cv_c_const+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13660. /* end confdefs.h. */
  13661. int
  13662. main ()
  13663. {
  13664. #ifndef __cplusplus
  13665. /* Ultrix mips cc rejects this sort of thing. */
  13666. typedef int charset[2];
  13667. const charset cs = { 0, 0 };
  13668. /* SunOS 4.1.1 cc rejects this. */
  13669. char const *const *pcpcc;
  13670. char **ppc;
  13671. /* NEC SVR4.0.2 mips cc rejects this. */
  13672. struct point {int x, y;};
  13673. static struct point const zero = {0,0};
  13674. /* AIX XL C 1.02.0.0 rejects this.
  13675. It does not let you subtract one const X* pointer from another in
  13676. an arm of an if-expression whose if-part is not a constant
  13677. expression */
  13678. const char *g = "string";
  13679. pcpcc = &g + (g ? g-g : 0);
  13680. /* HPUX 7.0 cc rejects these. */
  13681. ++pcpcc;
  13682. ppc = (char**) pcpcc;
  13683. pcpcc = (char const *const *) ppc;
  13684. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13685. char tx;
  13686. char *t = &tx;
  13687. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13688. *t++ = 0;
  13689. if (s) return 0;
  13690. }
  13691. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13692. int x[] = {25, 17};
  13693. const int *foo = &x[0];
  13694. ++foo;
  13695. }
  13696. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13697. typedef const int *iptr;
  13698. iptr p = 0;
  13699. ++p;
  13700. }
  13701. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13702. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13703. struct s { int j; const int *ap[3]; } bx;
  13704. struct s *b = &bx; b->j = 5;
  13705. }
  13706. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13707. const int foo = 10;
  13708. if (!foo) return 0;
  13709. }
  13710. return !cs[0] && !zero.x;
  13711. #endif
  13712. ;
  13713. return 0;
  13714. }
  13715. _ACEOF
  13716. if ac_fn_c_try_compile "$LINENO"; then :
  13717. ac_cv_c_const=yes
  13718. else
  13719. ac_cv_c_const=no
  13720. fi
  13721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13722. fi
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13724. $as_echo "$ac_cv_c_const" >&6; }
  13725. if test $ac_cv_c_const = no; then
  13726. $as_echo "#define const /**/" >>confdefs.h
  13727. fi
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13729. $as_echo_n "checking for inline... " >&6; }
  13730. if ${ac_cv_c_inline+:} false; then :
  13731. $as_echo_n "(cached) " >&6
  13732. else
  13733. ac_cv_c_inline=no
  13734. for ac_kw in inline __inline__ __inline; do
  13735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13736. /* end confdefs.h. */
  13737. #ifndef __cplusplus
  13738. typedef int foo_t;
  13739. static $ac_kw foo_t static_foo () {return 0; }
  13740. $ac_kw foo_t foo () {return 0; }
  13741. #endif
  13742. _ACEOF
  13743. if ac_fn_c_try_compile "$LINENO"; then :
  13744. ac_cv_c_inline=$ac_kw
  13745. fi
  13746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13747. test "$ac_cv_c_inline" != no && break
  13748. done
  13749. fi
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13751. $as_echo "$ac_cv_c_inline" >&6; }
  13752. case $ac_cv_c_inline in
  13753. inline | yes) ;;
  13754. *)
  13755. case $ac_cv_c_inline in
  13756. no) ac_val=;;
  13757. *) ac_val=$ac_cv_c_inline;;
  13758. esac
  13759. cat >>confdefs.h <<_ACEOF
  13760. #ifndef __cplusplus
  13761. #define inline $ac_val
  13762. #endif
  13763. _ACEOF
  13764. ;;
  13765. esac
  13766. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13767. if test "x$ac_cv_type_size_t" = xyes; then :
  13768. else
  13769. cat >>confdefs.h <<_ACEOF
  13770. #define size_t unsigned int
  13771. _ACEOF
  13772. fi
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13774. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13775. if ${ac_cv_header_time+:} false; then :
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13779. /* end confdefs.h. */
  13780. #include <sys/types.h>
  13781. #include <sys/time.h>
  13782. #include <time.h>
  13783. int
  13784. main ()
  13785. {
  13786. if ((struct tm *) 0)
  13787. return 0;
  13788. ;
  13789. return 0;
  13790. }
  13791. _ACEOF
  13792. if ac_fn_c_try_compile "$LINENO"; then :
  13793. ac_cv_header_time=yes
  13794. else
  13795. ac_cv_header_time=no
  13796. fi
  13797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13798. fi
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13800. $as_echo "$ac_cv_header_time" >&6; }
  13801. if test $ac_cv_header_time = yes; then
  13802. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13803. fi
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  13805. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  13806. if ${ac_cv_struct_tm+:} false; then :
  13807. $as_echo_n "(cached) " >&6
  13808. else
  13809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13810. /* end confdefs.h. */
  13811. #include <sys/types.h>
  13812. #include <time.h>
  13813. int
  13814. main ()
  13815. {
  13816. struct tm tm;
  13817. int *p = &tm.tm_sec;
  13818. return !p;
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_c_try_compile "$LINENO"; then :
  13824. ac_cv_struct_tm=time.h
  13825. else
  13826. ac_cv_struct_tm=sys/time.h
  13827. fi
  13828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13829. fi
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  13831. $as_echo "$ac_cv_struct_tm" >&6; }
  13832. if test $ac_cv_struct_tm = sys/time.h; then
  13833. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  13834. fi
  13835. # Checks for library functions.
  13836. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13837. # for constant arguments. Useless!
  13838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13839. $as_echo_n "checking for working alloca.h... " >&6; }
  13840. if ${ac_cv_working_alloca_h+:} false; then :
  13841. $as_echo_n "(cached) " >&6
  13842. else
  13843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13844. /* end confdefs.h. */
  13845. #include <alloca.h>
  13846. int
  13847. main ()
  13848. {
  13849. char *p = (char *) alloca (2 * sizeof (int));
  13850. if (p) return 0;
  13851. ;
  13852. return 0;
  13853. }
  13854. _ACEOF
  13855. if ac_fn_c_try_link "$LINENO"; then :
  13856. ac_cv_working_alloca_h=yes
  13857. else
  13858. ac_cv_working_alloca_h=no
  13859. fi
  13860. rm -f core conftest.err conftest.$ac_objext \
  13861. conftest$ac_exeext conftest.$ac_ext
  13862. fi
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13864. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13865. if test $ac_cv_working_alloca_h = yes; then
  13866. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13867. fi
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13869. $as_echo_n "checking for alloca... " >&6; }
  13870. if ${ac_cv_func_alloca_works+:} false; then :
  13871. $as_echo_n "(cached) " >&6
  13872. else
  13873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13874. /* end confdefs.h. */
  13875. #ifdef __GNUC__
  13876. # define alloca __builtin_alloca
  13877. #else
  13878. # ifdef _MSC_VER
  13879. # include <malloc.h>
  13880. # define alloca _alloca
  13881. # else
  13882. # ifdef HAVE_ALLOCA_H
  13883. # include <alloca.h>
  13884. # else
  13885. # ifdef _AIX
  13886. #pragma alloca
  13887. # else
  13888. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13889. void *alloca (size_t);
  13890. # endif
  13891. # endif
  13892. # endif
  13893. # endif
  13894. #endif
  13895. int
  13896. main ()
  13897. {
  13898. char *p = (char *) alloca (1);
  13899. if (p) return 0;
  13900. ;
  13901. return 0;
  13902. }
  13903. _ACEOF
  13904. if ac_fn_c_try_link "$LINENO"; then :
  13905. ac_cv_func_alloca_works=yes
  13906. else
  13907. ac_cv_func_alloca_works=no
  13908. fi
  13909. rm -f core conftest.err conftest.$ac_objext \
  13910. conftest$ac_exeext conftest.$ac_ext
  13911. fi
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13913. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13914. if test $ac_cv_func_alloca_works = yes; then
  13915. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  13916. else
  13917. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13918. # that cause trouble. Some versions do not even contain alloca or
  13919. # contain a buggy version. If you still want to use their alloca,
  13920. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13921. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13922. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13924. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13925. if ${ac_cv_os_cray+:} false; then :
  13926. $as_echo_n "(cached) " >&6
  13927. else
  13928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13929. /* end confdefs.h. */
  13930. #if defined CRAY && ! defined CRAY2
  13931. webecray
  13932. #else
  13933. wenotbecray
  13934. #endif
  13935. _ACEOF
  13936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13937. $EGREP "webecray" >/dev/null 2>&1; then :
  13938. ac_cv_os_cray=yes
  13939. else
  13940. ac_cv_os_cray=no
  13941. fi
  13942. rm -f conftest*
  13943. fi
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13945. $as_echo "$ac_cv_os_cray" >&6; }
  13946. if test $ac_cv_os_cray = yes; then
  13947. for ac_func in _getb67 GETB67 getb67; do
  13948. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13949. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13950. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13951. cat >>confdefs.h <<_ACEOF
  13952. #define CRAY_STACKSEG_END $ac_func
  13953. _ACEOF
  13954. break
  13955. fi
  13956. done
  13957. fi
  13958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13959. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13960. if ${ac_cv_c_stack_direction+:} false; then :
  13961. $as_echo_n "(cached) " >&6
  13962. else
  13963. if test "$cross_compiling" = yes; then :
  13964. ac_cv_c_stack_direction=0
  13965. else
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. $ac_includes_default
  13969. int
  13970. find_stack_direction (int *addr, int depth)
  13971. {
  13972. int dir, dummy = 0;
  13973. if (! addr)
  13974. addr = &dummy;
  13975. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  13976. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  13977. return dir + dummy;
  13978. }
  13979. int
  13980. main (int argc, char **argv)
  13981. {
  13982. return find_stack_direction (0, argc + !argv + 20) < 0;
  13983. }
  13984. _ACEOF
  13985. if ac_fn_c_try_run "$LINENO"; then :
  13986. ac_cv_c_stack_direction=1
  13987. else
  13988. ac_cv_c_stack_direction=-1
  13989. fi
  13990. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13991. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13992. fi
  13993. fi
  13994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13995. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13996. cat >>confdefs.h <<_ACEOF
  13997. #define STACK_DIRECTION $ac_cv_c_stack_direction
  13998. _ACEOF
  13999. fi
  14000. for ac_header in $ac_header_list
  14001. do :
  14002. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14003. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14004. "
  14005. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14008. _ACEOF
  14009. fi
  14010. done
  14011. for ac_func in getpagesize
  14012. do :
  14013. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14014. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14015. cat >>confdefs.h <<_ACEOF
  14016. #define HAVE_GETPAGESIZE 1
  14017. _ACEOF
  14018. fi
  14019. done
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14021. $as_echo_n "checking for working mmap... " >&6; }
  14022. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14023. $as_echo_n "(cached) " >&6
  14024. else
  14025. if test "$cross_compiling" = yes; then :
  14026. ac_cv_func_mmap_fixed_mapped=no
  14027. else
  14028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14029. /* end confdefs.h. */
  14030. $ac_includes_default
  14031. /* malloc might have been renamed as rpl_malloc. */
  14032. #undef malloc
  14033. /* Thanks to Mike Haertel and Jim Avera for this test.
  14034. Here is a matrix of mmap possibilities:
  14035. mmap private not fixed
  14036. mmap private fixed at somewhere currently unmapped
  14037. mmap private fixed at somewhere already mapped
  14038. mmap shared not fixed
  14039. mmap shared fixed at somewhere currently unmapped
  14040. mmap shared fixed at somewhere already mapped
  14041. For private mappings, we should verify that changes cannot be read()
  14042. back from the file, nor mmap's back from the file at a different
  14043. address. (There have been systems where private was not correctly
  14044. implemented like the infamous i386 svr4.0, and systems where the
  14045. VM page cache was not coherent with the file system buffer cache
  14046. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14047. For shared mappings, we should conversely verify that changes get
  14048. propagated back to all the places they're supposed to be.
  14049. Grep wants private fixed already mapped.
  14050. The main things grep needs to know about mmap are:
  14051. * does it exist and is it safe to write into the mmap'd area
  14052. * how to use it (BSD variants) */
  14053. #include <fcntl.h>
  14054. #include <sys/mman.h>
  14055. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14056. char *malloc ();
  14057. #endif
  14058. /* This mess was copied from the GNU getpagesize.h. */
  14059. #ifndef HAVE_GETPAGESIZE
  14060. # ifdef _SC_PAGESIZE
  14061. # define getpagesize() sysconf(_SC_PAGESIZE)
  14062. # else /* no _SC_PAGESIZE */
  14063. # ifdef HAVE_SYS_PARAM_H
  14064. # include <sys/param.h>
  14065. # ifdef EXEC_PAGESIZE
  14066. # define getpagesize() EXEC_PAGESIZE
  14067. # else /* no EXEC_PAGESIZE */
  14068. # ifdef NBPG
  14069. # define getpagesize() NBPG * CLSIZE
  14070. # ifndef CLSIZE
  14071. # define CLSIZE 1
  14072. # endif /* no CLSIZE */
  14073. # else /* no NBPG */
  14074. # ifdef NBPC
  14075. # define getpagesize() NBPC
  14076. # else /* no NBPC */
  14077. # ifdef PAGESIZE
  14078. # define getpagesize() PAGESIZE
  14079. # endif /* PAGESIZE */
  14080. # endif /* no NBPC */
  14081. # endif /* no NBPG */
  14082. # endif /* no EXEC_PAGESIZE */
  14083. # else /* no HAVE_SYS_PARAM_H */
  14084. # define getpagesize() 8192 /* punt totally */
  14085. # endif /* no HAVE_SYS_PARAM_H */
  14086. # endif /* no _SC_PAGESIZE */
  14087. #endif /* no HAVE_GETPAGESIZE */
  14088. int
  14089. main ()
  14090. {
  14091. char *data, *data2, *data3;
  14092. const char *cdata2;
  14093. int i, pagesize;
  14094. int fd, fd2;
  14095. pagesize = getpagesize ();
  14096. /* First, make a file with some known garbage in it. */
  14097. data = (char *) malloc (pagesize);
  14098. if (!data)
  14099. return 1;
  14100. for (i = 0; i < pagesize; ++i)
  14101. *(data + i) = rand ();
  14102. umask (0);
  14103. fd = creat ("conftest.mmap", 0600);
  14104. if (fd < 0)
  14105. return 2;
  14106. if (write (fd, data, pagesize) != pagesize)
  14107. return 3;
  14108. close (fd);
  14109. /* Next, check that the tail of a page is zero-filled. File must have
  14110. non-zero length, otherwise we risk SIGBUS for entire page. */
  14111. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14112. if (fd2 < 0)
  14113. return 4;
  14114. cdata2 = "";
  14115. if (write (fd2, cdata2, 1) != 1)
  14116. return 5;
  14117. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14118. if (data2 == MAP_FAILED)
  14119. return 6;
  14120. for (i = 0; i < pagesize; ++i)
  14121. if (*(data2 + i))
  14122. return 7;
  14123. close (fd2);
  14124. if (munmap (data2, pagesize))
  14125. return 8;
  14126. /* Next, try to mmap the file at a fixed address which already has
  14127. something else allocated at it. If we can, also make sure that
  14128. we see the same garbage. */
  14129. fd = open ("conftest.mmap", O_RDWR);
  14130. if (fd < 0)
  14131. return 9;
  14132. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14133. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14134. return 10;
  14135. for (i = 0; i < pagesize; ++i)
  14136. if (*(data + i) != *(data2 + i))
  14137. return 11;
  14138. /* Finally, make sure that changes to the mapped area do not
  14139. percolate back to the file as seen by read(). (This is a bug on
  14140. some variants of i386 svr4.0.) */
  14141. for (i = 0; i < pagesize; ++i)
  14142. *(data2 + i) = *(data2 + i) + 1;
  14143. data3 = (char *) malloc (pagesize);
  14144. if (!data3)
  14145. return 12;
  14146. if (read (fd, data3, pagesize) != pagesize)
  14147. return 13;
  14148. for (i = 0; i < pagesize; ++i)
  14149. if (*(data + i) != *(data3 + i))
  14150. return 14;
  14151. close (fd);
  14152. return 0;
  14153. }
  14154. _ACEOF
  14155. if ac_fn_c_try_run "$LINENO"; then :
  14156. ac_cv_func_mmap_fixed_mapped=yes
  14157. else
  14158. ac_cv_func_mmap_fixed_mapped=no
  14159. fi
  14160. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14161. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14162. fi
  14163. fi
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14165. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14166. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14167. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14168. fi
  14169. rm -f conftest.mmap conftest.txt
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  14171. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  14172. if ${ac_cv_func_utime_null+:} false; then :
  14173. $as_echo_n "(cached) " >&6
  14174. else
  14175. rm -f conftest.data; >conftest.data
  14176. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  14177. if test "$cross_compiling" = yes; then :
  14178. ac_cv_func_utime_null='guessing yes'
  14179. else
  14180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14181. /* end confdefs.h. */
  14182. $ac_includes_default
  14183. #ifdef HAVE_UTIME_H
  14184. # include <utime.h>
  14185. #endif
  14186. int
  14187. main ()
  14188. {
  14189. struct stat s, t;
  14190. return ! (stat ("conftest.data", &s) == 0
  14191. && utime ("conftest.data", 0) == 0
  14192. && stat ("conftest.data", &t) == 0
  14193. && t.st_mtime >= s.st_mtime
  14194. && t.st_mtime - s.st_mtime < 120);
  14195. ;
  14196. return 0;
  14197. }
  14198. _ACEOF
  14199. if ac_fn_c_try_run "$LINENO"; then :
  14200. ac_cv_func_utime_null=yes
  14201. else
  14202. ac_cv_func_utime_null=no
  14203. fi
  14204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14205. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14206. fi
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  14209. $as_echo "$ac_cv_func_utime_null" >&6; }
  14210. if test "x$ac_cv_func_utime_null" != xno; then
  14211. ac_cv_func_utime_null=yes
  14212. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  14213. fi
  14214. rm -f conftest.data
  14215. for ac_func in vprintf
  14216. do :
  14217. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14218. if test "x$ac_cv_func_vprintf" = xyes; then :
  14219. cat >>confdefs.h <<_ACEOF
  14220. #define HAVE_VPRINTF 1
  14221. _ACEOF
  14222. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  14223. if test "x$ac_cv_func__doprnt" = xyes; then :
  14224. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  14225. fi
  14226. fi
  14227. done
  14228. for ac_func in gettimeofday memset munmap nl_langinfo strdup strerror strncasecmp strrchr strstr utime sbrk
  14229. do :
  14230. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14231. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14232. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14233. cat >>confdefs.h <<_ACEOF
  14234. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14235. _ACEOF
  14236. fi
  14237. done
  14238. GETHOSTNAME_LIB=
  14239. for ac_func in gethostname
  14240. do :
  14241. ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
  14242. if test "x$ac_cv_func_gethostname" = xyes; then :
  14243. cat >>confdefs.h <<_ACEOF
  14244. #define HAVE_GETHOSTNAME 1
  14245. _ACEOF
  14246. else
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock.h and -lws2_32" >&5
  14248. $as_echo_n "checking for gethostname in winsock.h and -lws2_32... " >&6; }
  14249. if ${l4_cv_w32_gethostname+:} false; then :
  14250. $as_echo_n "(cached) " >&6
  14251. else
  14252. l4_cv_w32_gethostname=no
  14253. ac_save_LIBS="$LIBS"
  14254. LIBS="$LIBS -lws2_32"
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. #ifdef _WIN32
  14258. #include <winsock.h>
  14259. #endif
  14260. #include <unistd.h>
  14261. #include <stddef.h>
  14262. int
  14263. main ()
  14264. {
  14265. gethostname(NULL, 0);
  14266. ;
  14267. return 0;
  14268. }
  14269. _ACEOF
  14270. if ac_fn_c_try_link "$LINENO"; then :
  14271. l4_cv_w32_gethostname=yes
  14272. fi
  14273. rm -f core conftest.err conftest.$ac_objext \
  14274. conftest$ac_exeext conftest.$ac_ext
  14275. LIBS="$ac_save_LIBS"
  14276. fi
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $l4_cv_w32_gethostname" >&5
  14278. $as_echo "$l4_cv_w32_gethostname" >&6; }
  14279. if test "x$l4_cv_w32_gethostname" = "xyes"; then
  14280. GETHOSTNAME_LIB="-lws2_32"
  14281. fi
  14282. fi
  14283. done
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  14285. $as_echo_n "checking for va_copy... " >&6; }
  14286. if ${l4_cv_va_copy+:} false; then :
  14287. $as_echo_n "(cached) " >&6
  14288. else
  14289. l4_cv_va_copy=no
  14290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14291. /* end confdefs.h. */
  14292. #include <stdarg.h>
  14293. int
  14294. main ()
  14295. {
  14296. va_list ap1, ap2; va_copy(ap1, ap2);
  14297. ;
  14298. return 0;
  14299. }
  14300. _ACEOF
  14301. if ac_fn_c_try_link "$LINENO"; then :
  14302. l4_cv_va_copy=yes
  14303. fi
  14304. rm -f core conftest.err conftest.$ac_objext \
  14305. conftest$ac_exeext conftest.$ac_ext
  14306. fi
  14307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $l4_cv_va_copy" >&5
  14308. $as_echo "$l4_cv_va_copy" >&6; }
  14309. if test "x$l4_cv_va_copy" != "xyes"; then
  14310. $as_echo "#define va_copy __va_copy" >>confdefs.h
  14311. fi
  14312. # enable mmap appender only when mmap() function found
  14313. if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then
  14314. WITH_MMAP_TRUE=
  14315. WITH_MMAP_FALSE='#'
  14316. else
  14317. WITH_MMAP_TRUE='#'
  14318. WITH_MMAP_FALSE=
  14319. fi
  14320. ###############
  14321. # Documentation
  14322. #
  14323. # Check whether --enable-doc was given.
  14324. if test "${enable_doc+set}" = set; then :
  14325. enableval=$enable_doc;
  14326. fi
  14327. # Checks for doxygen
  14328. # Extract the first word of "doxygen", so it can be a program name with args.
  14329. set dummy doxygen; ac_word=$2
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14331. $as_echo_n "checking for $ac_word... " >&6; }
  14332. if ${ac_cv_path_DOXYGEN+:} false; then :
  14333. $as_echo_n "(cached) " >&6
  14334. else
  14335. case $DOXYGEN in
  14336. [\\/]* | ?:[\\/]*)
  14337. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  14338. ;;
  14339. *)
  14340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14341. for as_dir in $PATH
  14342. do
  14343. IFS=$as_save_IFS
  14344. test -z "$as_dir" && as_dir=.
  14345. for ac_exec_ext in '' $ac_executable_extensions; do
  14346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14347. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  14348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14349. break 2
  14350. fi
  14351. done
  14352. done
  14353. IFS=$as_save_IFS
  14354. ;;
  14355. esac
  14356. fi
  14357. DOXYGEN=$ac_cv_path_DOXYGEN
  14358. if test -n "$DOXYGEN"; then
  14359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  14360. $as_echo "$DOXYGEN" >&6; }
  14361. else
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14363. $as_echo "no" >&6; }
  14364. fi
  14365. if test x$DOXYGEN = x; then
  14366. enable_doc=no
  14367. fi
  14368. if test x$enable_doc = xyes; then
  14369. DOC_TRUE=
  14370. DOC_FALSE='#'
  14371. else
  14372. DOC_TRUE='#'
  14373. DOC_FALSE=
  14374. fi
  14375. #
  14376. # Checks for the graphviz tool 'dot' used to generate graphs
  14377. # of the class dependencies. Probably not useful
  14378. # for c programs. If we don't find dot in the path
  14379. # then set HAVE_DOT to NO in Doxyfile.in
  14380. #
  14381. HAVE_DOT=YES
  14382. # Extract the first word of "dot", so it can be a program name with args.
  14383. set dummy dot; ac_word=$2
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14385. $as_echo_n "checking for $ac_word... " >&6; }
  14386. if ${ac_cv_path_DOT+:} false; then :
  14387. $as_echo_n "(cached) " >&6
  14388. else
  14389. case $DOT in
  14390. [\\/]* | ?:[\\/]*)
  14391. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  14392. ;;
  14393. *)
  14394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14395. for as_dir in $PATH
  14396. do
  14397. IFS=$as_save_IFS
  14398. test -z "$as_dir" && as_dir=.
  14399. for ac_exec_ext in '' $ac_executable_extensions; do
  14400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14401. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  14402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14403. break 2
  14404. fi
  14405. done
  14406. done
  14407. IFS=$as_save_IFS
  14408. ;;
  14409. esac
  14410. fi
  14411. DOT=$ac_cv_path_DOT
  14412. if test -n "$DOT"; then
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  14414. $as_echo "$DOT" >&6; }
  14415. else
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14417. $as_echo "no" >&6; }
  14418. fi
  14419. if test x$DOT = x; then
  14420. HAVE_DOT=NO
  14421. fi
  14422. # Similar for latex
  14423. HAVE_LATEX=YES
  14424. # Extract the first word of "latex", so it can be a program name with args.
  14425. set dummy latex; ac_word=$2
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14427. $as_echo_n "checking for $ac_word... " >&6; }
  14428. if ${ac_cv_path_LATEX+:} false; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. case $LATEX in
  14432. [\\/]* | ?:[\\/]*)
  14433. ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
  14434. ;;
  14435. *)
  14436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14437. for as_dir in $PATH
  14438. do
  14439. IFS=$as_save_IFS
  14440. test -z "$as_dir" && as_dir=.
  14441. for ac_exec_ext in '' $ac_executable_extensions; do
  14442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14443. ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
  14444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14445. break 2
  14446. fi
  14447. done
  14448. done
  14449. IFS=$as_save_IFS
  14450. ;;
  14451. esac
  14452. fi
  14453. LATEX=$ac_cv_path_LATEX
  14454. if test -n "$LATEX"; then
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
  14456. $as_echo "$LATEX" >&6; }
  14457. else
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14459. $as_echo "no" >&6; }
  14460. fi
  14461. if test x$LATEX = x; then
  14462. HAVE_LATEX=NO
  14463. fi
  14464. # This variable is used to turn LATEX on and off in the Doxyfile
  14465. # This variable is used in doc/Makefile.am to set the target to make
  14466. # the doc with latex or not
  14467. if test x$HAVE_LATEX = xYES; then
  14468. HAVE_LATEX_TRUE=
  14469. HAVE_LATEX_FALSE='#'
  14470. else
  14471. HAVE_LATEX_TRUE='#'
  14472. HAVE_LATEX_FALSE=
  14473. fi
  14474. #
  14475. # Documentation
  14476. ###############
  14477. # Check whether --enable-constructors was given.
  14478. if test "${enable_constructors+set}" = set; then :
  14479. enableval=$enable_constructors;
  14480. fi
  14481. if test "x$enable_constructors" = "xyes"; then
  14482. $as_echo "#define WITH_CONSTRUCTORS 1" >>confdefs.h
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: using constructors to initialize log4c" >&5
  14484. $as_echo "$as_me: using constructors to initialize log4c" >&6;}
  14485. fi
  14486. #
  14487. ###################
  14488. ###################
  14489. # Test for libexpat
  14490. #
  14491. # Check whether --with-expat was given.
  14492. if test "${with_expat+set}" = set; then :
  14493. withval=$with_expat; with_expat=no
  14494. else
  14495. with_expat=yes
  14496. fi
  14497. if test x$with_expat = xyes ; then
  14498. use_expat=yes
  14499. # Check whether --with-expat-prefix was given.
  14500. if test "${with_expat_prefix+set}" = set; then :
  14501. withval=$with_expat_prefix;
  14502. fi
  14503. # Check whether --enable-expattest was given.
  14504. if test "${enable_expattest+set}" = set; then :
  14505. enableval=$enable_expattest;
  14506. else
  14507. enable_expattest=yes
  14508. fi
  14509. if test x$with_expat_prefix != x ; then
  14510. EXPAT_CFLAGS="-I$with_expat_prefix/include"
  14511. EXPAT_LIBS="-L$with_expat_prefix/lib"
  14512. fi
  14513. min_expat_version=1.95.1
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT - version >= $min_expat_version" >&5
  14515. $as_echo_n "checking for EXPAT - version >= $min_expat_version... " >&6; }
  14516. EXPAT_CFLAGS="$EXPAT_CFLAGS"
  14517. EXPAT_LIBS="$EXPAT_LIBS -lexpat"
  14518. if test "x$enable_expattest" = "xyes" ; then
  14519. ac_save_CFLAGS="$CFLAGS"
  14520. ac_save_LIBS="$LIBS"
  14521. CFLAGS="$CFLAGS $EXPAT_CFLAGS"
  14522. LIBS="$EXPAT_LIBS $LIBS"
  14523. rm -f conf.expattest
  14524. if test "$cross_compiling" = yes; then :
  14525. echo $ac_n "cross compiling; assumed OK... $ac_c"
  14526. else
  14527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14528. /* end confdefs.h. */
  14529. #include <expat.h>
  14530. #include <stdio.h>
  14531. #include <stdlib.h>
  14532. #include <string.h>
  14533. int
  14534. main ()
  14535. {
  14536. int expat_major, expat_minor, expat_micro;
  14537. int major, minor, micro;
  14538. char *tmp_expat_version;
  14539. char *tmp_version;
  14540. system ("touch conf.expattest");
  14541. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14542. tmp_expat_version = strdup(XML_ExpatVersion());
  14543. if (sscanf(tmp_expat_version, "expat_%d.%d.%d", &expat_major, &expat_minor, &expat_micro) != 3) {
  14544. printf("%s, bad expat version string\n", XML_ExpatVersion());
  14545. exit(1);
  14546. }
  14547. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14548. tmp_version = strdup("$min_expat_version");
  14549. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  14550. printf("%s, bad version string\n", "$min_expat_version");
  14551. exit(1);
  14552. }
  14553. if ((expat_major > major) ||
  14554. ((expat_major == major) && (expat_minor > minor)) ||
  14555. ((expat_major == major) && (expat_minor == minor) && (expat_micro >= micro)))
  14556. {
  14557. return 0;
  14558. }
  14559. else
  14560. {
  14561. printf("\n*** An old version of EXPAT (%d.%d.%d) was found.\n",
  14562. expat_major, expat_minor, expat_micro);
  14563. printf("*** You need a version of EXPAT newer than %d.%d.%d. The latest version of\n",
  14564. major, minor, micro);
  14565. printf("***\n");
  14566. printf("*** If you have already installed a sufficiently new version, this error\n");
  14567. printf("*** probably means that the wrong copy of the expat-config shell script is\n");
  14568. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  14569. printf("*** of EXPAT, but you can also set the EXPAT_CONFIG environment to point to the\n");
  14570. printf("*** correct copy of expat-config. (In this case, you will have to\n");
  14571. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  14572. printf("*** so that the correct libraries are found at run-time))\n");
  14573. }
  14574. return 1;
  14575. }
  14576. _ACEOF
  14577. if ac_fn_c_try_run "$LINENO"; then :
  14578. else
  14579. no_expat=yes
  14580. fi
  14581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14583. fi
  14584. CFLAGS="$ac_save_CFLAGS"
  14585. LIBS="$ac_save_LIBS"
  14586. fi
  14587. if test "x$no_expat" = x ; then
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14589. $as_echo "yes" >&6; }
  14590. use_expat=yes
  14591. :
  14592. else
  14593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14594. $as_echo "no" >&6; }
  14595. use_expat=no
  14596. if test -f conf.expattest ; then
  14597. :
  14598. else
  14599. echo "*** Could not run EXPAT test program, checking why..."
  14600. CFLAGS="$CFLAGS $EXPAT_CFLAGS"
  14601. LIBS="$LIBS $EXPAT_LIBS"
  14602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14603. /* end confdefs.h. */
  14604. #include <expat.h>
  14605. #include <stdio.h>
  14606. int
  14607. main ()
  14608. {
  14609. return (XML_ExpatVersion());
  14610. ;
  14611. return 0;
  14612. }
  14613. _ACEOF
  14614. if ac_fn_c_try_link "$LINENO"; then :
  14615. echo "*** The test program compiled, but did not run. This usually means"
  14616. echo "*** that the run-time linker is not finding EXPAT or finding the wrong"
  14617. echo "*** version of EXPAT. If it is not finding EXPAT you can specify"
  14618. echo "*** an install location using --with-expat-prefix option to"
  14619. echo "*** configure. You can also set the "
  14620. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  14621. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  14622. echo "*** is required on your system"
  14623. echo "***"
  14624. echo "*** If you have an old version installed, it is best to remove it, although"
  14625. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  14626. echo "***"
  14627. echo "*** Log4C will still run without EXPAT--it uses some bundled"
  14628. echo "*** lex/yacc code to parse the configuration file"
  14629. else
  14630. echo "*** The test program failed to compile or link. See the file config.log for the"
  14631. echo "*** exact error that occured. This usually means EXPAT was incorrectly installed"
  14632. echo "*** or that you have moved EXPAT since it was installed. In the latter case, you"
  14633. echo "*** may want to edit the expat-config script: '$EXPAT_CONFIG'"
  14634. echo "*** Log4C will still run without EXPAT--it uses some bundled"
  14635. echo "*** lex/yacc code to parse the configuration file"
  14636. fi
  14637. rm -f core conftest.err conftest.$ac_objext \
  14638. conftest$ac_exeext conftest.$ac_ext
  14639. CFLAGS="$ac_save_CFLAGS"
  14640. LIBS="$ac_save_LIBS"
  14641. fi
  14642. EXPAT_CFLAGS=""
  14643. EXPAT_LIBS=""
  14644. :
  14645. fi
  14646. rm -f conf.expattest
  14647. fi
  14648. if test "x$use_expat" = "xyes" ; then
  14649. USE_EXPAT_TRUE=
  14650. USE_EXPAT_FALSE='#'
  14651. else
  14652. USE_EXPAT_TRUE='#'
  14653. USE_EXPAT_FALSE=
  14654. fi
  14655. #
  14656. ###################
  14657. ac_config_files="$ac_config_files Makefile log4c-config log4c.pc log4crc.sample log4c.spec config/Makefile doc/Makefile doc/Doxyfile doc/main.doc src/Makefile src/log4c/Makefile src/log4c/version.h src/sd/Makefile tests/Makefile tests/log4c/Makefile examples/Makefile examples/log4crc examples/helloworld/Makefile examples/helloworld1/Makefile"
  14658. ac_config_commands="$ac_config_commands default"
  14659. cat >confcache <<\_ACEOF
  14660. # This file is a shell script that caches the results of configure
  14661. # tests run on this system so they can be shared between configure
  14662. # scripts and configure runs, see configure's option --config-cache.
  14663. # It is not useful on other systems. If it contains results you don't
  14664. # want to keep, you may remove or edit it.
  14665. #
  14666. # config.status only pays attention to the cache file if you give it
  14667. # the --recheck option to rerun configure.
  14668. #
  14669. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14670. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14671. # following values.
  14672. _ACEOF
  14673. # The following way of writing the cache mishandles newlines in values,
  14674. # but we know of no workaround that is simple, portable, and efficient.
  14675. # So, we kill variables containing newlines.
  14676. # Ultrix sh set writes to stderr and can't be redirected directly,
  14677. # and sets the high bit in the cache file unless we assign to the vars.
  14678. (
  14679. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14680. eval ac_val=\$$ac_var
  14681. case $ac_val in #(
  14682. *${as_nl}*)
  14683. case $ac_var in #(
  14684. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14685. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14686. esac
  14687. case $ac_var in #(
  14688. _ | IFS | as_nl) ;; #(
  14689. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14690. *) { eval $ac_var=; unset $ac_var;} ;;
  14691. esac ;;
  14692. esac
  14693. done
  14694. (set) 2>&1 |
  14695. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14696. *${as_nl}ac_space=\ *)
  14697. # `set' does not quote correctly, so add quotes: double-quote
  14698. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14699. sed -n \
  14700. "s/'/'\\\\''/g;
  14701. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14702. ;; #(
  14703. *)
  14704. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14705. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14706. ;;
  14707. esac |
  14708. sort
  14709. ) |
  14710. sed '
  14711. /^ac_cv_env_/b end
  14712. t clear
  14713. :clear
  14714. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14715. t end
  14716. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14717. :end' >>confcache
  14718. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14719. if test -w "$cache_file"; then
  14720. if test "x$cache_file" != "x/dev/null"; then
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14722. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14723. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14724. cat confcache >"$cache_file"
  14725. else
  14726. case $cache_file in #(
  14727. */* | ?:*)
  14728. mv -f confcache "$cache_file"$$ &&
  14729. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14730. *)
  14731. mv -f confcache "$cache_file" ;;
  14732. esac
  14733. fi
  14734. fi
  14735. else
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14737. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14738. fi
  14739. fi
  14740. rm -f confcache
  14741. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14742. # Let make expand exec_prefix.
  14743. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14744. DEFS=-DHAVE_CONFIG_H
  14745. ac_libobjs=
  14746. ac_ltlibobjs=
  14747. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14748. # 1. Remove the extension, and $U if already installed.
  14749. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14750. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14751. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14752. # will be set to the directory where LIBOBJS objects are built.
  14753. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14754. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14755. done
  14756. LIBOBJS=$ac_libobjs
  14757. LTLIBOBJS=$ac_ltlibobjs
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14759. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14760. if test -n "$am_sleep_pid"; then
  14761. # Hide warnings about reused PIDs.
  14762. wait $am_sleep_pid 2>/dev/null
  14763. fi
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14765. $as_echo "done" >&6; }
  14766. if test -n "$EXEEXT"; then
  14767. am__EXEEXT_TRUE=
  14768. am__EXEEXT_FALSE='#'
  14769. else
  14770. am__EXEEXT_TRUE='#'
  14771. am__EXEEXT_FALSE=
  14772. fi
  14773. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14774. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14776. fi
  14777. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14778. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14780. fi
  14781. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14782. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14784. fi
  14785. if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  14786. as_fn_error $? "conditional \"WIN32\" was never defined.
  14787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14788. fi
  14789. if test -z "${WITH_ROLLINGFILE_TRUE}" && test -z "${WITH_ROLLINGFILE_FALSE}"; then
  14790. as_fn_error $? "conditional \"WITH_ROLLINGFILE\" was never defined.
  14791. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14792. fi
  14793. if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
  14794. as_fn_error $? "conditional \"TEST\" was never defined.
  14795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14796. fi
  14797. if test -z "${WITH_MMAP_TRUE}" && test -z "${WITH_MMAP_FALSE}"; then
  14798. as_fn_error $? "conditional \"WITH_MMAP\" was never defined.
  14799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14800. fi
  14801. if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
  14802. as_fn_error $? "conditional \"DOC\" was never defined.
  14803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14804. fi
  14805. if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
  14806. as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
  14807. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14808. fi
  14809. if test -z "${USE_EXPAT_TRUE}" && test -z "${USE_EXPAT_FALSE}"; then
  14810. as_fn_error $? "conditional \"USE_EXPAT\" was never defined.
  14811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14812. fi
  14813. : "${CONFIG_STATUS=./config.status}"
  14814. ac_write_fail=0
  14815. ac_clean_files_save=$ac_clean_files
  14816. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14818. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14819. as_write_fail=0
  14820. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14821. #! $SHELL
  14822. # Generated by $as_me.
  14823. # Run this file to recreate the current configuration.
  14824. # Compiler output produced by configure, useful for debugging
  14825. # configure, is in config.log if it exists.
  14826. debug=false
  14827. ac_cs_recheck=false
  14828. ac_cs_silent=false
  14829. SHELL=\${CONFIG_SHELL-$SHELL}
  14830. export SHELL
  14831. _ASEOF
  14832. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14833. ## -------------------- ##
  14834. ## M4sh Initialization. ##
  14835. ## -------------------- ##
  14836. # Be more Bourne compatible
  14837. DUALCASE=1; export DUALCASE # for MKS sh
  14838. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14839. emulate sh
  14840. NULLCMD=:
  14841. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14842. # is contrary to our usage. Disable this feature.
  14843. alias -g '${1+"$@"}'='"$@"'
  14844. setopt NO_GLOB_SUBST
  14845. else
  14846. case `(set -o) 2>/dev/null` in #(
  14847. *posix*) :
  14848. set -o posix ;; #(
  14849. *) :
  14850. ;;
  14851. esac
  14852. fi
  14853. as_nl='
  14854. '
  14855. export as_nl
  14856. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14857. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14858. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14859. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14860. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14861. # but without wasting forks for bash or zsh.
  14862. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14863. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14864. as_echo='print -r --'
  14865. as_echo_n='print -rn --'
  14866. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14867. as_echo='printf %s\n'
  14868. as_echo_n='printf %s'
  14869. else
  14870. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14871. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14872. as_echo_n='/usr/ucb/echo -n'
  14873. else
  14874. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14875. as_echo_n_body='eval
  14876. arg=$1;
  14877. case $arg in #(
  14878. *"$as_nl"*)
  14879. expr "X$arg" : "X\\(.*\\)$as_nl";
  14880. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14881. esac;
  14882. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14883. '
  14884. export as_echo_n_body
  14885. as_echo_n='sh -c $as_echo_n_body as_echo'
  14886. fi
  14887. export as_echo_body
  14888. as_echo='sh -c $as_echo_body as_echo'
  14889. fi
  14890. # The user is always right.
  14891. if test "${PATH_SEPARATOR+set}" != set; then
  14892. PATH_SEPARATOR=:
  14893. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14894. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14895. PATH_SEPARATOR=';'
  14896. }
  14897. fi
  14898. # IFS
  14899. # We need space, tab and new line, in precisely that order. Quoting is
  14900. # there to prevent editors from complaining about space-tab.
  14901. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14902. # splitting by setting IFS to empty value.)
  14903. IFS=" "" $as_nl"
  14904. # Find who we are. Look in the path if we contain no directory separator.
  14905. as_myself=
  14906. case $0 in #((
  14907. *[\\/]* ) as_myself=$0 ;;
  14908. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14909. for as_dir in $PATH
  14910. do
  14911. IFS=$as_save_IFS
  14912. test -z "$as_dir" && as_dir=.
  14913. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14914. done
  14915. IFS=$as_save_IFS
  14916. ;;
  14917. esac
  14918. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14919. # in which case we are not to be found in the path.
  14920. if test "x$as_myself" = x; then
  14921. as_myself=$0
  14922. fi
  14923. if test ! -f "$as_myself"; then
  14924. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14925. exit 1
  14926. fi
  14927. # Unset variables that we do not need and which cause bugs (e.g. in
  14928. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14929. # suppresses any "Segmentation fault" message there. '((' could
  14930. # trigger a bug in pdksh 5.2.14.
  14931. for as_var in BASH_ENV ENV MAIL MAILPATH
  14932. do eval test x\${$as_var+set} = xset \
  14933. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14934. done
  14935. PS1='$ '
  14936. PS2='> '
  14937. PS4='+ '
  14938. # NLS nuisances.
  14939. LC_ALL=C
  14940. export LC_ALL
  14941. LANGUAGE=C
  14942. export LANGUAGE
  14943. # CDPATH.
  14944. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14945. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14946. # ----------------------------------------
  14947. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14948. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14949. # script with STATUS, using 1 if that was 0.
  14950. as_fn_error ()
  14951. {
  14952. as_status=$1; test $as_status -eq 0 && as_status=1
  14953. if test "$4"; then
  14954. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14955. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14956. fi
  14957. $as_echo "$as_me: error: $2" >&2
  14958. as_fn_exit $as_status
  14959. } # as_fn_error
  14960. # as_fn_set_status STATUS
  14961. # -----------------------
  14962. # Set $? to STATUS, without forking.
  14963. as_fn_set_status ()
  14964. {
  14965. return $1
  14966. } # as_fn_set_status
  14967. # as_fn_exit STATUS
  14968. # -----------------
  14969. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14970. as_fn_exit ()
  14971. {
  14972. set +e
  14973. as_fn_set_status $1
  14974. exit $1
  14975. } # as_fn_exit
  14976. # as_fn_unset VAR
  14977. # ---------------
  14978. # Portably unset VAR.
  14979. as_fn_unset ()
  14980. {
  14981. { eval $1=; unset $1;}
  14982. }
  14983. as_unset=as_fn_unset
  14984. # as_fn_append VAR VALUE
  14985. # ----------------------
  14986. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14987. # advantage of any shell optimizations that allow amortized linear growth over
  14988. # repeated appends, instead of the typical quadratic growth present in naive
  14989. # implementations.
  14990. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14991. eval 'as_fn_append ()
  14992. {
  14993. eval $1+=\$2
  14994. }'
  14995. else
  14996. as_fn_append ()
  14997. {
  14998. eval $1=\$$1\$2
  14999. }
  15000. fi # as_fn_append
  15001. # as_fn_arith ARG...
  15002. # ------------------
  15003. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15004. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15005. # must be portable across $(()) and expr.
  15006. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15007. eval 'as_fn_arith ()
  15008. {
  15009. as_val=$(( $* ))
  15010. }'
  15011. else
  15012. as_fn_arith ()
  15013. {
  15014. as_val=`expr "$@" || test $? -eq 1`
  15015. }
  15016. fi # as_fn_arith
  15017. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15018. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15019. as_expr=expr
  15020. else
  15021. as_expr=false
  15022. fi
  15023. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15024. as_basename=basename
  15025. else
  15026. as_basename=false
  15027. fi
  15028. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15029. as_dirname=dirname
  15030. else
  15031. as_dirname=false
  15032. fi
  15033. as_me=`$as_basename -- "$0" ||
  15034. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15035. X"$0" : 'X\(//\)$' \| \
  15036. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15037. $as_echo X/"$0" |
  15038. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15039. s//\1/
  15040. q
  15041. }
  15042. /^X\/\(\/\/\)$/{
  15043. s//\1/
  15044. q
  15045. }
  15046. /^X\/\(\/\).*/{
  15047. s//\1/
  15048. q
  15049. }
  15050. s/.*/./; q'`
  15051. # Avoid depending upon Character Ranges.
  15052. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15053. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15054. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15055. as_cr_digits='0123456789'
  15056. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15057. ECHO_C= ECHO_N= ECHO_T=
  15058. case `echo -n x` in #(((((
  15059. -n*)
  15060. case `echo 'xy\c'` in
  15061. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15062. xy) ECHO_C='\c';;
  15063. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15064. ECHO_T=' ';;
  15065. esac;;
  15066. *)
  15067. ECHO_N='-n';;
  15068. esac
  15069. rm -f conf$$ conf$$.exe conf$$.file
  15070. if test -d conf$$.dir; then
  15071. rm -f conf$$.dir/conf$$.file
  15072. else
  15073. rm -f conf$$.dir
  15074. mkdir conf$$.dir 2>/dev/null
  15075. fi
  15076. if (echo >conf$$.file) 2>/dev/null; then
  15077. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15078. as_ln_s='ln -s'
  15079. # ... but there are two gotchas:
  15080. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15081. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15082. # In both cases, we have to default to `cp -pR'.
  15083. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15084. as_ln_s='cp -pR'
  15085. elif ln conf$$.file conf$$ 2>/dev/null; then
  15086. as_ln_s=ln
  15087. else
  15088. as_ln_s='cp -pR'
  15089. fi
  15090. else
  15091. as_ln_s='cp -pR'
  15092. fi
  15093. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15094. rmdir conf$$.dir 2>/dev/null
  15095. # as_fn_mkdir_p
  15096. # -------------
  15097. # Create "$as_dir" as a directory, including parents if necessary.
  15098. as_fn_mkdir_p ()
  15099. {
  15100. case $as_dir in #(
  15101. -*) as_dir=./$as_dir;;
  15102. esac
  15103. test -d "$as_dir" || eval $as_mkdir_p || {
  15104. as_dirs=
  15105. while :; do
  15106. case $as_dir in #(
  15107. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15108. *) as_qdir=$as_dir;;
  15109. esac
  15110. as_dirs="'$as_qdir' $as_dirs"
  15111. as_dir=`$as_dirname -- "$as_dir" ||
  15112. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15113. X"$as_dir" : 'X\(//\)[^/]' \| \
  15114. X"$as_dir" : 'X\(//\)$' \| \
  15115. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15116. $as_echo X"$as_dir" |
  15117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15118. s//\1/
  15119. q
  15120. }
  15121. /^X\(\/\/\)[^/].*/{
  15122. s//\1/
  15123. q
  15124. }
  15125. /^X\(\/\/\)$/{
  15126. s//\1/
  15127. q
  15128. }
  15129. /^X\(\/\).*/{
  15130. s//\1/
  15131. q
  15132. }
  15133. s/.*/./; q'`
  15134. test -d "$as_dir" && break
  15135. done
  15136. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15137. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15138. } # as_fn_mkdir_p
  15139. if mkdir -p . 2>/dev/null; then
  15140. as_mkdir_p='mkdir -p "$as_dir"'
  15141. else
  15142. test -d ./-p && rmdir ./-p
  15143. as_mkdir_p=false
  15144. fi
  15145. # as_fn_executable_p FILE
  15146. # -----------------------
  15147. # Test if FILE is an executable regular file.
  15148. as_fn_executable_p ()
  15149. {
  15150. test -f "$1" && test -x "$1"
  15151. } # as_fn_executable_p
  15152. as_test_x='test -x'
  15153. as_executable_p=as_fn_executable_p
  15154. # Sed expression to map a string onto a valid CPP name.
  15155. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15156. # Sed expression to map a string onto a valid variable name.
  15157. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15158. exec 6>&1
  15159. ## ----------------------------------- ##
  15160. ## Main body of $CONFIG_STATUS script. ##
  15161. ## ----------------------------------- ##
  15162. _ASEOF
  15163. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15165. # Save the log message, to keep $0 and so on meaningful, and to
  15166. # report actual input values of CONFIG_FILES etc. instead of their
  15167. # values after options handling.
  15168. ac_log="
  15169. This file was extended by $as_me, which was
  15170. generated by GNU Autoconf 2.69. Invocation command line was
  15171. CONFIG_FILES = $CONFIG_FILES
  15172. CONFIG_HEADERS = $CONFIG_HEADERS
  15173. CONFIG_LINKS = $CONFIG_LINKS
  15174. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15175. $ $0 $@
  15176. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15177. "
  15178. _ACEOF
  15179. case $ac_config_files in *"
  15180. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15181. esac
  15182. case $ac_config_headers in *"
  15183. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15184. esac
  15185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15186. # Files that config.status was made for.
  15187. config_files="$ac_config_files"
  15188. config_headers="$ac_config_headers"
  15189. config_commands="$ac_config_commands"
  15190. _ACEOF
  15191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15192. ac_cs_usage="\
  15193. \`$as_me' instantiates files and other configuration actions
  15194. from templates according to the current configuration. Unless the files
  15195. and actions are specified as TAGs, all are instantiated by default.
  15196. Usage: $0 [OPTION]... [TAG]...
  15197. -h, --help print this help, then exit
  15198. -V, --version print version number and configuration settings, then exit
  15199. --config print configuration, then exit
  15200. -q, --quiet, --silent
  15201. do not print progress messages
  15202. -d, --debug don't remove temporary files
  15203. --recheck update $as_me by reconfiguring in the same conditions
  15204. --file=FILE[:TEMPLATE]
  15205. instantiate the configuration file FILE
  15206. --header=FILE[:TEMPLATE]
  15207. instantiate the configuration header FILE
  15208. Configuration files:
  15209. $config_files
  15210. Configuration headers:
  15211. $config_headers
  15212. Configuration commands:
  15213. $config_commands
  15214. Report bugs to the package provider."
  15215. _ACEOF
  15216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15217. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15218. ac_cs_version="\\
  15219. config.status
  15220. configured by $0, generated by GNU Autoconf 2.69,
  15221. with options \\"\$ac_cs_config\\"
  15222. Copyright (C) 2012 Free Software Foundation, Inc.
  15223. This config.status script is free software; the Free Software Foundation
  15224. gives unlimited permission to copy, distribute and modify it."
  15225. ac_pwd='$ac_pwd'
  15226. srcdir='$srcdir'
  15227. INSTALL='$INSTALL'
  15228. MKDIR_P='$MKDIR_P'
  15229. AWK='$AWK'
  15230. test -n "\$AWK" || AWK=awk
  15231. _ACEOF
  15232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15233. # The default lists apply if the user does not specify any file.
  15234. ac_need_defaults=:
  15235. while test $# != 0
  15236. do
  15237. case $1 in
  15238. --*=?*)
  15239. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15240. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15241. ac_shift=:
  15242. ;;
  15243. --*=)
  15244. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15245. ac_optarg=
  15246. ac_shift=:
  15247. ;;
  15248. *)
  15249. ac_option=$1
  15250. ac_optarg=$2
  15251. ac_shift=shift
  15252. ;;
  15253. esac
  15254. case $ac_option in
  15255. # Handling of the options.
  15256. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15257. ac_cs_recheck=: ;;
  15258. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15259. $as_echo "$ac_cs_version"; exit ;;
  15260. --config | --confi | --conf | --con | --co | --c )
  15261. $as_echo "$ac_cs_config"; exit ;;
  15262. --debug | --debu | --deb | --de | --d | -d )
  15263. debug=: ;;
  15264. --file | --fil | --fi | --f )
  15265. $ac_shift
  15266. case $ac_optarg in
  15267. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15268. '') as_fn_error $? "missing file argument" ;;
  15269. esac
  15270. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15271. ac_need_defaults=false;;
  15272. --header | --heade | --head | --hea )
  15273. $ac_shift
  15274. case $ac_optarg in
  15275. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15276. esac
  15277. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15278. ac_need_defaults=false;;
  15279. --he | --h)
  15280. # Conflict between --help and --header
  15281. as_fn_error $? "ambiguous option: \`$1'
  15282. Try \`$0 --help' for more information.";;
  15283. --help | --hel | -h )
  15284. $as_echo "$ac_cs_usage"; exit ;;
  15285. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15286. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15287. ac_cs_silent=: ;;
  15288. # This is an error.
  15289. -*) as_fn_error $? "unrecognized option: \`$1'
  15290. Try \`$0 --help' for more information." ;;
  15291. *) as_fn_append ac_config_targets " $1"
  15292. ac_need_defaults=false ;;
  15293. esac
  15294. shift
  15295. done
  15296. ac_configure_extra_args=
  15297. if $ac_cs_silent; then
  15298. exec 6>/dev/null
  15299. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15300. fi
  15301. _ACEOF
  15302. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15303. if \$ac_cs_recheck; then
  15304. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15305. shift
  15306. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15307. CONFIG_SHELL='$SHELL'
  15308. export CONFIG_SHELL
  15309. exec "\$@"
  15310. fi
  15311. _ACEOF
  15312. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15313. exec 5>>config.log
  15314. {
  15315. echo
  15316. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15317. ## Running $as_me. ##
  15318. _ASBOX
  15319. $as_echo "$ac_log"
  15320. } >&5
  15321. _ACEOF
  15322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15323. #
  15324. # INIT-COMMANDS
  15325. #
  15326. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15327. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15328. # if CDPATH is set.
  15329. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15330. sed_quote_subst='$sed_quote_subst'
  15331. double_quote_subst='$double_quote_subst'
  15332. delay_variable_subst='$delay_variable_subst'
  15333. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15334. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15335. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15336. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15337. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15338. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15339. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15340. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15341. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15342. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15343. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15344. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15345. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15346. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15347. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15348. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15349. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15350. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15351. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15352. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15353. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15354. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15355. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15356. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15357. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15358. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15359. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15360. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15361. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15362. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15363. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15364. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15365. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15366. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15367. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15368. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15369. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15370. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15371. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15372. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15373. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15374. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15375. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15376. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15377. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15378. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15379. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15380. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15381. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15382. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15383. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15384. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15385. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15386. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15387. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15388. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15389. 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"`'
  15390. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15391. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15392. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15393. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15394. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15395. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15396. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15397. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15398. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15399. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15400. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15401. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15402. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15403. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15404. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15405. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15406. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15407. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15408. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15409. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15410. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15411. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15412. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15413. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15414. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15415. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15416. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15417. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15418. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15419. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15420. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15421. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15422. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15423. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15424. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15425. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15426. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15427. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15428. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15429. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15430. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15431. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15432. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15433. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15434. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15435. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15436. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15437. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15438. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15439. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15440. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15441. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15442. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15443. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15444. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15445. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15446. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15447. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15448. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15449. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15450. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15451. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15452. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15453. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15454. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15455. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15456. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15457. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15458. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15459. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15460. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15461. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15462. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15463. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15464. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15465. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15466. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15467. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15468. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15469. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15470. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15471. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15472. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15473. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15474. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15475. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15476. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15477. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15478. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15479. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15480. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15481. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15482. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15483. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15484. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15485. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15486. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15487. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15488. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15489. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15490. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15491. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15492. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15493. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15494. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15495. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15496. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15497. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15498. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15499. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15500. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15501. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15502. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15503. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15504. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15505. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15506. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15507. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15508. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15509. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15510. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15511. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15512. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15513. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15514. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15515. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15516. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15517. LTCC='$LTCC'
  15518. LTCFLAGS='$LTCFLAGS'
  15519. compiler='$compiler_DEFAULT'
  15520. # A function that is used when there is no print builtin or printf.
  15521. func_fallback_echo ()
  15522. {
  15523. eval 'cat <<_LTECHO_EOF
  15524. \$1
  15525. _LTECHO_EOF'
  15526. }
  15527. # Quote evaled strings.
  15528. for var in SHELL \
  15529. ECHO \
  15530. PATH_SEPARATOR \
  15531. SED \
  15532. GREP \
  15533. EGREP \
  15534. FGREP \
  15535. LD \
  15536. NM \
  15537. LN_S \
  15538. lt_SP2NL \
  15539. lt_NL2SP \
  15540. reload_flag \
  15541. OBJDUMP \
  15542. deplibs_check_method \
  15543. file_magic_cmd \
  15544. file_magic_glob \
  15545. want_nocaseglob \
  15546. DLLTOOL \
  15547. sharedlib_from_linklib_cmd \
  15548. AR \
  15549. AR_FLAGS \
  15550. archiver_list_spec \
  15551. STRIP \
  15552. RANLIB \
  15553. CC \
  15554. CFLAGS \
  15555. compiler \
  15556. lt_cv_sys_global_symbol_pipe \
  15557. lt_cv_sys_global_symbol_to_cdecl \
  15558. lt_cv_sys_global_symbol_to_c_name_address \
  15559. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15560. nm_file_list_spec \
  15561. lt_prog_compiler_no_builtin_flag \
  15562. lt_prog_compiler_pic \
  15563. lt_prog_compiler_wl \
  15564. lt_prog_compiler_static \
  15565. lt_cv_prog_compiler_c_o \
  15566. need_locks \
  15567. MANIFEST_TOOL \
  15568. DSYMUTIL \
  15569. NMEDIT \
  15570. LIPO \
  15571. OTOOL \
  15572. OTOOL64 \
  15573. shrext_cmds \
  15574. export_dynamic_flag_spec \
  15575. whole_archive_flag_spec \
  15576. compiler_needs_object \
  15577. with_gnu_ld \
  15578. allow_undefined_flag \
  15579. no_undefined_flag \
  15580. hardcode_libdir_flag_spec \
  15581. hardcode_libdir_separator \
  15582. exclude_expsyms \
  15583. include_expsyms \
  15584. file_list_spec \
  15585. variables_saved_for_relink \
  15586. libname_spec \
  15587. library_names_spec \
  15588. soname_spec \
  15589. install_override_mode \
  15590. finish_eval \
  15591. old_striplib \
  15592. striplib \
  15593. compiler_lib_search_dirs \
  15594. predep_objects \
  15595. postdep_objects \
  15596. predeps \
  15597. postdeps \
  15598. compiler_lib_search_path \
  15599. LD_CXX \
  15600. reload_flag_CXX \
  15601. compiler_CXX \
  15602. lt_prog_compiler_no_builtin_flag_CXX \
  15603. lt_prog_compiler_pic_CXX \
  15604. lt_prog_compiler_wl_CXX \
  15605. lt_prog_compiler_static_CXX \
  15606. lt_cv_prog_compiler_c_o_CXX \
  15607. export_dynamic_flag_spec_CXX \
  15608. whole_archive_flag_spec_CXX \
  15609. compiler_needs_object_CXX \
  15610. with_gnu_ld_CXX \
  15611. allow_undefined_flag_CXX \
  15612. no_undefined_flag_CXX \
  15613. hardcode_libdir_flag_spec_CXX \
  15614. hardcode_libdir_separator_CXX \
  15615. exclude_expsyms_CXX \
  15616. include_expsyms_CXX \
  15617. file_list_spec_CXX \
  15618. compiler_lib_search_dirs_CXX \
  15619. predep_objects_CXX \
  15620. postdep_objects_CXX \
  15621. predeps_CXX \
  15622. postdeps_CXX \
  15623. compiler_lib_search_path_CXX; do
  15624. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15625. *[\\\\\\\`\\"\\\$]*)
  15626. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15627. ;;
  15628. *)
  15629. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15630. ;;
  15631. esac
  15632. done
  15633. # Double-quote double-evaled strings.
  15634. for var in reload_cmds \
  15635. old_postinstall_cmds \
  15636. old_postuninstall_cmds \
  15637. old_archive_cmds \
  15638. extract_expsyms_cmds \
  15639. old_archive_from_new_cmds \
  15640. old_archive_from_expsyms_cmds \
  15641. archive_cmds \
  15642. archive_expsym_cmds \
  15643. module_cmds \
  15644. module_expsym_cmds \
  15645. export_symbols_cmds \
  15646. prelink_cmds \
  15647. postlink_cmds \
  15648. postinstall_cmds \
  15649. postuninstall_cmds \
  15650. finish_cmds \
  15651. sys_lib_search_path_spec \
  15652. sys_lib_dlsearch_path_spec \
  15653. reload_cmds_CXX \
  15654. old_archive_cmds_CXX \
  15655. old_archive_from_new_cmds_CXX \
  15656. old_archive_from_expsyms_cmds_CXX \
  15657. archive_cmds_CXX \
  15658. archive_expsym_cmds_CXX \
  15659. module_cmds_CXX \
  15660. module_expsym_cmds_CXX \
  15661. export_symbols_cmds_CXX \
  15662. prelink_cmds_CXX \
  15663. postlink_cmds_CXX; do
  15664. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15665. *[\\\\\\\`\\"\\\$]*)
  15666. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15667. ;;
  15668. *)
  15669. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15670. ;;
  15671. esac
  15672. done
  15673. ac_aux_dir='$ac_aux_dir'
  15674. xsi_shell='$xsi_shell'
  15675. lt_shell_append='$lt_shell_append'
  15676. # See if we are running on zsh, and set the options which allow our
  15677. # commands through without removal of \ escapes INIT.
  15678. if test -n "\${ZSH_VERSION+set}" ; then
  15679. setopt NO_GLOB_SUBST
  15680. fi
  15681. PACKAGE='$PACKAGE'
  15682. VERSION='$VERSION'
  15683. TIMESTAMP='$TIMESTAMP'
  15684. RM='$RM'
  15685. ofile='$ofile'
  15686. _ACEOF
  15687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15688. # Handling of arguments.
  15689. for ac_config_target in $ac_config_targets
  15690. do
  15691. case $ac_config_target in
  15692. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  15693. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15694. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15695. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15696. "log4c-config") CONFIG_FILES="$CONFIG_FILES log4c-config" ;;
  15697. "log4c.pc") CONFIG_FILES="$CONFIG_FILES log4c.pc" ;;
  15698. "log4crc.sample") CONFIG_FILES="$CONFIG_FILES log4crc.sample" ;;
  15699. "log4c.spec") CONFIG_FILES="$CONFIG_FILES log4c.spec" ;;
  15700. "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
  15701. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15702. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  15703. "doc/main.doc") CONFIG_FILES="$CONFIG_FILES doc/main.doc" ;;
  15704. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15705. "src/log4c/Makefile") CONFIG_FILES="$CONFIG_FILES src/log4c/Makefile" ;;
  15706. "src/log4c/version.h") CONFIG_FILES="$CONFIG_FILES src/log4c/version.h" ;;
  15707. "src/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd/Makefile" ;;
  15708. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  15709. "tests/log4c/Makefile") CONFIG_FILES="$CONFIG_FILES tests/log4c/Makefile" ;;
  15710. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  15711. "examples/log4crc") CONFIG_FILES="$CONFIG_FILES examples/log4crc" ;;
  15712. "examples/helloworld/Makefile") CONFIG_FILES="$CONFIG_FILES examples/helloworld/Makefile" ;;
  15713. "examples/helloworld1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/helloworld1/Makefile" ;;
  15714. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  15715. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15716. esac
  15717. done
  15718. # If the user did not use the arguments to specify the items to instantiate,
  15719. # then the envvar interface is used. Set only those that are not.
  15720. # We use the long form for the default assignment because of an extremely
  15721. # bizarre bug on SunOS 4.1.3.
  15722. if $ac_need_defaults; then
  15723. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15724. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15725. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15726. fi
  15727. # Have a temporary directory for convenience. Make it in the build tree
  15728. # simply because there is no reason against having it here, and in addition,
  15729. # creating and moving files from /tmp can sometimes cause problems.
  15730. # Hook for its removal unless debugging.
  15731. # Note that there is a small window in which the directory will not be cleaned:
  15732. # after its creation but before its name has been assigned to `$tmp'.
  15733. $debug ||
  15734. {
  15735. tmp= ac_tmp=
  15736. trap 'exit_status=$?
  15737. : "${ac_tmp:=$tmp}"
  15738. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15739. ' 0
  15740. trap 'as_fn_exit 1' 1 2 13 15
  15741. }
  15742. # Create a (secure) tmp directory for tmp files.
  15743. {
  15744. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15745. test -d "$tmp"
  15746. } ||
  15747. {
  15748. tmp=./conf$$-$RANDOM
  15749. (umask 077 && mkdir "$tmp")
  15750. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15751. ac_tmp=$tmp
  15752. # Set up the scripts for CONFIG_FILES section.
  15753. # No need to generate them if there are no CONFIG_FILES.
  15754. # This happens for instance with `./config.status config.h'.
  15755. if test -n "$CONFIG_FILES"; then
  15756. ac_cr=`echo X | tr X '\015'`
  15757. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15758. # But we know of no other shell where ac_cr would be empty at this
  15759. # point, so we can use a bashism as a fallback.
  15760. if test "x$ac_cr" = x; then
  15761. eval ac_cr=\$\'\\r\'
  15762. fi
  15763. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15764. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15765. ac_cs_awk_cr='\\r'
  15766. else
  15767. ac_cs_awk_cr=$ac_cr
  15768. fi
  15769. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15770. _ACEOF
  15771. {
  15772. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15773. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15774. echo "_ACEOF"
  15775. } >conf$$subs.sh ||
  15776. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15777. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15778. ac_delim='%!_!# '
  15779. for ac_last_try in false false false false false :; do
  15780. . ./conf$$subs.sh ||
  15781. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15782. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15783. if test $ac_delim_n = $ac_delim_num; then
  15784. break
  15785. elif $ac_last_try; then
  15786. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15787. else
  15788. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15789. fi
  15790. done
  15791. rm -f conf$$subs.sh
  15792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15793. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15794. _ACEOF
  15795. sed -n '
  15796. h
  15797. s/^/S["/; s/!.*/"]=/
  15798. p
  15799. g
  15800. s/^[^!]*!//
  15801. :repl
  15802. t repl
  15803. s/'"$ac_delim"'$//
  15804. t delim
  15805. :nl
  15806. h
  15807. s/\(.\{148\}\)..*/\1/
  15808. t more1
  15809. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15810. p
  15811. n
  15812. b repl
  15813. :more1
  15814. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15815. p
  15816. g
  15817. s/.\{148\}//
  15818. t nl
  15819. :delim
  15820. h
  15821. s/\(.\{148\}\)..*/\1/
  15822. t more2
  15823. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15824. p
  15825. b
  15826. :more2
  15827. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15828. p
  15829. g
  15830. s/.\{148\}//
  15831. t delim
  15832. ' <conf$$subs.awk | sed '
  15833. /^[^""]/{
  15834. N
  15835. s/\n//
  15836. }
  15837. ' >>$CONFIG_STATUS || ac_write_fail=1
  15838. rm -f conf$$subs.awk
  15839. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15840. _ACAWK
  15841. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15842. for (key in S) S_is_set[key] = 1
  15843. FS = ""
  15844. }
  15845. {
  15846. line = $ 0
  15847. nfields = split(line, field, "@")
  15848. substed = 0
  15849. len = length(field[1])
  15850. for (i = 2; i < nfields; i++) {
  15851. key = field[i]
  15852. keylen = length(key)
  15853. if (S_is_set[key]) {
  15854. value = S[key]
  15855. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15856. len += length(value) + length(field[++i])
  15857. substed = 1
  15858. } else
  15859. len += 1 + keylen
  15860. }
  15861. print line
  15862. }
  15863. _ACAWK
  15864. _ACEOF
  15865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15866. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15867. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15868. else
  15869. cat
  15870. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15871. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15872. _ACEOF
  15873. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15874. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15875. # trailing colons and then remove the whole line if VPATH becomes empty
  15876. # (actually we leave an empty line to preserve line numbers).
  15877. if test "x$srcdir" = x.; then
  15878. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15879. h
  15880. s///
  15881. s/^/:/
  15882. s/[ ]*$/:/
  15883. s/:\$(srcdir):/:/g
  15884. s/:\${srcdir}:/:/g
  15885. s/:@srcdir@:/:/g
  15886. s/^:*//
  15887. s/:*$//
  15888. x
  15889. s/\(=[ ]*\).*/\1/
  15890. G
  15891. s/\n//
  15892. s/^[^=]*=[ ]*$//
  15893. }'
  15894. fi
  15895. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15896. fi # test -n "$CONFIG_FILES"
  15897. # Set up the scripts for CONFIG_HEADERS section.
  15898. # No need to generate them if there are no CONFIG_HEADERS.
  15899. # This happens for instance with `./config.status Makefile'.
  15900. if test -n "$CONFIG_HEADERS"; then
  15901. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15902. BEGIN {
  15903. _ACEOF
  15904. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15905. # here-document in config.status, that substitutes the proper values into
  15906. # config.h.in to produce config.h.
  15907. # Create a delimiter string that does not exist in confdefs.h, to ease
  15908. # handling of long lines.
  15909. ac_delim='%!_!# '
  15910. for ac_last_try in false false :; do
  15911. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15912. if test -z "$ac_tt"; then
  15913. break
  15914. elif $ac_last_try; then
  15915. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15916. else
  15917. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15918. fi
  15919. done
  15920. # For the awk script, D is an array of macro values keyed by name,
  15921. # likewise P contains macro parameters if any. Preserve backslash
  15922. # newline sequences.
  15923. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15924. sed -n '
  15925. s/.\{148\}/&'"$ac_delim"'/g
  15926. t rset
  15927. :rset
  15928. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15929. t def
  15930. d
  15931. :def
  15932. s/\\$//
  15933. t bsnl
  15934. s/["\\]/\\&/g
  15935. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15936. D["\1"]=" \3"/p
  15937. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15938. d
  15939. :bsnl
  15940. s/["\\]/\\&/g
  15941. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15942. D["\1"]=" \3\\\\\\n"\\/p
  15943. t cont
  15944. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15945. t cont
  15946. d
  15947. :cont
  15948. n
  15949. s/.\{148\}/&'"$ac_delim"'/g
  15950. t clear
  15951. :clear
  15952. s/\\$//
  15953. t bsnlc
  15954. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15955. d
  15956. :bsnlc
  15957. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15958. b cont
  15959. ' <confdefs.h | sed '
  15960. s/'"$ac_delim"'/"\\\
  15961. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15963. for (key in D) D_is_set[key] = 1
  15964. FS = ""
  15965. }
  15966. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15967. line = \$ 0
  15968. split(line, arg, " ")
  15969. if (arg[1] == "#") {
  15970. defundef = arg[2]
  15971. mac1 = arg[3]
  15972. } else {
  15973. defundef = substr(arg[1], 2)
  15974. mac1 = arg[2]
  15975. }
  15976. split(mac1, mac2, "(") #)
  15977. macro = mac2[1]
  15978. prefix = substr(line, 1, index(line, defundef) - 1)
  15979. if (D_is_set[macro]) {
  15980. # Preserve the white space surrounding the "#".
  15981. print prefix "define", macro P[macro] D[macro]
  15982. next
  15983. } else {
  15984. # Replace #undef with comments. This is necessary, for example,
  15985. # in the case of _POSIX_SOURCE, which is predefined and required
  15986. # on some systems where configure will not decide to define it.
  15987. if (defundef == "undef") {
  15988. print "/*", prefix defundef, macro, "*/"
  15989. next
  15990. }
  15991. }
  15992. }
  15993. { print }
  15994. _ACAWK
  15995. _ACEOF
  15996. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15997. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15998. fi # test -n "$CONFIG_HEADERS"
  15999. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16000. shift
  16001. for ac_tag
  16002. do
  16003. case $ac_tag in
  16004. :[FHLC]) ac_mode=$ac_tag; continue;;
  16005. esac
  16006. case $ac_mode$ac_tag in
  16007. :[FHL]*:*);;
  16008. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16009. :[FH]-) ac_tag=-:-;;
  16010. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16011. esac
  16012. ac_save_IFS=$IFS
  16013. IFS=:
  16014. set x $ac_tag
  16015. IFS=$ac_save_IFS
  16016. shift
  16017. ac_file=$1
  16018. shift
  16019. case $ac_mode in
  16020. :L) ac_source=$1;;
  16021. :[FH])
  16022. ac_file_inputs=
  16023. for ac_f
  16024. do
  16025. case $ac_f in
  16026. -) ac_f="$ac_tmp/stdin";;
  16027. *) # Look for the file first in the build tree, then in the source tree
  16028. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16029. # because $ac_f cannot contain `:'.
  16030. test -f "$ac_f" ||
  16031. case $ac_f in
  16032. [\\/$]*) false;;
  16033. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16034. esac ||
  16035. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16036. esac
  16037. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16038. as_fn_append ac_file_inputs " '$ac_f'"
  16039. done
  16040. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16041. # use $as_me), people would be surprised to read:
  16042. # /* config.h. Generated by config.status. */
  16043. configure_input='Generated from '`
  16044. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16045. `' by configure.'
  16046. if test x"$ac_file" != x-; then
  16047. configure_input="$ac_file. $configure_input"
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16049. $as_echo "$as_me: creating $ac_file" >&6;}
  16050. fi
  16051. # Neutralize special characters interpreted by sed in replacement strings.
  16052. case $configure_input in #(
  16053. *\&* | *\|* | *\\* )
  16054. ac_sed_conf_input=`$as_echo "$configure_input" |
  16055. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16056. *) ac_sed_conf_input=$configure_input;;
  16057. esac
  16058. case $ac_tag in
  16059. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16060. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16061. esac
  16062. ;;
  16063. esac
  16064. ac_dir=`$as_dirname -- "$ac_file" ||
  16065. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16066. X"$ac_file" : 'X\(//\)[^/]' \| \
  16067. X"$ac_file" : 'X\(//\)$' \| \
  16068. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16069. $as_echo X"$ac_file" |
  16070. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16071. s//\1/
  16072. q
  16073. }
  16074. /^X\(\/\/\)[^/].*/{
  16075. s//\1/
  16076. q
  16077. }
  16078. /^X\(\/\/\)$/{
  16079. s//\1/
  16080. q
  16081. }
  16082. /^X\(\/\).*/{
  16083. s//\1/
  16084. q
  16085. }
  16086. s/.*/./; q'`
  16087. as_dir="$ac_dir"; as_fn_mkdir_p
  16088. ac_builddir=.
  16089. case "$ac_dir" in
  16090. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16091. *)
  16092. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16093. # A ".." for each directory in $ac_dir_suffix.
  16094. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16095. case $ac_top_builddir_sub in
  16096. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16097. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16098. esac ;;
  16099. esac
  16100. ac_abs_top_builddir=$ac_pwd
  16101. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16102. # for backward compatibility:
  16103. ac_top_builddir=$ac_top_build_prefix
  16104. case $srcdir in
  16105. .) # We are building in place.
  16106. ac_srcdir=.
  16107. ac_top_srcdir=$ac_top_builddir_sub
  16108. ac_abs_top_srcdir=$ac_pwd ;;
  16109. [\\/]* | ?:[\\/]* ) # Absolute name.
  16110. ac_srcdir=$srcdir$ac_dir_suffix;
  16111. ac_top_srcdir=$srcdir
  16112. ac_abs_top_srcdir=$srcdir ;;
  16113. *) # Relative name.
  16114. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16115. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16116. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16117. esac
  16118. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16119. case $ac_mode in
  16120. :F)
  16121. #
  16122. # CONFIG_FILE
  16123. #
  16124. case $INSTALL in
  16125. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16126. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16127. esac
  16128. ac_MKDIR_P=$MKDIR_P
  16129. case $MKDIR_P in
  16130. [\\/$]* | ?:[\\/]* ) ;;
  16131. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16132. esac
  16133. _ACEOF
  16134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16135. # If the template does not know about datarootdir, expand it.
  16136. # FIXME: This hack should be removed a few years after 2.60.
  16137. ac_datarootdir_hack=; ac_datarootdir_seen=
  16138. ac_sed_dataroot='
  16139. /datarootdir/ {
  16140. p
  16141. q
  16142. }
  16143. /@datadir@/p
  16144. /@docdir@/p
  16145. /@infodir@/p
  16146. /@localedir@/p
  16147. /@mandir@/p'
  16148. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16149. *datarootdir*) ac_datarootdir_seen=yes;;
  16150. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16152. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16153. _ACEOF
  16154. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16155. ac_datarootdir_hack='
  16156. s&@datadir@&$datadir&g
  16157. s&@docdir@&$docdir&g
  16158. s&@infodir@&$infodir&g
  16159. s&@localedir@&$localedir&g
  16160. s&@mandir@&$mandir&g
  16161. s&\\\${datarootdir}&$datarootdir&g' ;;
  16162. esac
  16163. _ACEOF
  16164. # Neutralize VPATH when `$srcdir' = `.'.
  16165. # Shell code in configure.ac might set extrasub.
  16166. # FIXME: do we really want to maintain this feature?
  16167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16168. ac_sed_extra="$ac_vpsub
  16169. $extrasub
  16170. _ACEOF
  16171. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16172. :t
  16173. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16174. s|@configure_input@|$ac_sed_conf_input|;t t
  16175. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16176. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16177. s&@srcdir@&$ac_srcdir&;t t
  16178. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16179. s&@top_srcdir@&$ac_top_srcdir&;t t
  16180. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16181. s&@builddir@&$ac_builddir&;t t
  16182. s&@abs_builddir@&$ac_abs_builddir&;t t
  16183. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16184. s&@INSTALL@&$ac_INSTALL&;t t
  16185. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16186. $ac_datarootdir_hack
  16187. "
  16188. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16189. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16190. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16191. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16192. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16193. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16195. which seems to be undefined. Please make sure it is defined" >&5
  16196. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16197. which seems to be undefined. Please make sure it is defined" >&2;}
  16198. rm -f "$ac_tmp/stdin"
  16199. case $ac_file in
  16200. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16201. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16202. esac \
  16203. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16204. ;;
  16205. :H)
  16206. #
  16207. # CONFIG_HEADER
  16208. #
  16209. if test x"$ac_file" != x-; then
  16210. {
  16211. $as_echo "/* $configure_input */" \
  16212. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16213. } >"$ac_tmp/config.h" \
  16214. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16215. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16217. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16218. else
  16219. rm -f "$ac_file"
  16220. mv "$ac_tmp/config.h" "$ac_file" \
  16221. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16222. fi
  16223. else
  16224. $as_echo "/* $configure_input */" \
  16225. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16226. || as_fn_error $? "could not create -" "$LINENO" 5
  16227. fi
  16228. # Compute "$ac_file"'s index in $config_headers.
  16229. _am_arg="$ac_file"
  16230. _am_stamp_count=1
  16231. for _am_header in $config_headers :; do
  16232. case $_am_header in
  16233. $_am_arg | $_am_arg:* )
  16234. break ;;
  16235. * )
  16236. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16237. esac
  16238. done
  16239. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16240. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16241. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16242. X"$_am_arg" : 'X\(//\)$' \| \
  16243. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16244. $as_echo X"$_am_arg" |
  16245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16246. s//\1/
  16247. q
  16248. }
  16249. /^X\(\/\/\)[^/].*/{
  16250. s//\1/
  16251. q
  16252. }
  16253. /^X\(\/\/\)$/{
  16254. s//\1/
  16255. q
  16256. }
  16257. /^X\(\/\).*/{
  16258. s//\1/
  16259. q
  16260. }
  16261. s/.*/./; q'`/stamp-h$_am_stamp_count
  16262. ;;
  16263. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16264. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16265. ;;
  16266. esac
  16267. case $ac_file$ac_mode in
  16268. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16269. # Older Autoconf quotes --file arguments for eval, but not when files
  16270. # are listed without --file. Let's play safe and only enable the eval
  16271. # if we detect the quoting.
  16272. case $CONFIG_FILES in
  16273. *\'*) eval set x "$CONFIG_FILES" ;;
  16274. *) set x $CONFIG_FILES ;;
  16275. esac
  16276. shift
  16277. for mf
  16278. do
  16279. # Strip MF so we end up with the name of the file.
  16280. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16281. # Check whether this is an Automake generated Makefile or not.
  16282. # We used to match only the files named 'Makefile.in', but
  16283. # some people rename them; so instead we look at the file content.
  16284. # Grep'ing the first line is not enough: some people post-process
  16285. # each Makefile.in and add a new line on top of each file to say so.
  16286. # Grep'ing the whole file is not good either: AIX grep has a line
  16287. # limit of 2048, but all sed's we know have understand at least 4000.
  16288. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16289. dirpart=`$as_dirname -- "$mf" ||
  16290. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16291. X"$mf" : 'X\(//\)[^/]' \| \
  16292. X"$mf" : 'X\(//\)$' \| \
  16293. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16294. $as_echo X"$mf" |
  16295. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16296. s//\1/
  16297. q
  16298. }
  16299. /^X\(\/\/\)[^/].*/{
  16300. s//\1/
  16301. q
  16302. }
  16303. /^X\(\/\/\)$/{
  16304. s//\1/
  16305. q
  16306. }
  16307. /^X\(\/\).*/{
  16308. s//\1/
  16309. q
  16310. }
  16311. s/.*/./; q'`
  16312. else
  16313. continue
  16314. fi
  16315. # Extract the definition of DEPDIR, am__include, and am__quote
  16316. # from the Makefile without running 'make'.
  16317. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16318. test -z "$DEPDIR" && continue
  16319. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16320. test -z "$am__include" && continue
  16321. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16322. # Find all dependency output files, they are included files with
  16323. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16324. # simplest approach to changing $(DEPDIR) to its actual value in the
  16325. # expansion.
  16326. for file in `sed -n "
  16327. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16328. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16329. # Make sure the directory exists.
  16330. test -f "$dirpart/$file" && continue
  16331. fdir=`$as_dirname -- "$file" ||
  16332. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16333. X"$file" : 'X\(//\)[^/]' \| \
  16334. X"$file" : 'X\(//\)$' \| \
  16335. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16336. $as_echo X"$file" |
  16337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16338. s//\1/
  16339. q
  16340. }
  16341. /^X\(\/\/\)[^/].*/{
  16342. s//\1/
  16343. q
  16344. }
  16345. /^X\(\/\/\)$/{
  16346. s//\1/
  16347. q
  16348. }
  16349. /^X\(\/\).*/{
  16350. s//\1/
  16351. q
  16352. }
  16353. s/.*/./; q'`
  16354. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16355. # echo "creating $dirpart/$file"
  16356. echo '# dummy' > "$dirpart/$file"
  16357. done
  16358. done
  16359. }
  16360. ;;
  16361. "libtool":C)
  16362. # See if we are running on zsh, and set the options which allow our
  16363. # commands through without removal of \ escapes.
  16364. if test -n "${ZSH_VERSION+set}" ; then
  16365. setopt NO_GLOB_SUBST
  16366. fi
  16367. cfgfile="${ofile}T"
  16368. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16369. $RM "$cfgfile"
  16370. cat <<_LT_EOF >> "$cfgfile"
  16371. #! $SHELL
  16372. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16373. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16374. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16375. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16376. #
  16377. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16378. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16379. # Foundation, Inc.
  16380. # Written by Gordon Matzigkeit, 1996
  16381. #
  16382. # This file is part of GNU Libtool.
  16383. #
  16384. # GNU Libtool is free software; you can redistribute it and/or
  16385. # modify it under the terms of the GNU General Public License as
  16386. # published by the Free Software Foundation; either version 2 of
  16387. # the License, or (at your option) any later version.
  16388. #
  16389. # As a special exception to the GNU General Public License,
  16390. # if you distribute this file as part of a program or library that
  16391. # is built using GNU Libtool, you may include this file under the
  16392. # same distribution terms that you use for the rest of that program.
  16393. #
  16394. # GNU Libtool is distributed in the hope that it will be useful,
  16395. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16396. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16397. # GNU General Public License for more details.
  16398. #
  16399. # You should have received a copy of the GNU General Public License
  16400. # along with GNU Libtool; see the file COPYING. If not, a copy
  16401. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16402. # obtained by writing to the Free Software Foundation, Inc.,
  16403. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16404. # The names of the tagged configurations supported by this script.
  16405. available_tags="CXX "
  16406. # ### BEGIN LIBTOOL CONFIG
  16407. # Which release of libtool.m4 was used?
  16408. macro_version=$macro_version
  16409. macro_revision=$macro_revision
  16410. # Whether or not to build shared libraries.
  16411. build_libtool_libs=$enable_shared
  16412. # Whether or not to build static libraries.
  16413. build_old_libs=$enable_static
  16414. # What type of objects to build.
  16415. pic_mode=$pic_mode
  16416. # Whether or not to optimize for fast installation.
  16417. fast_install=$enable_fast_install
  16418. # Shell to use when invoking shell scripts.
  16419. SHELL=$lt_SHELL
  16420. # An echo program that protects backslashes.
  16421. ECHO=$lt_ECHO
  16422. # The PATH separator for the build system.
  16423. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16424. # The host system.
  16425. host_alias=$host_alias
  16426. host=$host
  16427. host_os=$host_os
  16428. # The build system.
  16429. build_alias=$build_alias
  16430. build=$build
  16431. build_os=$build_os
  16432. # A sed program that does not truncate output.
  16433. SED=$lt_SED
  16434. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16435. Xsed="\$SED -e 1s/^X//"
  16436. # A grep program that handles long lines.
  16437. GREP=$lt_GREP
  16438. # An ERE matcher.
  16439. EGREP=$lt_EGREP
  16440. # A literal string matcher.
  16441. FGREP=$lt_FGREP
  16442. # A BSD- or MS-compatible name lister.
  16443. NM=$lt_NM
  16444. # Whether we need soft or hard links.
  16445. LN_S=$lt_LN_S
  16446. # What is the maximum length of a command?
  16447. max_cmd_len=$max_cmd_len
  16448. # Object file suffix (normally "o").
  16449. objext=$ac_objext
  16450. # Executable file suffix (normally "").
  16451. exeext=$exeext
  16452. # whether the shell understands "unset".
  16453. lt_unset=$lt_unset
  16454. # turn spaces into newlines.
  16455. SP2NL=$lt_lt_SP2NL
  16456. # turn newlines into spaces.
  16457. NL2SP=$lt_lt_NL2SP
  16458. # convert \$build file names to \$host format.
  16459. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16460. # convert \$build files to toolchain format.
  16461. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16462. # An object symbol dumper.
  16463. OBJDUMP=$lt_OBJDUMP
  16464. # Method to check whether dependent libraries are shared objects.
  16465. deplibs_check_method=$lt_deplibs_check_method
  16466. # Command to use when deplibs_check_method = "file_magic".
  16467. file_magic_cmd=$lt_file_magic_cmd
  16468. # How to find potential files when deplibs_check_method = "file_magic".
  16469. file_magic_glob=$lt_file_magic_glob
  16470. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16471. want_nocaseglob=$lt_want_nocaseglob
  16472. # DLL creation program.
  16473. DLLTOOL=$lt_DLLTOOL
  16474. # Command to associate shared and link libraries.
  16475. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16476. # The archiver.
  16477. AR=$lt_AR
  16478. # Flags to create an archive.
  16479. AR_FLAGS=$lt_AR_FLAGS
  16480. # How to feed a file listing to the archiver.
  16481. archiver_list_spec=$lt_archiver_list_spec
  16482. # A symbol stripping program.
  16483. STRIP=$lt_STRIP
  16484. # Commands used to install an old-style archive.
  16485. RANLIB=$lt_RANLIB
  16486. old_postinstall_cmds=$lt_old_postinstall_cmds
  16487. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16488. # Whether to use a lock for old archive extraction.
  16489. lock_old_archive_extraction=$lock_old_archive_extraction
  16490. # A C compiler.
  16491. LTCC=$lt_CC
  16492. # LTCC compiler flags.
  16493. LTCFLAGS=$lt_CFLAGS
  16494. # Take the output of nm and produce a listing of raw symbols and C names.
  16495. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16496. # Transform the output of nm in a proper C declaration.
  16497. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16498. # Transform the output of nm in a C name address pair.
  16499. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16500. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16501. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16502. # Specify filename containing input files for \$NM.
  16503. nm_file_list_spec=$lt_nm_file_list_spec
  16504. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16505. lt_sysroot=$lt_sysroot
  16506. # The name of the directory that contains temporary libtool files.
  16507. objdir=$objdir
  16508. # Used to examine libraries when file_magic_cmd begins with "file".
  16509. MAGIC_CMD=$MAGIC_CMD
  16510. # Must we lock files when doing compilation?
  16511. need_locks=$lt_need_locks
  16512. # Manifest tool.
  16513. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16514. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16515. DSYMUTIL=$lt_DSYMUTIL
  16516. # Tool to change global to local symbols on Mac OS X.
  16517. NMEDIT=$lt_NMEDIT
  16518. # Tool to manipulate fat objects and archives on Mac OS X.
  16519. LIPO=$lt_LIPO
  16520. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16521. OTOOL=$lt_OTOOL
  16522. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16523. OTOOL64=$lt_OTOOL64
  16524. # Old archive suffix (normally "a").
  16525. libext=$libext
  16526. # Shared library suffix (normally ".so").
  16527. shrext_cmds=$lt_shrext_cmds
  16528. # The commands to extract the exported symbol list from a shared archive.
  16529. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16530. # Variables whose values should be saved in libtool wrapper scripts and
  16531. # restored at link time.
  16532. variables_saved_for_relink=$lt_variables_saved_for_relink
  16533. # Do we need the "lib" prefix for modules?
  16534. need_lib_prefix=$need_lib_prefix
  16535. # Do we need a version for libraries?
  16536. need_version=$need_version
  16537. # Library versioning type.
  16538. version_type=$version_type
  16539. # Shared library runtime path variable.
  16540. runpath_var=$runpath_var
  16541. # Shared library path variable.
  16542. shlibpath_var=$shlibpath_var
  16543. # Is shlibpath searched before the hard-coded library search path?
  16544. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16545. # Format of library name prefix.
  16546. libname_spec=$lt_libname_spec
  16547. # List of archive names. First name is the real one, the rest are links.
  16548. # The last name is the one that the linker finds with -lNAME
  16549. library_names_spec=$lt_library_names_spec
  16550. # The coded name of the library, if different from the real name.
  16551. soname_spec=$lt_soname_spec
  16552. # Permission mode override for installation of shared libraries.
  16553. install_override_mode=$lt_install_override_mode
  16554. # Command to use after installation of a shared archive.
  16555. postinstall_cmds=$lt_postinstall_cmds
  16556. # Command to use after uninstallation of a shared archive.
  16557. postuninstall_cmds=$lt_postuninstall_cmds
  16558. # Commands used to finish a libtool library installation in a directory.
  16559. finish_cmds=$lt_finish_cmds
  16560. # As "finish_cmds", except a single script fragment to be evaled but
  16561. # not shown.
  16562. finish_eval=$lt_finish_eval
  16563. # Whether we should hardcode library paths into libraries.
  16564. hardcode_into_libs=$hardcode_into_libs
  16565. # Compile-time system search path for libraries.
  16566. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16567. # Run-time system search path for libraries.
  16568. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16569. # Whether dlopen is supported.
  16570. dlopen_support=$enable_dlopen
  16571. # Whether dlopen of programs is supported.
  16572. dlopen_self=$enable_dlopen_self
  16573. # Whether dlopen of statically linked programs is supported.
  16574. dlopen_self_static=$enable_dlopen_self_static
  16575. # Commands to strip libraries.
  16576. old_striplib=$lt_old_striplib
  16577. striplib=$lt_striplib
  16578. # The linker used to build libraries.
  16579. LD=$lt_LD
  16580. # How to create reloadable object files.
  16581. reload_flag=$lt_reload_flag
  16582. reload_cmds=$lt_reload_cmds
  16583. # Commands used to build an old-style archive.
  16584. old_archive_cmds=$lt_old_archive_cmds
  16585. # A language specific compiler.
  16586. CC=$lt_compiler
  16587. # Is the compiler the GNU compiler?
  16588. with_gcc=$GCC
  16589. # Compiler flag to turn off builtin functions.
  16590. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16591. # Additional compiler flags for building library objects.
  16592. pic_flag=$lt_lt_prog_compiler_pic
  16593. # How to pass a linker flag through the compiler.
  16594. wl=$lt_lt_prog_compiler_wl
  16595. # Compiler flag to prevent dynamic linking.
  16596. link_static_flag=$lt_lt_prog_compiler_static
  16597. # Does compiler simultaneously support -c and -o options?
  16598. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16599. # Whether or not to add -lc for building shared libraries.
  16600. build_libtool_need_lc=$archive_cmds_need_lc
  16601. # Whether or not to disallow shared libs when runtime libs are static.
  16602. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16603. # Compiler flag to allow reflexive dlopens.
  16604. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16605. # Compiler flag to generate shared objects directly from archives.
  16606. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16607. # Whether the compiler copes with passing no objects directly.
  16608. compiler_needs_object=$lt_compiler_needs_object
  16609. # Create an old-style archive from a shared archive.
  16610. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16611. # Create a temporary old-style archive to link instead of a shared archive.
  16612. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16613. # Commands used to build a shared archive.
  16614. archive_cmds=$lt_archive_cmds
  16615. archive_expsym_cmds=$lt_archive_expsym_cmds
  16616. # Commands used to build a loadable module if different from building
  16617. # a shared archive.
  16618. module_cmds=$lt_module_cmds
  16619. module_expsym_cmds=$lt_module_expsym_cmds
  16620. # Whether we are building with GNU ld or not.
  16621. with_gnu_ld=$lt_with_gnu_ld
  16622. # Flag that allows shared libraries with undefined symbols to be built.
  16623. allow_undefined_flag=$lt_allow_undefined_flag
  16624. # Flag that enforces no undefined symbols.
  16625. no_undefined_flag=$lt_no_undefined_flag
  16626. # Flag to hardcode \$libdir into a binary during linking.
  16627. # This must work even if \$libdir does not exist
  16628. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16629. # Whether we need a single "-rpath" flag with a separated argument.
  16630. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16631. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16632. # DIR into the resulting binary.
  16633. hardcode_direct=$hardcode_direct
  16634. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16635. # DIR into the resulting binary and the resulting library dependency is
  16636. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16637. # library is relocated.
  16638. hardcode_direct_absolute=$hardcode_direct_absolute
  16639. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16640. # into the resulting binary.
  16641. hardcode_minus_L=$hardcode_minus_L
  16642. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16643. # into the resulting binary.
  16644. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16645. # Set to "yes" if building a shared library automatically hardcodes DIR
  16646. # into the library and all subsequent libraries and executables linked
  16647. # against it.
  16648. hardcode_automatic=$hardcode_automatic
  16649. # Set to yes if linker adds runtime paths of dependent libraries
  16650. # to runtime path list.
  16651. inherit_rpath=$inherit_rpath
  16652. # Whether libtool must link a program against all its dependency libraries.
  16653. link_all_deplibs=$link_all_deplibs
  16654. # Set to "yes" if exported symbols are required.
  16655. always_export_symbols=$always_export_symbols
  16656. # The commands to list exported symbols.
  16657. export_symbols_cmds=$lt_export_symbols_cmds
  16658. # Symbols that should not be listed in the preloaded symbols.
  16659. exclude_expsyms=$lt_exclude_expsyms
  16660. # Symbols that must always be exported.
  16661. include_expsyms=$lt_include_expsyms
  16662. # Commands necessary for linking programs (against libraries) with templates.
  16663. prelink_cmds=$lt_prelink_cmds
  16664. # Commands necessary for finishing linking programs.
  16665. postlink_cmds=$lt_postlink_cmds
  16666. # Specify filename containing input files.
  16667. file_list_spec=$lt_file_list_spec
  16668. # How to hardcode a shared library path into an executable.
  16669. hardcode_action=$hardcode_action
  16670. # The directories searched by this compiler when creating a shared library.
  16671. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16672. # Dependencies to place before and after the objects being linked to
  16673. # create a shared library.
  16674. predep_objects=$lt_predep_objects
  16675. postdep_objects=$lt_postdep_objects
  16676. predeps=$lt_predeps
  16677. postdeps=$lt_postdeps
  16678. # The library search path used internally by the compiler when linking
  16679. # a shared library.
  16680. compiler_lib_search_path=$lt_compiler_lib_search_path
  16681. # ### END LIBTOOL CONFIG
  16682. _LT_EOF
  16683. case $host_os in
  16684. aix3*)
  16685. cat <<\_LT_EOF >> "$cfgfile"
  16686. # AIX sometimes has problems with the GCC collect2 program. For some
  16687. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16688. # vanish in a puff of smoke.
  16689. if test "X${COLLECT_NAMES+set}" != Xset; then
  16690. COLLECT_NAMES=
  16691. export COLLECT_NAMES
  16692. fi
  16693. _LT_EOF
  16694. ;;
  16695. esac
  16696. ltmain="$ac_aux_dir/ltmain.sh"
  16697. # We use sed instead of cat because bash on DJGPP gets confused if
  16698. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16699. # text mode, it properly converts lines to CR/LF. This bash problem
  16700. # is reportedly fixed, but why not run on old versions too?
  16701. sed '$q' "$ltmain" >> "$cfgfile" \
  16702. || (rm -f "$cfgfile"; exit 1)
  16703. if test x"$xsi_shell" = xyes; then
  16704. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16705. func_dirname ()\
  16706. {\
  16707. \ case ${1} in\
  16708. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16709. \ * ) func_dirname_result="${3}" ;;\
  16710. \ esac\
  16711. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16712. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16713. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16714. test 0 -eq $? || _lt_function_replace_fail=:
  16715. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16716. func_basename ()\
  16717. {\
  16718. \ func_basename_result="${1##*/}"\
  16719. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16720. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16721. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16722. test 0 -eq $? || _lt_function_replace_fail=:
  16723. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16724. func_dirname_and_basename ()\
  16725. {\
  16726. \ case ${1} in\
  16727. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16728. \ * ) func_dirname_result="${3}" ;;\
  16729. \ esac\
  16730. \ func_basename_result="${1##*/}"\
  16731. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16732. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16733. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16734. test 0 -eq $? || _lt_function_replace_fail=:
  16735. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16736. func_stripname ()\
  16737. {\
  16738. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16739. \ # positional parameters, so assign one to ordinary parameter first.\
  16740. \ func_stripname_result=${3}\
  16741. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16742. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16743. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16744. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16745. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16746. test 0 -eq $? || _lt_function_replace_fail=:
  16747. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16748. func_split_long_opt ()\
  16749. {\
  16750. \ func_split_long_opt_name=${1%%=*}\
  16751. \ func_split_long_opt_arg=${1#*=}\
  16752. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16753. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16754. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16755. test 0 -eq $? || _lt_function_replace_fail=:
  16756. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16757. func_split_short_opt ()\
  16758. {\
  16759. \ func_split_short_opt_arg=${1#??}\
  16760. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16761. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16762. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16763. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16764. test 0 -eq $? || _lt_function_replace_fail=:
  16765. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16766. func_lo2o ()\
  16767. {\
  16768. \ case ${1} in\
  16769. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16770. \ *) func_lo2o_result=${1} ;;\
  16771. \ esac\
  16772. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16773. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16774. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16775. test 0 -eq $? || _lt_function_replace_fail=:
  16776. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16777. func_xform ()\
  16778. {\
  16779. func_xform_result=${1%.*}.lo\
  16780. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16781. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16782. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16783. test 0 -eq $? || _lt_function_replace_fail=:
  16784. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16785. func_arith ()\
  16786. {\
  16787. func_arith_result=$(( $* ))\
  16788. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16789. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16790. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16791. test 0 -eq $? || _lt_function_replace_fail=:
  16792. sed -e '/^func_len ()$/,/^} # func_len /c\
  16793. func_len ()\
  16794. {\
  16795. func_len_result=${#1}\
  16796. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16797. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16798. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16799. test 0 -eq $? || _lt_function_replace_fail=:
  16800. fi
  16801. if test x"$lt_shell_append" = xyes; then
  16802. sed -e '/^func_append ()$/,/^} # func_append /c\
  16803. func_append ()\
  16804. {\
  16805. eval "${1}+=\\${2}"\
  16806. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16807. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16808. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16809. test 0 -eq $? || _lt_function_replace_fail=:
  16810. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16811. func_append_quoted ()\
  16812. {\
  16813. \ func_quote_for_eval "${2}"\
  16814. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16815. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16816. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16817. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16818. test 0 -eq $? || _lt_function_replace_fail=:
  16819. # Save a `func_append' function call where possible by direct use of '+='
  16820. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16821. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16822. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16823. test 0 -eq $? || _lt_function_replace_fail=:
  16824. else
  16825. # Save a `func_append' function call even when '+=' is not available
  16826. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16827. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16828. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16829. test 0 -eq $? || _lt_function_replace_fail=:
  16830. fi
  16831. if test x"$_lt_function_replace_fail" = x":"; then
  16832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16833. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16834. fi
  16835. mv -f "$cfgfile" "$ofile" ||
  16836. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16837. chmod +x "$ofile"
  16838. cat <<_LT_EOF >> "$ofile"
  16839. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16840. # The linker used to build libraries.
  16841. LD=$lt_LD_CXX
  16842. # How to create reloadable object files.
  16843. reload_flag=$lt_reload_flag_CXX
  16844. reload_cmds=$lt_reload_cmds_CXX
  16845. # Commands used to build an old-style archive.
  16846. old_archive_cmds=$lt_old_archive_cmds_CXX
  16847. # A language specific compiler.
  16848. CC=$lt_compiler_CXX
  16849. # Is the compiler the GNU compiler?
  16850. with_gcc=$GCC_CXX
  16851. # Compiler flag to turn off builtin functions.
  16852. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16853. # Additional compiler flags for building library objects.
  16854. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16855. # How to pass a linker flag through the compiler.
  16856. wl=$lt_lt_prog_compiler_wl_CXX
  16857. # Compiler flag to prevent dynamic linking.
  16858. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16859. # Does compiler simultaneously support -c and -o options?
  16860. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16861. # Whether or not to add -lc for building shared libraries.
  16862. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16863. # Whether or not to disallow shared libs when runtime libs are static.
  16864. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16865. # Compiler flag to allow reflexive dlopens.
  16866. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16867. # Compiler flag to generate shared objects directly from archives.
  16868. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16869. # Whether the compiler copes with passing no objects directly.
  16870. compiler_needs_object=$lt_compiler_needs_object_CXX
  16871. # Create an old-style archive from a shared archive.
  16872. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16873. # Create a temporary old-style archive to link instead of a shared archive.
  16874. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16875. # Commands used to build a shared archive.
  16876. archive_cmds=$lt_archive_cmds_CXX
  16877. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16878. # Commands used to build a loadable module if different from building
  16879. # a shared archive.
  16880. module_cmds=$lt_module_cmds_CXX
  16881. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16882. # Whether we are building with GNU ld or not.
  16883. with_gnu_ld=$lt_with_gnu_ld_CXX
  16884. # Flag that allows shared libraries with undefined symbols to be built.
  16885. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16886. # Flag that enforces no undefined symbols.
  16887. no_undefined_flag=$lt_no_undefined_flag_CXX
  16888. # Flag to hardcode \$libdir into a binary during linking.
  16889. # This must work even if \$libdir does not exist
  16890. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16891. # Whether we need a single "-rpath" flag with a separated argument.
  16892. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16893. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16894. # DIR into the resulting binary.
  16895. hardcode_direct=$hardcode_direct_CXX
  16896. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16897. # DIR into the resulting binary and the resulting library dependency is
  16898. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16899. # library is relocated.
  16900. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16901. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16902. # into the resulting binary.
  16903. hardcode_minus_L=$hardcode_minus_L_CXX
  16904. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16905. # into the resulting binary.
  16906. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16907. # Set to "yes" if building a shared library automatically hardcodes DIR
  16908. # into the library and all subsequent libraries and executables linked
  16909. # against it.
  16910. hardcode_automatic=$hardcode_automatic_CXX
  16911. # Set to yes if linker adds runtime paths of dependent libraries
  16912. # to runtime path list.
  16913. inherit_rpath=$inherit_rpath_CXX
  16914. # Whether libtool must link a program against all its dependency libraries.
  16915. link_all_deplibs=$link_all_deplibs_CXX
  16916. # Set to "yes" if exported symbols are required.
  16917. always_export_symbols=$always_export_symbols_CXX
  16918. # The commands to list exported symbols.
  16919. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16920. # Symbols that should not be listed in the preloaded symbols.
  16921. exclude_expsyms=$lt_exclude_expsyms_CXX
  16922. # Symbols that must always be exported.
  16923. include_expsyms=$lt_include_expsyms_CXX
  16924. # Commands necessary for linking programs (against libraries) with templates.
  16925. prelink_cmds=$lt_prelink_cmds_CXX
  16926. # Commands necessary for finishing linking programs.
  16927. postlink_cmds=$lt_postlink_cmds_CXX
  16928. # Specify filename containing input files.
  16929. file_list_spec=$lt_file_list_spec_CXX
  16930. # How to hardcode a shared library path into an executable.
  16931. hardcode_action=$hardcode_action_CXX
  16932. # The directories searched by this compiler when creating a shared library.
  16933. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16934. # Dependencies to place before and after the objects being linked to
  16935. # create a shared library.
  16936. predep_objects=$lt_predep_objects_CXX
  16937. postdep_objects=$lt_postdep_objects_CXX
  16938. predeps=$lt_predeps_CXX
  16939. postdeps=$lt_postdeps_CXX
  16940. # The library search path used internally by the compiler when linking
  16941. # a shared library.
  16942. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16943. # ### END LIBTOOL TAG CONFIG: CXX
  16944. _LT_EOF
  16945. ;;
  16946. "default":C)
  16947. chmod +x log4c-config
  16948. ;;
  16949. esac
  16950. done # for ac_tag
  16951. as_fn_exit 0
  16952. _ACEOF
  16953. ac_clean_files=$ac_clean_files_save
  16954. test $ac_write_fail = 0 ||
  16955. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16956. # configure is writing to config.log, and then calls config.status.
  16957. # config.status does its own redirection, appending to config.log.
  16958. # Unfortunately, on DOS this fails, as config.log is still kept open
  16959. # by configure, so config.status won't be able to write to it; its
  16960. # output is simply discarded. So we exec the FD to /dev/null,
  16961. # effectively closing config.log, so it can be properly (re)opened and
  16962. # appended to by config.status. When coming back to configure, we
  16963. # need to make the FD available again.
  16964. if test "$no_create" != yes; then
  16965. ac_cs_success=:
  16966. ac_config_status_args=
  16967. test "$silent" = yes &&
  16968. ac_config_status_args="$ac_config_status_args --quiet"
  16969. exec 5>/dev/null
  16970. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16971. exec 5>>config.log
  16972. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16973. # would make configure fail if this is the last instruction.
  16974. $ac_cs_success || as_fn_exit 1
  16975. fi
  16976. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16978. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16979. fi