configure 460 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libctf 1.2.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libctf'
  539. PACKAGE_TARNAME='libctf'
  540. PACKAGE_VERSION='1.2.0'
  541. PACKAGE_STRING='libctf 1.2.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="ctf-impl.h"
  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_func_list=
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. VERSION_FLAGS_NOBFD
  587. VERSION_FLAGS
  588. TCL_TRY_FALSE
  589. TCL_TRY_TRUE
  590. EXPECT
  591. CTF_LIBADD
  592. SHARED_LDFLAGS
  593. BUILD_INFO_FALSE
  594. BUILD_INFO_TRUE
  595. NEED_CTF_QSORT_R_FALSE
  596. NEED_CTF_QSORT_R_TRUE
  597. ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
  598. ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
  599. zlibinc
  600. zlibdir
  601. ac_libctf_warn_cflags
  602. bfdincludedir
  603. bfdlibdir
  604. target_noncanonical
  605. host_noncanonical
  606. INSTALL_LIBBFD_FALSE
  607. INSTALL_LIBBFD_TRUE
  608. MAINT
  609. MAINTAINER_MODE_FALSE
  610. MAINTAINER_MODE_TRUE
  611. WERROR
  612. WARN_PEDANTIC
  613. c_warn
  614. warn
  615. OTOOL64
  616. OTOOL
  617. LIPO
  618. NMEDIT
  619. DSYMUTIL
  620. OBJDUMP
  621. LN_S
  622. NM
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. SED
  628. LIBTOOL
  629. CATOBJEXT
  630. GENCAT
  631. INSTOBJEXT
  632. DATADIRNAME
  633. CATALOGS
  634. POSUB
  635. GMSGFMT
  636. XGETTEXT
  637. INCINTL
  638. LIBINTL_DEP
  639. LIBINTL
  640. USE_NLS
  641. ac_ct_AR
  642. AR
  643. RANLIB
  644. AM_BACKSLASH
  645. AM_DEFAULT_VERBOSITY
  646. AM_DEFAULT_V
  647. AM_V
  648. am__fastdepCC_FALSE
  649. am__fastdepCC_TRUE
  650. CCDEPMODE
  651. am__nodep
  652. AMDEPBACKSLASH
  653. AMDEP_FALSE
  654. AMDEP_TRUE
  655. am__quote
  656. am__include
  657. DEPDIR
  658. am__untar
  659. am__tar
  660. AMTAR
  661. am__leading_dot
  662. SET_MAKE
  663. AWK
  664. mkdir_p
  665. MKDIR_P
  666. INSTALL_STRIP_PROGRAM
  667. STRIP
  668. install_sh
  669. MAKEINFO
  670. AUTOHEADER
  671. AUTOMAKE
  672. AUTOCONF
  673. ACLOCAL
  674. VERSION
  675. PACKAGE
  676. CYGPATH_W
  677. am__isrc
  678. INSTALL_DATA
  679. INSTALL_SCRIPT
  680. INSTALL_PROGRAM
  681. EGREP
  682. GREP
  683. CPP
  684. OBJEXT
  685. EXEEXT
  686. ac_ct_CC
  687. CPPFLAGS
  688. LDFLAGS
  689. CFLAGS
  690. CC
  691. target_os
  692. target_vendor
  693. target_cpu
  694. target
  695. host_os
  696. host_vendor
  697. host_cpu
  698. host
  699. build_os
  700. build_vendor
  701. build_cpu
  702. build
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_dependency_tracking
  745. enable_silent_rules
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. enable_libtool_lock
  752. enable_largefile
  753. enable_werror_always
  754. enable_maintainer_mode
  755. enable_install_libbfd
  756. with_system_zlib
  757. enable_libctf_hash_debugging
  758. '
  759. ac_precious_vars='build_alias
  760. host_alias
  761. target_alias
  762. CC
  763. CFLAGS
  764. LDFLAGS
  765. LIBS
  766. CPPFLAGS
  767. CPP'
  768. # Initialize some variables set by options.
  769. ac_init_help=
  770. ac_init_version=false
  771. ac_unrecognized_opts=
  772. ac_unrecognized_sep=
  773. # The variables have the same names as the options, with
  774. # dashes changed to underlines.
  775. cache_file=/dev/null
  776. exec_prefix=NONE
  777. no_create=
  778. no_recursion=
  779. prefix=NONE
  780. program_prefix=NONE
  781. program_suffix=NONE
  782. program_transform_name=s,x,x,
  783. silent=
  784. site=
  785. srcdir=
  786. verbose=
  787. x_includes=NONE
  788. x_libraries=NONE
  789. # Installation directory options.
  790. # These are left unexpanded so users can "make install exec_prefix=/foo"
  791. # and all the variables that are supposed to be based on exec_prefix
  792. # by default will actually change.
  793. # Use braces instead of parens because sh, perl, etc. also accept them.
  794. # (The list follows the same order as the GNU Coding Standards.)
  795. bindir='${exec_prefix}/bin'
  796. sbindir='${exec_prefix}/sbin'
  797. libexecdir='${exec_prefix}/libexec'
  798. datarootdir='${prefix}/share'
  799. datadir='${datarootdir}'
  800. sysconfdir='${prefix}/etc'
  801. sharedstatedir='${prefix}/com'
  802. localstatedir='${prefix}/var'
  803. includedir='${prefix}/include'
  804. oldincludedir='/usr/include'
  805. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  806. infodir='${datarootdir}/info'
  807. htmldir='${docdir}'
  808. dvidir='${docdir}'
  809. pdfdir='${docdir}'
  810. psdir='${docdir}'
  811. libdir='${exec_prefix}/lib'
  812. localedir='${datarootdir}/locale'
  813. mandir='${datarootdir}/man'
  814. ac_prev=
  815. ac_dashdash=
  816. for ac_option
  817. do
  818. # If the previous option needs an argument, assign it.
  819. if test -n "$ac_prev"; then
  820. eval $ac_prev=\$ac_option
  821. ac_prev=
  822. continue
  823. fi
  824. case $ac_option in
  825. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  826. *=) ac_optarg= ;;
  827. *) ac_optarg=yes ;;
  828. esac
  829. # Accept the important Cygnus configure options, so we can diagnose typos.
  830. case $ac_dashdash$ac_option in
  831. --)
  832. ac_dashdash=yes ;;
  833. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  834. ac_prev=bindir ;;
  835. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  836. bindir=$ac_optarg ;;
  837. -build | --build | --buil | --bui | --bu)
  838. ac_prev=build_alias ;;
  839. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  840. build_alias=$ac_optarg ;;
  841. -cache-file | --cache-file | --cache-fil | --cache-fi \
  842. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  843. ac_prev=cache_file ;;
  844. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  845. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  846. cache_file=$ac_optarg ;;
  847. --config-cache | -C)
  848. cache_file=config.cache ;;
  849. -datadir | --datadir | --datadi | --datad)
  850. ac_prev=datadir ;;
  851. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  852. datadir=$ac_optarg ;;
  853. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  854. | --dataroo | --dataro | --datar)
  855. ac_prev=datarootdir ;;
  856. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  857. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  858. datarootdir=$ac_optarg ;;
  859. -disable-* | --disable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=no ;;
  874. -docdir | --docdir | --docdi | --doc | --do)
  875. ac_prev=docdir ;;
  876. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  877. docdir=$ac_optarg ;;
  878. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  879. ac_prev=dvidir ;;
  880. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  881. dvidir=$ac_optarg ;;
  882. -enable-* | --enable-*)
  883. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  886. as_fn_error $? "invalid feature name: $ac_useropt"
  887. ac_useropt_orig=$ac_useropt
  888. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  889. case $ac_user_opts in
  890. *"
  891. "enable_$ac_useropt"
  892. "*) ;;
  893. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  894. ac_unrecognized_sep=', ';;
  895. esac
  896. eval enable_$ac_useropt=\$ac_optarg ;;
  897. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  898. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  899. | --exec | --exe | --ex)
  900. ac_prev=exec_prefix ;;
  901. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  902. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  903. | --exec=* | --exe=* | --ex=*)
  904. exec_prefix=$ac_optarg ;;
  905. -gas | --gas | --ga | --g)
  906. # Obsolete; use --with-gas.
  907. with_gas=yes ;;
  908. -help | --help | --hel | --he | -h)
  909. ac_init_help=long ;;
  910. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  911. ac_init_help=recursive ;;
  912. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  913. ac_init_help=short ;;
  914. -host | --host | --hos | --ho)
  915. ac_prev=host_alias ;;
  916. -host=* | --host=* | --hos=* | --ho=*)
  917. host_alias=$ac_optarg ;;
  918. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  919. ac_prev=htmldir ;;
  920. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  921. | --ht=*)
  922. htmldir=$ac_optarg ;;
  923. -includedir | --includedir | --includedi | --included | --include \
  924. | --includ | --inclu | --incl | --inc)
  925. ac_prev=includedir ;;
  926. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  927. | --includ=* | --inclu=* | --incl=* | --inc=*)
  928. includedir=$ac_optarg ;;
  929. -infodir | --infodir | --infodi | --infod | --info | --inf)
  930. ac_prev=infodir ;;
  931. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  932. infodir=$ac_optarg ;;
  933. -libdir | --libdir | --libdi | --libd)
  934. ac_prev=libdir ;;
  935. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  936. libdir=$ac_optarg ;;
  937. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  938. | --libexe | --libex | --libe)
  939. ac_prev=libexecdir ;;
  940. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  941. | --libexe=* | --libex=* | --libe=*)
  942. libexecdir=$ac_optarg ;;
  943. -localedir | --localedir | --localedi | --localed | --locale)
  944. ac_prev=localedir ;;
  945. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  946. localedir=$ac_optarg ;;
  947. -localstatedir | --localstatedir | --localstatedi | --localstated \
  948. | --localstate | --localstat | --localsta | --localst | --locals)
  949. ac_prev=localstatedir ;;
  950. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  951. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  952. localstatedir=$ac_optarg ;;
  953. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  954. ac_prev=mandir ;;
  955. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  956. mandir=$ac_optarg ;;
  957. -nfp | --nfp | --nf)
  958. # Obsolete; use --without-fp.
  959. with_fp=no ;;
  960. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  961. | --no-cr | --no-c | -n)
  962. no_create=yes ;;
  963. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  964. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  965. no_recursion=yes ;;
  966. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  967. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  968. | --oldin | --oldi | --old | --ol | --o)
  969. ac_prev=oldincludedir ;;
  970. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  971. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  972. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  973. oldincludedir=$ac_optarg ;;
  974. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  975. ac_prev=prefix ;;
  976. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  977. prefix=$ac_optarg ;;
  978. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  979. | --program-pre | --program-pr | --program-p)
  980. ac_prev=program_prefix ;;
  981. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  982. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  983. program_prefix=$ac_optarg ;;
  984. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  985. | --program-suf | --program-su | --program-s)
  986. ac_prev=program_suffix ;;
  987. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  988. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  989. program_suffix=$ac_optarg ;;
  990. -program-transform-name | --program-transform-name \
  991. | --program-transform-nam | --program-transform-na \
  992. | --program-transform-n | --program-transform- \
  993. | --program-transform | --program-transfor \
  994. | --program-transfo | --program-transf \
  995. | --program-trans | --program-tran \
  996. | --progr-tra | --program-tr | --program-t)
  997. ac_prev=program_transform_name ;;
  998. -program-transform-name=* | --program-transform-name=* \
  999. | --program-transform-nam=* | --program-transform-na=* \
  1000. | --program-transform-n=* | --program-transform-=* \
  1001. | --program-transform=* | --program-transfor=* \
  1002. | --program-transfo=* | --program-transf=* \
  1003. | --program-trans=* | --program-tran=* \
  1004. | --progr-tra=* | --program-tr=* | --program-t=*)
  1005. program_transform_name=$ac_optarg ;;
  1006. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1007. ac_prev=pdfdir ;;
  1008. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1009. pdfdir=$ac_optarg ;;
  1010. -psdir | --psdir | --psdi | --psd | --ps)
  1011. ac_prev=psdir ;;
  1012. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1013. psdir=$ac_optarg ;;
  1014. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1015. | -silent | --silent | --silen | --sile | --sil)
  1016. silent=yes ;;
  1017. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1018. ac_prev=sbindir ;;
  1019. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1020. | --sbi=* | --sb=*)
  1021. sbindir=$ac_optarg ;;
  1022. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1023. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1024. | --sharedst | --shareds | --shared | --share | --shar \
  1025. | --sha | --sh)
  1026. ac_prev=sharedstatedir ;;
  1027. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1028. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1029. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1030. | --sha=* | --sh=*)
  1031. sharedstatedir=$ac_optarg ;;
  1032. -site | --site | --sit)
  1033. ac_prev=site ;;
  1034. -site=* | --site=* | --sit=*)
  1035. site=$ac_optarg ;;
  1036. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1037. ac_prev=srcdir ;;
  1038. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1039. srcdir=$ac_optarg ;;
  1040. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1041. | --syscon | --sysco | --sysc | --sys | --sy)
  1042. ac_prev=sysconfdir ;;
  1043. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1044. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1045. sysconfdir=$ac_optarg ;;
  1046. -target | --target | --targe | --targ | --tar | --ta | --t)
  1047. ac_prev=target_alias ;;
  1048. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1049. target_alias=$ac_optarg ;;
  1050. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1051. verbose=yes ;;
  1052. -version | --version | --versio | --versi | --vers | -V)
  1053. ac_init_version=: ;;
  1054. -with-* | --with-*)
  1055. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1056. # Reject names that are not valid shell variable names.
  1057. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1058. as_fn_error $? "invalid package name: $ac_useropt"
  1059. ac_useropt_orig=$ac_useropt
  1060. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1061. case $ac_user_opts in
  1062. *"
  1063. "with_$ac_useropt"
  1064. "*) ;;
  1065. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1066. ac_unrecognized_sep=', ';;
  1067. esac
  1068. eval with_$ac_useropt=\$ac_optarg ;;
  1069. -without-* | --without-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=no ;;
  1084. --x)
  1085. # Obsolete; use --with-x.
  1086. with_x=yes ;;
  1087. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1088. | --x-incl | --x-inc | --x-in | --x-i)
  1089. ac_prev=x_includes ;;
  1090. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1091. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1092. x_includes=$ac_optarg ;;
  1093. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1094. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1095. ac_prev=x_libraries ;;
  1096. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1097. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1098. x_libraries=$ac_optarg ;;
  1099. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1100. Try \`$0 --help' for more information"
  1101. ;;
  1102. *=*)
  1103. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1104. # Reject names that are not valid shell variable names.
  1105. case $ac_envvar in #(
  1106. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1107. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1108. esac
  1109. eval $ac_envvar=\$ac_optarg
  1110. export $ac_envvar ;;
  1111. *)
  1112. # FIXME: should be removed in autoconf 3.0.
  1113. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1114. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1116. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1117. ;;
  1118. esac
  1119. done
  1120. if test -n "$ac_prev"; then
  1121. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1122. as_fn_error $? "missing argument to $ac_option"
  1123. fi
  1124. if test -n "$ac_unrecognized_opts"; then
  1125. case $enable_option_checking in
  1126. no) ;;
  1127. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1128. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1129. esac
  1130. fi
  1131. # Check all directory arguments for consistency.
  1132. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1133. datadir sysconfdir sharedstatedir localstatedir includedir \
  1134. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1135. libdir localedir mandir
  1136. do
  1137. eval ac_val=\$$ac_var
  1138. # Remove trailing slashes.
  1139. case $ac_val in
  1140. */ )
  1141. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1142. eval $ac_var=\$ac_val;;
  1143. esac
  1144. # Be sure to have absolute directory names.
  1145. case $ac_val in
  1146. [\\/$]* | ?:[\\/]* ) continue;;
  1147. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1148. esac
  1149. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1150. done
  1151. # There might be people who depend on the old broken behavior: `$host'
  1152. # used to hold the argument of --host etc.
  1153. # FIXME: To remove some day.
  1154. build=$build_alias
  1155. host=$host_alias
  1156. target=$target_alias
  1157. # FIXME: To remove some day.
  1158. if test "x$host_alias" != x; then
  1159. if test "x$build_alias" = x; then
  1160. cross_compiling=maybe
  1161. elif test "x$build_alias" != "x$host_alias"; then
  1162. cross_compiling=yes
  1163. fi
  1164. fi
  1165. ac_tool_prefix=
  1166. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1167. test "$silent" = yes && exec 6>/dev/null
  1168. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1169. ac_ls_di=`ls -di .` &&
  1170. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1171. as_fn_error $? "working directory cannot be determined"
  1172. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1173. as_fn_error $? "pwd does not report name of working directory"
  1174. # Find the source files, if location was not specified.
  1175. if test -z "$srcdir"; then
  1176. ac_srcdir_defaulted=yes
  1177. # Try the directory containing this script, then the parent directory.
  1178. ac_confdir=`$as_dirname -- "$as_myself" ||
  1179. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1180. X"$as_myself" : 'X\(//\)[^/]' \| \
  1181. X"$as_myself" : 'X\(//\)$' \| \
  1182. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1183. $as_echo X"$as_myself" |
  1184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)[^/].*/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\/\)$/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\).*/{
  1197. s//\1/
  1198. q
  1199. }
  1200. s/.*/./; q'`
  1201. srcdir=$ac_confdir
  1202. if test ! -r "$srcdir/$ac_unique_file"; then
  1203. srcdir=..
  1204. fi
  1205. else
  1206. ac_srcdir_defaulted=no
  1207. fi
  1208. if test ! -r "$srcdir/$ac_unique_file"; then
  1209. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1210. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1211. fi
  1212. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1213. ac_abs_confdir=`(
  1214. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1215. pwd)`
  1216. # When building in place, set srcdir=.
  1217. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1218. srcdir=.
  1219. fi
  1220. # Remove unnecessary trailing slashes from srcdir.
  1221. # Double slashes in file names in object file debugging info
  1222. # mess up M-x gdb in Emacs.
  1223. case $srcdir in
  1224. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1225. esac
  1226. for ac_var in $ac_precious_vars; do
  1227. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1228. eval ac_env_${ac_var}_value=\$${ac_var}
  1229. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1230. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1231. done
  1232. #
  1233. # Report the --help message.
  1234. #
  1235. if test "$ac_init_help" = "long"; then
  1236. # Omit some internal or obsolete options to make the list less imposing.
  1237. # This message is too long to be a string in the A/UX 3.1 sh.
  1238. cat <<_ACEOF
  1239. \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
  1240. Usage: $0 [OPTION]... [VAR=VALUE]...
  1241. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1242. VAR=VALUE. See below for descriptions of some of the useful variables.
  1243. Defaults for the options are specified in brackets.
  1244. Configuration:
  1245. -h, --help display this help and exit
  1246. --help=short display options specific to this package
  1247. --help=recursive display the short help of all the included packages
  1248. -V, --version display version information and exit
  1249. -q, --quiet, --silent do not print \`checking ...' messages
  1250. --cache-file=FILE cache test results in FILE [disabled]
  1251. -C, --config-cache alias for \`--cache-file=config.cache'
  1252. -n, --no-create do not create output files
  1253. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1254. Installation directories:
  1255. --prefix=PREFIX install architecture-independent files in PREFIX
  1256. [$ac_default_prefix]
  1257. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1258. [PREFIX]
  1259. By default, \`make install' will install all the files in
  1260. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1261. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1262. for instance \`--prefix=\$HOME'.
  1263. For better control, use the options below.
  1264. Fine tuning of the installation directories:
  1265. --bindir=DIR user executables [EPREFIX/bin]
  1266. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1267. --libexecdir=DIR program executables [EPREFIX/libexec]
  1268. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1269. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1270. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1271. --libdir=DIR object code libraries [EPREFIX/lib]
  1272. --includedir=DIR C header files [PREFIX/include]
  1273. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1274. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1275. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1276. --infodir=DIR info documentation [DATAROOTDIR/info]
  1277. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1278. --mandir=DIR man documentation [DATAROOTDIR/man]
  1279. --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
  1280. --htmldir=DIR html documentation [DOCDIR]
  1281. --dvidir=DIR dvi documentation [DOCDIR]
  1282. --pdfdir=DIR pdf documentation [DOCDIR]
  1283. --psdir=DIR ps documentation [DOCDIR]
  1284. _ACEOF
  1285. cat <<\_ACEOF
  1286. Program names:
  1287. --program-prefix=PREFIX prepend PREFIX to installed program names
  1288. --program-suffix=SUFFIX append SUFFIX to installed program names
  1289. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1290. System types:
  1291. --build=BUILD configure for building on BUILD [guessed]
  1292. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1293. --target=TARGET configure for building compilers for TARGET [HOST]
  1294. _ACEOF
  1295. fi
  1296. if test -n "$ac_init_help"; then
  1297. case $ac_init_help in
  1298. short | recursive ) echo "Configuration of libctf 1.2.0:";;
  1299. esac
  1300. cat <<\_ACEOF
  1301. Optional Features:
  1302. --disable-option-checking ignore unrecognized --enable/--with options
  1303. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1304. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1305. --enable-dependency-tracking
  1306. do not reject slow dependency extractors
  1307. --disable-dependency-tracking
  1308. speeds up one-time build
  1309. --enable-silent-rules less verbose build output (undo: "make V=1")
  1310. --disable-silent-rules verbose build output (undo: "make V=0")
  1311. --enable-shared[=PKGS] build shared libraries [default=no]
  1312. --enable-static[=PKGS] build static libraries [default=yes]
  1313. --enable-fast-install[=PKGS]
  1314. optimize for fast installation [default=yes]
  1315. --disable-libtool-lock avoid locking (might break parallel builds)
  1316. --disable-largefile omit support for large files
  1317. --enable-werror-always enable -Werror despite compiler version
  1318. --enable-maintainer-mode
  1319. enable make rules and dependencies not useful (and
  1320. sometimes confusing) to the casual installer
  1321. --enable-install-libbfd controls installation of libbfd and related headers
  1322. --enable-libctf-hash-debugging
  1323. Enable expensive debugging of CTF deduplication type
  1324. hashing [default=no]
  1325. Optional Packages:
  1326. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1327. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1328. --with-pic try to use only PIC/non-PIC objects [default=use
  1329. both]
  1330. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1331. --with-system-zlib use installed libz
  1332. Some influential environment variables:
  1333. CC C compiler command
  1334. CFLAGS C compiler flags
  1335. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1336. nonstandard directory <lib dir>
  1337. LIBS libraries to pass to the linker, e.g. -l<library>
  1338. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1339. you have headers in a nonstandard directory <include dir>
  1340. CPP C preprocessor
  1341. Use these variables to override the choices made by `configure' or to help
  1342. it to find libraries and programs with nonstandard names/locations.
  1343. Report bugs to the package provider.
  1344. _ACEOF
  1345. ac_status=$?
  1346. fi
  1347. if test "$ac_init_help" = "recursive"; then
  1348. # If there are subdirs, report their specific --help.
  1349. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350. test -d "$ac_dir" ||
  1351. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352. continue
  1353. ac_builddir=.
  1354. case "$ac_dir" in
  1355. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1356. *)
  1357. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1358. # A ".." for each directory in $ac_dir_suffix.
  1359. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1360. case $ac_top_builddir_sub in
  1361. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1363. esac ;;
  1364. esac
  1365. ac_abs_top_builddir=$ac_pwd
  1366. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1367. # for backward compatibility:
  1368. ac_top_builddir=$ac_top_build_prefix
  1369. case $srcdir in
  1370. .) # We are building in place.
  1371. ac_srcdir=.
  1372. ac_top_srcdir=$ac_top_builddir_sub
  1373. ac_abs_top_srcdir=$ac_pwd ;;
  1374. [\\/]* | ?:[\\/]* ) # Absolute name.
  1375. ac_srcdir=$srcdir$ac_dir_suffix;
  1376. ac_top_srcdir=$srcdir
  1377. ac_abs_top_srcdir=$srcdir ;;
  1378. *) # Relative name.
  1379. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1380. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1381. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1382. esac
  1383. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1384. cd "$ac_dir" || { ac_status=$?; continue; }
  1385. # Check for guested configure.
  1386. if test -f "$ac_srcdir/configure.gnu"; then
  1387. echo &&
  1388. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1389. elif test -f "$ac_srcdir/configure"; then
  1390. echo &&
  1391. $SHELL "$ac_srcdir/configure" --help=recursive
  1392. else
  1393. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1394. fi || ac_status=$?
  1395. cd "$ac_pwd" || { ac_status=$?; break; }
  1396. done
  1397. fi
  1398. test -n "$ac_init_help" && exit $ac_status
  1399. if $ac_init_version; then
  1400. cat <<\_ACEOF
  1401. libctf configure 1.2.0
  1402. generated by GNU Autoconf 2.69
  1403. Copyright (C) 2012 Free Software Foundation, Inc.
  1404. This configure script is free software; the Free Software Foundation
  1405. gives unlimited permission to copy, distribute and modify it.
  1406. _ACEOF
  1407. exit
  1408. fi
  1409. ## ------------------------ ##
  1410. ## Autoconf initialization. ##
  1411. ## ------------------------ ##
  1412. # ac_fn_c_try_compile LINENO
  1413. # --------------------------
  1414. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_compile ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext
  1419. if { { ac_try="$ac_compile"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_compile") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest.$ac_objext; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_c_try_compile
  1447. # ac_fn_c_try_cpp LINENO
  1448. # ----------------------
  1449. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_cpp ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1454. case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1461. ac_status=$?
  1462. if test -s conftest.err; then
  1463. grep -v '^ *+' conftest.err >conftest.er1
  1464. cat conftest.er1 >&5
  1465. mv -f conftest.er1 conftest.err
  1466. fi
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } > conftest.i && {
  1469. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1470. test ! -s conftest.err
  1471. }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: failed program was:" >&5
  1475. sed 's/^/| /' conftest.$ac_ext >&5
  1476. ac_retval=1
  1477. fi
  1478. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1479. as_fn_set_status $ac_retval
  1480. } # ac_fn_c_try_cpp
  1481. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1482. # -------------------------------------------------------
  1483. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1484. # the include files in INCLUDES and setting the cache variable VAR
  1485. # accordingly.
  1486. ac_fn_c_check_header_mongrel ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if eval \${$3+:} false; then :
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if eval \${$3+:} false; then :
  1493. $as_echo_n "(cached) " >&6
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. else
  1499. # Is the header compilable?
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1501. $as_echo_n "checking $2 usability... " >&6; }
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. #include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. ac_header_compiler=yes
  1509. else
  1510. ac_header_compiler=no
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1514. $as_echo "$ac_header_compiler" >&6; }
  1515. # Is the header present?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1517. $as_echo_n "checking $2 presence... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. #include <$2>
  1521. _ACEOF
  1522. if ac_fn_c_try_cpp "$LINENO"; then :
  1523. ac_header_preproc=yes
  1524. else
  1525. ac_header_preproc=no
  1526. fi
  1527. rm -f conftest.err conftest.i conftest.$ac_ext
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1529. $as_echo "$ac_header_preproc" >&6; }
  1530. # So? What about this header?
  1531. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1532. yes:no: )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1534. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ;;
  1538. no:yes:* )
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1540. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1542. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1544. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1546. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1548. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1549. ;;
  1550. esac
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. else
  1556. eval "$3=\$ac_header_compiler"
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. fi
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_c_check_header_mongrel
  1564. # ac_fn_c_try_run LINENO
  1565. # ----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1567. # that executables *can* be run.
  1568. ac_fn_c_try_run ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>&5
  1579. ac_status=$?
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1582. { { case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_try") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; }; }; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: program exited with status $ac_status" >&5
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=$ac_status
  1598. fi
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_run
  1603. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists and can be compiled using the include files in
  1606. # INCLUDES, setting the cache variable VAR accordingly.
  1607. ac_fn_c_check_header_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if eval \${$3+:} false; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. #include <$2>
  1619. _ACEOF
  1620. if ac_fn_c_try_compile "$LINENO"; then :
  1621. eval "$3=yes"
  1622. else
  1623. eval "$3=no"
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_header_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_func LINENO FUNC VAR
  1676. # ----------------------------------
  1677. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1678. ac_fn_c_check_func ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1682. $as_echo_n "checking for $2... " >&6; }
  1683. if eval \${$3+:} false; then :
  1684. $as_echo_n "(cached) " >&6
  1685. else
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1690. #define $2 innocuous_$2
  1691. /* System header to define __stub macros and hopefully few prototypes,
  1692. which can conflict with char $2 (); below.
  1693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1694. <limits.h> exists even on freestanding compilers. */
  1695. #ifdef __STDC__
  1696. # include <limits.h>
  1697. #else
  1698. # include <assert.h>
  1699. #endif
  1700. #undef $2
  1701. /* Override any GCC internal prototype to avoid an error.
  1702. Use char because int might match the return type of a GCC
  1703. builtin and then its argument prototype would still apply. */
  1704. #ifdef __cplusplus
  1705. extern "C"
  1706. #endif
  1707. char $2 ();
  1708. /* The GNU C library defines this for functions which it implements
  1709. to always fail with ENOSYS. Some functions are actually named
  1710. something starting with __ and the normal name is an alias. */
  1711. #if defined __stub_$2 || defined __stub___$2
  1712. choke me
  1713. #endif
  1714. int
  1715. main ()
  1716. {
  1717. return $2 ();
  1718. ;
  1719. return 0;
  1720. }
  1721. _ACEOF
  1722. if ac_fn_c_try_link "$LINENO"; then :
  1723. eval "$3=yes"
  1724. else
  1725. eval "$3=no"
  1726. fi
  1727. rm -f core conftest.err conftest.$ac_objext \
  1728. conftest$ac_exeext conftest.$ac_ext
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_check_func
  1735. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1736. # ---------------------------------------------
  1737. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1738. # accordingly.
  1739. ac_fn_c_check_decl ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1743. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1745. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1746. if eval \${$3+:} false; then :
  1747. $as_echo_n "(cached) " >&6
  1748. else
  1749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1750. /* end confdefs.h. */
  1751. $4
  1752. int
  1753. main ()
  1754. {
  1755. #ifndef $as_decl_name
  1756. #ifdef __cplusplus
  1757. (void) $as_decl_use;
  1758. #else
  1759. (void) $as_decl_name;
  1760. #endif
  1761. #endif
  1762. ;
  1763. return 0;
  1764. }
  1765. _ACEOF
  1766. if ac_fn_c_try_compile "$LINENO"; then :
  1767. eval "$3=yes"
  1768. else
  1769. eval "$3=no"
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_c_check_decl
  1778. cat >config.log <<_ACEOF
  1779. This file contains any messages produced by compilers while
  1780. running configure, to aid debugging if configure makes a mistake.
  1781. It was created by libctf $as_me 1.2.0, which was
  1782. generated by GNU Autoconf 2.69. Invocation command line was
  1783. $ $0 $@
  1784. _ACEOF
  1785. exec 5>>config.log
  1786. {
  1787. cat <<_ASUNAME
  1788. ## --------- ##
  1789. ## Platform. ##
  1790. ## --------- ##
  1791. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1792. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1793. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1794. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1795. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1796. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1797. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1798. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1799. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1800. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1801. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1802. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1803. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1804. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1805. _ASUNAME
  1806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1807. for as_dir in $PATH
  1808. do
  1809. IFS=$as_save_IFS
  1810. test -z "$as_dir" && as_dir=.
  1811. $as_echo "PATH: $as_dir"
  1812. done
  1813. IFS=$as_save_IFS
  1814. } >&5
  1815. cat >&5 <<_ACEOF
  1816. ## ----------- ##
  1817. ## Core tests. ##
  1818. ## ----------- ##
  1819. _ACEOF
  1820. # Keep a trace of the command line.
  1821. # Strip out --no-create and --no-recursion so they do not pile up.
  1822. # Strip out --silent because we don't want to record it for future runs.
  1823. # Also quote any args containing shell meta-characters.
  1824. # Make two passes to allow for proper duplicate-argument suppression.
  1825. ac_configure_args=
  1826. ac_configure_args0=
  1827. ac_configure_args1=
  1828. ac_must_keep_next=false
  1829. for ac_pass in 1 2
  1830. do
  1831. for ac_arg
  1832. do
  1833. case $ac_arg in
  1834. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1835. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1836. | -silent | --silent | --silen | --sile | --sil)
  1837. continue ;;
  1838. *\'*)
  1839. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1840. esac
  1841. case $ac_pass in
  1842. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1843. 2)
  1844. as_fn_append ac_configure_args1 " '$ac_arg'"
  1845. if test $ac_must_keep_next = true; then
  1846. ac_must_keep_next=false # Got value, back to normal.
  1847. else
  1848. case $ac_arg in
  1849. *=* | --config-cache | -C | -disable-* | --disable-* \
  1850. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1851. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1852. | -with-* | --with-* | -without-* | --without-* | --x)
  1853. case "$ac_configure_args0 " in
  1854. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1855. esac
  1856. ;;
  1857. -* ) ac_must_keep_next=true ;;
  1858. esac
  1859. fi
  1860. as_fn_append ac_configure_args " '$ac_arg'"
  1861. ;;
  1862. esac
  1863. done
  1864. done
  1865. { ac_configure_args0=; unset ac_configure_args0;}
  1866. { ac_configure_args1=; unset ac_configure_args1;}
  1867. # When interrupted or exit'd, cleanup temporary files, and complete
  1868. # config.log. We remove comments because anyway the quotes in there
  1869. # would cause problems or look ugly.
  1870. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1871. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1872. trap 'exit_status=$?
  1873. # Save into config.log some information that might help in debugging.
  1874. {
  1875. echo
  1876. $as_echo "## ---------------- ##
  1877. ## Cache variables. ##
  1878. ## ---------------- ##"
  1879. echo
  1880. # The following way of writing the cache mishandles newlines in values,
  1881. (
  1882. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1883. eval ac_val=\$$ac_var
  1884. case $ac_val in #(
  1885. *${as_nl}*)
  1886. case $ac_var in #(
  1887. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1888. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1889. esac
  1890. case $ac_var in #(
  1891. _ | IFS | as_nl) ;; #(
  1892. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1893. *) { eval $ac_var=; unset $ac_var;} ;;
  1894. esac ;;
  1895. esac
  1896. done
  1897. (set) 2>&1 |
  1898. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1899. *${as_nl}ac_space=\ *)
  1900. sed -n \
  1901. "s/'\''/'\''\\\\'\'''\''/g;
  1902. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1903. ;; #(
  1904. *)
  1905. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1906. ;;
  1907. esac |
  1908. sort
  1909. )
  1910. echo
  1911. $as_echo "## ----------------- ##
  1912. ## Output variables. ##
  1913. ## ----------------- ##"
  1914. echo
  1915. for ac_var in $ac_subst_vars
  1916. do
  1917. eval ac_val=\$$ac_var
  1918. case $ac_val in
  1919. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1920. esac
  1921. $as_echo "$ac_var='\''$ac_val'\''"
  1922. done | sort
  1923. echo
  1924. if test -n "$ac_subst_files"; then
  1925. $as_echo "## ------------------- ##
  1926. ## File substitutions. ##
  1927. ## ------------------- ##"
  1928. echo
  1929. for ac_var in $ac_subst_files
  1930. do
  1931. eval ac_val=\$$ac_var
  1932. case $ac_val in
  1933. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1934. esac
  1935. $as_echo "$ac_var='\''$ac_val'\''"
  1936. done | sort
  1937. echo
  1938. fi
  1939. if test -s confdefs.h; then
  1940. $as_echo "## ----------- ##
  1941. ## confdefs.h. ##
  1942. ## ----------- ##"
  1943. echo
  1944. cat confdefs.h
  1945. echo
  1946. fi
  1947. test "$ac_signal" != 0 &&
  1948. $as_echo "$as_me: caught signal $ac_signal"
  1949. $as_echo "$as_me: exit $exit_status"
  1950. } >&5
  1951. rm -f core *.core core.conftest.* &&
  1952. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1953. exit $exit_status
  1954. ' 0
  1955. for ac_signal in 1 2 13 15; do
  1956. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1957. done
  1958. ac_signal=0
  1959. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1960. rm -f -r conftest* confdefs.h
  1961. $as_echo "/* confdefs.h */" > confdefs.h
  1962. # Predefined preprocessor variables.
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define PACKAGE_NAME "$PACKAGE_NAME"
  1965. _ACEOF
  1966. cat >>confdefs.h <<_ACEOF
  1967. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1968. _ACEOF
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_STRING "$PACKAGE_STRING"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_URL "$PACKAGE_URL"
  1980. _ACEOF
  1981. # Let the site file select an alternate cache file if it wants to.
  1982. # Prefer an explicitly selected file to automatically selected ones.
  1983. ac_site_file1=NONE
  1984. ac_site_file2=NONE
  1985. if test -n "$CONFIG_SITE"; then
  1986. # We do not want a PATH search for config.site.
  1987. case $CONFIG_SITE in #((
  1988. -*) ac_site_file1=./$CONFIG_SITE;;
  1989. */*) ac_site_file1=$CONFIG_SITE;;
  1990. *) ac_site_file1=./$CONFIG_SITE;;
  1991. esac
  1992. elif test "x$prefix" != xNONE; then
  1993. ac_site_file1=$prefix/share/config.site
  1994. ac_site_file2=$prefix/etc/config.site
  1995. else
  1996. ac_site_file1=$ac_default_prefix/share/config.site
  1997. ac_site_file2=$ac_default_prefix/etc/config.site
  1998. fi
  1999. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2000. do
  2001. test "x$ac_site_file" = xNONE && continue
  2002. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2004. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2005. sed 's/^/| /' "$ac_site_file" >&5
  2006. . "$ac_site_file" \
  2007. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2009. as_fn_error $? "failed to load site script $ac_site_file
  2010. See \`config.log' for more details" "$LINENO" 5; }
  2011. fi
  2012. done
  2013. if test -r "$cache_file"; then
  2014. # Some versions of bash will fail to source /dev/null (special files
  2015. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2016. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2018. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2019. case $cache_file in
  2020. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2021. *) . "./$cache_file";;
  2022. esac
  2023. fi
  2024. else
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2026. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2027. >$cache_file
  2028. fi
  2029. as_fn_append ac_header_list " stdlib.h"
  2030. as_fn_append ac_header_list " unistd.h"
  2031. as_fn_append ac_header_list " sys/param.h"
  2032. as_fn_append ac_func_list " qsort_r"
  2033. # Check that the precious variables saved in the cache have kept the same
  2034. # value.
  2035. ac_cache_corrupted=false
  2036. for ac_var in $ac_precious_vars; do
  2037. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2038. eval ac_new_set=\$ac_env_${ac_var}_set
  2039. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2040. eval ac_new_val=\$ac_env_${ac_var}_value
  2041. case $ac_old_set,$ac_new_set in
  2042. set,)
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2044. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2045. ac_cache_corrupted=: ;;
  2046. ,set)
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2048. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2049. ac_cache_corrupted=: ;;
  2050. ,);;
  2051. *)
  2052. if test "x$ac_old_val" != "x$ac_new_val"; then
  2053. # differences in whitespace do not lead to failure.
  2054. ac_old_val_w=`echo x $ac_old_val`
  2055. ac_new_val_w=`echo x $ac_new_val`
  2056. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2058. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2059. ac_cache_corrupted=:
  2060. else
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2062. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2063. eval $ac_var=\$ac_old_val
  2064. fi
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2066. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2068. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2069. fi;;
  2070. esac
  2071. # Pass precious variables to config.status.
  2072. if test "$ac_new_set" = set; then
  2073. case $ac_new_val in
  2074. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2075. *) ac_arg=$ac_var=$ac_new_val ;;
  2076. esac
  2077. case " $ac_configure_args " in
  2078. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2079. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2080. esac
  2081. fi
  2082. done
  2083. if $ac_cache_corrupted; then
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2087. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2088. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2089. fi
  2090. ## -------------------- ##
  2091. ## Main body of script. ##
  2092. ## -------------------- ##
  2093. ac_ext=c
  2094. ac_cpp='$CPP $CPPFLAGS'
  2095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2098. ac_aux_dir=
  2099. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2100. if test -f "$ac_dir/install-sh"; then
  2101. ac_aux_dir=$ac_dir
  2102. ac_install_sh="$ac_aux_dir/install-sh -c"
  2103. break
  2104. elif test -f "$ac_dir/install.sh"; then
  2105. ac_aux_dir=$ac_dir
  2106. ac_install_sh="$ac_aux_dir/install.sh -c"
  2107. break
  2108. elif test -f "$ac_dir/shtool"; then
  2109. ac_aux_dir=$ac_dir
  2110. ac_install_sh="$ac_aux_dir/shtool install -c"
  2111. break
  2112. fi
  2113. done
  2114. if test -z "$ac_aux_dir"; then
  2115. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2116. fi
  2117. # These three variables are undocumented and unsupported,
  2118. # and are intended to be withdrawn in a future Autoconf release.
  2119. # They can cause serious problems if a builder's source tree is in a directory
  2120. # whose full name contains unusual characters.
  2121. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2122. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2123. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2124. # Make sure we can run config.sub.
  2125. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2126. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2128. $as_echo_n "checking build system type... " >&6; }
  2129. if ${ac_cv_build+:} false; then :
  2130. $as_echo_n "(cached) " >&6
  2131. else
  2132. ac_build_alias=$build_alias
  2133. test "x$ac_build_alias" = x &&
  2134. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2135. test "x$ac_build_alias" = x &&
  2136. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2137. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2138. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2139. fi
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2141. $as_echo "$ac_cv_build" >&6; }
  2142. case $ac_cv_build in
  2143. *-*-*) ;;
  2144. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2145. esac
  2146. build=$ac_cv_build
  2147. ac_save_IFS=$IFS; IFS='-'
  2148. set x $ac_cv_build
  2149. shift
  2150. build_cpu=$1
  2151. build_vendor=$2
  2152. shift; shift
  2153. # Remember, the first character of IFS is used to create $*,
  2154. # except with old shells:
  2155. build_os=$*
  2156. IFS=$ac_save_IFS
  2157. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2159. $as_echo_n "checking host system type... " >&6; }
  2160. if ${ac_cv_host+:} false; then :
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. if test "x$host_alias" = x; then
  2164. ac_cv_host=$ac_cv_build
  2165. else
  2166. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2167. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2168. fi
  2169. fi
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2171. $as_echo "$ac_cv_host" >&6; }
  2172. case $ac_cv_host in
  2173. *-*-*) ;;
  2174. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2175. esac
  2176. host=$ac_cv_host
  2177. ac_save_IFS=$IFS; IFS='-'
  2178. set x $ac_cv_host
  2179. shift
  2180. host_cpu=$1
  2181. host_vendor=$2
  2182. shift; shift
  2183. # Remember, the first character of IFS is used to create $*,
  2184. # except with old shells:
  2185. host_os=$*
  2186. IFS=$ac_save_IFS
  2187. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2189. $as_echo_n "checking target system type... " >&6; }
  2190. if ${ac_cv_target+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. if test "x$target_alias" = x; then
  2194. ac_cv_target=$ac_cv_host
  2195. else
  2196. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2197. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2198. fi
  2199. fi
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2201. $as_echo "$ac_cv_target" >&6; }
  2202. case $ac_cv_target in
  2203. *-*-*) ;;
  2204. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2205. esac
  2206. target=$ac_cv_target
  2207. ac_save_IFS=$IFS; IFS='-'
  2208. set x $ac_cv_target
  2209. shift
  2210. target_cpu=$1
  2211. target_vendor=$2
  2212. shift; shift
  2213. # Remember, the first character of IFS is used to create $*,
  2214. # except with old shells:
  2215. target_os=$*
  2216. IFS=$ac_save_IFS
  2217. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2218. # The aliases save the names the user supplied, while $host etc.
  2219. # will get canonicalized.
  2220. test -n "$target_alias" &&
  2221. test "$program_prefix$program_suffix$program_transform_name" = \
  2222. NONENONEs,x,x, &&
  2223. program_prefix=${target_alias}-
  2224. # Expand $ac_aux_dir to an absolute path.
  2225. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2226. ac_ext=c
  2227. ac_cpp='$CPP $CPPFLAGS'
  2228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2231. if test -n "$ac_tool_prefix"; then
  2232. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2233. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2235. $as_echo_n "checking for $ac_word... " >&6; }
  2236. if ${ac_cv_prog_CC+:} false; then :
  2237. $as_echo_n "(cached) " >&6
  2238. else
  2239. if test -n "$CC"; then
  2240. ac_cv_prog_CC="$CC" # Let the user override the test.
  2241. else
  2242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2243. for as_dir in $PATH
  2244. do
  2245. IFS=$as_save_IFS
  2246. test -z "$as_dir" && as_dir=.
  2247. for ac_exec_ext in '' $ac_executable_extensions; do
  2248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2249. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2251. break 2
  2252. fi
  2253. done
  2254. done
  2255. IFS=$as_save_IFS
  2256. fi
  2257. fi
  2258. CC=$ac_cv_prog_CC
  2259. if test -n "$CC"; then
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2261. $as_echo "$CC" >&6; }
  2262. else
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2264. $as_echo "no" >&6; }
  2265. fi
  2266. fi
  2267. if test -z "$ac_cv_prog_CC"; then
  2268. ac_ct_CC=$CC
  2269. # Extract the first word of "gcc", so it can be a program name with args.
  2270. set dummy gcc; ac_word=$2
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2272. $as_echo_n "checking for $ac_word... " >&6; }
  2273. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2274. $as_echo_n "(cached) " >&6
  2275. else
  2276. if test -n "$ac_ct_CC"; then
  2277. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. for ac_exec_ext in '' $ac_executable_extensions; do
  2285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2286. ac_cv_prog_ac_ct_CC="gcc"
  2287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288. break 2
  2289. fi
  2290. done
  2291. done
  2292. IFS=$as_save_IFS
  2293. fi
  2294. fi
  2295. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2296. if test -n "$ac_ct_CC"; then
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2298. $as_echo "$ac_ct_CC" >&6; }
  2299. else
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2301. $as_echo "no" >&6; }
  2302. fi
  2303. if test "x$ac_ct_CC" = x; then
  2304. CC=""
  2305. else
  2306. case $cross_compiling:$ac_tool_warned in
  2307. yes:)
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2310. ac_tool_warned=yes ;;
  2311. esac
  2312. CC=$ac_ct_CC
  2313. fi
  2314. else
  2315. CC="$ac_cv_prog_CC"
  2316. fi
  2317. if test -z "$CC"; then
  2318. if test -n "$ac_tool_prefix"; then
  2319. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2320. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2322. $as_echo_n "checking for $ac_word... " >&6; }
  2323. if ${ac_cv_prog_CC+:} false; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. if test -n "$CC"; then
  2327. ac_cv_prog_CC="$CC" # Let the user override the test.
  2328. else
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2336. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2338. break 2
  2339. fi
  2340. done
  2341. done
  2342. IFS=$as_save_IFS
  2343. fi
  2344. fi
  2345. CC=$ac_cv_prog_CC
  2346. if test -n "$CC"; then
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2348. $as_echo "$CC" >&6; }
  2349. else
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2351. $as_echo "no" >&6; }
  2352. fi
  2353. fi
  2354. fi
  2355. if test -z "$CC"; then
  2356. # Extract the first word of "cc", so it can be a program name with args.
  2357. set dummy cc; ac_word=$2
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2359. $as_echo_n "checking for $ac_word... " >&6; }
  2360. if ${ac_cv_prog_CC+:} false; then :
  2361. $as_echo_n "(cached) " >&6
  2362. else
  2363. if test -n "$CC"; then
  2364. ac_cv_prog_CC="$CC" # Let the user override the test.
  2365. else
  2366. ac_prog_rejected=no
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. test -z "$as_dir" && as_dir=.
  2372. for ac_exec_ext in '' $ac_executable_extensions; do
  2373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2374. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2375. ac_prog_rejected=yes
  2376. continue
  2377. fi
  2378. ac_cv_prog_CC="cc"
  2379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. if test $ac_prog_rejected = yes; then
  2386. # We found a bogon in the path, so make sure we never use it.
  2387. set dummy $ac_cv_prog_CC
  2388. shift
  2389. if test $# != 0; then
  2390. # We chose a different compiler from the bogus one.
  2391. # However, it has the same basename, so the bogon will be chosen
  2392. # first if we set CC to just the basename; use the full file name.
  2393. shift
  2394. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2395. fi
  2396. fi
  2397. fi
  2398. fi
  2399. CC=$ac_cv_prog_CC
  2400. if test -n "$CC"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2402. $as_echo "$CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. fi
  2408. if test -z "$CC"; then
  2409. if test -n "$ac_tool_prefix"; then
  2410. for ac_prog in cl.exe
  2411. do
  2412. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2413. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2415. $as_echo_n "checking for $ac_word... " >&6; }
  2416. if ${ac_cv_prog_CC+:} false; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. if test -n "$CC"; then
  2420. ac_cv_prog_CC="$CC" # Let the user override the test.
  2421. else
  2422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2423. for as_dir in $PATH
  2424. do
  2425. IFS=$as_save_IFS
  2426. test -z "$as_dir" && as_dir=.
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2429. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. fi
  2437. fi
  2438. CC=$ac_cv_prog_CC
  2439. if test -n "$CC"; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2441. $as_echo "$CC" >&6; }
  2442. else
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2444. $as_echo "no" >&6; }
  2445. fi
  2446. test -n "$CC" && break
  2447. done
  2448. fi
  2449. if test -z "$CC"; then
  2450. ac_ct_CC=$CC
  2451. for ac_prog in cl.exe
  2452. do
  2453. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2454. set dummy $ac_prog; ac_word=$2
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2456. $as_echo_n "checking for $ac_word... " >&6; }
  2457. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. if test -n "$ac_ct_CC"; then
  2461. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. for ac_exec_ext in '' $ac_executable_extensions; do
  2469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2470. ac_cv_prog_ac_ct_CC="$ac_prog"
  2471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. fi
  2479. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2480. if test -n "$ac_ct_CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2482. $as_echo "$ac_ct_CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. test -n "$ac_ct_CC" && break
  2488. done
  2489. if test "x$ac_ct_CC" = x; then
  2490. CC=""
  2491. else
  2492. case $cross_compiling:$ac_tool_warned in
  2493. yes:)
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2496. ac_tool_warned=yes ;;
  2497. esac
  2498. CC=$ac_ct_CC
  2499. fi
  2500. fi
  2501. fi
  2502. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2504. as_fn_error $? "no acceptable C compiler found in \$PATH
  2505. See \`config.log' for more details" "$LINENO" 5; }
  2506. # Provide some information about the compiler.
  2507. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2508. set X $ac_compile
  2509. ac_compiler=$2
  2510. for ac_option in --version -v -V -qversion; do
  2511. { { ac_try="$ac_compiler $ac_option >&5"
  2512. case "(($ac_try" in
  2513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2514. *) ac_try_echo=$ac_try;;
  2515. esac
  2516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2517. $as_echo "$ac_try_echo"; } >&5
  2518. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2519. ac_status=$?
  2520. if test -s conftest.err; then
  2521. sed '10a\
  2522. ... rest of stderr output deleted ...
  2523. 10q' conftest.err >conftest.er1
  2524. cat conftest.er1 >&5
  2525. fi
  2526. rm -f conftest.er1 conftest.err
  2527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2528. test $ac_status = 0; }
  2529. done
  2530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2531. /* end confdefs.h. */
  2532. int
  2533. main ()
  2534. {
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. ac_clean_files_save=$ac_clean_files
  2540. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2541. # Try to create an executable without -o first, disregard a.out.
  2542. # It will help us diagnose broken compilers, and finding out an intuition
  2543. # of exeext.
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2545. $as_echo_n "checking whether the C compiler works... " >&6; }
  2546. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2547. # The possible output files:
  2548. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2549. ac_rmfiles=
  2550. for ac_file in $ac_files
  2551. do
  2552. case $ac_file in
  2553. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2554. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2555. esac
  2556. done
  2557. rm -f $ac_rmfiles
  2558. if { { ac_try="$ac_link_default"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2564. $as_echo "$ac_try_echo"; } >&5
  2565. (eval "$ac_link_default") 2>&5
  2566. ac_status=$?
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2568. test $ac_status = 0; }; then :
  2569. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2570. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2571. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2572. # so that the user can short-circuit this test for compilers unknown to
  2573. # Autoconf.
  2574. for ac_file in $ac_files ''
  2575. do
  2576. test -f "$ac_file" || continue
  2577. case $ac_file in
  2578. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2579. ;;
  2580. [ab].out )
  2581. # We found the default executable, but exeext='' is most
  2582. # certainly right.
  2583. break;;
  2584. *.* )
  2585. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2586. then :; else
  2587. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2588. fi
  2589. # We set ac_cv_exeext here because the later test for it is not
  2590. # safe: cross compilers may not add the suffix if given an `-o'
  2591. # argument, so we may need to know it at that point already.
  2592. # Even if this section looks crufty: it has the advantage of
  2593. # actually working.
  2594. break;;
  2595. * )
  2596. break;;
  2597. esac
  2598. done
  2599. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2600. else
  2601. ac_file=''
  2602. fi
  2603. if test -z "$ac_file"; then :
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2605. $as_echo "no" >&6; }
  2606. $as_echo "$as_me: failed program was:" >&5
  2607. sed 's/^/| /' conftest.$ac_ext >&5
  2608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2610. as_fn_error 77 "C compiler cannot create executables
  2611. See \`config.log' for more details" "$LINENO" 5; }
  2612. else
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2614. $as_echo "yes" >&6; }
  2615. fi
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2617. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2619. $as_echo "$ac_file" >&6; }
  2620. ac_exeext=$ac_cv_exeext
  2621. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2622. ac_clean_files=$ac_clean_files_save
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2624. $as_echo_n "checking for suffix of executables... " >&6; }
  2625. if { { ac_try="$ac_link"
  2626. case "(($ac_try" in
  2627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2628. *) ac_try_echo=$ac_try;;
  2629. esac
  2630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2631. $as_echo "$ac_try_echo"; } >&5
  2632. (eval "$ac_link") 2>&5
  2633. ac_status=$?
  2634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2635. test $ac_status = 0; }; then :
  2636. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2637. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2638. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2639. # `rm'.
  2640. for ac_file in conftest.exe conftest conftest.*; do
  2641. test -f "$ac_file" || continue
  2642. case $ac_file in
  2643. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2644. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2645. break;;
  2646. * ) break;;
  2647. esac
  2648. done
  2649. else
  2650. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2652. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2653. See \`config.log' for more details" "$LINENO" 5; }
  2654. fi
  2655. rm -f conftest conftest$ac_cv_exeext
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2657. $as_echo "$ac_cv_exeext" >&6; }
  2658. rm -f conftest.$ac_ext
  2659. EXEEXT=$ac_cv_exeext
  2660. ac_exeext=$EXEEXT
  2661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2662. /* end confdefs.h. */
  2663. #include <stdio.h>
  2664. int
  2665. main ()
  2666. {
  2667. FILE *f = fopen ("conftest.out", "w");
  2668. return ferror (f) || fclose (f) != 0;
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. ac_clean_files="$ac_clean_files conftest.out"
  2674. # Check that the compiler produces executables we can run. If not, either
  2675. # the compiler is broken, or we cross compile.
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2677. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2678. if test "$cross_compiling" != yes; then
  2679. { { ac_try="$ac_link"
  2680. case "(($ac_try" in
  2681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2682. *) ac_try_echo=$ac_try;;
  2683. esac
  2684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2685. $as_echo "$ac_try_echo"; } >&5
  2686. (eval "$ac_link") 2>&5
  2687. ac_status=$?
  2688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2689. test $ac_status = 0; }
  2690. if { ac_try='./conftest$ac_cv_exeext'
  2691. { { case "(($ac_try" in
  2692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2693. *) ac_try_echo=$ac_try;;
  2694. esac
  2695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2696. $as_echo "$ac_try_echo"; } >&5
  2697. (eval "$ac_try") 2>&5
  2698. ac_status=$?
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2700. test $ac_status = 0; }; }; then
  2701. cross_compiling=no
  2702. else
  2703. if test "$cross_compiling" = maybe; then
  2704. cross_compiling=yes
  2705. else
  2706. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2707. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2708. as_fn_error $? "cannot run C compiled programs.
  2709. If you meant to cross compile, use \`--host'.
  2710. See \`config.log' for more details" "$LINENO" 5; }
  2711. fi
  2712. fi
  2713. fi
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2715. $as_echo "$cross_compiling" >&6; }
  2716. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2717. ac_clean_files=$ac_clean_files_save
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2719. $as_echo_n "checking for suffix of object files... " >&6; }
  2720. if ${ac_cv_objext+:} false; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2724. /* end confdefs.h. */
  2725. int
  2726. main ()
  2727. {
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. rm -f conftest.o conftest.obj
  2733. if { { ac_try="$ac_compile"
  2734. case "(($ac_try" in
  2735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2736. *) ac_try_echo=$ac_try;;
  2737. esac
  2738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2739. $as_echo "$ac_try_echo"; } >&5
  2740. (eval "$ac_compile") 2>&5
  2741. ac_status=$?
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2743. test $ac_status = 0; }; then :
  2744. for ac_file in conftest.o conftest.obj conftest.*; do
  2745. test -f "$ac_file" || continue;
  2746. case $ac_file in
  2747. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2748. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2749. break;;
  2750. esac
  2751. done
  2752. else
  2753. $as_echo "$as_me: failed program was:" >&5
  2754. sed 's/^/| /' conftest.$ac_ext >&5
  2755. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2757. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2758. See \`config.log' for more details" "$LINENO" 5; }
  2759. fi
  2760. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2761. fi
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2763. $as_echo "$ac_cv_objext" >&6; }
  2764. OBJEXT=$ac_cv_objext
  2765. ac_objext=$OBJEXT
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2767. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2768. if ${ac_cv_c_compiler_gnu+:} false; then :
  2769. $as_echo_n "(cached) " >&6
  2770. else
  2771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2772. /* end confdefs.h. */
  2773. int
  2774. main ()
  2775. {
  2776. #ifndef __GNUC__
  2777. choke me
  2778. #endif
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. if ac_fn_c_try_compile "$LINENO"; then :
  2784. ac_compiler_gnu=yes
  2785. else
  2786. ac_compiler_gnu=no
  2787. fi
  2788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2789. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2790. fi
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2792. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2793. if test $ac_compiler_gnu = yes; then
  2794. GCC=yes
  2795. else
  2796. GCC=
  2797. fi
  2798. ac_test_CFLAGS=${CFLAGS+set}
  2799. ac_save_CFLAGS=$CFLAGS
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2801. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2802. if ${ac_cv_prog_cc_g+:} false; then :
  2803. $as_echo_n "(cached) " >&6
  2804. else
  2805. ac_save_c_werror_flag=$ac_c_werror_flag
  2806. ac_c_werror_flag=yes
  2807. ac_cv_prog_cc_g=no
  2808. CFLAGS="-g"
  2809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2810. /* end confdefs.h. */
  2811. int
  2812. main ()
  2813. {
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. if ac_fn_c_try_compile "$LINENO"; then :
  2819. ac_cv_prog_cc_g=yes
  2820. else
  2821. CFLAGS=""
  2822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end confdefs.h. */
  2824. int
  2825. main ()
  2826. {
  2827. ;
  2828. return 0;
  2829. }
  2830. _ACEOF
  2831. if ac_fn_c_try_compile "$LINENO"; then :
  2832. else
  2833. ac_c_werror_flag=$ac_save_c_werror_flag
  2834. CFLAGS="-g"
  2835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. if ac_fn_c_try_compile "$LINENO"; then :
  2845. ac_cv_prog_cc_g=yes
  2846. fi
  2847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2848. fi
  2849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2850. fi
  2851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2852. ac_c_werror_flag=$ac_save_c_werror_flag
  2853. fi
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2855. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2856. if test "$ac_test_CFLAGS" = set; then
  2857. CFLAGS=$ac_save_CFLAGS
  2858. elif test $ac_cv_prog_cc_g = yes; then
  2859. if test "$GCC" = yes; then
  2860. CFLAGS="-g -O2"
  2861. else
  2862. CFLAGS="-g"
  2863. fi
  2864. else
  2865. if test "$GCC" = yes; then
  2866. CFLAGS="-O2"
  2867. else
  2868. CFLAGS=
  2869. fi
  2870. fi
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2872. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2873. if ${ac_cv_prog_cc_c89+:} false; then :
  2874. $as_echo_n "(cached) " >&6
  2875. else
  2876. ac_cv_prog_cc_c89=no
  2877. ac_save_CC=$CC
  2878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end confdefs.h. */
  2880. #include <stdarg.h>
  2881. #include <stdio.h>
  2882. struct stat;
  2883. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2884. struct buf { int x; };
  2885. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2886. static char *e (p, i)
  2887. char **p;
  2888. int i;
  2889. {
  2890. return p[i];
  2891. }
  2892. static char *f (char * (*g) (char **, int), char **p, ...)
  2893. {
  2894. char *s;
  2895. va_list v;
  2896. va_start (v,p);
  2897. s = g (p, va_arg (v,int));
  2898. va_end (v);
  2899. return s;
  2900. }
  2901. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2902. function prototypes and stuff, but not '\xHH' hex character constants.
  2903. These don't provoke an error unfortunately, instead are silently treated
  2904. as 'x'. The following induces an error, until -std is added to get
  2905. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2906. array size at least. It's necessary to write '\x00'==0 to get something
  2907. that's true only with -std. */
  2908. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2909. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2910. inside strings and character constants. */
  2911. #define FOO(x) 'x'
  2912. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2913. int test (int i, double x);
  2914. struct s1 {int (*f) (int a);};
  2915. struct s2 {int (*f) (double a);};
  2916. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2917. int argc;
  2918. char **argv;
  2919. int
  2920. main ()
  2921. {
  2922. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2928. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2929. do
  2930. CC="$ac_save_CC $ac_arg"
  2931. if ac_fn_c_try_compile "$LINENO"; then :
  2932. ac_cv_prog_cc_c89=$ac_arg
  2933. fi
  2934. rm -f core conftest.err conftest.$ac_objext
  2935. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2936. done
  2937. rm -f conftest.$ac_ext
  2938. CC=$ac_save_CC
  2939. fi
  2940. # AC_CACHE_VAL
  2941. case "x$ac_cv_prog_cc_c89" in
  2942. x)
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2944. $as_echo "none needed" >&6; } ;;
  2945. xno)
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2947. $as_echo "unsupported" >&6; } ;;
  2948. *)
  2949. CC="$CC $ac_cv_prog_cc_c89"
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2951. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2952. esac
  2953. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2954. fi
  2955. ac_ext=c
  2956. ac_cpp='$CPP $CPPFLAGS'
  2957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2960. ac_ext=c
  2961. ac_cpp='$CPP $CPPFLAGS'
  2962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2966. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2967. if ${am_cv_prog_cc_c_o+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2971. /* end confdefs.h. */
  2972. int
  2973. main ()
  2974. {
  2975. ;
  2976. return 0;
  2977. }
  2978. _ACEOF
  2979. # Make sure it works both with $CC and with simple cc.
  2980. # Following AC_PROG_CC_C_O, we do the test twice because some
  2981. # compilers refuse to overwrite an existing .o file with -o,
  2982. # though they will create one.
  2983. am_cv_prog_cc_c_o=yes
  2984. for am_i in 1 2; do
  2985. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2986. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2987. ac_status=$?
  2988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2989. (exit $ac_status); } \
  2990. && test -f conftest2.$ac_objext; then
  2991. : OK
  2992. else
  2993. am_cv_prog_cc_c_o=no
  2994. break
  2995. fi
  2996. done
  2997. rm -f core conftest*
  2998. unset am_i
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3001. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3002. if test "$am_cv_prog_cc_c_o" != yes; then
  3003. # Losing compiler, so override with the script.
  3004. # FIXME: It is wrong to rewrite CC.
  3005. # But if we don't then we get into trouble of one sort or another.
  3006. # A longer-term fix would be to have automake use am__CC in this case,
  3007. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3008. CC="$am_aux_dir/compile $CC"
  3009. fi
  3010. ac_ext=c
  3011. ac_cpp='$CPP $CPPFLAGS'
  3012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3015. ac_ext=c
  3016. ac_cpp='$CPP $CPPFLAGS'
  3017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3021. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3022. # On Suns, sometimes $CPP names a directory.
  3023. if test -n "$CPP" && test -d "$CPP"; then
  3024. CPP=
  3025. fi
  3026. if test -z "$CPP"; then
  3027. if ${ac_cv_prog_CPP+:} false; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. # Double quotes because CPP needs to be expanded
  3031. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3032. do
  3033. ac_preproc_ok=false
  3034. for ac_c_preproc_warn_flag in '' yes
  3035. do
  3036. # Use a header file that comes with gcc, so configuring glibc
  3037. # with a fresh cross-compiler works.
  3038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3039. # <limits.h> exists even on freestanding compilers.
  3040. # On the NeXT, cc -E runs the code through the compiler's parser,
  3041. # not just through cpp. "Syntax error" is here to catch this case.
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. #ifdef __STDC__
  3045. # include <limits.h>
  3046. #else
  3047. # include <assert.h>
  3048. #endif
  3049. Syntax error
  3050. _ACEOF
  3051. if ac_fn_c_try_cpp "$LINENO"; then :
  3052. else
  3053. # Broken: fails on valid input.
  3054. continue
  3055. fi
  3056. rm -f conftest.err conftest.i conftest.$ac_ext
  3057. # OK, works on sane cases. Now check whether nonexistent headers
  3058. # can be detected and how.
  3059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3060. /* end confdefs.h. */
  3061. #include <ac_nonexistent.h>
  3062. _ACEOF
  3063. if ac_fn_c_try_cpp "$LINENO"; then :
  3064. # Broken: success on invalid input.
  3065. continue
  3066. else
  3067. # Passes both tests.
  3068. ac_preproc_ok=:
  3069. break
  3070. fi
  3071. rm -f conftest.err conftest.i conftest.$ac_ext
  3072. done
  3073. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3074. rm -f conftest.i conftest.err conftest.$ac_ext
  3075. if $ac_preproc_ok; then :
  3076. break
  3077. fi
  3078. done
  3079. ac_cv_prog_CPP=$CPP
  3080. fi
  3081. CPP=$ac_cv_prog_CPP
  3082. else
  3083. ac_cv_prog_CPP=$CPP
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3086. $as_echo "$CPP" >&6; }
  3087. ac_preproc_ok=false
  3088. for ac_c_preproc_warn_flag in '' yes
  3089. do
  3090. # Use a header file that comes with gcc, so configuring glibc
  3091. # with a fresh cross-compiler works.
  3092. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3093. # <limits.h> exists even on freestanding compilers.
  3094. # On the NeXT, cc -E runs the code through the compiler's parser,
  3095. # not just through cpp. "Syntax error" is here to catch this case.
  3096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3097. /* end confdefs.h. */
  3098. #ifdef __STDC__
  3099. # include <limits.h>
  3100. #else
  3101. # include <assert.h>
  3102. #endif
  3103. Syntax error
  3104. _ACEOF
  3105. if ac_fn_c_try_cpp "$LINENO"; then :
  3106. else
  3107. # Broken: fails on valid input.
  3108. continue
  3109. fi
  3110. rm -f conftest.err conftest.i conftest.$ac_ext
  3111. # OK, works on sane cases. Now check whether nonexistent headers
  3112. # can be detected and how.
  3113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3114. /* end confdefs.h. */
  3115. #include <ac_nonexistent.h>
  3116. _ACEOF
  3117. if ac_fn_c_try_cpp "$LINENO"; then :
  3118. # Broken: success on invalid input.
  3119. continue
  3120. else
  3121. # Passes both tests.
  3122. ac_preproc_ok=:
  3123. break
  3124. fi
  3125. rm -f conftest.err conftest.i conftest.$ac_ext
  3126. done
  3127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3128. rm -f conftest.i conftest.err conftest.$ac_ext
  3129. if $ac_preproc_ok; then :
  3130. else
  3131. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3133. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3134. See \`config.log' for more details" "$LINENO" 5; }
  3135. fi
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3142. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3143. if ${ac_cv_path_GREP+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. if test -z "$GREP"; then
  3147. ac_path_GREP_found=false
  3148. # Loop through the user's path and test for each of PROGNAME-LIST
  3149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3150. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3151. do
  3152. IFS=$as_save_IFS
  3153. test -z "$as_dir" && as_dir=.
  3154. for ac_prog in grep ggrep; do
  3155. for ac_exec_ext in '' $ac_executable_extensions; do
  3156. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3157. as_fn_executable_p "$ac_path_GREP" || continue
  3158. # Check for GNU ac_path_GREP and select it if it is found.
  3159. # Check for GNU $ac_path_GREP
  3160. case `"$ac_path_GREP" --version 2>&1` in
  3161. *GNU*)
  3162. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3163. *)
  3164. ac_count=0
  3165. $as_echo_n 0123456789 >"conftest.in"
  3166. while :
  3167. do
  3168. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3169. mv "conftest.tmp" "conftest.in"
  3170. cp "conftest.in" "conftest.nl"
  3171. $as_echo 'GREP' >> "conftest.nl"
  3172. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3173. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3174. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3175. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3176. # Best one so far, save it but keep looking for a better one
  3177. ac_cv_path_GREP="$ac_path_GREP"
  3178. ac_path_GREP_max=$ac_count
  3179. fi
  3180. # 10*(2^10) chars as input seems more than enough
  3181. test $ac_count -gt 10 && break
  3182. done
  3183. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3184. esac
  3185. $ac_path_GREP_found && break 3
  3186. done
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. if test -z "$ac_cv_path_GREP"; then
  3191. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3192. fi
  3193. else
  3194. ac_cv_path_GREP=$GREP
  3195. fi
  3196. fi
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3198. $as_echo "$ac_cv_path_GREP" >&6; }
  3199. GREP="$ac_cv_path_GREP"
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3201. $as_echo_n "checking for egrep... " >&6; }
  3202. if ${ac_cv_path_EGREP+:} false; then :
  3203. $as_echo_n "(cached) " >&6
  3204. else
  3205. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3206. then ac_cv_path_EGREP="$GREP -E"
  3207. else
  3208. if test -z "$EGREP"; then
  3209. ac_path_EGREP_found=false
  3210. # Loop through the user's path and test for each of PROGNAME-LIST
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_prog in egrep; do
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3219. as_fn_executable_p "$ac_path_EGREP" || continue
  3220. # Check for GNU ac_path_EGREP and select it if it is found.
  3221. # Check for GNU $ac_path_EGREP
  3222. case `"$ac_path_EGREP" --version 2>&1` in
  3223. *GNU*)
  3224. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3225. *)
  3226. ac_count=0
  3227. $as_echo_n 0123456789 >"conftest.in"
  3228. while :
  3229. do
  3230. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3231. mv "conftest.tmp" "conftest.in"
  3232. cp "conftest.in" "conftest.nl"
  3233. $as_echo 'EGREP' >> "conftest.nl"
  3234. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3235. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3236. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3237. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3238. # Best one so far, save it but keep looking for a better one
  3239. ac_cv_path_EGREP="$ac_path_EGREP"
  3240. ac_path_EGREP_max=$ac_count
  3241. fi
  3242. # 10*(2^10) chars as input seems more than enough
  3243. test $ac_count -gt 10 && break
  3244. done
  3245. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3246. esac
  3247. $ac_path_EGREP_found && break 3
  3248. done
  3249. done
  3250. done
  3251. IFS=$as_save_IFS
  3252. if test -z "$ac_cv_path_EGREP"; then
  3253. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3254. fi
  3255. else
  3256. ac_cv_path_EGREP=$EGREP
  3257. fi
  3258. fi
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3261. $as_echo "$ac_cv_path_EGREP" >&6; }
  3262. EGREP="$ac_cv_path_EGREP"
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3264. $as_echo_n "checking for ANSI C header files... " >&6; }
  3265. if ${ac_cv_header_stdc+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3269. /* end confdefs.h. */
  3270. #include <stdlib.h>
  3271. #include <stdarg.h>
  3272. #include <string.h>
  3273. #include <float.h>
  3274. int
  3275. main ()
  3276. {
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. if ac_fn_c_try_compile "$LINENO"; then :
  3282. ac_cv_header_stdc=yes
  3283. else
  3284. ac_cv_header_stdc=no
  3285. fi
  3286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3287. if test $ac_cv_header_stdc = yes; then
  3288. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3290. /* end confdefs.h. */
  3291. #include <string.h>
  3292. _ACEOF
  3293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3294. $EGREP "memchr" >/dev/null 2>&1; then :
  3295. else
  3296. ac_cv_header_stdc=no
  3297. fi
  3298. rm -f conftest*
  3299. fi
  3300. if test $ac_cv_header_stdc = yes; then
  3301. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. #include <stdlib.h>
  3305. _ACEOF
  3306. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3307. $EGREP "free" >/dev/null 2>&1; then :
  3308. else
  3309. ac_cv_header_stdc=no
  3310. fi
  3311. rm -f conftest*
  3312. fi
  3313. if test $ac_cv_header_stdc = yes; then
  3314. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3315. if test "$cross_compiling" = yes; then :
  3316. :
  3317. else
  3318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3319. /* end confdefs.h. */
  3320. #include <ctype.h>
  3321. #include <stdlib.h>
  3322. #if ((' ' & 0x0FF) == 0x020)
  3323. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3324. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3325. #else
  3326. # define ISLOWER(c) \
  3327. (('a' <= (c) && (c) <= 'i') \
  3328. || ('j' <= (c) && (c) <= 'r') \
  3329. || ('s' <= (c) && (c) <= 'z'))
  3330. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3331. #endif
  3332. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3333. int
  3334. main ()
  3335. {
  3336. int i;
  3337. for (i = 0; i < 256; i++)
  3338. if (XOR (islower (i), ISLOWER (i))
  3339. || toupper (i) != TOUPPER (i))
  3340. return 2;
  3341. return 0;
  3342. }
  3343. _ACEOF
  3344. if ac_fn_c_try_run "$LINENO"; then :
  3345. else
  3346. ac_cv_header_stdc=no
  3347. fi
  3348. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3349. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3350. fi
  3351. fi
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3354. $as_echo "$ac_cv_header_stdc" >&6; }
  3355. if test $ac_cv_header_stdc = yes; then
  3356. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3357. fi
  3358. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3359. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3360. inttypes.h stdint.h unistd.h
  3361. do :
  3362. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3363. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3364. "
  3365. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3366. cat >>confdefs.h <<_ACEOF
  3367. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3368. _ACEOF
  3369. fi
  3370. done
  3371. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3372. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3373. MINIX=yes
  3374. else
  3375. MINIX=
  3376. fi
  3377. if test "$MINIX" = yes; then
  3378. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3379. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3380. $as_echo "#define _MINIX 1" >>confdefs.h
  3381. fi
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3383. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3384. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3385. $as_echo_n "(cached) " >&6
  3386. else
  3387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3388. /* end confdefs.h. */
  3389. # define __EXTENSIONS__ 1
  3390. $ac_includes_default
  3391. int
  3392. main ()
  3393. {
  3394. ;
  3395. return 0;
  3396. }
  3397. _ACEOF
  3398. if ac_fn_c_try_compile "$LINENO"; then :
  3399. ac_cv_safe_to_define___extensions__=yes
  3400. else
  3401. ac_cv_safe_to_define___extensions__=no
  3402. fi
  3403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3406. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3407. test $ac_cv_safe_to_define___extensions__ = yes &&
  3408. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3409. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3410. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3411. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3412. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3413. am__api_version='1.15'
  3414. # Find a good install program. We prefer a C program (faster),
  3415. # so one script is as good as another. But avoid the broken or
  3416. # incompatible versions:
  3417. # SysV /etc/install, /usr/sbin/install
  3418. # SunOS /usr/etc/install
  3419. # IRIX /sbin/install
  3420. # AIX /bin/install
  3421. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3422. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3423. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3424. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3425. # OS/2's system install, which has a completely different semantic
  3426. # ./install, which can be erroneously created by make from ./install.sh.
  3427. # Reject install programs that cannot install multiple files.
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3429. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3430. if test -z "$INSTALL"; then
  3431. if ${ac_cv_path_install+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3435. for as_dir in $PATH
  3436. do
  3437. IFS=$as_save_IFS
  3438. test -z "$as_dir" && as_dir=.
  3439. # Account for people who put trailing slashes in PATH elements.
  3440. case $as_dir/ in #((
  3441. ./ | .// | /[cC]/* | \
  3442. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3443. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3444. /usr/ucb/* ) ;;
  3445. *)
  3446. # OSF1 and SCO ODT 3.0 have their own names for install.
  3447. # Don't use installbsd from OSF since it installs stuff as root
  3448. # by default.
  3449. for ac_prog in ginstall scoinst install; do
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3452. if test $ac_prog = install &&
  3453. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3454. # AIX install. It has an incompatible calling convention.
  3455. :
  3456. elif test $ac_prog = install &&
  3457. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3458. # program-specific install script used by HP pwplus--don't use.
  3459. :
  3460. else
  3461. rm -rf conftest.one conftest.two conftest.dir
  3462. echo one > conftest.one
  3463. echo two > conftest.two
  3464. mkdir conftest.dir
  3465. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3466. test -s conftest.one && test -s conftest.two &&
  3467. test -s conftest.dir/conftest.one &&
  3468. test -s conftest.dir/conftest.two
  3469. then
  3470. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3471. break 3
  3472. fi
  3473. fi
  3474. fi
  3475. done
  3476. done
  3477. ;;
  3478. esac
  3479. done
  3480. IFS=$as_save_IFS
  3481. rm -rf conftest.one conftest.two conftest.dir
  3482. fi
  3483. if test "${ac_cv_path_install+set}" = set; then
  3484. INSTALL=$ac_cv_path_install
  3485. else
  3486. # As a last resort, use the slow shell script. Don't cache a
  3487. # value for INSTALL within a source directory, because that will
  3488. # break other packages using the cache if that directory is
  3489. # removed, or if the value is a relative name.
  3490. INSTALL=$ac_install_sh
  3491. fi
  3492. fi
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3494. $as_echo "$INSTALL" >&6; }
  3495. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3496. # It thinks the first close brace ends the variable substitution.
  3497. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3498. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3499. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3501. $as_echo_n "checking whether build environment is sane... " >&6; }
  3502. # Reject unsafe characters in $srcdir or the absolute working directory
  3503. # name. Accept space and tab only in the latter.
  3504. am_lf='
  3505. '
  3506. case `pwd` in
  3507. *[\\\"\#\$\&\'\`$am_lf]*)
  3508. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3509. esac
  3510. case $srcdir in
  3511. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3512. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3513. esac
  3514. # Do 'set' in a subshell so we don't clobber the current shell's
  3515. # arguments. Must try -L first in case configure is actually a
  3516. # symlink; some systems play weird games with the mod time of symlinks
  3517. # (eg FreeBSD returns the mod time of the symlink's containing
  3518. # directory).
  3519. if (
  3520. am_has_slept=no
  3521. for am_try in 1 2; do
  3522. echo "timestamp, slept: $am_has_slept" > conftest.file
  3523. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3524. if test "$*" = "X"; then
  3525. # -L didn't work.
  3526. set X `ls -t "$srcdir/configure" conftest.file`
  3527. fi
  3528. if test "$*" != "X $srcdir/configure conftest.file" \
  3529. && test "$*" != "X conftest.file $srcdir/configure"; then
  3530. # If neither matched, then we have a broken ls. This can happen
  3531. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3532. # broken ls alias from the environment. This has actually
  3533. # happened. Such a system could not be considered "sane".
  3534. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3535. alias in your environment" "$LINENO" 5
  3536. fi
  3537. if test "$2" = conftest.file || test $am_try -eq 2; then
  3538. break
  3539. fi
  3540. # Just in case.
  3541. sleep 1
  3542. am_has_slept=yes
  3543. done
  3544. test "$2" = conftest.file
  3545. )
  3546. then
  3547. # Ok.
  3548. :
  3549. else
  3550. as_fn_error $? "newly created file is older than distributed files!
  3551. Check your system clock" "$LINENO" 5
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3554. $as_echo "yes" >&6; }
  3555. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3556. # generated files are strictly newer.
  3557. am_sleep_pid=
  3558. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3559. ( sleep 1 ) &
  3560. am_sleep_pid=$!
  3561. fi
  3562. rm -f conftest.file
  3563. test "$program_prefix" != NONE &&
  3564. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3565. # Use a double $ so make ignores it.
  3566. test "$program_suffix" != NONE &&
  3567. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3568. # Double any \ or $.
  3569. # By default was `s,x,x', remove it if useless.
  3570. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3571. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3572. if test x"${MISSING+set}" != xset; then
  3573. case $am_aux_dir in
  3574. *\ * | *\ *)
  3575. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3576. *)
  3577. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3578. esac
  3579. fi
  3580. # Use eval to expand $SHELL
  3581. if eval "$MISSING --is-lightweight"; then
  3582. am_missing_run="$MISSING "
  3583. else
  3584. am_missing_run=
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3586. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3587. fi
  3588. if test x"${install_sh+set}" != xset; then
  3589. case $am_aux_dir in
  3590. *\ * | *\ *)
  3591. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3592. *)
  3593. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3594. esac
  3595. fi
  3596. # Installed binaries are usually stripped using 'strip' when the user
  3597. # run "make install-strip". However 'strip' might not be the right
  3598. # tool to use in cross-compilation environments, therefore Automake
  3599. # will honor the 'STRIP' environment variable to overrule this program.
  3600. if test "$cross_compiling" != no; then
  3601. if test -n "$ac_tool_prefix"; then
  3602. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3603. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3605. $as_echo_n "checking for $ac_word... " >&6; }
  3606. if ${ac_cv_prog_STRIP+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. if test -n "$STRIP"; then
  3610. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3611. else
  3612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3613. for as_dir in $PATH
  3614. do
  3615. IFS=$as_save_IFS
  3616. test -z "$as_dir" && as_dir=.
  3617. for ac_exec_ext in '' $ac_executable_extensions; do
  3618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3619. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3621. break 2
  3622. fi
  3623. done
  3624. done
  3625. IFS=$as_save_IFS
  3626. fi
  3627. fi
  3628. STRIP=$ac_cv_prog_STRIP
  3629. if test -n "$STRIP"; then
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3631. $as_echo "$STRIP" >&6; }
  3632. else
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3634. $as_echo "no" >&6; }
  3635. fi
  3636. fi
  3637. if test -z "$ac_cv_prog_STRIP"; then
  3638. ac_ct_STRIP=$STRIP
  3639. # Extract the first word of "strip", so it can be a program name with args.
  3640. set dummy strip; ac_word=$2
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3642. $as_echo_n "checking for $ac_word... " >&6; }
  3643. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. if test -n "$ac_ct_STRIP"; then
  3647. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3648. else
  3649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3650. for as_dir in $PATH
  3651. do
  3652. IFS=$as_save_IFS
  3653. test -z "$as_dir" && as_dir=.
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3656. ac_cv_prog_ac_ct_STRIP="strip"
  3657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3658. break 2
  3659. fi
  3660. done
  3661. done
  3662. IFS=$as_save_IFS
  3663. fi
  3664. fi
  3665. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3666. if test -n "$ac_ct_STRIP"; then
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3668. $as_echo "$ac_ct_STRIP" >&6; }
  3669. else
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3671. $as_echo "no" >&6; }
  3672. fi
  3673. if test "x$ac_ct_STRIP" = x; then
  3674. STRIP=":"
  3675. else
  3676. case $cross_compiling:$ac_tool_warned in
  3677. yes:)
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3679. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3680. ac_tool_warned=yes ;;
  3681. esac
  3682. STRIP=$ac_ct_STRIP
  3683. fi
  3684. else
  3685. STRIP="$ac_cv_prog_STRIP"
  3686. fi
  3687. fi
  3688. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3690. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3691. if test -z "$MKDIR_P"; then
  3692. if ${ac_cv_path_mkdir+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3696. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3697. do
  3698. IFS=$as_save_IFS
  3699. test -z "$as_dir" && as_dir=.
  3700. for ac_prog in mkdir gmkdir; do
  3701. for ac_exec_ext in '' $ac_executable_extensions; do
  3702. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3703. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3704. 'mkdir (GNU coreutils) '* | \
  3705. 'mkdir (coreutils) '* | \
  3706. 'mkdir (fileutils) '4.1*)
  3707. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3708. break 3;;
  3709. esac
  3710. done
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. fi
  3715. test -d ./--version && rmdir ./--version
  3716. if test "${ac_cv_path_mkdir+set}" = set; then
  3717. MKDIR_P="$ac_cv_path_mkdir -p"
  3718. else
  3719. # As a last resort, use the slow shell script. Don't cache a
  3720. # value for MKDIR_P within a source directory, because that will
  3721. # break other packages using the cache if that directory is
  3722. # removed, or if the value is a relative name.
  3723. MKDIR_P="$ac_install_sh -d"
  3724. fi
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3727. $as_echo "$MKDIR_P" >&6; }
  3728. for ac_prog in gawk mawk nawk awk
  3729. do
  3730. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3731. set dummy $ac_prog; ac_word=$2
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3733. $as_echo_n "checking for $ac_word... " >&6; }
  3734. if ${ac_cv_prog_AWK+:} false; then :
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. if test -n "$AWK"; then
  3738. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3739. else
  3740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3741. for as_dir in $PATH
  3742. do
  3743. IFS=$as_save_IFS
  3744. test -z "$as_dir" && as_dir=.
  3745. for ac_exec_ext in '' $ac_executable_extensions; do
  3746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3747. ac_cv_prog_AWK="$ac_prog"
  3748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3749. break 2
  3750. fi
  3751. done
  3752. done
  3753. IFS=$as_save_IFS
  3754. fi
  3755. fi
  3756. AWK=$ac_cv_prog_AWK
  3757. if test -n "$AWK"; then
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3759. $as_echo "$AWK" >&6; }
  3760. else
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3762. $as_echo "no" >&6; }
  3763. fi
  3764. test -n "$AWK" && break
  3765. done
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3767. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3768. set x ${MAKE-make}
  3769. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3770. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. cat >conftest.make <<\_ACEOF
  3774. SHELL = /bin/sh
  3775. all:
  3776. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3777. _ACEOF
  3778. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3779. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3780. *@@@%%%=?*=@@@%%%*)
  3781. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3782. *)
  3783. eval ac_cv_prog_make_${ac_make}_set=no;;
  3784. esac
  3785. rm -f conftest.make
  3786. fi
  3787. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3789. $as_echo "yes" >&6; }
  3790. SET_MAKE=
  3791. else
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3793. $as_echo "no" >&6; }
  3794. SET_MAKE="MAKE=${MAKE-make}"
  3795. fi
  3796. rm -rf .tst 2>/dev/null
  3797. mkdir .tst 2>/dev/null
  3798. if test -d .tst; then
  3799. am__leading_dot=.
  3800. else
  3801. am__leading_dot=_
  3802. fi
  3803. rmdir .tst 2>/dev/null
  3804. DEPDIR="${am__leading_dot}deps"
  3805. ac_config_commands="$ac_config_commands depfiles"
  3806. am_make=${MAKE-make}
  3807. cat > confinc << 'END'
  3808. am__doit:
  3809. @echo this is the am__doit target
  3810. .PHONY: am__doit
  3811. END
  3812. # If we don't find an include directive, just comment out the code.
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3814. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3815. am__include="#"
  3816. am__quote=
  3817. _am_result=none
  3818. # First try GNU make style include.
  3819. echo "include confinc" > confmf
  3820. # Ignore all kinds of additional output from 'make'.
  3821. case `$am_make -s -f confmf 2> /dev/null` in #(
  3822. *the\ am__doit\ target*)
  3823. am__include=include
  3824. am__quote=
  3825. _am_result=GNU
  3826. ;;
  3827. esac
  3828. # Now try BSD make style include.
  3829. if test "$am__include" = "#"; then
  3830. echo '.include "confinc"' > confmf
  3831. case `$am_make -s -f confmf 2> /dev/null` in #(
  3832. *the\ am__doit\ target*)
  3833. am__include=.include
  3834. am__quote="\""
  3835. _am_result=BSD
  3836. ;;
  3837. esac
  3838. fi
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3840. $as_echo "$_am_result" >&6; }
  3841. rm -f confinc confmf
  3842. # Check whether --enable-dependency-tracking was given.
  3843. if test "${enable_dependency_tracking+set}" = set; then :
  3844. enableval=$enable_dependency_tracking;
  3845. fi
  3846. if test "x$enable_dependency_tracking" != xno; then
  3847. am_depcomp="$ac_aux_dir/depcomp"
  3848. AMDEPBACKSLASH='\'
  3849. am__nodep='_no'
  3850. fi
  3851. if test "x$enable_dependency_tracking" != xno; then
  3852. AMDEP_TRUE=
  3853. AMDEP_FALSE='#'
  3854. else
  3855. AMDEP_TRUE='#'
  3856. AMDEP_FALSE=
  3857. fi
  3858. # Check whether --enable-silent-rules was given.
  3859. if test "${enable_silent_rules+set}" = set; then :
  3860. enableval=$enable_silent_rules;
  3861. fi
  3862. case $enable_silent_rules in # (((
  3863. yes) AM_DEFAULT_VERBOSITY=0;;
  3864. no) AM_DEFAULT_VERBOSITY=1;;
  3865. *) AM_DEFAULT_VERBOSITY=1;;
  3866. esac
  3867. am_make=${MAKE-make}
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3869. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3870. if ${am_cv_make_support_nested_variables+:} false; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. if $as_echo 'TRUE=$(BAR$(V))
  3874. BAR0=false
  3875. BAR1=true
  3876. V=1
  3877. am__doit:
  3878. @$(TRUE)
  3879. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3880. am_cv_make_support_nested_variables=yes
  3881. else
  3882. am_cv_make_support_nested_variables=no
  3883. fi
  3884. fi
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3886. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3887. if test $am_cv_make_support_nested_variables = yes; then
  3888. AM_V='$(V)'
  3889. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3890. else
  3891. AM_V=$AM_DEFAULT_VERBOSITY
  3892. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3893. fi
  3894. AM_BACKSLASH='\'
  3895. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3896. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3897. # is not polluted with repeated "-I."
  3898. am__isrc=' -I$(srcdir)'
  3899. # test to see if srcdir already configured
  3900. if test -f $srcdir/config.status; then
  3901. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3902. fi
  3903. fi
  3904. # test whether we have cygpath
  3905. if test -z "$CYGPATH_W"; then
  3906. if (cygpath --version) >/dev/null 2>/dev/null; then
  3907. CYGPATH_W='cygpath -w'
  3908. else
  3909. CYGPATH_W=echo
  3910. fi
  3911. fi
  3912. # Define the identity of the package.
  3913. PACKAGE='libctf'
  3914. VERSION='1.2.0'
  3915. cat >>confdefs.h <<_ACEOF
  3916. #define PACKAGE "$PACKAGE"
  3917. _ACEOF
  3918. cat >>confdefs.h <<_ACEOF
  3919. #define VERSION "$VERSION"
  3920. _ACEOF
  3921. # Some tools Automake needs.
  3922. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3923. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3924. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3925. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3926. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3927. # For better backward compatibility. To be removed once Automake 1.9.x
  3928. # dies out for good. For more background, see:
  3929. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3930. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3931. mkdir_p='$(MKDIR_P)'
  3932. # We need awk for the "check" target (and possibly the TAP driver). The
  3933. # system "awk" is bad on some platforms.
  3934. # Always define AMTAR for backward compatibility. Yes, it's still used
  3935. # in the wild :-( We should find a proper way to deprecate it ...
  3936. AMTAR='$${TAR-tar}'
  3937. # We'll loop over all known methods to create a tar archive until one works.
  3938. _am_tools='gnutar pax cpio none'
  3939. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3940. depcc="$CC" am_compiler_list=
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3942. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3943. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3944. $as_echo_n "(cached) " >&6
  3945. else
  3946. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3947. # We make a subdir and do the tests there. Otherwise we can end up
  3948. # making bogus files that we don't know about and never remove. For
  3949. # instance it was reported that on HP-UX the gcc test will end up
  3950. # making a dummy file named 'D' -- because '-MD' means "put the output
  3951. # in D".
  3952. rm -rf conftest.dir
  3953. mkdir conftest.dir
  3954. # Copy depcomp to subdir because otherwise we won't find it if we're
  3955. # using a relative directory.
  3956. cp "$am_depcomp" conftest.dir
  3957. cd conftest.dir
  3958. # We will build objects and dependencies in a subdirectory because
  3959. # it helps to detect inapplicable dependency modes. For instance
  3960. # both Tru64's cc and ICC support -MD to output dependencies as a
  3961. # side effect of compilation, but ICC will put the dependencies in
  3962. # the current directory while Tru64 will put them in the object
  3963. # directory.
  3964. mkdir sub
  3965. am_cv_CC_dependencies_compiler_type=none
  3966. if test "$am_compiler_list" = ""; then
  3967. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3968. fi
  3969. am__universal=false
  3970. case " $depcc " in #(
  3971. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3972. esac
  3973. for depmode in $am_compiler_list; do
  3974. # Setup a source with many dependencies, because some compilers
  3975. # like to wrap large dependency lists on column 80 (with \), and
  3976. # we should not choose a depcomp mode which is confused by this.
  3977. #
  3978. # We need to recreate these files for each test, as the compiler may
  3979. # overwrite some of them when testing with obscure command lines.
  3980. # This happens at least with the AIX C compiler.
  3981. : > sub/conftest.c
  3982. for i in 1 2 3 4 5 6; do
  3983. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3984. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3985. # Solaris 10 /bin/sh.
  3986. echo '/* dummy */' > sub/conftst$i.h
  3987. done
  3988. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3989. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3990. # mode. It turns out that the SunPro C++ compiler does not properly
  3991. # handle '-M -o', and we need to detect this. Also, some Intel
  3992. # versions had trouble with output in subdirs.
  3993. am__obj=sub/conftest.${OBJEXT-o}
  3994. am__minus_obj="-o $am__obj"
  3995. case $depmode in
  3996. gcc)
  3997. # This depmode causes a compiler race in universal mode.
  3998. test "$am__universal" = false || continue
  3999. ;;
  4000. nosideeffect)
  4001. # After this tag, mechanisms are not by side-effect, so they'll
  4002. # only be used when explicitly requested.
  4003. if test "x$enable_dependency_tracking" = xyes; then
  4004. continue
  4005. else
  4006. break
  4007. fi
  4008. ;;
  4009. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4010. # This compiler won't grok '-c -o', but also, the minuso test has
  4011. # not run yet. These depmodes are late enough in the game, and
  4012. # so weak that their functioning should not be impacted.
  4013. am__obj=conftest.${OBJEXT-o}
  4014. am__minus_obj=
  4015. ;;
  4016. none) break ;;
  4017. esac
  4018. if depmode=$depmode \
  4019. source=sub/conftest.c object=$am__obj \
  4020. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4021. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4022. >/dev/null 2>conftest.err &&
  4023. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4024. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4025. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4026. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4027. # icc doesn't choke on unknown options, it will just issue warnings
  4028. # or remarks (even with -Werror). So we grep stderr for any message
  4029. # that says an option was ignored or not supported.
  4030. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4031. # icc: Command line warning: ignoring option '-M'; no argument required
  4032. # The diagnosis changed in icc 8.0:
  4033. # icc: Command line remark: option '-MP' not supported
  4034. if (grep 'ignoring option' conftest.err ||
  4035. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4036. am_cv_CC_dependencies_compiler_type=$depmode
  4037. break
  4038. fi
  4039. fi
  4040. done
  4041. cd ..
  4042. rm -rf conftest.dir
  4043. else
  4044. am_cv_CC_dependencies_compiler_type=none
  4045. fi
  4046. fi
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4048. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4049. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4050. if
  4051. test "x$enable_dependency_tracking" != xno \
  4052. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4053. am__fastdepCC_TRUE=
  4054. am__fastdepCC_FALSE='#'
  4055. else
  4056. am__fastdepCC_TRUE='#'
  4057. am__fastdepCC_FALSE=
  4058. fi
  4059. # POSIX will say in a future version that running "rm -f" with no argument
  4060. # is OK; and we want to be able to make that assumption in our Makefile
  4061. # recipes. So use an aggressive probe to check that the usage we want is
  4062. # actually supported "in the wild" to an acceptable degree.
  4063. # See automake bug#10828.
  4064. # To make any issue more visible, cause the running configure to be aborted
  4065. # by default if the 'rm' program in use doesn't match our expectations; the
  4066. # user can still override this though.
  4067. if rm -f && rm -fr && rm -rf; then : OK; else
  4068. cat >&2 <<'END'
  4069. Oops!
  4070. Your 'rm' program seems unable to run without file operands specified
  4071. on the command line, even when the '-f' option is present. This is contrary
  4072. to the behaviour of most rm programs out there, and not conforming with
  4073. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4074. Please tell bug-automake@gnu.org about your system, including the value
  4075. of your $PATH and any error possibly output before this message. This
  4076. can help us improve future automake versions.
  4077. END
  4078. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4079. echo 'Configuration will proceed anyway, since you have set the' >&2
  4080. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4081. echo >&2
  4082. else
  4083. cat >&2 <<'END'
  4084. Aborting the configuration process, to ensure you take notice of the issue.
  4085. You can download and install GNU coreutils to get an 'rm' implementation
  4086. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4087. If you want to complete the configuration process using your problematic
  4088. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4089. to "yes", and re-run configure.
  4090. END
  4091. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4092. fi
  4093. fi
  4094. # Check whether --enable-silent-rules was given.
  4095. if test "${enable_silent_rules+set}" = set; then :
  4096. enableval=$enable_silent_rules;
  4097. fi
  4098. case $enable_silent_rules in # (((
  4099. yes) AM_DEFAULT_VERBOSITY=0;;
  4100. no) AM_DEFAULT_VERBOSITY=1;;
  4101. *) AM_DEFAULT_VERBOSITY=0;;
  4102. esac
  4103. am_make=${MAKE-make}
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4105. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4106. if ${am_cv_make_support_nested_variables+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if $as_echo 'TRUE=$(BAR$(V))
  4110. BAR0=false
  4111. BAR1=true
  4112. V=1
  4113. am__doit:
  4114. @$(TRUE)
  4115. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4116. am_cv_make_support_nested_variables=yes
  4117. else
  4118. am_cv_make_support_nested_variables=no
  4119. fi
  4120. fi
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4122. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4123. if test $am_cv_make_support_nested_variables = yes; then
  4124. AM_V='$(V)'
  4125. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4126. else
  4127. AM_V=$AM_DEFAULT_VERBOSITY
  4128. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4129. fi
  4130. AM_BACKSLASH='\'
  4131. # Checks for programs.
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4133. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4134. set x ${MAKE-make}
  4135. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4136. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. cat >conftest.make <<\_ACEOF
  4140. SHELL = /bin/sh
  4141. all:
  4142. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4143. _ACEOF
  4144. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4145. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4146. *@@@%%%=?*=@@@%%%*)
  4147. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4148. *)
  4149. eval ac_cv_prog_make_${ac_make}_set=no;;
  4150. esac
  4151. rm -f conftest.make
  4152. fi
  4153. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4155. $as_echo "yes" >&6; }
  4156. SET_MAKE=
  4157. else
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4159. $as_echo "no" >&6; }
  4160. SET_MAKE="MAKE=${MAKE-make}"
  4161. fi
  4162. ac_ext=c
  4163. ac_cpp='$CPP $CPPFLAGS'
  4164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4167. if test -n "$ac_tool_prefix"; then
  4168. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4169. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4171. $as_echo_n "checking for $ac_word... " >&6; }
  4172. if ${ac_cv_prog_CC+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -n "$CC"; then
  4176. ac_cv_prog_CC="$CC" # Let the user override the test.
  4177. else
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_exec_ext in '' $ac_executable_extensions; do
  4184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4185. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4187. break 2
  4188. fi
  4189. done
  4190. done
  4191. IFS=$as_save_IFS
  4192. fi
  4193. fi
  4194. CC=$ac_cv_prog_CC
  4195. if test -n "$CC"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4197. $as_echo "$CC" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. fi
  4203. if test -z "$ac_cv_prog_CC"; then
  4204. ac_ct_CC=$CC
  4205. # Extract the first word of "gcc", so it can be a program name with args.
  4206. set dummy gcc; ac_word=$2
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4208. $as_echo_n "checking for $ac_word... " >&6; }
  4209. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if test -n "$ac_ct_CC"; then
  4213. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4214. else
  4215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4216. for as_dir in $PATH
  4217. do
  4218. IFS=$as_save_IFS
  4219. test -z "$as_dir" && as_dir=.
  4220. for ac_exec_ext in '' $ac_executable_extensions; do
  4221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4222. ac_cv_prog_ac_ct_CC="gcc"
  4223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4224. break 2
  4225. fi
  4226. done
  4227. done
  4228. IFS=$as_save_IFS
  4229. fi
  4230. fi
  4231. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4232. if test -n "$ac_ct_CC"; then
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4234. $as_echo "$ac_ct_CC" >&6; }
  4235. else
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4237. $as_echo "no" >&6; }
  4238. fi
  4239. if test "x$ac_ct_CC" = x; then
  4240. CC=""
  4241. else
  4242. case $cross_compiling:$ac_tool_warned in
  4243. yes:)
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4246. ac_tool_warned=yes ;;
  4247. esac
  4248. CC=$ac_ct_CC
  4249. fi
  4250. else
  4251. CC="$ac_cv_prog_CC"
  4252. fi
  4253. if test -z "$CC"; then
  4254. if test -n "$ac_tool_prefix"; then
  4255. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4256. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4258. $as_echo_n "checking for $ac_word... " >&6; }
  4259. if ${ac_cv_prog_CC+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -n "$CC"; then
  4263. ac_cv_prog_CC="$CC" # Let the user override the test.
  4264. else
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4272. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4274. break 2
  4275. fi
  4276. done
  4277. done
  4278. IFS=$as_save_IFS
  4279. fi
  4280. fi
  4281. CC=$ac_cv_prog_CC
  4282. if test -n "$CC"; then
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4284. $as_echo "$CC" >&6; }
  4285. else
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4287. $as_echo "no" >&6; }
  4288. fi
  4289. fi
  4290. fi
  4291. if test -z "$CC"; then
  4292. # Extract the first word of "cc", so it can be a program name with args.
  4293. set dummy cc; ac_word=$2
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4295. $as_echo_n "checking for $ac_word... " >&6; }
  4296. if ${ac_cv_prog_CC+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. if test -n "$CC"; then
  4300. ac_cv_prog_CC="$CC" # Let the user override the test.
  4301. else
  4302. ac_prog_rejected=no
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4310. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4311. ac_prog_rejected=yes
  4312. continue
  4313. fi
  4314. ac_cv_prog_CC="cc"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. if test $ac_prog_rejected = yes; then
  4322. # We found a bogon in the path, so make sure we never use it.
  4323. set dummy $ac_cv_prog_CC
  4324. shift
  4325. if test $# != 0; then
  4326. # We chose a different compiler from the bogus one.
  4327. # However, it has the same basename, so the bogon will be chosen
  4328. # first if we set CC to just the basename; use the full file name.
  4329. shift
  4330. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4331. fi
  4332. fi
  4333. fi
  4334. fi
  4335. CC=$ac_cv_prog_CC
  4336. if test -n "$CC"; then
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4338. $as_echo "$CC" >&6; }
  4339. else
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4341. $as_echo "no" >&6; }
  4342. fi
  4343. fi
  4344. if test -z "$CC"; then
  4345. if test -n "$ac_tool_prefix"; then
  4346. for ac_prog in cl.exe
  4347. do
  4348. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4349. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4351. $as_echo_n "checking for $ac_word... " >&6; }
  4352. if ${ac_cv_prog_CC+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. if test -n "$CC"; then
  4356. ac_cv_prog_CC="$CC" # Let the user override the test.
  4357. else
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4365. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4367. break 2
  4368. fi
  4369. done
  4370. done
  4371. IFS=$as_save_IFS
  4372. fi
  4373. fi
  4374. CC=$ac_cv_prog_CC
  4375. if test -n "$CC"; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4377. $as_echo "$CC" >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. fi
  4382. test -n "$CC" && break
  4383. done
  4384. fi
  4385. if test -z "$CC"; then
  4386. ac_ct_CC=$CC
  4387. for ac_prog in cl.exe
  4388. do
  4389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4390. set dummy $ac_prog; ac_word=$2
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4392. $as_echo_n "checking for $ac_word... " >&6; }
  4393. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. if test -n "$ac_ct_CC"; then
  4397. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4398. else
  4399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4400. for as_dir in $PATH
  4401. do
  4402. IFS=$as_save_IFS
  4403. test -z "$as_dir" && as_dir=.
  4404. for ac_exec_ext in '' $ac_executable_extensions; do
  4405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4406. ac_cv_prog_ac_ct_CC="$ac_prog"
  4407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4408. break 2
  4409. fi
  4410. done
  4411. done
  4412. IFS=$as_save_IFS
  4413. fi
  4414. fi
  4415. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4416. if test -n "$ac_ct_CC"; then
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4418. $as_echo "$ac_ct_CC" >&6; }
  4419. else
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4421. $as_echo "no" >&6; }
  4422. fi
  4423. test -n "$ac_ct_CC" && break
  4424. done
  4425. if test "x$ac_ct_CC" = x; then
  4426. CC=""
  4427. else
  4428. case $cross_compiling:$ac_tool_warned in
  4429. yes:)
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4432. ac_tool_warned=yes ;;
  4433. esac
  4434. CC=$ac_ct_CC
  4435. fi
  4436. fi
  4437. fi
  4438. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4440. as_fn_error $? "no acceptable C compiler found in \$PATH
  4441. See \`config.log' for more details" "$LINENO" 5; }
  4442. # Provide some information about the compiler.
  4443. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4444. set X $ac_compile
  4445. ac_compiler=$2
  4446. for ac_option in --version -v -V -qversion; do
  4447. { { ac_try="$ac_compiler $ac_option >&5"
  4448. case "(($ac_try" in
  4449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4450. *) ac_try_echo=$ac_try;;
  4451. esac
  4452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4453. $as_echo "$ac_try_echo"; } >&5
  4454. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4455. ac_status=$?
  4456. if test -s conftest.err; then
  4457. sed '10a\
  4458. ... rest of stderr output deleted ...
  4459. 10q' conftest.err >conftest.er1
  4460. cat conftest.er1 >&5
  4461. fi
  4462. rm -f conftest.er1 conftest.err
  4463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4464. test $ac_status = 0; }
  4465. done
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4467. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4468. if ${ac_cv_c_compiler_gnu+:} false; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4472. /* end confdefs.h. */
  4473. int
  4474. main ()
  4475. {
  4476. #ifndef __GNUC__
  4477. choke me
  4478. #endif
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. if ac_fn_c_try_compile "$LINENO"; then :
  4484. ac_compiler_gnu=yes
  4485. else
  4486. ac_compiler_gnu=no
  4487. fi
  4488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4489. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4490. fi
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4492. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4493. if test $ac_compiler_gnu = yes; then
  4494. GCC=yes
  4495. else
  4496. GCC=
  4497. fi
  4498. ac_test_CFLAGS=${CFLAGS+set}
  4499. ac_save_CFLAGS=$CFLAGS
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4501. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4502. if ${ac_cv_prog_cc_g+:} false; then :
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. ac_save_c_werror_flag=$ac_c_werror_flag
  4506. ac_c_werror_flag=yes
  4507. ac_cv_prog_cc_g=no
  4508. CFLAGS="-g"
  4509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4510. /* end confdefs.h. */
  4511. int
  4512. main ()
  4513. {
  4514. ;
  4515. return 0;
  4516. }
  4517. _ACEOF
  4518. if ac_fn_c_try_compile "$LINENO"; then :
  4519. ac_cv_prog_cc_g=yes
  4520. else
  4521. CFLAGS=""
  4522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4523. /* end confdefs.h. */
  4524. int
  4525. main ()
  4526. {
  4527. ;
  4528. return 0;
  4529. }
  4530. _ACEOF
  4531. if ac_fn_c_try_compile "$LINENO"; then :
  4532. else
  4533. ac_c_werror_flag=$ac_save_c_werror_flag
  4534. CFLAGS="-g"
  4535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4536. /* end confdefs.h. */
  4537. int
  4538. main ()
  4539. {
  4540. ;
  4541. return 0;
  4542. }
  4543. _ACEOF
  4544. if ac_fn_c_try_compile "$LINENO"; then :
  4545. ac_cv_prog_cc_g=yes
  4546. fi
  4547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4548. fi
  4549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4550. fi
  4551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4552. ac_c_werror_flag=$ac_save_c_werror_flag
  4553. fi
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4555. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4556. if test "$ac_test_CFLAGS" = set; then
  4557. CFLAGS=$ac_save_CFLAGS
  4558. elif test $ac_cv_prog_cc_g = yes; then
  4559. if test "$GCC" = yes; then
  4560. CFLAGS="-g -O2"
  4561. else
  4562. CFLAGS="-g"
  4563. fi
  4564. else
  4565. if test "$GCC" = yes; then
  4566. CFLAGS="-O2"
  4567. else
  4568. CFLAGS=
  4569. fi
  4570. fi
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4572. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4573. if ${ac_cv_prog_cc_c89+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. ac_cv_prog_cc_c89=no
  4577. ac_save_CC=$CC
  4578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4579. /* end confdefs.h. */
  4580. #include <stdarg.h>
  4581. #include <stdio.h>
  4582. struct stat;
  4583. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4584. struct buf { int x; };
  4585. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4586. static char *e (p, i)
  4587. char **p;
  4588. int i;
  4589. {
  4590. return p[i];
  4591. }
  4592. static char *f (char * (*g) (char **, int), char **p, ...)
  4593. {
  4594. char *s;
  4595. va_list v;
  4596. va_start (v,p);
  4597. s = g (p, va_arg (v,int));
  4598. va_end (v);
  4599. return s;
  4600. }
  4601. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4602. function prototypes and stuff, but not '\xHH' hex character constants.
  4603. These don't provoke an error unfortunately, instead are silently treated
  4604. as 'x'. The following induces an error, until -std is added to get
  4605. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4606. array size at least. It's necessary to write '\x00'==0 to get something
  4607. that's true only with -std. */
  4608. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4609. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4610. inside strings and character constants. */
  4611. #define FOO(x) 'x'
  4612. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4613. int test (int i, double x);
  4614. struct s1 {int (*f) (int a);};
  4615. struct s2 {int (*f) (double a);};
  4616. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4617. int argc;
  4618. char **argv;
  4619. int
  4620. main ()
  4621. {
  4622. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4623. ;
  4624. return 0;
  4625. }
  4626. _ACEOF
  4627. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4628. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4629. do
  4630. CC="$ac_save_CC $ac_arg"
  4631. if ac_fn_c_try_compile "$LINENO"; then :
  4632. ac_cv_prog_cc_c89=$ac_arg
  4633. fi
  4634. rm -f core conftest.err conftest.$ac_objext
  4635. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4636. done
  4637. rm -f conftest.$ac_ext
  4638. CC=$ac_save_CC
  4639. fi
  4640. # AC_CACHE_VAL
  4641. case "x$ac_cv_prog_cc_c89" in
  4642. x)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4644. $as_echo "none needed" >&6; } ;;
  4645. xno)
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4647. $as_echo "unsupported" >&6; } ;;
  4648. *)
  4649. CC="$CC $ac_cv_prog_cc_c89"
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4651. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4652. esac
  4653. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4654. fi
  4655. ac_ext=c
  4656. ac_cpp='$CPP $CPPFLAGS'
  4657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4660. ac_ext=c
  4661. ac_cpp='$CPP $CPPFLAGS'
  4662. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4663. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4664. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4666. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4667. if ${am_cv_prog_cc_c_o+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4671. /* end confdefs.h. */
  4672. int
  4673. main ()
  4674. {
  4675. ;
  4676. return 0;
  4677. }
  4678. _ACEOF
  4679. # Make sure it works both with $CC and with simple cc.
  4680. # Following AC_PROG_CC_C_O, we do the test twice because some
  4681. # compilers refuse to overwrite an existing .o file with -o,
  4682. # though they will create one.
  4683. am_cv_prog_cc_c_o=yes
  4684. for am_i in 1 2; do
  4685. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4686. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4687. ac_status=$?
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); } \
  4690. && test -f conftest2.$ac_objext; then
  4691. : OK
  4692. else
  4693. am_cv_prog_cc_c_o=no
  4694. break
  4695. fi
  4696. done
  4697. rm -f core conftest*
  4698. unset am_i
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4701. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4702. if test "$am_cv_prog_cc_c_o" != yes; then
  4703. # Losing compiler, so override with the script.
  4704. # FIXME: It is wrong to rewrite CC.
  4705. # But if we don't then we get into trouble of one sort or another.
  4706. # A longer-term fix would be to have automake use am__CC in this case,
  4707. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4708. CC="$am_aux_dir/compile $CC"
  4709. fi
  4710. ac_ext=c
  4711. ac_cpp='$CPP $CPPFLAGS'
  4712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4715. if test -n "$ac_tool_prefix"; then
  4716. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4717. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4719. $as_echo_n "checking for $ac_word... " >&6; }
  4720. if ${ac_cv_prog_RANLIB+:} false; then :
  4721. $as_echo_n "(cached) " >&6
  4722. else
  4723. if test -n "$RANLIB"; then
  4724. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. test -z "$as_dir" && as_dir=.
  4731. for ac_exec_ext in '' $ac_executable_extensions; do
  4732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4733. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4735. break 2
  4736. fi
  4737. done
  4738. done
  4739. IFS=$as_save_IFS
  4740. fi
  4741. fi
  4742. RANLIB=$ac_cv_prog_RANLIB
  4743. if test -n "$RANLIB"; then
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4745. $as_echo "$RANLIB" >&6; }
  4746. else
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4748. $as_echo "no" >&6; }
  4749. fi
  4750. fi
  4751. if test -z "$ac_cv_prog_RANLIB"; then
  4752. ac_ct_RANLIB=$RANLIB
  4753. # Extract the first word of "ranlib", so it can be a program name with args.
  4754. set dummy ranlib; ac_word=$2
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4756. $as_echo_n "checking for $ac_word... " >&6; }
  4757. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. if test -n "$ac_ct_RANLIB"; then
  4761. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4762. else
  4763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4764. for as_dir in $PATH
  4765. do
  4766. IFS=$as_save_IFS
  4767. test -z "$as_dir" && as_dir=.
  4768. for ac_exec_ext in '' $ac_executable_extensions; do
  4769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4770. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4772. break 2
  4773. fi
  4774. done
  4775. done
  4776. IFS=$as_save_IFS
  4777. fi
  4778. fi
  4779. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4780. if test -n "$ac_ct_RANLIB"; then
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4782. $as_echo "$ac_ct_RANLIB" >&6; }
  4783. else
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4785. $as_echo "no" >&6; }
  4786. fi
  4787. if test "x$ac_ct_RANLIB" = x; then
  4788. RANLIB=":"
  4789. else
  4790. case $cross_compiling:$ac_tool_warned in
  4791. yes:)
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4794. ac_tool_warned=yes ;;
  4795. esac
  4796. RANLIB=$ac_ct_RANLIB
  4797. fi
  4798. else
  4799. RANLIB="$ac_cv_prog_RANLIB"
  4800. fi
  4801. if test -n "$ac_tool_prefix"; then
  4802. for ac_prog in ar lib "link -lib"
  4803. do
  4804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if ${ac_cv_prog_AR+:} false; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$AR"; then
  4812. ac_cv_prog_AR="$AR" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4821. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. AR=$ac_cv_prog_AR
  4831. if test -n "$AR"; then
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4833. $as_echo "$AR" >&6; }
  4834. else
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. test -n "$AR" && break
  4839. done
  4840. fi
  4841. if test -z "$AR"; then
  4842. ac_ct_AR=$AR
  4843. for ac_prog in ar lib "link -lib"
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$ac_ct_AR"; then
  4853. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4862. ac_cv_prog_ac_ct_AR="$ac_prog"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4872. if test -n "$ac_ct_AR"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4874. $as_echo "$ac_ct_AR" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. test -n "$ac_ct_AR" && break
  4880. done
  4881. if test "x$ac_ct_AR" = x; then
  4882. AR="false"
  4883. else
  4884. case $cross_compiling:$ac_tool_warned in
  4885. yes:)
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4888. ac_tool_warned=yes ;;
  4889. esac
  4890. AR=$ac_ct_AR
  4891. fi
  4892. fi
  4893. : ${AR=ar}
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4895. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4896. if ${am_cv_ar_interface+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. ac_ext=c
  4900. ac_cpp='$CPP $CPPFLAGS'
  4901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4904. am_cv_ar_interface=ar
  4905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4906. /* end confdefs.h. */
  4907. int some_variable = 0;
  4908. _ACEOF
  4909. if ac_fn_c_try_compile "$LINENO"; then :
  4910. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4911. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4912. (eval $am_ar_try) 2>&5
  4913. ac_status=$?
  4914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4915. test $ac_status = 0; }
  4916. if test "$ac_status" -eq 0; then
  4917. am_cv_ar_interface=ar
  4918. else
  4919. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4920. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4921. (eval $am_ar_try) 2>&5
  4922. ac_status=$?
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4924. test $ac_status = 0; }
  4925. if test "$ac_status" -eq 0; then
  4926. am_cv_ar_interface=lib
  4927. else
  4928. am_cv_ar_interface=unknown
  4929. fi
  4930. fi
  4931. rm -f conftest.lib libconftest.a
  4932. fi
  4933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4934. ac_ext=c
  4935. ac_cpp='$CPP $CPPFLAGS'
  4936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4939. fi
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4941. $as_echo "$am_cv_ar_interface" >&6; }
  4942. case $am_cv_ar_interface in
  4943. ar)
  4944. ;;
  4945. lib)
  4946. # Microsoft lib, so override with the ar-lib wrapper script.
  4947. # FIXME: It is wrong to rewrite AR.
  4948. # But if we don't then we get into trouble of one sort or another.
  4949. # A longer-term fix would be to have automake use am__AR in this case,
  4950. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4951. # similar.
  4952. AR="$am_aux_dir/ar-lib $AR"
  4953. ;;
  4954. unknown)
  4955. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4956. ;;
  4957. esac
  4958. # If we haven't got the data from the intl directory,
  4959. # assume NLS is disabled.
  4960. USE_NLS=no
  4961. LIBINTL=
  4962. LIBINTL_DEP=
  4963. INCINTL=
  4964. XGETTEXT=
  4965. GMSGFMT=
  4966. POSUB=
  4967. if test -f ../intl/config.intl; then
  4968. . ../intl/config.intl
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  4971. $as_echo_n "checking whether NLS is requested... " >&6; }
  4972. if test x"$USE_NLS" != xyes; then
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4974. $as_echo "no" >&6; }
  4975. else
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4977. $as_echo "yes" >&6; }
  4978. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  4980. $as_echo_n "checking for catalogs to be installed... " >&6; }
  4981. # Look for .po and .gmo files in the source directory.
  4982. CATALOGS=
  4983. XLINGUAS=
  4984. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  4985. # If there aren't any .gmo files the shell will give us the
  4986. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  4987. # weeded out.
  4988. case "$cat" in *\**)
  4989. continue;;
  4990. esac
  4991. # The quadruple backslash is collapsed to a double backslash
  4992. # by the backticks, then collapsed again by the double quotes,
  4993. # leaving us with one backslash in the sed expression (right
  4994. # before the dot that mustn't act as a wildcard).
  4995. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  4996. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  4997. # The user is allowed to set LINGUAS to a list of languages to
  4998. # install catalogs for. If it's empty that means "all of them."
  4999. if test "x$LINGUAS" = x; then
  5000. CATALOGS="$CATALOGS $cat"
  5001. XLINGUAS="$XLINGUAS $lang"
  5002. else
  5003. case "$LINGUAS" in *$lang*)
  5004. CATALOGS="$CATALOGS $cat"
  5005. XLINGUAS="$XLINGUAS $lang"
  5006. ;;
  5007. esac
  5008. fi
  5009. done
  5010. LINGUAS="$XLINGUAS"
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  5012. $as_echo "$LINGUAS" >&6; }
  5013. DATADIRNAME=share
  5014. INSTOBJEXT=.mo
  5015. GENCAT=gencat
  5016. CATOBJEXT=.gmo
  5017. fi
  5018. # Check whether --enable-shared was given.
  5019. if test "${enable_shared+set}" = set; then :
  5020. enableval=$enable_shared; p=${PACKAGE-default}
  5021. case $enableval in
  5022. yes) enable_shared=yes ;;
  5023. no) enable_shared=no ;;
  5024. *)
  5025. enable_shared=no
  5026. # Look at the argument we got. We use all the common list separators.
  5027. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5028. for pkg in $enableval; do
  5029. IFS="$lt_save_ifs"
  5030. if test "X$pkg" = "X$p"; then
  5031. enable_shared=yes
  5032. fi
  5033. done
  5034. IFS="$lt_save_ifs"
  5035. ;;
  5036. esac
  5037. else
  5038. enable_shared=no
  5039. fi
  5040. case `pwd` in
  5041. *\ * | *\ *)
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5043. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5044. esac
  5045. macro_version='2.2.7a'
  5046. macro_revision='1.3134'
  5047. ltmain="$ac_aux_dir/ltmain.sh"
  5048. # Backslashify metacharacters that are still active within
  5049. # double-quoted strings.
  5050. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5051. # Same as above, but do not quote variable references.
  5052. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5053. # Sed substitution to delay expansion of an escaped shell variable in a
  5054. # double_quote_subst'ed string.
  5055. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5056. # Sed substitution to delay expansion of an escaped single quote.
  5057. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5058. # Sed substitution to avoid accidental globbing in evaled expressions
  5059. no_glob_subst='s/\*/\\\*/g'
  5060. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5061. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5062. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5064. $as_echo_n "checking how to print strings... " >&6; }
  5065. # Test print first, because it will be a builtin if present.
  5066. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5067. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5068. ECHO='print -r --'
  5069. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5070. ECHO='printf %s\n'
  5071. else
  5072. # Use this function as a fallback that always works.
  5073. func_fallback_echo ()
  5074. {
  5075. eval 'cat <<_LTECHO_EOF
  5076. $1
  5077. _LTECHO_EOF'
  5078. }
  5079. ECHO='func_fallback_echo'
  5080. fi
  5081. # func_echo_all arg...
  5082. # Invoke $ECHO with all args, space-separated.
  5083. func_echo_all ()
  5084. {
  5085. $ECHO ""
  5086. }
  5087. case "$ECHO" in
  5088. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5089. $as_echo "printf" >&6; } ;;
  5090. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5091. $as_echo "print -r" >&6; } ;;
  5092. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5093. $as_echo "cat" >&6; } ;;
  5094. esac
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5096. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5097. if ${ac_cv_path_SED+:} false; then :
  5098. $as_echo_n "(cached) " >&6
  5099. else
  5100. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5101. for ac_i in 1 2 3 4 5 6 7; do
  5102. ac_script="$ac_script$as_nl$ac_script"
  5103. done
  5104. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5105. { ac_script=; unset ac_script;}
  5106. if test -z "$SED"; then
  5107. ac_path_SED_found=false
  5108. # Loop through the user's path and test for each of PROGNAME-LIST
  5109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5110. for as_dir in $PATH
  5111. do
  5112. IFS=$as_save_IFS
  5113. test -z "$as_dir" && as_dir=.
  5114. for ac_prog in sed gsed; do
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5117. as_fn_executable_p "$ac_path_SED" || continue
  5118. # Check for GNU ac_path_SED and select it if it is found.
  5119. # Check for GNU $ac_path_SED
  5120. case `"$ac_path_SED" --version 2>&1` in
  5121. *GNU*)
  5122. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5123. *)
  5124. ac_count=0
  5125. $as_echo_n 0123456789 >"conftest.in"
  5126. while :
  5127. do
  5128. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5129. mv "conftest.tmp" "conftest.in"
  5130. cp "conftest.in" "conftest.nl"
  5131. $as_echo '' >> "conftest.nl"
  5132. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5133. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5134. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5135. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5136. # Best one so far, save it but keep looking for a better one
  5137. ac_cv_path_SED="$ac_path_SED"
  5138. ac_path_SED_max=$ac_count
  5139. fi
  5140. # 10*(2^10) chars as input seems more than enough
  5141. test $ac_count -gt 10 && break
  5142. done
  5143. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5144. esac
  5145. $ac_path_SED_found && break 3
  5146. done
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. if test -z "$ac_cv_path_SED"; then
  5151. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5152. fi
  5153. else
  5154. ac_cv_path_SED=$SED
  5155. fi
  5156. fi
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5158. $as_echo "$ac_cv_path_SED" >&6; }
  5159. SED="$ac_cv_path_SED"
  5160. rm -f conftest.sed
  5161. test -z "$SED" && SED=sed
  5162. Xsed="$SED -e 1s/^X//"
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5164. $as_echo_n "checking for fgrep... " >&6; }
  5165. if ${ac_cv_path_FGREP+:} false; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5169. then ac_cv_path_FGREP="$GREP -F"
  5170. else
  5171. if test -z "$FGREP"; then
  5172. ac_path_FGREP_found=false
  5173. # Loop through the user's path and test for each of PROGNAME-LIST
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_prog in fgrep; do
  5180. for ac_exec_ext in '' $ac_executable_extensions; do
  5181. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5182. as_fn_executable_p "$ac_path_FGREP" || continue
  5183. # Check for GNU ac_path_FGREP and select it if it is found.
  5184. # Check for GNU $ac_path_FGREP
  5185. case `"$ac_path_FGREP" --version 2>&1` in
  5186. *GNU*)
  5187. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5188. *)
  5189. ac_count=0
  5190. $as_echo_n 0123456789 >"conftest.in"
  5191. while :
  5192. do
  5193. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5194. mv "conftest.tmp" "conftest.in"
  5195. cp "conftest.in" "conftest.nl"
  5196. $as_echo 'FGREP' >> "conftest.nl"
  5197. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5198. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5199. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5200. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5201. # Best one so far, save it but keep looking for a better one
  5202. ac_cv_path_FGREP="$ac_path_FGREP"
  5203. ac_path_FGREP_max=$ac_count
  5204. fi
  5205. # 10*(2^10) chars as input seems more than enough
  5206. test $ac_count -gt 10 && break
  5207. done
  5208. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5209. esac
  5210. $ac_path_FGREP_found && break 3
  5211. done
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. if test -z "$ac_cv_path_FGREP"; then
  5216. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5217. fi
  5218. else
  5219. ac_cv_path_FGREP=$FGREP
  5220. fi
  5221. fi
  5222. fi
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5224. $as_echo "$ac_cv_path_FGREP" >&6; }
  5225. FGREP="$ac_cv_path_FGREP"
  5226. test -z "$GREP" && GREP=grep
  5227. # Check whether --with-gnu-ld was given.
  5228. if test "${with_gnu_ld+set}" = set; then :
  5229. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5230. else
  5231. with_gnu_ld=no
  5232. fi
  5233. ac_prog=ld
  5234. if test "$GCC" = yes; then
  5235. # Check if gcc -print-prog-name=ld gives a path.
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5237. $as_echo_n "checking for ld used by $CC... " >&6; }
  5238. case $host in
  5239. *-*-mingw*)
  5240. # gcc leaves a trailing carriage return which upsets mingw
  5241. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5242. *)
  5243. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5244. esac
  5245. case $ac_prog in
  5246. # Accept absolute paths.
  5247. [\\/]* | ?:[\\/]*)
  5248. re_direlt='/[^/][^/]*/\.\./'
  5249. # Canonicalize the pathname of ld
  5250. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5251. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5252. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5253. done
  5254. test -z "$LD" && LD="$ac_prog"
  5255. ;;
  5256. "")
  5257. # If it fails, then pretend we aren't using GCC.
  5258. ac_prog=ld
  5259. ;;
  5260. *)
  5261. # If it is relative, then search for the first ld in PATH.
  5262. with_gnu_ld=unknown
  5263. ;;
  5264. esac
  5265. elif test "$with_gnu_ld" = yes; then
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5267. $as_echo_n "checking for GNU ld... " >&6; }
  5268. else
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5270. $as_echo_n "checking for non-GNU ld... " >&6; }
  5271. fi
  5272. if ${lt_cv_path_LD+:} false; then :
  5273. $as_echo_n "(cached) " >&6
  5274. else
  5275. if test -z "$LD"; then
  5276. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5277. for ac_dir in $PATH; do
  5278. IFS="$lt_save_ifs"
  5279. test -z "$ac_dir" && ac_dir=.
  5280. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5281. lt_cv_path_LD="$ac_dir/$ac_prog"
  5282. # Check to see if the program is GNU ld. I'd rather use --version,
  5283. # but apparently some variants of GNU ld only accept -v.
  5284. # Break only if it was the GNU/non-GNU ld that we prefer.
  5285. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5286. *GNU* | *'with BFD'*)
  5287. test "$with_gnu_ld" != no && break
  5288. ;;
  5289. *)
  5290. test "$with_gnu_ld" != yes && break
  5291. ;;
  5292. esac
  5293. fi
  5294. done
  5295. IFS="$lt_save_ifs"
  5296. else
  5297. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5298. fi
  5299. fi
  5300. LD="$lt_cv_path_LD"
  5301. if test -n "$LD"; then
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5303. $as_echo "$LD" >&6; }
  5304. else
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5306. $as_echo "no" >&6; }
  5307. fi
  5308. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5310. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5311. if ${lt_cv_prog_gnu_ld+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5315. case `$LD -v 2>&1 </dev/null` in
  5316. *GNU* | *'with BFD'*)
  5317. lt_cv_prog_gnu_ld=yes
  5318. ;;
  5319. *)
  5320. lt_cv_prog_gnu_ld=no
  5321. ;;
  5322. esac
  5323. fi
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5325. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5326. with_gnu_ld=$lt_cv_prog_gnu_ld
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5328. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5329. if ${lt_cv_path_NM+:} false; then :
  5330. $as_echo_n "(cached) " >&6
  5331. else
  5332. if test -n "$NM"; then
  5333. # Let the user override the nm to test.
  5334. lt_nm_to_check="$NM"
  5335. else
  5336. lt_nm_to_check="${ac_tool_prefix}nm"
  5337. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5338. lt_nm_to_check="$lt_nm_to_check nm"
  5339. fi
  5340. fi
  5341. for lt_tmp_nm in "$lt_nm_to_check"; do
  5342. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5343. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5344. IFS="$lt_save_ifs"
  5345. test -z "$ac_dir" && ac_dir=.
  5346. # Strip out any user-provided options from the nm to test twice,
  5347. # the first time to test to see if nm (rather than its options) has
  5348. # an explicit path, the second time to yield a file which can be
  5349. # nm'ed itself.
  5350. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  5351. case "$tmp_nm_path" in
  5352. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  5353. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  5354. esac
  5355. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  5356. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  5357. # Check to see if the nm accepts a BSD-compat flag.
  5358. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5359. # nm: unknown option "B" ignored
  5360. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5361. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  5362. break
  5363. ;;
  5364. *)
  5365. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5366. *$tmp_nm*)
  5367. lt_cv_path_NM="$tmp_nm -p"
  5368. break
  5369. ;;
  5370. *)
  5371. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5372. continue # so that we can try to find one that supports BSD flags
  5373. ;;
  5374. esac
  5375. ;;
  5376. esac
  5377. fi
  5378. done
  5379. IFS="$lt_save_ifs"
  5380. done
  5381. : ${lt_cv_path_NM=no}
  5382. fi
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5384. $as_echo "$lt_cv_path_NM" >&6; }
  5385. if test "$lt_cv_path_NM" != "no"; then
  5386. NM="$lt_cv_path_NM"
  5387. else
  5388. # Didn't find any BSD compatible name lister, look for dumpbin.
  5389. if test -n "$DUMPBIN"; then :
  5390. # Let the user override the test.
  5391. else
  5392. if test -n "$ac_tool_prefix"; then
  5393. for ac_prog in dumpbin "link -dump"
  5394. do
  5395. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5396. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5398. $as_echo_n "checking for $ac_word... " >&6; }
  5399. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. if test -n "$DUMPBIN"; then
  5403. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5404. else
  5405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5406. for as_dir in $PATH
  5407. do
  5408. IFS=$as_save_IFS
  5409. test -z "$as_dir" && as_dir=.
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5412. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. fi
  5420. fi
  5421. DUMPBIN=$ac_cv_prog_DUMPBIN
  5422. if test -n "$DUMPBIN"; then
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5424. $as_echo "$DUMPBIN" >&6; }
  5425. else
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. fi
  5429. test -n "$DUMPBIN" && break
  5430. done
  5431. fi
  5432. if test -z "$DUMPBIN"; then
  5433. ac_ct_DUMPBIN=$DUMPBIN
  5434. for ac_prog in dumpbin "link -dump"
  5435. do
  5436. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5437. set dummy $ac_prog; ac_word=$2
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5439. $as_echo_n "checking for $ac_word... " >&6; }
  5440. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. if test -n "$ac_ct_DUMPBIN"; then
  5444. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. test -z "$as_dir" && as_dir=.
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5453. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5463. if test -n "$ac_ct_DUMPBIN"; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5465. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. test -n "$ac_ct_DUMPBIN" && break
  5471. done
  5472. if test "x$ac_ct_DUMPBIN" = x; then
  5473. DUMPBIN=":"
  5474. else
  5475. case $cross_compiling:$ac_tool_warned in
  5476. yes:)
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5479. ac_tool_warned=yes ;;
  5480. esac
  5481. DUMPBIN=$ac_ct_DUMPBIN
  5482. fi
  5483. fi
  5484. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5485. *COFF*)
  5486. DUMPBIN="$DUMPBIN -symbols"
  5487. ;;
  5488. *)
  5489. DUMPBIN=:
  5490. ;;
  5491. esac
  5492. fi
  5493. if test "$DUMPBIN" != ":"; then
  5494. NM="$DUMPBIN"
  5495. fi
  5496. fi
  5497. test -z "$NM" && NM=nm
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5499. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5500. if ${lt_cv_nm_interface+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. lt_cv_nm_interface="BSD nm"
  5504. echo "int some_variable = 0;" > conftest.$ac_ext
  5505. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5506. (eval "$ac_compile" 2>conftest.err)
  5507. cat conftest.err >&5
  5508. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5509. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5510. cat conftest.err >&5
  5511. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5512. cat conftest.out >&5
  5513. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5514. lt_cv_nm_interface="MS dumpbin"
  5515. fi
  5516. rm -f conftest*
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5519. $as_echo "$lt_cv_nm_interface" >&6; }
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5521. $as_echo_n "checking whether ln -s works... " >&6; }
  5522. LN_S=$as_ln_s
  5523. if test "$LN_S" = "ln -s"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5525. $as_echo "yes" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5528. $as_echo "no, using $LN_S" >&6; }
  5529. fi
  5530. # find the maximum length of command line arguments
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5532. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5533. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. i=0
  5537. teststring="ABCD"
  5538. case $build_os in
  5539. msdosdjgpp*)
  5540. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5541. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5542. # during glob expansion). Even if it were fixed, the result of this
  5543. # check would be larger than it should be.
  5544. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5545. ;;
  5546. gnu*)
  5547. # Under GNU Hurd, this test is not required because there is
  5548. # no limit to the length of command line arguments.
  5549. # Libtool will interpret -1 as no limit whatsoever
  5550. lt_cv_sys_max_cmd_len=-1;
  5551. ;;
  5552. cygwin* | mingw* | cegcc*)
  5553. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5554. # about 5 minutes as the teststring grows exponentially.
  5555. # Worse, since 9x/ME are not pre-emptively multitasking,
  5556. # you end up with a "frozen" computer, even though with patience
  5557. # the test eventually succeeds (with a max line length of 256k).
  5558. # Instead, let's just punt: use the minimum linelength reported by
  5559. # all of the supported platforms: 8192 (on NT/2K/XP).
  5560. lt_cv_sys_max_cmd_len=8192;
  5561. ;;
  5562. mint*)
  5563. # On MiNT this can take a long time and run out of memory.
  5564. lt_cv_sys_max_cmd_len=8192;
  5565. ;;
  5566. amigaos*)
  5567. # On AmigaOS with pdksh, this test takes hours, literally.
  5568. # So we just punt and use a minimum line length of 8192.
  5569. lt_cv_sys_max_cmd_len=8192;
  5570. ;;
  5571. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5572. # This has been around since 386BSD, at least. Likely further.
  5573. if test -x /sbin/sysctl; then
  5574. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5575. elif test -x /usr/sbin/sysctl; then
  5576. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5577. else
  5578. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5579. fi
  5580. # And add a safety zone
  5581. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5582. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5583. ;;
  5584. interix*)
  5585. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5586. lt_cv_sys_max_cmd_len=196608
  5587. ;;
  5588. osf*)
  5589. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5590. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5591. # nice to cause kernel panics so lets avoid the loop below.
  5592. # First set a reasonable default.
  5593. lt_cv_sys_max_cmd_len=16384
  5594. #
  5595. if test -x /sbin/sysconfig; then
  5596. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5597. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5598. esac
  5599. fi
  5600. ;;
  5601. sco3.2v5*)
  5602. lt_cv_sys_max_cmd_len=102400
  5603. ;;
  5604. sysv5* | sco5v6* | sysv4.2uw2*)
  5605. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5606. if test -n "$kargmax"; then
  5607. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5608. else
  5609. lt_cv_sys_max_cmd_len=32768
  5610. fi
  5611. ;;
  5612. *)
  5613. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5614. if test -n "$lt_cv_sys_max_cmd_len"; then
  5615. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5616. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5617. else
  5618. # Make teststring a little bigger before we do anything with it.
  5619. # a 1K string should be a reasonable start.
  5620. for i in 1 2 3 4 5 6 7 8 ; do
  5621. teststring=$teststring$teststring
  5622. done
  5623. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5624. # If test is not a shell built-in, we'll probably end up computing a
  5625. # maximum length that is only half of the actual maximum length, but
  5626. # we can't tell.
  5627. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5628. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5629. test $i != 17 # 1/2 MB should be enough
  5630. do
  5631. i=`expr $i + 1`
  5632. teststring=$teststring$teststring
  5633. done
  5634. # Only check the string length outside the loop.
  5635. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5636. teststring=
  5637. # Add a significant safety factor because C++ compilers can tack on
  5638. # massive amounts of additional arguments before passing them to the
  5639. # linker. It appears as though 1/2 is a usable value.
  5640. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5641. fi
  5642. ;;
  5643. esac
  5644. fi
  5645. if test -n $lt_cv_sys_max_cmd_len ; then
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5647. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5648. else
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5650. $as_echo "none" >&6; }
  5651. fi
  5652. max_cmd_len=$lt_cv_sys_max_cmd_len
  5653. : ${CP="cp -f"}
  5654. : ${MV="mv -f"}
  5655. : ${RM="rm -f"}
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5657. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5658. # Try some XSI features
  5659. xsi_shell=no
  5660. ( _lt_dummy="a/b/c"
  5661. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5662. = c,a/b,, \
  5663. && eval 'test $(( 1 + 1 )) -eq 2 \
  5664. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5665. && xsi_shell=yes
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5667. $as_echo "$xsi_shell" >&6; }
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5669. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5670. lt_shell_append=no
  5671. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5672. >/dev/null 2>&1 \
  5673. && lt_shell_append=yes
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5675. $as_echo "$lt_shell_append" >&6; }
  5676. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5677. lt_unset=unset
  5678. else
  5679. lt_unset=false
  5680. fi
  5681. # test EBCDIC or ASCII
  5682. case `echo X|tr X '\101'` in
  5683. A) # ASCII based system
  5684. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5685. lt_SP2NL='tr \040 \012'
  5686. lt_NL2SP='tr \015\012 \040\040'
  5687. ;;
  5688. *) # EBCDIC based system
  5689. lt_SP2NL='tr \100 \n'
  5690. lt_NL2SP='tr \r\n \100\100'
  5691. ;;
  5692. esac
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5694. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5695. if ${lt_cv_ld_reload_flag+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. lt_cv_ld_reload_flag='-r'
  5699. fi
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5701. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5702. reload_flag=$lt_cv_ld_reload_flag
  5703. case $reload_flag in
  5704. "" | " "*) ;;
  5705. *) reload_flag=" $reload_flag" ;;
  5706. esac
  5707. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5708. case $host_os in
  5709. darwin*)
  5710. if test "$GCC" = yes; then
  5711. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5712. else
  5713. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5714. fi
  5715. ;;
  5716. esac
  5717. if test -n "$ac_tool_prefix"; then
  5718. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5719. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. $as_echo_n "checking for $ac_word... " >&6; }
  5722. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -n "$OBJDUMP"; then
  5726. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5727. else
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5735. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. fi
  5743. fi
  5744. OBJDUMP=$ac_cv_prog_OBJDUMP
  5745. if test -n "$OBJDUMP"; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5747. $as_echo "$OBJDUMP" >&6; }
  5748. else
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5750. $as_echo "no" >&6; }
  5751. fi
  5752. fi
  5753. if test -z "$ac_cv_prog_OBJDUMP"; then
  5754. ac_ct_OBJDUMP=$OBJDUMP
  5755. # Extract the first word of "objdump", so it can be a program name with args.
  5756. set dummy objdump; ac_word=$2
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5758. $as_echo_n "checking for $ac_word... " >&6; }
  5759. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. if test -n "$ac_ct_OBJDUMP"; then
  5763. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5764. else
  5765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5766. for as_dir in $PATH
  5767. do
  5768. IFS=$as_save_IFS
  5769. test -z "$as_dir" && as_dir=.
  5770. for ac_exec_ext in '' $ac_executable_extensions; do
  5771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5772. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5774. break 2
  5775. fi
  5776. done
  5777. done
  5778. IFS=$as_save_IFS
  5779. fi
  5780. fi
  5781. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5782. if test -n "$ac_ct_OBJDUMP"; then
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5784. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5785. else
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5787. $as_echo "no" >&6; }
  5788. fi
  5789. if test "x$ac_ct_OBJDUMP" = x; then
  5790. OBJDUMP="false"
  5791. else
  5792. case $cross_compiling:$ac_tool_warned in
  5793. yes:)
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5796. ac_tool_warned=yes ;;
  5797. esac
  5798. OBJDUMP=$ac_ct_OBJDUMP
  5799. fi
  5800. else
  5801. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5802. fi
  5803. test -z "$OBJDUMP" && OBJDUMP=objdump
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5805. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5806. if ${lt_cv_deplibs_check_method+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5810. lt_cv_file_magic_test_file=
  5811. lt_cv_deplibs_check_method='unknown'
  5812. # Need to set the preceding variable on all platforms that support
  5813. # interlibrary dependencies.
  5814. # 'none' -- dependencies not supported.
  5815. # `unknown' -- same as none, but documents that we really don't know.
  5816. # 'pass_all' -- all dependencies passed with no checks.
  5817. # 'test_compile' -- check by making test program.
  5818. # 'file_magic [[regex]]' -- check by looking for files in library path
  5819. # which responds to the $file_magic_cmd with a given extended regex.
  5820. # If you have `file' or equivalent on your system and you're not sure
  5821. # whether `pass_all' will *always* work, you probably want this one.
  5822. case $host_os in
  5823. aix[4-9]*)
  5824. lt_cv_deplibs_check_method=pass_all
  5825. ;;
  5826. beos*)
  5827. lt_cv_deplibs_check_method=pass_all
  5828. ;;
  5829. bsdi[45]*)
  5830. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5831. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5832. lt_cv_file_magic_test_file=/shlib/libc.so
  5833. ;;
  5834. cygwin*)
  5835. # func_win32_libid is a shell function defined in ltmain.sh
  5836. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5837. lt_cv_file_magic_cmd='func_win32_libid'
  5838. ;;
  5839. mingw* | pw32*)
  5840. # Base MSYS/MinGW do not provide the 'file' command needed by
  5841. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5842. # unless we find 'file', for example because we are cross-compiling.
  5843. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5844. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5845. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5846. lt_cv_file_magic_cmd='func_win32_libid'
  5847. else
  5848. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5849. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5850. fi
  5851. ;;
  5852. cegcc*)
  5853. # use the weaker test based on 'objdump'. See mingw*.
  5854. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5855. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5856. ;;
  5857. darwin* | rhapsody*)
  5858. lt_cv_deplibs_check_method=pass_all
  5859. ;;
  5860. freebsd* | dragonfly*)
  5861. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5862. case $host_cpu in
  5863. i*86 )
  5864. # Not sure whether the presence of OpenBSD here was a mistake.
  5865. # Let's accept both of them until this is cleared up.
  5866. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5867. lt_cv_file_magic_cmd=/usr/bin/file
  5868. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5869. ;;
  5870. esac
  5871. else
  5872. lt_cv_deplibs_check_method=pass_all
  5873. fi
  5874. ;;
  5875. gnu*)
  5876. lt_cv_deplibs_check_method=pass_all
  5877. ;;
  5878. haiku*)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. hpux10.20* | hpux11*)
  5882. lt_cv_file_magic_cmd=/usr/bin/file
  5883. case $host_cpu in
  5884. ia64*)
  5885. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5886. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5887. ;;
  5888. hppa*64*)
  5889. 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]'
  5890. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5891. ;;
  5892. *)
  5893. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5894. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5895. ;;
  5896. esac
  5897. ;;
  5898. interix[3-9]*)
  5899. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5900. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5901. ;;
  5902. irix5* | irix6* | nonstopux*)
  5903. case $LD in
  5904. *-32|*"-32 ") libmagic=32-bit;;
  5905. *-n32|*"-n32 ") libmagic=N32;;
  5906. *-64|*"-64 ") libmagic=64-bit;;
  5907. *) libmagic=never-match;;
  5908. esac
  5909. lt_cv_deplibs_check_method=pass_all
  5910. ;;
  5911. # This must be Linux ELF.
  5912. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5913. lt_cv_deplibs_check_method=pass_all
  5914. ;;
  5915. netbsd*)
  5916. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5917. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5918. else
  5919. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5920. fi
  5921. ;;
  5922. newos6*)
  5923. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5924. lt_cv_file_magic_cmd=/usr/bin/file
  5925. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5926. ;;
  5927. *nto* | *qnx*)
  5928. lt_cv_deplibs_check_method=pass_all
  5929. ;;
  5930. openbsd*)
  5931. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5932. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5933. else
  5934. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5935. fi
  5936. ;;
  5937. osf3* | osf4* | osf5*)
  5938. lt_cv_deplibs_check_method=pass_all
  5939. ;;
  5940. rdos*)
  5941. lt_cv_deplibs_check_method=pass_all
  5942. ;;
  5943. solaris*)
  5944. lt_cv_deplibs_check_method=pass_all
  5945. ;;
  5946. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5947. lt_cv_deplibs_check_method=pass_all
  5948. ;;
  5949. sysv4 | sysv4.3*)
  5950. case $host_vendor in
  5951. motorola)
  5952. 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]'
  5953. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5954. ;;
  5955. ncr)
  5956. lt_cv_deplibs_check_method=pass_all
  5957. ;;
  5958. sequent)
  5959. lt_cv_file_magic_cmd='/bin/file'
  5960. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5961. ;;
  5962. sni)
  5963. lt_cv_file_magic_cmd='/bin/file'
  5964. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5965. lt_cv_file_magic_test_file=/lib/libc.so
  5966. ;;
  5967. siemens)
  5968. lt_cv_deplibs_check_method=pass_all
  5969. ;;
  5970. pc)
  5971. lt_cv_deplibs_check_method=pass_all
  5972. ;;
  5973. esac
  5974. ;;
  5975. tpf*)
  5976. lt_cv_deplibs_check_method=pass_all
  5977. ;;
  5978. esac
  5979. fi
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5981. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5982. file_magic_cmd=$lt_cv_file_magic_cmd
  5983. deplibs_check_method=$lt_cv_deplibs_check_method
  5984. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5985. plugin_option=
  5986. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5987. for plugin in $plugin_names; do
  5988. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5989. if test x$plugin_so = x$plugin; then
  5990. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5991. fi
  5992. if test x$plugin_so != x$plugin; then
  5993. plugin_option="--plugin $plugin_so"
  5994. break
  5995. fi
  5996. done
  5997. if test -n "$ac_tool_prefix"; then
  5998. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5999. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if ${ac_cv_prog_AR+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$AR"; then
  6006. ac_cv_prog_AR="$AR" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6015. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. AR=$ac_cv_prog_AR
  6025. if test -n "$AR"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6027. $as_echo "$AR" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. fi
  6033. if test -z "$ac_cv_prog_AR"; then
  6034. ac_ct_AR=$AR
  6035. # Extract the first word of "ar", so it can be a program name with args.
  6036. set dummy ar; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$ac_ct_AR"; then
  6043. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6052. ac_cv_prog_ac_ct_AR="ar"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6062. if test -n "$ac_ct_AR"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6064. $as_echo "$ac_ct_AR" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. if test "x$ac_ct_AR" = x; then
  6070. AR="false"
  6071. else
  6072. case $cross_compiling:$ac_tool_warned in
  6073. yes:)
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6076. ac_tool_warned=yes ;;
  6077. esac
  6078. AR=$ac_ct_AR
  6079. fi
  6080. else
  6081. AR="$ac_cv_prog_AR"
  6082. fi
  6083. test -z "$AR" && AR=ar
  6084. if test -n "$plugin_option"; then
  6085. if $AR --help 2>&1 | grep -q "\--plugin"; then
  6086. touch conftest.c
  6087. $AR $plugin_option rc conftest.a conftest.c
  6088. if test "$?" != 0; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  6090. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  6091. else
  6092. AR="$AR $plugin_option"
  6093. fi
  6094. rm -f conftest.*
  6095. fi
  6096. fi
  6097. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6098. if test -n "$ac_tool_prefix"; then
  6099. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6100. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6102. $as_echo_n "checking for $ac_word... " >&6; }
  6103. if ${ac_cv_prog_STRIP+:} false; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. if test -n "$STRIP"; then
  6107. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6108. else
  6109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6110. for as_dir in $PATH
  6111. do
  6112. IFS=$as_save_IFS
  6113. test -z "$as_dir" && as_dir=.
  6114. for ac_exec_ext in '' $ac_executable_extensions; do
  6115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6116. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6118. break 2
  6119. fi
  6120. done
  6121. done
  6122. IFS=$as_save_IFS
  6123. fi
  6124. fi
  6125. STRIP=$ac_cv_prog_STRIP
  6126. if test -n "$STRIP"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6128. $as_echo "$STRIP" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6131. $as_echo "no" >&6; }
  6132. fi
  6133. fi
  6134. if test -z "$ac_cv_prog_STRIP"; then
  6135. ac_ct_STRIP=$STRIP
  6136. # Extract the first word of "strip", so it can be a program name with args.
  6137. set dummy strip; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. if test -n "$ac_ct_STRIP"; then
  6144. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6145. else
  6146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6147. for as_dir in $PATH
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6153. ac_cv_prog_ac_ct_STRIP="strip"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. fi
  6161. fi
  6162. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6163. if test -n "$ac_ct_STRIP"; then
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6165. $as_echo "$ac_ct_STRIP" >&6; }
  6166. else
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6168. $as_echo "no" >&6; }
  6169. fi
  6170. if test "x$ac_ct_STRIP" = x; then
  6171. STRIP=":"
  6172. else
  6173. case $cross_compiling:$ac_tool_warned in
  6174. yes:)
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6177. ac_tool_warned=yes ;;
  6178. esac
  6179. STRIP=$ac_ct_STRIP
  6180. fi
  6181. else
  6182. STRIP="$ac_cv_prog_STRIP"
  6183. fi
  6184. test -z "$STRIP" && STRIP=:
  6185. if test -n "$ac_tool_prefix"; then
  6186. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6187. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6189. $as_echo_n "checking for $ac_word... " >&6; }
  6190. if ${ac_cv_prog_RANLIB+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. if test -n "$RANLIB"; then
  6194. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6195. else
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199. IFS=$as_save_IFS
  6200. test -z "$as_dir" && as_dir=.
  6201. for ac_exec_ext in '' $ac_executable_extensions; do
  6202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6203. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205. break 2
  6206. fi
  6207. done
  6208. done
  6209. IFS=$as_save_IFS
  6210. fi
  6211. fi
  6212. RANLIB=$ac_cv_prog_RANLIB
  6213. if test -n "$RANLIB"; then
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6215. $as_echo "$RANLIB" >&6; }
  6216. else
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218. $as_echo "no" >&6; }
  6219. fi
  6220. fi
  6221. if test -z "$ac_cv_prog_RANLIB"; then
  6222. ac_ct_RANLIB=$RANLIB
  6223. # Extract the first word of "ranlib", so it can be a program name with args.
  6224. set dummy ranlib; ac_word=$2
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6226. $as_echo_n "checking for $ac_word... " >&6; }
  6227. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. if test -n "$ac_ct_RANLIB"; then
  6231. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6232. else
  6233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6234. for as_dir in $PATH
  6235. do
  6236. IFS=$as_save_IFS
  6237. test -z "$as_dir" && as_dir=.
  6238. for ac_exec_ext in '' $ac_executable_extensions; do
  6239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6240. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6242. break 2
  6243. fi
  6244. done
  6245. done
  6246. IFS=$as_save_IFS
  6247. fi
  6248. fi
  6249. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6250. if test -n "$ac_ct_RANLIB"; then
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6252. $as_echo "$ac_ct_RANLIB" >&6; }
  6253. else
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6255. $as_echo "no" >&6; }
  6256. fi
  6257. if test "x$ac_ct_RANLIB" = x; then
  6258. RANLIB=":"
  6259. else
  6260. case $cross_compiling:$ac_tool_warned in
  6261. yes:)
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6263. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6264. ac_tool_warned=yes ;;
  6265. esac
  6266. RANLIB=$ac_ct_RANLIB
  6267. fi
  6268. else
  6269. RANLIB="$ac_cv_prog_RANLIB"
  6270. fi
  6271. test -z "$RANLIB" && RANLIB=:
  6272. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  6273. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  6274. RANLIB="$RANLIB $plugin_option"
  6275. fi
  6276. fi
  6277. # Determine commands to create old-style static archives.
  6278. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6279. old_postinstall_cmds='chmod 644 $oldlib'
  6280. old_postuninstall_cmds=
  6281. if test -n "$RANLIB"; then
  6282. case $host_os in
  6283. openbsd*)
  6284. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6285. ;;
  6286. *)
  6287. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6288. ;;
  6289. esac
  6290. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6291. fi
  6292. case $host_os in
  6293. darwin*)
  6294. lock_old_archive_extraction=yes ;;
  6295. *)
  6296. lock_old_archive_extraction=no ;;
  6297. esac
  6298. # If no C compiler was specified, use CC.
  6299. LTCC=${LTCC-"$CC"}
  6300. # If no C compiler flags were specified, use CFLAGS.
  6301. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6302. # Allow CC to be a program name with arguments.
  6303. compiler=$CC
  6304. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6306. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6307. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. # These are sane defaults that work on at least a few old systems.
  6311. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6312. # Character class describing NM global symbol codes.
  6313. symcode='[BCDEGRST]'
  6314. # Regexp to match symbols that can be accessed directly from C.
  6315. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6316. # Define system-specific variables.
  6317. case $host_os in
  6318. aix*)
  6319. symcode='[BCDT]'
  6320. ;;
  6321. cygwin* | mingw* | pw32* | cegcc*)
  6322. symcode='[ABCDGISTW]'
  6323. ;;
  6324. hpux*)
  6325. if test "$host_cpu" = ia64; then
  6326. symcode='[ABCDEGRST]'
  6327. fi
  6328. ;;
  6329. irix* | nonstopux*)
  6330. symcode='[BCDEGRST]'
  6331. ;;
  6332. osf*)
  6333. symcode='[BCDEGQRST]'
  6334. ;;
  6335. solaris*)
  6336. symcode='[BCDRT]'
  6337. ;;
  6338. sco3.2v5*)
  6339. symcode='[DT]'
  6340. ;;
  6341. sysv4.2uw2*)
  6342. symcode='[DT]'
  6343. ;;
  6344. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6345. symcode='[ABDT]'
  6346. ;;
  6347. sysv4)
  6348. symcode='[DFNSTU]'
  6349. ;;
  6350. esac
  6351. # If we're using GNU nm, then use its standard symbol codes.
  6352. case `$NM -V 2>&1` in
  6353. *GNU* | *'with BFD'*)
  6354. symcode='[ABCDGIRSTW]' ;;
  6355. esac
  6356. # Transform an extracted symbol line into a proper C declaration.
  6357. # Some systems (esp. on ia64) link data and code symbols differently,
  6358. # so use this general approach.
  6359. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6360. # Transform an extracted symbol line into symbol name and symbol address
  6361. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6362. 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'"
  6363. # Handle CRLF in mingw tool chain
  6364. opt_cr=
  6365. case $build_os in
  6366. mingw*)
  6367. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6368. ;;
  6369. esac
  6370. # Try without a prefix underscore, then with it.
  6371. for ac_symprfx in "" "_"; do
  6372. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6373. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6374. # Write the raw and C identifiers.
  6375. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6376. # Fake it for dumpbin and say T for any non-static function
  6377. # and D for any global variable.
  6378. # Also find C++ and __fastcall symbols from MSVC++,
  6379. # which start with @ or ?.
  6380. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6381. " {last_section=section; section=\$ 3};"\
  6382. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6383. " \$ 0!~/External *\|/{next};"\
  6384. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6385. " {if(hide[section]) next};"\
  6386. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6387. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6388. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6389. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6390. " ' prfx=^$ac_symprfx"
  6391. else
  6392. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6393. fi
  6394. # Check to see that the pipe works correctly.
  6395. pipe_works=no
  6396. rm -f conftest*
  6397. cat > conftest.$ac_ext <<_LT_EOF
  6398. #ifdef __cplusplus
  6399. extern "C" {
  6400. #endif
  6401. char nm_test_var;
  6402. void nm_test_func(void);
  6403. void nm_test_func(void){}
  6404. #ifdef __cplusplus
  6405. }
  6406. #endif
  6407. int main(){nm_test_var='a';nm_test_func();return(0);}
  6408. _LT_EOF
  6409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6410. (eval $ac_compile) 2>&5
  6411. ac_status=$?
  6412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6413. test $ac_status = 0; }; then
  6414. # Now try to grab the symbols.
  6415. nlist=conftest.nm
  6416. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6417. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6418. ac_status=$?
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6420. test $ac_status = 0; } && test -s "$nlist"; then
  6421. # Try sorting and uniquifying the output.
  6422. if sort "$nlist" | uniq > "$nlist"T; then
  6423. mv -f "$nlist"T "$nlist"
  6424. else
  6425. rm -f "$nlist"T
  6426. fi
  6427. # Make sure that we snagged all the symbols we need.
  6428. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6429. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6430. cat <<_LT_EOF > conftest.$ac_ext
  6431. #ifdef __cplusplus
  6432. extern "C" {
  6433. #endif
  6434. _LT_EOF
  6435. # Now generate the symbol file.
  6436. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6437. cat <<_LT_EOF >> conftest.$ac_ext
  6438. /* The mapping between symbol names and symbols. */
  6439. const struct {
  6440. const char *name;
  6441. void *address;
  6442. }
  6443. lt__PROGRAM__LTX_preloaded_symbols[] =
  6444. {
  6445. { "@PROGRAM@", (void *) 0 },
  6446. _LT_EOF
  6447. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6448. cat <<\_LT_EOF >> conftest.$ac_ext
  6449. {0, (void *) 0}
  6450. };
  6451. /* This works around a problem in FreeBSD linker */
  6452. #ifdef FREEBSD_WORKAROUND
  6453. static const void *lt_preloaded_setup() {
  6454. return lt__PROGRAM__LTX_preloaded_symbols;
  6455. }
  6456. #endif
  6457. #ifdef __cplusplus
  6458. }
  6459. #endif
  6460. _LT_EOF
  6461. # Now try linking the two files.
  6462. mv conftest.$ac_objext conftstm.$ac_objext
  6463. lt_save_LIBS="$LIBS"
  6464. lt_save_CFLAGS="$CFLAGS"
  6465. LIBS="conftstm.$ac_objext"
  6466. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6467. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6468. (eval $ac_link) 2>&5
  6469. ac_status=$?
  6470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6471. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6472. pipe_works=yes
  6473. fi
  6474. LIBS="$lt_save_LIBS"
  6475. CFLAGS="$lt_save_CFLAGS"
  6476. else
  6477. echo "cannot find nm_test_func in $nlist" >&5
  6478. fi
  6479. else
  6480. echo "cannot find nm_test_var in $nlist" >&5
  6481. fi
  6482. else
  6483. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6484. fi
  6485. else
  6486. echo "$progname: failed program was:" >&5
  6487. cat conftest.$ac_ext >&5
  6488. fi
  6489. rm -rf conftest* conftst*
  6490. # Do not use the global_symbol_pipe unless it works.
  6491. if test "$pipe_works" = yes; then
  6492. break
  6493. else
  6494. lt_cv_sys_global_symbol_pipe=
  6495. fi
  6496. done
  6497. fi
  6498. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6499. lt_cv_sys_global_symbol_to_cdecl=
  6500. fi
  6501. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6503. $as_echo "failed" >&6; }
  6504. else
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6506. $as_echo "ok" >&6; }
  6507. fi
  6508. # Check whether --enable-libtool-lock was given.
  6509. if test "${enable_libtool_lock+set}" = set; then :
  6510. enableval=$enable_libtool_lock;
  6511. fi
  6512. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6513. # Some flags need to be propagated to the compiler or linker for good
  6514. # libtool support.
  6515. case $host in
  6516. ia64-*-hpux*)
  6517. # Find out which ABI we are using.
  6518. echo 'int i;' > conftest.$ac_ext
  6519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6520. (eval $ac_compile) 2>&5
  6521. ac_status=$?
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6523. test $ac_status = 0; }; then
  6524. case `/usr/bin/file conftest.$ac_objext` in
  6525. *ELF-32*)
  6526. HPUX_IA64_MODE="32"
  6527. ;;
  6528. *ELF-64*)
  6529. HPUX_IA64_MODE="64"
  6530. ;;
  6531. esac
  6532. fi
  6533. rm -rf conftest*
  6534. ;;
  6535. *-*-irix6*)
  6536. # Find out which ABI we are using.
  6537. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6538. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6539. (eval $ac_compile) 2>&5
  6540. ac_status=$?
  6541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6542. test $ac_status = 0; }; then
  6543. if test "$lt_cv_prog_gnu_ld" = yes; then
  6544. case `/usr/bin/file conftest.$ac_objext` in
  6545. *32-bit*)
  6546. LD="${LD-ld} -melf32bsmip"
  6547. ;;
  6548. *N32*)
  6549. LD="${LD-ld} -melf32bmipn32"
  6550. ;;
  6551. *64-bit*)
  6552. LD="${LD-ld} -melf64bmip"
  6553. ;;
  6554. esac
  6555. else
  6556. case `/usr/bin/file conftest.$ac_objext` in
  6557. *32-bit*)
  6558. LD="${LD-ld} -32"
  6559. ;;
  6560. *N32*)
  6561. LD="${LD-ld} -n32"
  6562. ;;
  6563. *64-bit*)
  6564. LD="${LD-ld} -64"
  6565. ;;
  6566. esac
  6567. fi
  6568. fi
  6569. rm -rf conftest*
  6570. ;;
  6571. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6572. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6573. # Find out which ABI we are using.
  6574. echo 'int i;' > conftest.$ac_ext
  6575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6576. (eval $ac_compile) 2>&5
  6577. ac_status=$?
  6578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6579. test $ac_status = 0; }; then
  6580. case `/usr/bin/file conftest.o` in
  6581. *32-bit*)
  6582. case $host in
  6583. x86_64-*kfreebsd*-gnu)
  6584. LD="${LD-ld} -m elf_i386_fbsd"
  6585. ;;
  6586. x86_64-*linux*)
  6587. case `/usr/bin/file conftest.o` in
  6588. *x86-64*)
  6589. LD="${LD-ld} -m elf32_x86_64"
  6590. ;;
  6591. *)
  6592. LD="${LD-ld} -m elf_i386"
  6593. ;;
  6594. esac
  6595. ;;
  6596. powerpc64le-*linux*)
  6597. LD="${LD-ld} -m elf32lppclinux"
  6598. ;;
  6599. powerpc64-*linux*)
  6600. LD="${LD-ld} -m elf32ppclinux"
  6601. ;;
  6602. s390x-*linux*)
  6603. LD="${LD-ld} -m elf_s390"
  6604. ;;
  6605. sparc64-*linux*)
  6606. LD="${LD-ld} -m elf32_sparc"
  6607. ;;
  6608. esac
  6609. ;;
  6610. *64-bit*)
  6611. case $host in
  6612. x86_64-*kfreebsd*-gnu)
  6613. LD="${LD-ld} -m elf_x86_64_fbsd"
  6614. ;;
  6615. x86_64-*linux*)
  6616. LD="${LD-ld} -m elf_x86_64"
  6617. ;;
  6618. powerpcle-*linux*)
  6619. LD="${LD-ld} -m elf64lppc"
  6620. ;;
  6621. powerpc-*linux*)
  6622. LD="${LD-ld} -m elf64ppc"
  6623. ;;
  6624. s390*-*linux*|s390*-*tpf*)
  6625. LD="${LD-ld} -m elf64_s390"
  6626. ;;
  6627. sparc*-*linux*)
  6628. LD="${LD-ld} -m elf64_sparc"
  6629. ;;
  6630. esac
  6631. ;;
  6632. esac
  6633. fi
  6634. rm -rf conftest*
  6635. ;;
  6636. *-*-sco3.2v5*)
  6637. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6638. SAVE_CFLAGS="$CFLAGS"
  6639. CFLAGS="$CFLAGS -belf"
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6641. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6642. if ${lt_cv_cc_needs_belf+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. ac_ext=c
  6646. ac_cpp='$CPP $CPPFLAGS'
  6647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6651. /* end confdefs.h. */
  6652. int
  6653. main ()
  6654. {
  6655. ;
  6656. return 0;
  6657. }
  6658. _ACEOF
  6659. if ac_fn_c_try_link "$LINENO"; then :
  6660. lt_cv_cc_needs_belf=yes
  6661. else
  6662. lt_cv_cc_needs_belf=no
  6663. fi
  6664. rm -f core conftest.err conftest.$ac_objext \
  6665. conftest$ac_exeext conftest.$ac_ext
  6666. ac_ext=c
  6667. ac_cpp='$CPP $CPPFLAGS'
  6668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6671. fi
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6673. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6674. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6675. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6676. CFLAGS="$SAVE_CFLAGS"
  6677. fi
  6678. ;;
  6679. sparc*-*solaris*)
  6680. # Find out which ABI we are using.
  6681. echo 'int i;' > conftest.$ac_ext
  6682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6683. (eval $ac_compile) 2>&5
  6684. ac_status=$?
  6685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6686. test $ac_status = 0; }; then
  6687. case `/usr/bin/file conftest.o` in
  6688. *64-bit*)
  6689. case $lt_cv_prog_gnu_ld in
  6690. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6691. *)
  6692. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6693. LD="${LD-ld} -64"
  6694. fi
  6695. ;;
  6696. esac
  6697. ;;
  6698. esac
  6699. fi
  6700. rm -rf conftest*
  6701. ;;
  6702. esac
  6703. need_locks="$enable_libtool_lock"
  6704. case $host_os in
  6705. rhapsody* | darwin*)
  6706. if test -n "$ac_tool_prefix"; then
  6707. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6708. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6710. $as_echo_n "checking for $ac_word... " >&6; }
  6711. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. if test -n "$DSYMUTIL"; then
  6715. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6716. else
  6717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6718. for as_dir in $PATH
  6719. do
  6720. IFS=$as_save_IFS
  6721. test -z "$as_dir" && as_dir=.
  6722. for ac_exec_ext in '' $ac_executable_extensions; do
  6723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6724. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6726. break 2
  6727. fi
  6728. done
  6729. done
  6730. IFS=$as_save_IFS
  6731. fi
  6732. fi
  6733. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6734. if test -n "$DSYMUTIL"; then
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6736. $as_echo "$DSYMUTIL" >&6; }
  6737. else
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6739. $as_echo "no" >&6; }
  6740. fi
  6741. fi
  6742. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6743. ac_ct_DSYMUTIL=$DSYMUTIL
  6744. # Extract the first word of "dsymutil", so it can be a program name with args.
  6745. set dummy dsymutil; ac_word=$2
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6747. $as_echo_n "checking for $ac_word... " >&6; }
  6748. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. if test -n "$ac_ct_DSYMUTIL"; then
  6752. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6753. else
  6754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6755. for as_dir in $PATH
  6756. do
  6757. IFS=$as_save_IFS
  6758. test -z "$as_dir" && as_dir=.
  6759. for ac_exec_ext in '' $ac_executable_extensions; do
  6760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6761. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6763. break 2
  6764. fi
  6765. done
  6766. done
  6767. IFS=$as_save_IFS
  6768. fi
  6769. fi
  6770. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6771. if test -n "$ac_ct_DSYMUTIL"; then
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6773. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6774. else
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6776. $as_echo "no" >&6; }
  6777. fi
  6778. if test "x$ac_ct_DSYMUTIL" = x; then
  6779. DSYMUTIL=":"
  6780. else
  6781. case $cross_compiling:$ac_tool_warned in
  6782. yes:)
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6785. ac_tool_warned=yes ;;
  6786. esac
  6787. DSYMUTIL=$ac_ct_DSYMUTIL
  6788. fi
  6789. else
  6790. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6791. fi
  6792. if test -n "$ac_tool_prefix"; then
  6793. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6794. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6796. $as_echo_n "checking for $ac_word... " >&6; }
  6797. if ${ac_cv_prog_NMEDIT+:} false; then :
  6798. $as_echo_n "(cached) " >&6
  6799. else
  6800. if test -n "$NMEDIT"; then
  6801. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6802. else
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. test -z "$as_dir" && as_dir=.
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. NMEDIT=$ac_cv_prog_NMEDIT
  6820. if test -n "$NMEDIT"; then
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6822. $as_echo "$NMEDIT" >&6; }
  6823. else
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. $as_echo "no" >&6; }
  6826. fi
  6827. fi
  6828. if test -z "$ac_cv_prog_NMEDIT"; then
  6829. ac_ct_NMEDIT=$NMEDIT
  6830. # Extract the first word of "nmedit", so it can be a program name with args.
  6831. set dummy nmedit; ac_word=$2
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6833. $as_echo_n "checking for $ac_word... " >&6; }
  6834. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. if test -n "$ac_ct_NMEDIT"; then
  6838. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6839. else
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. test -z "$as_dir" && as_dir=.
  6845. for ac_exec_ext in '' $ac_executable_extensions; do
  6846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6847. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6849. break 2
  6850. fi
  6851. done
  6852. done
  6853. IFS=$as_save_IFS
  6854. fi
  6855. fi
  6856. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6857. if test -n "$ac_ct_NMEDIT"; then
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6859. $as_echo "$ac_ct_NMEDIT" >&6; }
  6860. else
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6862. $as_echo "no" >&6; }
  6863. fi
  6864. if test "x$ac_ct_NMEDIT" = x; then
  6865. NMEDIT=":"
  6866. else
  6867. case $cross_compiling:$ac_tool_warned in
  6868. yes:)
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6871. ac_tool_warned=yes ;;
  6872. esac
  6873. NMEDIT=$ac_ct_NMEDIT
  6874. fi
  6875. else
  6876. NMEDIT="$ac_cv_prog_NMEDIT"
  6877. fi
  6878. if test -n "$ac_tool_prefix"; then
  6879. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6880. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6882. $as_echo_n "checking for $ac_word... " >&6; }
  6883. if ${ac_cv_prog_LIPO+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. if test -n "$LIPO"; then
  6887. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6888. else
  6889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6890. for as_dir in $PATH
  6891. do
  6892. IFS=$as_save_IFS
  6893. test -z "$as_dir" && as_dir=.
  6894. for ac_exec_ext in '' $ac_executable_extensions; do
  6895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6896. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6898. break 2
  6899. fi
  6900. done
  6901. done
  6902. IFS=$as_save_IFS
  6903. fi
  6904. fi
  6905. LIPO=$ac_cv_prog_LIPO
  6906. if test -n "$LIPO"; then
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6908. $as_echo "$LIPO" >&6; }
  6909. else
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6911. $as_echo "no" >&6; }
  6912. fi
  6913. fi
  6914. if test -z "$ac_cv_prog_LIPO"; then
  6915. ac_ct_LIPO=$LIPO
  6916. # Extract the first word of "lipo", so it can be a program name with args.
  6917. set dummy lipo; ac_word=$2
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6919. $as_echo_n "checking for $ac_word... " >&6; }
  6920. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6921. $as_echo_n "(cached) " >&6
  6922. else
  6923. if test -n "$ac_ct_LIPO"; then
  6924. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6925. else
  6926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6927. for as_dir in $PATH
  6928. do
  6929. IFS=$as_save_IFS
  6930. test -z "$as_dir" && as_dir=.
  6931. for ac_exec_ext in '' $ac_executable_extensions; do
  6932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6933. ac_cv_prog_ac_ct_LIPO="lipo"
  6934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6935. break 2
  6936. fi
  6937. done
  6938. done
  6939. IFS=$as_save_IFS
  6940. fi
  6941. fi
  6942. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6943. if test -n "$ac_ct_LIPO"; then
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6945. $as_echo "$ac_ct_LIPO" >&6; }
  6946. else
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6948. $as_echo "no" >&6; }
  6949. fi
  6950. if test "x$ac_ct_LIPO" = x; then
  6951. LIPO=":"
  6952. else
  6953. case $cross_compiling:$ac_tool_warned in
  6954. yes:)
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6957. ac_tool_warned=yes ;;
  6958. esac
  6959. LIPO=$ac_ct_LIPO
  6960. fi
  6961. else
  6962. LIPO="$ac_cv_prog_LIPO"
  6963. fi
  6964. if test -n "$ac_tool_prefix"; then
  6965. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6966. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6968. $as_echo_n "checking for $ac_word... " >&6; }
  6969. if ${ac_cv_prog_OTOOL+:} false; then :
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. if test -n "$OTOOL"; then
  6973. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6974. else
  6975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6976. for as_dir in $PATH
  6977. do
  6978. IFS=$as_save_IFS
  6979. test -z "$as_dir" && as_dir=.
  6980. for ac_exec_ext in '' $ac_executable_extensions; do
  6981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6982. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6984. break 2
  6985. fi
  6986. done
  6987. done
  6988. IFS=$as_save_IFS
  6989. fi
  6990. fi
  6991. OTOOL=$ac_cv_prog_OTOOL
  6992. if test -n "$OTOOL"; then
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6994. $as_echo "$OTOOL" >&6; }
  6995. else
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6997. $as_echo "no" >&6; }
  6998. fi
  6999. fi
  7000. if test -z "$ac_cv_prog_OTOOL"; then
  7001. ac_ct_OTOOL=$OTOOL
  7002. # Extract the first word of "otool", so it can be a program name with args.
  7003. set dummy otool; ac_word=$2
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7005. $as_echo_n "checking for $ac_word... " >&6; }
  7006. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. if test -n "$ac_ct_OTOOL"; then
  7010. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7011. else
  7012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7013. for as_dir in $PATH
  7014. do
  7015. IFS=$as_save_IFS
  7016. test -z "$as_dir" && as_dir=.
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_OTOOL="otool"
  7020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7029. if test -n "$ac_ct_OTOOL"; then
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7031. $as_echo "$ac_ct_OTOOL" >&6; }
  7032. else
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. $as_echo "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_OTOOL" = x; then
  7037. OTOOL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. OTOOL=$ac_ct_OTOOL
  7046. fi
  7047. else
  7048. OTOOL="$ac_cv_prog_OTOOL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. $as_echo_n "checking for $ac_word... " >&6; }
  7055. if ${ac_cv_prog_OTOOL64+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. if test -n "$OTOOL64"; then
  7059. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7060. else
  7061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7062. for as_dir in $PATH
  7063. do
  7064. IFS=$as_save_IFS
  7065. test -z "$as_dir" && as_dir=.
  7066. for ac_exec_ext in '' $ac_executable_extensions; do
  7067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7068. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7070. break 2
  7071. fi
  7072. done
  7073. done
  7074. IFS=$as_save_IFS
  7075. fi
  7076. fi
  7077. OTOOL64=$ac_cv_prog_OTOOL64
  7078. if test -n "$OTOOL64"; then
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7080. $as_echo "$OTOOL64" >&6; }
  7081. else
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7083. $as_echo "no" >&6; }
  7084. fi
  7085. fi
  7086. if test -z "$ac_cv_prog_OTOOL64"; then
  7087. ac_ct_OTOOL64=$OTOOL64
  7088. # Extract the first word of "otool64", so it can be a program name with args.
  7089. set dummy otool64; ac_word=$2
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7091. $as_echo_n "checking for $ac_word... " >&6; }
  7092. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. if test -n "$ac_ct_OTOOL64"; then
  7096. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7097. else
  7098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7099. for as_dir in $PATH
  7100. do
  7101. IFS=$as_save_IFS
  7102. test -z "$as_dir" && as_dir=.
  7103. for ac_exec_ext in '' $ac_executable_extensions; do
  7104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7105. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7107. break 2
  7108. fi
  7109. done
  7110. done
  7111. IFS=$as_save_IFS
  7112. fi
  7113. fi
  7114. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7115. if test -n "$ac_ct_OTOOL64"; then
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7117. $as_echo "$ac_ct_OTOOL64" >&6; }
  7118. else
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7120. $as_echo "no" >&6; }
  7121. fi
  7122. if test "x$ac_ct_OTOOL64" = x; then
  7123. OTOOL64=":"
  7124. else
  7125. case $cross_compiling:$ac_tool_warned in
  7126. yes:)
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7129. ac_tool_warned=yes ;;
  7130. esac
  7131. OTOOL64=$ac_ct_OTOOL64
  7132. fi
  7133. else
  7134. OTOOL64="$ac_cv_prog_OTOOL64"
  7135. fi
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7137. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7138. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. lt_cv_apple_cc_single_mod=no
  7142. if test -z "${LT_MULTI_MODULE}"; then
  7143. # By default we will add the -single_module flag. You can override
  7144. # by either setting the environment variable LT_MULTI_MODULE
  7145. # non-empty at configure time, or by adding -multi_module to the
  7146. # link flags.
  7147. rm -rf libconftest.dylib*
  7148. echo "int foo(void){return 1;}" > conftest.c
  7149. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7150. -dynamiclib -Wl,-single_module conftest.c" >&5
  7151. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7152. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7153. _lt_result=$?
  7154. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7155. lt_cv_apple_cc_single_mod=yes
  7156. else
  7157. cat conftest.err >&5
  7158. fi
  7159. rm -rf libconftest.dylib*
  7160. rm -f conftest.*
  7161. fi
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7164. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7166. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7167. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7168. $as_echo_n "(cached) " >&6
  7169. else
  7170. lt_cv_ld_exported_symbols_list=no
  7171. save_LDFLAGS=$LDFLAGS
  7172. echo "_main" > conftest.sym
  7173. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7175. /* end confdefs.h. */
  7176. int
  7177. main ()
  7178. {
  7179. ;
  7180. return 0;
  7181. }
  7182. _ACEOF
  7183. if ac_fn_c_try_link "$LINENO"; then :
  7184. lt_cv_ld_exported_symbols_list=yes
  7185. else
  7186. lt_cv_ld_exported_symbols_list=no
  7187. fi
  7188. rm -f core conftest.err conftest.$ac_objext \
  7189. conftest$ac_exeext conftest.$ac_ext
  7190. LDFLAGS="$save_LDFLAGS"
  7191. fi
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7193. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7195. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7196. if ${lt_cv_ld_force_load+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. lt_cv_ld_force_load=no
  7200. cat > conftest.c << _LT_EOF
  7201. int forced_loaded() { return 2;}
  7202. _LT_EOF
  7203. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7204. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7205. echo "$AR cru libconftest.a conftest.o" >&5
  7206. $AR cru libconftest.a conftest.o 2>&5
  7207. cat > conftest.c << _LT_EOF
  7208. int main() { return 0;}
  7209. _LT_EOF
  7210. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7211. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7212. _lt_result=$?
  7213. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7214. lt_cv_ld_force_load=yes
  7215. else
  7216. cat conftest.err >&5
  7217. fi
  7218. rm -f conftest.err libconftest.a conftest conftest.c
  7219. rm -rf conftest.dSYM
  7220. fi
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7222. $as_echo "$lt_cv_ld_force_load" >&6; }
  7223. case $host_os in
  7224. rhapsody* | darwin1.[012])
  7225. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7226. darwin1.*)
  7227. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7228. darwin*) # darwin 5.x on
  7229. # if running on 10.5 or later, the deployment target defaults
  7230. # to the OS version, if on x86, and 10.4, the deployment
  7231. # target defaults to 10.4. Don't you love it?
  7232. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7233. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7234. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7235. 10.[012][,.]*)
  7236. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7237. 10.*)
  7238. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7239. esac
  7240. ;;
  7241. esac
  7242. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7243. _lt_dar_single_mod='$single_module'
  7244. fi
  7245. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7246. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7247. else
  7248. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7249. fi
  7250. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7251. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7252. else
  7253. _lt_dsymutil=
  7254. fi
  7255. ;;
  7256. esac
  7257. for ac_header in dlfcn.h
  7258. do :
  7259. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7260. "
  7261. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7262. cat >>confdefs.h <<_ACEOF
  7263. #define HAVE_DLFCN_H 1
  7264. _ACEOF
  7265. fi
  7266. done
  7267. # Set options
  7268. enable_dlopen=no
  7269. enable_win32_dll=no
  7270. # Check whether --enable-static was given.
  7271. if test "${enable_static+set}" = set; then :
  7272. enableval=$enable_static; p=${PACKAGE-default}
  7273. case $enableval in
  7274. yes) enable_static=yes ;;
  7275. no) enable_static=no ;;
  7276. *)
  7277. enable_static=no
  7278. # Look at the argument we got. We use all the common list separators.
  7279. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7280. for pkg in $enableval; do
  7281. IFS="$lt_save_ifs"
  7282. if test "X$pkg" = "X$p"; then
  7283. enable_static=yes
  7284. fi
  7285. done
  7286. IFS="$lt_save_ifs"
  7287. ;;
  7288. esac
  7289. else
  7290. enable_static=yes
  7291. fi
  7292. # Check whether --with-pic was given.
  7293. if test "${with_pic+set}" = set; then :
  7294. withval=$with_pic; pic_mode="$withval"
  7295. else
  7296. pic_mode=default
  7297. fi
  7298. test -z "$pic_mode" && pic_mode=default
  7299. # Check whether --enable-fast-install was given.
  7300. if test "${enable_fast_install+set}" = set; then :
  7301. enableval=$enable_fast_install; p=${PACKAGE-default}
  7302. case $enableval in
  7303. yes) enable_fast_install=yes ;;
  7304. no) enable_fast_install=no ;;
  7305. *)
  7306. enable_fast_install=no
  7307. # Look at the argument we got. We use all the common list separators.
  7308. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7309. for pkg in $enableval; do
  7310. IFS="$lt_save_ifs"
  7311. if test "X$pkg" = "X$p"; then
  7312. enable_fast_install=yes
  7313. fi
  7314. done
  7315. IFS="$lt_save_ifs"
  7316. ;;
  7317. esac
  7318. else
  7319. enable_fast_install=yes
  7320. fi
  7321. # This can be used to rebuild libtool when needed
  7322. LIBTOOL_DEPS="$ltmain"
  7323. # Always use our own libtool.
  7324. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7325. test -z "$LN_S" && LN_S="ln -s"
  7326. if test -n "${ZSH_VERSION+set}" ; then
  7327. setopt NO_GLOB_SUBST
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7330. $as_echo_n "checking for objdir... " >&6; }
  7331. if ${lt_cv_objdir+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. rm -f .libs 2>/dev/null
  7335. mkdir .libs 2>/dev/null
  7336. if test -d .libs; then
  7337. lt_cv_objdir=.libs
  7338. else
  7339. # MS-DOS does not allow filenames that begin with a dot.
  7340. lt_cv_objdir=_libs
  7341. fi
  7342. rmdir .libs 2>/dev/null
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7345. $as_echo "$lt_cv_objdir" >&6; }
  7346. objdir=$lt_cv_objdir
  7347. cat >>confdefs.h <<_ACEOF
  7348. #define LT_OBJDIR "$lt_cv_objdir/"
  7349. _ACEOF
  7350. case $host_os in
  7351. aix3*)
  7352. # AIX sometimes has problems with the GCC collect2 program. For some
  7353. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7354. # vanish in a puff of smoke.
  7355. if test "X${COLLECT_NAMES+set}" != Xset; then
  7356. COLLECT_NAMES=
  7357. export COLLECT_NAMES
  7358. fi
  7359. ;;
  7360. esac
  7361. # Global variables:
  7362. ofile=libtool
  7363. can_build_shared=yes
  7364. # All known linkers require a `.a' archive for static linking (except MSVC,
  7365. # which needs '.lib').
  7366. libext=a
  7367. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7368. old_CC="$CC"
  7369. old_CFLAGS="$CFLAGS"
  7370. # Set sane defaults for various variables
  7371. test -z "$CC" && CC=cc
  7372. test -z "$LTCC" && LTCC=$CC
  7373. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7374. test -z "$LD" && LD=ld
  7375. test -z "$ac_objext" && ac_objext=o
  7376. for cc_temp in $compiler""; do
  7377. case $cc_temp in
  7378. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7379. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7380. \-*) ;;
  7381. *) break;;
  7382. esac
  7383. done
  7384. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7385. # Only perform the check for file, if the check method requires it
  7386. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7387. case $deplibs_check_method in
  7388. file_magic*)
  7389. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7391. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7392. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7393. $as_echo_n "(cached) " >&6
  7394. else
  7395. case $MAGIC_CMD in
  7396. [\\/*] | ?:[\\/]*)
  7397. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7398. ;;
  7399. *)
  7400. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7401. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7402. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7403. for ac_dir in $ac_dummy; do
  7404. IFS="$lt_save_ifs"
  7405. test -z "$ac_dir" && ac_dir=.
  7406. if test -f $ac_dir/${ac_tool_prefix}file; then
  7407. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7408. if test -n "$file_magic_test_file"; then
  7409. case $deplibs_check_method in
  7410. "file_magic "*)
  7411. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7412. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7413. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7414. $EGREP "$file_magic_regex" > /dev/null; then
  7415. :
  7416. else
  7417. cat <<_LT_EOF 1>&2
  7418. *** Warning: the command libtool uses to detect shared libraries,
  7419. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7420. *** The result is that libtool may fail to recognize shared libraries
  7421. *** as such. This will affect the creation of libtool libraries that
  7422. *** depend on shared libraries, but programs linked with such libtool
  7423. *** libraries will work regardless of this problem. Nevertheless, you
  7424. *** may want to report the problem to your system manager and/or to
  7425. *** bug-libtool@gnu.org
  7426. _LT_EOF
  7427. fi ;;
  7428. esac
  7429. fi
  7430. break
  7431. fi
  7432. done
  7433. IFS="$lt_save_ifs"
  7434. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7435. ;;
  7436. esac
  7437. fi
  7438. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7439. if test -n "$MAGIC_CMD"; then
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7441. $as_echo "$MAGIC_CMD" >&6; }
  7442. else
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. $as_echo "no" >&6; }
  7445. fi
  7446. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7447. if test -n "$ac_tool_prefix"; then
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7449. $as_echo_n "checking for file... " >&6; }
  7450. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7451. $as_echo_n "(cached) " >&6
  7452. else
  7453. case $MAGIC_CMD in
  7454. [\\/*] | ?:[\\/]*)
  7455. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7456. ;;
  7457. *)
  7458. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7459. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7460. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7461. for ac_dir in $ac_dummy; do
  7462. IFS="$lt_save_ifs"
  7463. test -z "$ac_dir" && ac_dir=.
  7464. if test -f $ac_dir/file; then
  7465. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7466. if test -n "$file_magic_test_file"; then
  7467. case $deplibs_check_method in
  7468. "file_magic "*)
  7469. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7470. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7471. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7472. $EGREP "$file_magic_regex" > /dev/null; then
  7473. :
  7474. else
  7475. cat <<_LT_EOF 1>&2
  7476. *** Warning: the command libtool uses to detect shared libraries,
  7477. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7478. *** The result is that libtool may fail to recognize shared libraries
  7479. *** as such. This will affect the creation of libtool libraries that
  7480. *** depend on shared libraries, but programs linked with such libtool
  7481. *** libraries will work regardless of this problem. Nevertheless, you
  7482. *** may want to report the problem to your system manager and/or to
  7483. *** bug-libtool@gnu.org
  7484. _LT_EOF
  7485. fi ;;
  7486. esac
  7487. fi
  7488. break
  7489. fi
  7490. done
  7491. IFS="$lt_save_ifs"
  7492. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7493. ;;
  7494. esac
  7495. fi
  7496. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7497. if test -n "$MAGIC_CMD"; then
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7499. $as_echo "$MAGIC_CMD" >&6; }
  7500. else
  7501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7502. $as_echo "no" >&6; }
  7503. fi
  7504. else
  7505. MAGIC_CMD=:
  7506. fi
  7507. fi
  7508. fi
  7509. ;;
  7510. esac
  7511. # Use C for the default configuration in the libtool script
  7512. lt_save_CC="$CC"
  7513. ac_ext=c
  7514. ac_cpp='$CPP $CPPFLAGS'
  7515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7518. # Source file extension for C test sources.
  7519. ac_ext=c
  7520. # Object file extension for compiled C test sources.
  7521. objext=o
  7522. objext=$objext
  7523. # Code to be used in simple compile tests
  7524. lt_simple_compile_test_code="int some_variable = 0;"
  7525. # Code to be used in simple link tests
  7526. lt_simple_link_test_code='int main(){return(0);}'
  7527. # If no C compiler was specified, use CC.
  7528. LTCC=${LTCC-"$CC"}
  7529. # If no C compiler flags were specified, use CFLAGS.
  7530. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7531. # Allow CC to be a program name with arguments.
  7532. compiler=$CC
  7533. # Save the default compiler, since it gets overwritten when the other
  7534. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7535. compiler_DEFAULT=$CC
  7536. # save warnings/boilerplate of simple test code
  7537. ac_outfile=conftest.$ac_objext
  7538. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7539. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7540. _lt_compiler_boilerplate=`cat conftest.err`
  7541. $RM conftest*
  7542. ac_outfile=conftest.$ac_objext
  7543. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7544. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7545. _lt_linker_boilerplate=`cat conftest.err`
  7546. $RM -r conftest*
  7547. ## CAVEAT EMPTOR:
  7548. ## There is no encapsulation within the following macros, do not change
  7549. ## the running order or otherwise move them around unless you know exactly
  7550. ## what you are doing...
  7551. if test -n "$compiler"; then
  7552. lt_prog_compiler_no_builtin_flag=
  7553. if test "$GCC" = yes; then
  7554. case $cc_basename in
  7555. nvcc*)
  7556. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7557. *)
  7558. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7559. esac
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7561. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7562. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. lt_cv_prog_compiler_rtti_exceptions=no
  7566. ac_outfile=conftest.$ac_objext
  7567. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7568. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7569. # Insert the option either (1) after the last *FLAGS variable, or
  7570. # (2) before a word containing "conftest.", or (3) at the end.
  7571. # Note that $ac_compile itself does not contain backslashes and begins
  7572. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7573. # The option is referenced via a variable to avoid confusing sed.
  7574. lt_compile=`echo "$ac_compile" | $SED \
  7575. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7576. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7577. -e 's:$: $lt_compiler_flag:'`
  7578. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7579. (eval "$lt_compile" 2>conftest.err)
  7580. ac_status=$?
  7581. cat conftest.err >&5
  7582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7583. if (exit $ac_status) && test -s "$ac_outfile"; then
  7584. # The compiler can only warn and ignore the option if not recognized
  7585. # So say no if there are warnings other than the usual output.
  7586. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7587. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7588. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7589. lt_cv_prog_compiler_rtti_exceptions=yes
  7590. fi
  7591. fi
  7592. $RM conftest*
  7593. fi
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7595. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7596. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7597. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7598. else
  7599. :
  7600. fi
  7601. fi
  7602. lt_prog_compiler_wl=
  7603. lt_prog_compiler_pic=
  7604. lt_prog_compiler_static=
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7606. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7607. if test "$GCC" = yes; then
  7608. lt_prog_compiler_wl='-Wl,'
  7609. lt_prog_compiler_static='-static'
  7610. case $host_os in
  7611. aix*)
  7612. # All AIX code is PIC.
  7613. if test "$host_cpu" = ia64; then
  7614. # AIX 5 now supports IA64 processor
  7615. lt_prog_compiler_static='-Bstatic'
  7616. fi
  7617. lt_prog_compiler_pic='-fPIC'
  7618. ;;
  7619. amigaos*)
  7620. case $host_cpu in
  7621. powerpc)
  7622. # see comment about AmigaOS4 .so support
  7623. lt_prog_compiler_pic='-fPIC'
  7624. ;;
  7625. m68k)
  7626. # FIXME: we need at least 68020 code to build shared libraries, but
  7627. # adding the `-m68020' flag to GCC prevents building anything better,
  7628. # like `-m68040'.
  7629. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7630. ;;
  7631. esac
  7632. ;;
  7633. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7634. # PIC is the default for these OSes.
  7635. ;;
  7636. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7637. # This hack is so that the source file can tell whether it is being
  7638. # built for inclusion in a dll (and should export symbols for example).
  7639. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7640. # (--disable-auto-import) libraries
  7641. lt_prog_compiler_pic='-DDLL_EXPORT'
  7642. ;;
  7643. darwin* | rhapsody*)
  7644. # PIC is the default on this platform
  7645. # Common symbols not allowed in MH_DYLIB files
  7646. lt_prog_compiler_pic='-fno-common'
  7647. ;;
  7648. haiku*)
  7649. # PIC is the default for Haiku.
  7650. # The "-static" flag exists, but is broken.
  7651. lt_prog_compiler_static=
  7652. ;;
  7653. hpux*)
  7654. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7655. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7656. # sets the default TLS model and affects inlining.
  7657. case $host_cpu in
  7658. hppa*64*)
  7659. # +Z the default
  7660. ;;
  7661. *)
  7662. lt_prog_compiler_pic='-fPIC'
  7663. ;;
  7664. esac
  7665. ;;
  7666. interix[3-9]*)
  7667. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7668. # Instead, we relocate shared libraries at runtime.
  7669. ;;
  7670. msdosdjgpp*)
  7671. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7672. # on systems that don't support them.
  7673. lt_prog_compiler_can_build_shared=no
  7674. enable_shared=no
  7675. ;;
  7676. *nto* | *qnx*)
  7677. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7678. # it will coredump.
  7679. lt_prog_compiler_pic='-fPIC -shared'
  7680. ;;
  7681. sysv4*MP*)
  7682. if test -d /usr/nec; then
  7683. lt_prog_compiler_pic=-Kconform_pic
  7684. fi
  7685. ;;
  7686. *)
  7687. lt_prog_compiler_pic='-fPIC'
  7688. ;;
  7689. esac
  7690. case $cc_basename in
  7691. nvcc*) # Cuda Compiler Driver 2.2
  7692. lt_prog_compiler_wl='-Xlinker '
  7693. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7694. ;;
  7695. esac
  7696. else
  7697. # PORTME Check for flag to pass linker flags through the system compiler.
  7698. case $host_os in
  7699. aix*)
  7700. lt_prog_compiler_wl='-Wl,'
  7701. if test "$host_cpu" = ia64; then
  7702. # AIX 5 now supports IA64 processor
  7703. lt_prog_compiler_static='-Bstatic'
  7704. else
  7705. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7706. fi
  7707. ;;
  7708. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7709. # This hack is so that the source file can tell whether it is being
  7710. # built for inclusion in a dll (and should export symbols for example).
  7711. lt_prog_compiler_pic='-DDLL_EXPORT'
  7712. ;;
  7713. hpux9* | hpux10* | hpux11*)
  7714. lt_prog_compiler_wl='-Wl,'
  7715. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7716. # not for PA HP-UX.
  7717. case $host_cpu in
  7718. hppa*64*|ia64*)
  7719. # +Z the default
  7720. ;;
  7721. *)
  7722. lt_prog_compiler_pic='+Z'
  7723. ;;
  7724. esac
  7725. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7726. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7727. ;;
  7728. irix5* | irix6* | nonstopux*)
  7729. lt_prog_compiler_wl='-Wl,'
  7730. # PIC (with -KPIC) is the default.
  7731. lt_prog_compiler_static='-non_shared'
  7732. ;;
  7733. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7734. case $cc_basename in
  7735. # old Intel for x86_64 which still supported -KPIC.
  7736. ecc*)
  7737. lt_prog_compiler_wl='-Wl,'
  7738. lt_prog_compiler_pic='-KPIC'
  7739. lt_prog_compiler_static='-static'
  7740. ;;
  7741. # icc used to be incompatible with GCC.
  7742. # ICC 10 doesn't accept -KPIC any more.
  7743. icc* | ifort*)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. lt_prog_compiler_pic='-fPIC'
  7746. lt_prog_compiler_static='-static'
  7747. ;;
  7748. # Lahey Fortran 8.1.
  7749. lf95*)
  7750. lt_prog_compiler_wl='-Wl,'
  7751. lt_prog_compiler_pic='--shared'
  7752. lt_prog_compiler_static='--static'
  7753. ;;
  7754. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7755. # Portland Group compilers (*not* the Pentium gcc compiler,
  7756. # which looks to be a dead project)
  7757. lt_prog_compiler_wl='-Wl,'
  7758. lt_prog_compiler_pic='-fpic'
  7759. lt_prog_compiler_static='-Bstatic'
  7760. ;;
  7761. ccc*)
  7762. lt_prog_compiler_wl='-Wl,'
  7763. # All Alpha code is PIC.
  7764. lt_prog_compiler_static='-non_shared'
  7765. ;;
  7766. xl* | bgxl* | bgf* | mpixl*)
  7767. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7768. lt_prog_compiler_wl='-Wl,'
  7769. lt_prog_compiler_pic='-qpic'
  7770. lt_prog_compiler_static='-qstaticlink'
  7771. ;;
  7772. *)
  7773. case `$CC -V 2>&1 | sed 5q` in
  7774. *Sun\ F* | *Sun*Fortran*)
  7775. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7776. lt_prog_compiler_pic='-KPIC'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. lt_prog_compiler_wl=''
  7779. ;;
  7780. *Sun\ C*)
  7781. # Sun C 5.9
  7782. lt_prog_compiler_pic='-KPIC'
  7783. lt_prog_compiler_static='-Bstatic'
  7784. lt_prog_compiler_wl='-Wl,'
  7785. ;;
  7786. esac
  7787. ;;
  7788. esac
  7789. ;;
  7790. newsos6)
  7791. lt_prog_compiler_pic='-KPIC'
  7792. lt_prog_compiler_static='-Bstatic'
  7793. ;;
  7794. *nto* | *qnx*)
  7795. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7796. # it will coredump.
  7797. lt_prog_compiler_pic='-fPIC -shared'
  7798. ;;
  7799. osf3* | osf4* | osf5*)
  7800. lt_prog_compiler_wl='-Wl,'
  7801. # All OSF/1 code is PIC.
  7802. lt_prog_compiler_static='-non_shared'
  7803. ;;
  7804. rdos*)
  7805. lt_prog_compiler_static='-non_shared'
  7806. ;;
  7807. solaris*)
  7808. lt_prog_compiler_pic='-KPIC'
  7809. lt_prog_compiler_static='-Bstatic'
  7810. case $cc_basename in
  7811. f77* | f90* | f95*)
  7812. lt_prog_compiler_wl='-Qoption ld ';;
  7813. *)
  7814. lt_prog_compiler_wl='-Wl,';;
  7815. esac
  7816. ;;
  7817. sunos4*)
  7818. lt_prog_compiler_wl='-Qoption ld '
  7819. lt_prog_compiler_pic='-PIC'
  7820. lt_prog_compiler_static='-Bstatic'
  7821. ;;
  7822. sysv4 | sysv4.2uw2* | sysv4.3*)
  7823. lt_prog_compiler_wl='-Wl,'
  7824. lt_prog_compiler_pic='-KPIC'
  7825. lt_prog_compiler_static='-Bstatic'
  7826. ;;
  7827. sysv4*MP*)
  7828. if test -d /usr/nec ;then
  7829. lt_prog_compiler_pic='-Kconform_pic'
  7830. lt_prog_compiler_static='-Bstatic'
  7831. fi
  7832. ;;
  7833. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7834. lt_prog_compiler_wl='-Wl,'
  7835. lt_prog_compiler_pic='-KPIC'
  7836. lt_prog_compiler_static='-Bstatic'
  7837. ;;
  7838. unicos*)
  7839. lt_prog_compiler_wl='-Wl,'
  7840. lt_prog_compiler_can_build_shared=no
  7841. ;;
  7842. uts4*)
  7843. lt_prog_compiler_pic='-pic'
  7844. lt_prog_compiler_static='-Bstatic'
  7845. ;;
  7846. *)
  7847. lt_prog_compiler_can_build_shared=no
  7848. ;;
  7849. esac
  7850. fi
  7851. case $host_os in
  7852. # For platforms which do not support PIC, -DPIC is meaningless:
  7853. *djgpp*)
  7854. lt_prog_compiler_pic=
  7855. ;;
  7856. *)
  7857. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7858. ;;
  7859. esac
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7861. $as_echo "$lt_prog_compiler_pic" >&6; }
  7862. #
  7863. # Check to make sure the PIC flag actually works.
  7864. #
  7865. if test -n "$lt_prog_compiler_pic"; then
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7867. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7868. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. lt_cv_prog_compiler_pic_works=no
  7872. ac_outfile=conftest.$ac_objext
  7873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7874. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7875. # Insert the option either (1) after the last *FLAGS variable, or
  7876. # (2) before a word containing "conftest.", or (3) at the end.
  7877. # Note that $ac_compile itself does not contain backslashes and begins
  7878. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7879. # The option is referenced via a variable to avoid confusing sed.
  7880. lt_compile=`echo "$ac_compile" | $SED \
  7881. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7882. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7883. -e 's:$: $lt_compiler_flag:'`
  7884. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7885. (eval "$lt_compile" 2>conftest.err)
  7886. ac_status=$?
  7887. cat conftest.err >&5
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. if (exit $ac_status) && test -s "$ac_outfile"; then
  7890. # The compiler can only warn and ignore the option if not recognized
  7891. # So say no if there are warnings other than the usual output.
  7892. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7893. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7894. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7895. lt_cv_prog_compiler_pic_works=yes
  7896. fi
  7897. fi
  7898. $RM conftest*
  7899. fi
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7901. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7902. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7903. case $lt_prog_compiler_pic in
  7904. "" | " "*) ;;
  7905. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7906. esac
  7907. else
  7908. lt_prog_compiler_pic=
  7909. lt_prog_compiler_can_build_shared=no
  7910. fi
  7911. fi
  7912. #
  7913. # Check to make sure the static flag actually works.
  7914. #
  7915. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7917. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7918. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. lt_cv_prog_compiler_static_works=no
  7922. save_LDFLAGS="$LDFLAGS"
  7923. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7924. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7925. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7926. # The linker can only warn and ignore the option if not recognized
  7927. # So say no if there are warnings
  7928. if test -s conftest.err; then
  7929. # Append any errors to the config.log.
  7930. cat conftest.err 1>&5
  7931. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7932. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7933. if diff conftest.exp conftest.er2 >/dev/null; then
  7934. lt_cv_prog_compiler_static_works=yes
  7935. fi
  7936. else
  7937. lt_cv_prog_compiler_static_works=yes
  7938. fi
  7939. fi
  7940. $RM -r conftest*
  7941. LDFLAGS="$save_LDFLAGS"
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7944. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7945. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7946. :
  7947. else
  7948. lt_prog_compiler_static=
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7951. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7952. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7953. $as_echo_n "(cached) " >&6
  7954. else
  7955. lt_cv_prog_compiler_c_o=no
  7956. $RM -r conftest 2>/dev/null
  7957. mkdir conftest
  7958. cd conftest
  7959. mkdir out
  7960. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7961. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7962. # Insert the option either (1) after the last *FLAGS variable, or
  7963. # (2) before a word containing "conftest.", or (3) at the end.
  7964. # Note that $ac_compile itself does not contain backslashes and begins
  7965. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7966. lt_compile=`echo "$ac_compile" | $SED \
  7967. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7968. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7969. -e 's:$: $lt_compiler_flag:'`
  7970. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7971. (eval "$lt_compile" 2>out/conftest.err)
  7972. ac_status=$?
  7973. cat out/conftest.err >&5
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7976. then
  7977. # The compiler can only warn and ignore the option if not recognized
  7978. # So say no if there are warnings
  7979. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7980. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7981. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7982. lt_cv_prog_compiler_c_o=yes
  7983. fi
  7984. fi
  7985. chmod u+w . 2>&5
  7986. $RM conftest*
  7987. # SGI C++ compiler will create directory out/ii_files/ for
  7988. # template instantiation
  7989. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7990. $RM out/* && rmdir out
  7991. cd ..
  7992. $RM -r conftest
  7993. $RM conftest*
  7994. fi
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7996. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7998. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7999. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8000. $as_echo_n "(cached) " >&6
  8001. else
  8002. lt_cv_prog_compiler_c_o=no
  8003. $RM -r conftest 2>/dev/null
  8004. mkdir conftest
  8005. cd conftest
  8006. mkdir out
  8007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8008. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8009. # Insert the option either (1) after the last *FLAGS variable, or
  8010. # (2) before a word containing "conftest.", or (3) at the end.
  8011. # Note that $ac_compile itself does not contain backslashes and begins
  8012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8013. lt_compile=`echo "$ac_compile" | $SED \
  8014. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8015. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8016. -e 's:$: $lt_compiler_flag:'`
  8017. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8018. (eval "$lt_compile" 2>out/conftest.err)
  8019. ac_status=$?
  8020. cat out/conftest.err >&5
  8021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8022. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8023. then
  8024. # The compiler can only warn and ignore the option if not recognized
  8025. # So say no if there are warnings
  8026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8027. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8028. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8029. lt_cv_prog_compiler_c_o=yes
  8030. fi
  8031. fi
  8032. chmod u+w . 2>&5
  8033. $RM conftest*
  8034. # SGI C++ compiler will create directory out/ii_files/ for
  8035. # template instantiation
  8036. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8037. $RM out/* && rmdir out
  8038. cd ..
  8039. $RM -r conftest
  8040. $RM conftest*
  8041. fi
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8043. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8044. hard_links="nottested"
  8045. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8046. # do not overwrite the value of need_locks provided by the user
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8048. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8049. hard_links=yes
  8050. $RM conftest*
  8051. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8052. touch conftest.a
  8053. ln conftest.a conftest.b 2>&5 || hard_links=no
  8054. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8056. $as_echo "$hard_links" >&6; }
  8057. if test "$hard_links" = no; then
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8059. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8060. need_locks=warn
  8061. fi
  8062. else
  8063. need_locks=no
  8064. fi
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8066. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8067. runpath_var=
  8068. allow_undefined_flag=
  8069. always_export_symbols=no
  8070. archive_cmds=
  8071. archive_expsym_cmds=
  8072. compiler_needs_object=no
  8073. enable_shared_with_static_runtimes=no
  8074. export_dynamic_flag_spec=
  8075. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8076. hardcode_automatic=no
  8077. hardcode_direct=no
  8078. hardcode_direct_absolute=no
  8079. hardcode_libdir_flag_spec=
  8080. hardcode_libdir_flag_spec_ld=
  8081. hardcode_libdir_separator=
  8082. hardcode_minus_L=no
  8083. hardcode_shlibpath_var=unsupported
  8084. inherit_rpath=no
  8085. link_all_deplibs=unknown
  8086. module_cmds=
  8087. module_expsym_cmds=
  8088. old_archive_from_new_cmds=
  8089. old_archive_from_expsyms_cmds=
  8090. thread_safe_flag_spec=
  8091. whole_archive_flag_spec=
  8092. # include_expsyms should be a list of space-separated symbols to be *always*
  8093. # included in the symbol list
  8094. include_expsyms=
  8095. # exclude_expsyms can be an extended regexp of symbols to exclude
  8096. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8097. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8098. # as well as any symbol that contains `d'.
  8099. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8100. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8101. # platforms (ab)use it in PIC code, but their linkers get confused if
  8102. # the symbol is explicitly referenced. Since portable code cannot
  8103. # rely on this symbol name, it's probably fine to never include it in
  8104. # preloaded symbol tables.
  8105. # Exclude shared library initialization/finalization symbols.
  8106. extract_expsyms_cmds=
  8107. case $host_os in
  8108. cygwin* | mingw* | pw32* | cegcc*)
  8109. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8110. # When not using gcc, we currently assume that we are using
  8111. # Microsoft Visual C++.
  8112. if test "$GCC" != yes; then
  8113. with_gnu_ld=no
  8114. fi
  8115. ;;
  8116. interix*)
  8117. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8118. with_gnu_ld=yes
  8119. ;;
  8120. openbsd*)
  8121. with_gnu_ld=no
  8122. ;;
  8123. esac
  8124. ld_shlibs=yes
  8125. # On some targets, GNU ld is compatible enough with the native linker
  8126. # that we're better off using the native interface for both.
  8127. lt_use_gnu_ld_interface=no
  8128. if test "$with_gnu_ld" = yes; then
  8129. case $host_os in
  8130. aix*)
  8131. # The AIX port of GNU ld has always aspired to compatibility
  8132. # with the native linker. However, as the warning in the GNU ld
  8133. # block says, versions before 2.19.5* couldn't really create working
  8134. # shared libraries, regardless of the interface used.
  8135. case `$LD -v 2>&1` in
  8136. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8137. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8138. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8139. *)
  8140. lt_use_gnu_ld_interface=yes
  8141. ;;
  8142. esac
  8143. ;;
  8144. *)
  8145. lt_use_gnu_ld_interface=yes
  8146. ;;
  8147. esac
  8148. fi
  8149. if test "$lt_use_gnu_ld_interface" = yes; then
  8150. # If archive_cmds runs LD, not CC, wlarc should be empty
  8151. wlarc='${wl}'
  8152. # Set some defaults for GNU ld with shared library support. These
  8153. # are reset later if shared libraries are not supported. Putting them
  8154. # here allows them to be overridden if necessary.
  8155. runpath_var=LD_RUN_PATH
  8156. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8157. export_dynamic_flag_spec='${wl}--export-dynamic'
  8158. # ancient GNU ld didn't support --whole-archive et. al.
  8159. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8160. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8161. else
  8162. whole_archive_flag_spec=
  8163. fi
  8164. supports_anon_versioning=no
  8165. case `$LD -v 2>&1` in
  8166. *GNU\ gold*) supports_anon_versioning=yes ;;
  8167. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8168. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8169. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8170. *\ 2.11.*) ;; # other 2.11 versions
  8171. *) supports_anon_versioning=yes ;;
  8172. esac
  8173. # See if GNU ld supports shared libraries.
  8174. case $host_os in
  8175. aix[3-9]*)
  8176. # On AIX/PPC, the GNU linker is very broken
  8177. if test "$host_cpu" != ia64; then
  8178. ld_shlibs=no
  8179. cat <<_LT_EOF 1>&2
  8180. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8181. *** to be unable to reliably create shared libraries on AIX.
  8182. *** Therefore, libtool is disabling shared libraries support. If you
  8183. *** really care for shared libraries, you may want to install binutils
  8184. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8185. *** You will then need to restart the configuration process.
  8186. _LT_EOF
  8187. fi
  8188. ;;
  8189. amigaos*)
  8190. case $host_cpu in
  8191. powerpc)
  8192. # see comment about AmigaOS4 .so support
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8194. archive_expsym_cmds=''
  8195. ;;
  8196. m68k)
  8197. 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)'
  8198. hardcode_libdir_flag_spec='-L$libdir'
  8199. hardcode_minus_L=yes
  8200. ;;
  8201. esac
  8202. ;;
  8203. beos*)
  8204. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8205. allow_undefined_flag=unsupported
  8206. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8207. # support --undefined. This deserves some investigation. FIXME
  8208. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8209. else
  8210. ld_shlibs=no
  8211. fi
  8212. ;;
  8213. cygwin* | mingw* | pw32* | cegcc*)
  8214. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8215. # as there is no search path for DLLs.
  8216. hardcode_libdir_flag_spec='-L$libdir'
  8217. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8218. allow_undefined_flag=unsupported
  8219. always_export_symbols=no
  8220. enable_shared_with_static_runtimes=yes
  8221. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8222. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8223. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8224. # If the export-symbols file already is a .def file (1st line
  8225. # is EXPORTS), use it as is; otherwise, prepend...
  8226. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8227. cp $export_symbols $output_objdir/$soname.def;
  8228. else
  8229. echo EXPORTS > $output_objdir/$soname.def;
  8230. cat $export_symbols >> $output_objdir/$soname.def;
  8231. fi~
  8232. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8233. else
  8234. ld_shlibs=no
  8235. fi
  8236. ;;
  8237. haiku*)
  8238. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8239. link_all_deplibs=yes
  8240. ;;
  8241. interix[3-9]*)
  8242. hardcode_direct=no
  8243. hardcode_shlibpath_var=no
  8244. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8245. export_dynamic_flag_spec='${wl}-E'
  8246. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8247. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8248. # default) and relocated if they conflict, which is a slow very memory
  8249. # consuming and fragmenting process. To avoid this, we pick a random,
  8250. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8251. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8252. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8253. 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'
  8254. ;;
  8255. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8256. tmp_diet=no
  8257. if test "$host_os" = linux-dietlibc; then
  8258. case $cc_basename in
  8259. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8260. esac
  8261. fi
  8262. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8263. && test "$tmp_diet" = no
  8264. then
  8265. tmp_addflag=' $pic_flag'
  8266. tmp_sharedflag='-shared'
  8267. case $cc_basename,$host_cpu in
  8268. pgcc*) # Portland Group C compiler
  8269. 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'
  8270. tmp_addflag=' $pic_flag'
  8271. ;;
  8272. pgf77* | pgf90* | pgf95* | pgfortran*)
  8273. # Portland Group f77 and f90 compilers
  8274. 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'
  8275. tmp_addflag=' $pic_flag -Mnomain' ;;
  8276. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8277. tmp_addflag=' -i_dynamic' ;;
  8278. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8279. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8280. ifc* | ifort*) # Intel Fortran compiler
  8281. tmp_addflag=' -nofor_main' ;;
  8282. lf95*) # Lahey Fortran 8.1
  8283. whole_archive_flag_spec=
  8284. tmp_sharedflag='--shared' ;;
  8285. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8286. tmp_sharedflag='-qmkshrobj'
  8287. tmp_addflag= ;;
  8288. nvcc*) # Cuda Compiler Driver 2.2
  8289. 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'
  8290. compiler_needs_object=yes
  8291. ;;
  8292. esac
  8293. case `$CC -V 2>&1 | sed 5q` in
  8294. *Sun\ C*) # Sun C 5.9
  8295. 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'
  8296. compiler_needs_object=yes
  8297. tmp_sharedflag='-G' ;;
  8298. *Sun\ F*) # Sun Fortran 8.3
  8299. tmp_sharedflag='-G' ;;
  8300. esac
  8301. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8302. if test "x$supports_anon_versioning" = xyes; then
  8303. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8304. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8305. echo "local: *; };" >> $output_objdir/$libname.ver~
  8306. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8307. fi
  8308. case $cc_basename in
  8309. xlf* | bgf* | bgxlf* | mpixlf*)
  8310. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8311. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8312. hardcode_libdir_flag_spec=
  8313. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8314. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8315. if test "x$supports_anon_versioning" = xyes; then
  8316. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8317. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8318. echo "local: *; };" >> $output_objdir/$libname.ver~
  8319. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8320. fi
  8321. ;;
  8322. esac
  8323. else
  8324. ld_shlibs=no
  8325. fi
  8326. ;;
  8327. netbsd*)
  8328. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8329. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8330. wlarc=
  8331. else
  8332. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8333. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8334. fi
  8335. ;;
  8336. solaris*)
  8337. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8338. ld_shlibs=no
  8339. cat <<_LT_EOF 1>&2
  8340. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8341. *** create shared libraries on Solaris systems. Therefore, libtool
  8342. *** is disabling shared libraries support. We urge you to upgrade GNU
  8343. *** binutils to release 2.9.1 or newer. Another option is to modify
  8344. *** your PATH or compiler configuration so that the native linker is
  8345. *** used, and then restart.
  8346. _LT_EOF
  8347. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8348. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8349. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8350. else
  8351. ld_shlibs=no
  8352. fi
  8353. ;;
  8354. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8355. case `$LD -v 2>&1` in
  8356. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8357. ld_shlibs=no
  8358. cat <<_LT_EOF 1>&2
  8359. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8360. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8361. *** is disabling shared libraries support. We urge you to upgrade GNU
  8362. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8363. *** your PATH or compiler configuration so that the native linker is
  8364. *** used, and then restart.
  8365. _LT_EOF
  8366. ;;
  8367. *)
  8368. # For security reasons, it is highly recommended that you always
  8369. # use absolute paths for naming shared libraries, and exclude the
  8370. # DT_RUNPATH tag from executables and libraries. But doing so
  8371. # requires that you compile everything twice, which is a pain.
  8372. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8373. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8374. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8375. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8376. else
  8377. ld_shlibs=no
  8378. fi
  8379. ;;
  8380. esac
  8381. ;;
  8382. sunos4*)
  8383. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8384. wlarc=
  8385. hardcode_direct=yes
  8386. hardcode_shlibpath_var=no
  8387. ;;
  8388. *)
  8389. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8390. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8391. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8392. else
  8393. ld_shlibs=no
  8394. fi
  8395. ;;
  8396. esac
  8397. if test "$ld_shlibs" = no; then
  8398. runpath_var=
  8399. hardcode_libdir_flag_spec=
  8400. export_dynamic_flag_spec=
  8401. whole_archive_flag_spec=
  8402. fi
  8403. else
  8404. # PORTME fill in a description of your system's linker (not GNU ld)
  8405. case $host_os in
  8406. aix3*)
  8407. allow_undefined_flag=unsupported
  8408. always_export_symbols=yes
  8409. 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'
  8410. # Note: this linker hardcodes the directories in LIBPATH if there
  8411. # are no directories specified by -L.
  8412. hardcode_minus_L=yes
  8413. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8414. # Neither direct hardcoding nor static linking is supported with a
  8415. # broken collect2.
  8416. hardcode_direct=unsupported
  8417. fi
  8418. ;;
  8419. aix[4-9]*)
  8420. if test "$host_cpu" = ia64; then
  8421. # On IA64, the linker does run time linking by default, so we don't
  8422. # have to do anything special.
  8423. aix_use_runtimelinking=no
  8424. exp_sym_flag='-Bexport'
  8425. no_entry_flag=""
  8426. else
  8427. # If we're using GNU nm, then we don't want the "-C" option.
  8428. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8429. # Also, AIX nm treats weak defined symbols like other global
  8430. # defined symbols, whereas GNU nm marks them as "W".
  8431. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8432. 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'
  8433. else
  8434. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8435. fi
  8436. aix_use_runtimelinking=no
  8437. # Test if we are trying to use run time linking or normal
  8438. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8439. # need to do runtime linking.
  8440. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8441. for ld_flag in $LDFLAGS; do
  8442. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8443. aix_use_runtimelinking=yes
  8444. break
  8445. fi
  8446. done
  8447. ;;
  8448. esac
  8449. exp_sym_flag='-bexport'
  8450. no_entry_flag='-bnoentry'
  8451. fi
  8452. # When large executables or shared objects are built, AIX ld can
  8453. # have problems creating the table of contents. If linking a library
  8454. # or program results in "error TOC overflow" add -mminimal-toc to
  8455. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8456. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8457. archive_cmds=''
  8458. hardcode_direct=yes
  8459. hardcode_direct_absolute=yes
  8460. hardcode_libdir_separator=':'
  8461. link_all_deplibs=yes
  8462. file_list_spec='${wl}-f,'
  8463. if test "$GCC" = yes; then
  8464. case $host_os in aix4.[012]|aix4.[012].*)
  8465. # We only want to do this on AIX 4.2 and lower, the check
  8466. # below for broken collect2 doesn't work under 4.3+
  8467. collect2name=`${CC} -print-prog-name=collect2`
  8468. if test -f "$collect2name" &&
  8469. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8470. then
  8471. # We have reworked collect2
  8472. :
  8473. else
  8474. # We have old collect2
  8475. hardcode_direct=unsupported
  8476. # It fails to find uninstalled libraries when the uninstalled
  8477. # path is not listed in the libpath. Setting hardcode_minus_L
  8478. # to unsupported forces relinking
  8479. hardcode_minus_L=yes
  8480. hardcode_libdir_flag_spec='-L$libdir'
  8481. hardcode_libdir_separator=
  8482. fi
  8483. ;;
  8484. esac
  8485. shared_flag='-shared'
  8486. if test "$aix_use_runtimelinking" = yes; then
  8487. shared_flag="$shared_flag "'${wl}-G'
  8488. fi
  8489. else
  8490. # not using gcc
  8491. if test "$host_cpu" = ia64; then
  8492. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8493. # chokes on -Wl,-G. The following line is correct:
  8494. shared_flag='-G'
  8495. else
  8496. if test "$aix_use_runtimelinking" = yes; then
  8497. shared_flag='${wl}-G'
  8498. else
  8499. shared_flag='${wl}-bM:SRE'
  8500. fi
  8501. fi
  8502. fi
  8503. export_dynamic_flag_spec='${wl}-bexpall'
  8504. # It seems that -bexpall does not export symbols beginning with
  8505. # underscore (_), so it is better to generate a list of symbols to export.
  8506. always_export_symbols=yes
  8507. if test "$aix_use_runtimelinking" = yes; then
  8508. # Warning - without using the other runtime loading flags (-brtl),
  8509. # -berok will link without error, but may produce a broken library.
  8510. allow_undefined_flag='-berok'
  8511. # Determine the default libpath from the value encoded in an
  8512. # empty executable.
  8513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8514. /* end confdefs.h. */
  8515. int
  8516. main ()
  8517. {
  8518. ;
  8519. return 0;
  8520. }
  8521. _ACEOF
  8522. if ac_fn_c_try_link "$LINENO"; then :
  8523. lt_aix_libpath_sed='
  8524. /Import File Strings/,/^$/ {
  8525. /^0/ {
  8526. s/^0 *\(.*\)$/\1/
  8527. p
  8528. }
  8529. }'
  8530. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8531. # Check for a 64-bit object if we didn't find anything.
  8532. if test -z "$aix_libpath"; then
  8533. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8534. fi
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext \
  8537. conftest$ac_exeext conftest.$ac_ext
  8538. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8539. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8540. 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"
  8541. else
  8542. if test "$host_cpu" = ia64; then
  8543. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8544. allow_undefined_flag="-z nodefs"
  8545. 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"
  8546. else
  8547. # Determine the default libpath from the value encoded in an
  8548. # empty executable.
  8549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8550. /* end confdefs.h. */
  8551. int
  8552. main ()
  8553. {
  8554. ;
  8555. return 0;
  8556. }
  8557. _ACEOF
  8558. if ac_fn_c_try_link "$LINENO"; then :
  8559. lt_aix_libpath_sed='
  8560. /Import File Strings/,/^$/ {
  8561. /^0/ {
  8562. s/^0 *\(.*\)$/\1/
  8563. p
  8564. }
  8565. }'
  8566. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8567. # Check for a 64-bit object if we didn't find anything.
  8568. if test -z "$aix_libpath"; then
  8569. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8570. fi
  8571. fi
  8572. rm -f core conftest.err conftest.$ac_objext \
  8573. conftest$ac_exeext conftest.$ac_ext
  8574. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8575. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8576. # Warning - without using the other run time loading flags,
  8577. # -berok will link without error, but may produce a broken library.
  8578. no_undefined_flag=' ${wl}-bernotok'
  8579. allow_undefined_flag=' ${wl}-berok'
  8580. if test "$with_gnu_ld" = yes; then
  8581. # We only use this code for GNU lds that support --whole-archive.
  8582. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8583. else
  8584. # Exported symbols can be pulled into shared objects from archives
  8585. whole_archive_flag_spec='$convenience'
  8586. fi
  8587. archive_cmds_need_lc=yes
  8588. # This is similar to how AIX traditionally builds its shared libraries.
  8589. 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'
  8590. fi
  8591. fi
  8592. ;;
  8593. amigaos*)
  8594. case $host_cpu in
  8595. powerpc)
  8596. # see comment about AmigaOS4 .so support
  8597. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8598. archive_expsym_cmds=''
  8599. ;;
  8600. m68k)
  8601. 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)'
  8602. hardcode_libdir_flag_spec='-L$libdir'
  8603. hardcode_minus_L=yes
  8604. ;;
  8605. esac
  8606. ;;
  8607. bsdi[45]*)
  8608. export_dynamic_flag_spec=-rdynamic
  8609. ;;
  8610. cygwin* | mingw* | pw32* | cegcc*)
  8611. # When not using gcc, we currently assume that we are using
  8612. # Microsoft Visual C++.
  8613. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8614. # no search path for DLLs.
  8615. hardcode_libdir_flag_spec=' '
  8616. allow_undefined_flag=unsupported
  8617. # Tell ltmain to make .lib files, not .a files.
  8618. libext=lib
  8619. # Tell ltmain to make .dll files, not .so files.
  8620. shrext_cmds=".dll"
  8621. # FIXME: Setting linknames here is a bad hack.
  8622. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8623. # The linker will automatically build a .lib file if we build a DLL.
  8624. old_archive_from_new_cmds='true'
  8625. # FIXME: Should let the user specify the lib program.
  8626. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8627. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8628. enable_shared_with_static_runtimes=yes
  8629. ;;
  8630. darwin* | rhapsody*)
  8631. archive_cmds_need_lc=no
  8632. hardcode_direct=no
  8633. hardcode_automatic=yes
  8634. hardcode_shlibpath_var=unsupported
  8635. if test "$lt_cv_ld_force_load" = "yes"; then
  8636. 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\"`'
  8637. else
  8638. whole_archive_flag_spec=''
  8639. fi
  8640. link_all_deplibs=yes
  8641. allow_undefined_flag="$_lt_dar_allow_undefined"
  8642. case $cc_basename in
  8643. ifort*) _lt_dar_can_shared=yes ;;
  8644. *) _lt_dar_can_shared=$GCC ;;
  8645. esac
  8646. if test "$_lt_dar_can_shared" = "yes"; then
  8647. output_verbose_link_cmd=func_echo_all
  8648. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8649. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8650. 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}"
  8651. 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}"
  8652. else
  8653. ld_shlibs=no
  8654. fi
  8655. ;;
  8656. dgux*)
  8657. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8658. hardcode_libdir_flag_spec='-L$libdir'
  8659. hardcode_shlibpath_var=no
  8660. ;;
  8661. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8662. # support. Future versions do this automatically, but an explicit c++rt0.o
  8663. # does not break anything, and helps significantly (at the cost of a little
  8664. # extra space).
  8665. freebsd2.2*)
  8666. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8667. hardcode_libdir_flag_spec='-R$libdir'
  8668. hardcode_direct=yes
  8669. hardcode_shlibpath_var=no
  8670. ;;
  8671. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8672. freebsd2.*)
  8673. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8674. hardcode_direct=yes
  8675. hardcode_minus_L=yes
  8676. hardcode_shlibpath_var=no
  8677. ;;
  8678. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8679. freebsd* | dragonfly*)
  8680. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8681. hardcode_libdir_flag_spec='-R$libdir'
  8682. hardcode_direct=yes
  8683. hardcode_shlibpath_var=no
  8684. ;;
  8685. hpux9*)
  8686. if test "$GCC" = yes; then
  8687. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8688. else
  8689. 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'
  8690. fi
  8691. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8692. hardcode_libdir_separator=:
  8693. hardcode_direct=yes
  8694. # hardcode_minus_L: Not really in the search PATH,
  8695. # but as the default location of the library.
  8696. hardcode_minus_L=yes
  8697. export_dynamic_flag_spec='${wl}-E'
  8698. ;;
  8699. hpux10*)
  8700. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8701. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8702. else
  8703. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8704. fi
  8705. if test "$with_gnu_ld" = no; then
  8706. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8707. hardcode_libdir_flag_spec_ld='+b $libdir'
  8708. hardcode_libdir_separator=:
  8709. hardcode_direct=yes
  8710. hardcode_direct_absolute=yes
  8711. export_dynamic_flag_spec='${wl}-E'
  8712. # hardcode_minus_L: Not really in the search PATH,
  8713. # but as the default location of the library.
  8714. hardcode_minus_L=yes
  8715. fi
  8716. ;;
  8717. hpux11*)
  8718. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8719. case $host_cpu in
  8720. hppa*64*)
  8721. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8722. ;;
  8723. ia64*)
  8724. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8725. ;;
  8726. *)
  8727. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8728. ;;
  8729. esac
  8730. else
  8731. case $host_cpu in
  8732. hppa*64*)
  8733. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8734. ;;
  8735. ia64*)
  8736. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8737. ;;
  8738. *)
  8739. # Older versions of the 11.00 compiler do not understand -b yet
  8740. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8742. $as_echo_n "checking if $CC understands -b... " >&6; }
  8743. if ${lt_cv_prog_compiler__b+:} false; then :
  8744. $as_echo_n "(cached) " >&6
  8745. else
  8746. lt_cv_prog_compiler__b=no
  8747. save_LDFLAGS="$LDFLAGS"
  8748. LDFLAGS="$LDFLAGS -b"
  8749. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8750. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8751. # The linker can only warn and ignore the option if not recognized
  8752. # So say no if there are warnings
  8753. if test -s conftest.err; then
  8754. # Append any errors to the config.log.
  8755. cat conftest.err 1>&5
  8756. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8757. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8758. if diff conftest.exp conftest.er2 >/dev/null; then
  8759. lt_cv_prog_compiler__b=yes
  8760. fi
  8761. else
  8762. lt_cv_prog_compiler__b=yes
  8763. fi
  8764. fi
  8765. $RM -r conftest*
  8766. LDFLAGS="$save_LDFLAGS"
  8767. fi
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8769. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8770. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8771. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8772. else
  8773. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8774. fi
  8775. ;;
  8776. esac
  8777. fi
  8778. if test "$with_gnu_ld" = no; then
  8779. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8780. hardcode_libdir_separator=:
  8781. case $host_cpu in
  8782. hppa*64*|ia64*)
  8783. hardcode_direct=no
  8784. hardcode_shlibpath_var=no
  8785. ;;
  8786. *)
  8787. hardcode_direct=yes
  8788. hardcode_direct_absolute=yes
  8789. export_dynamic_flag_spec='${wl}-E'
  8790. # hardcode_minus_L: Not really in the search PATH,
  8791. # but as the default location of the library.
  8792. hardcode_minus_L=yes
  8793. ;;
  8794. esac
  8795. fi
  8796. ;;
  8797. irix5* | irix6* | nonstopux*)
  8798. if test "$GCC" = yes; then
  8799. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8800. # Try to use the -exported_symbol ld option, if it does not
  8801. # work, assume that -exports_file does not work either and
  8802. # implicitly export all symbols.
  8803. save_LDFLAGS="$LDFLAGS"
  8804. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8806. /* end confdefs.h. */
  8807. int foo(void) {}
  8808. _ACEOF
  8809. if ac_fn_c_try_link "$LINENO"; then :
  8810. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8811. fi
  8812. rm -f core conftest.err conftest.$ac_objext \
  8813. conftest$ac_exeext conftest.$ac_ext
  8814. LDFLAGS="$save_LDFLAGS"
  8815. else
  8816. 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'
  8817. 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'
  8818. fi
  8819. archive_cmds_need_lc='no'
  8820. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8821. hardcode_libdir_separator=:
  8822. inherit_rpath=yes
  8823. link_all_deplibs=yes
  8824. ;;
  8825. netbsd*)
  8826. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8827. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8828. else
  8829. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8830. fi
  8831. hardcode_libdir_flag_spec='-R$libdir'
  8832. hardcode_direct=yes
  8833. hardcode_shlibpath_var=no
  8834. ;;
  8835. newsos6)
  8836. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8837. hardcode_direct=yes
  8838. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8839. hardcode_libdir_separator=:
  8840. hardcode_shlibpath_var=no
  8841. ;;
  8842. *nto* | *qnx*)
  8843. ;;
  8844. openbsd*)
  8845. if test -f /usr/libexec/ld.so; then
  8846. hardcode_direct=yes
  8847. hardcode_shlibpath_var=no
  8848. hardcode_direct_absolute=yes
  8849. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8850. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8851. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8852. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8853. export_dynamic_flag_spec='${wl}-E'
  8854. else
  8855. case $host_os in
  8856. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8857. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8858. hardcode_libdir_flag_spec='-R$libdir'
  8859. ;;
  8860. *)
  8861. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8862. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8863. ;;
  8864. esac
  8865. fi
  8866. else
  8867. ld_shlibs=no
  8868. fi
  8869. ;;
  8870. os2*)
  8871. hardcode_libdir_flag_spec='-L$libdir'
  8872. hardcode_minus_L=yes
  8873. allow_undefined_flag=unsupported
  8874. 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'
  8875. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8876. ;;
  8877. osf3*)
  8878. if test "$GCC" = yes; then
  8879. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8880. 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'
  8881. else
  8882. allow_undefined_flag=' -expect_unresolved \*'
  8883. 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'
  8884. fi
  8885. archive_cmds_need_lc='no'
  8886. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8887. hardcode_libdir_separator=:
  8888. ;;
  8889. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8890. if test "$GCC" = yes; then
  8891. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8892. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8893. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8894. else
  8895. allow_undefined_flag=' -expect_unresolved \*'
  8896. 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'
  8897. 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~
  8898. $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'
  8899. # Both c and cxx compiler support -rpath directly
  8900. hardcode_libdir_flag_spec='-rpath $libdir'
  8901. fi
  8902. archive_cmds_need_lc='no'
  8903. hardcode_libdir_separator=:
  8904. ;;
  8905. solaris*)
  8906. no_undefined_flag=' -z defs'
  8907. if test "$GCC" = yes; then
  8908. wlarc='${wl}'
  8909. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8910. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8911. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8912. else
  8913. case `$CC -V 2>&1` in
  8914. *"Compilers 5.0"*)
  8915. wlarc=''
  8916. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8917. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8918. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8919. ;;
  8920. *)
  8921. wlarc='${wl}'
  8922. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8923. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8924. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8925. ;;
  8926. esac
  8927. fi
  8928. hardcode_libdir_flag_spec='-R$libdir'
  8929. hardcode_shlibpath_var=no
  8930. case $host_os in
  8931. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8932. *)
  8933. # The compiler driver will combine and reorder linker options,
  8934. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8935. # but is careful enough not to reorder.
  8936. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8937. if test "$GCC" = yes; then
  8938. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8939. else
  8940. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8941. fi
  8942. ;;
  8943. esac
  8944. link_all_deplibs=yes
  8945. ;;
  8946. sunos4*)
  8947. if test "x$host_vendor" = xsequent; then
  8948. # Use $CC to link under sequent, because it throws in some extra .o
  8949. # files that make .init and .fini sections work.
  8950. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. else
  8952. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8953. fi
  8954. hardcode_libdir_flag_spec='-L$libdir'
  8955. hardcode_direct=yes
  8956. hardcode_minus_L=yes
  8957. hardcode_shlibpath_var=no
  8958. ;;
  8959. sysv4)
  8960. case $host_vendor in
  8961. sni)
  8962. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8963. hardcode_direct=yes # is this really true???
  8964. ;;
  8965. siemens)
  8966. ## LD is ld it makes a PLAMLIB
  8967. ## CC just makes a GrossModule.
  8968. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8969. reload_cmds='$CC -r -o $output$reload_objs'
  8970. hardcode_direct=no
  8971. ;;
  8972. motorola)
  8973. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8974. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8975. ;;
  8976. esac
  8977. runpath_var='LD_RUN_PATH'
  8978. hardcode_shlibpath_var=no
  8979. ;;
  8980. sysv4.3*)
  8981. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8982. hardcode_shlibpath_var=no
  8983. export_dynamic_flag_spec='-Bexport'
  8984. ;;
  8985. sysv4*MP*)
  8986. if test -d /usr/nec; then
  8987. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8988. hardcode_shlibpath_var=no
  8989. runpath_var=LD_RUN_PATH
  8990. hardcode_runpath_var=yes
  8991. ld_shlibs=yes
  8992. fi
  8993. ;;
  8994. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8995. no_undefined_flag='${wl}-z,text'
  8996. archive_cmds_need_lc=no
  8997. hardcode_shlibpath_var=no
  8998. runpath_var='LD_RUN_PATH'
  8999. if test "$GCC" = yes; then
  9000. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9001. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9002. else
  9003. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9004. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9005. fi
  9006. ;;
  9007. sysv5* | sco3.2v5* | sco5v6*)
  9008. # Note: We can NOT use -z defs as we might desire, because we do not
  9009. # link with -lc, and that would cause any symbols used from libc to
  9010. # always be unresolved, which means just about no library would
  9011. # ever link correctly. If we're not using GNU ld we use -z text
  9012. # though, which does catch some bad symbols but isn't as heavy-handed
  9013. # as -z defs.
  9014. no_undefined_flag='${wl}-z,text'
  9015. allow_undefined_flag='${wl}-z,nodefs'
  9016. archive_cmds_need_lc=no
  9017. hardcode_shlibpath_var=no
  9018. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9019. hardcode_libdir_separator=':'
  9020. link_all_deplibs=yes
  9021. export_dynamic_flag_spec='${wl}-Bexport'
  9022. runpath_var='LD_RUN_PATH'
  9023. if test "$GCC" = yes; then
  9024. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9025. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9026. else
  9027. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9028. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9029. fi
  9030. ;;
  9031. uts4*)
  9032. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9033. hardcode_libdir_flag_spec='-L$libdir'
  9034. hardcode_shlibpath_var=no
  9035. ;;
  9036. *)
  9037. ld_shlibs=no
  9038. ;;
  9039. esac
  9040. if test x$host_vendor = xsni; then
  9041. case $host in
  9042. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9043. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9044. ;;
  9045. esac
  9046. fi
  9047. fi
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9049. $as_echo "$ld_shlibs" >&6; }
  9050. test "$ld_shlibs" = no && can_build_shared=no
  9051. with_gnu_ld=$with_gnu_ld
  9052. #
  9053. # Do we need to explicitly link libc?
  9054. #
  9055. case "x$archive_cmds_need_lc" in
  9056. x|xyes)
  9057. # Assume -lc should be added
  9058. archive_cmds_need_lc=yes
  9059. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9060. case $archive_cmds in
  9061. *'~'*)
  9062. # FIXME: we may have to deal with multi-command sequences.
  9063. ;;
  9064. '$CC '*)
  9065. # Test whether the compiler implicitly links with -lc since on some
  9066. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9067. # to ld, don't add -lc before -lgcc.
  9068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9069. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9070. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9071. $as_echo_n "(cached) " >&6
  9072. else
  9073. $RM conftest*
  9074. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9076. (eval $ac_compile) 2>&5
  9077. ac_status=$?
  9078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9079. test $ac_status = 0; } 2>conftest.err; then
  9080. soname=conftest
  9081. lib=conftest
  9082. libobjs=conftest.$ac_objext
  9083. deplibs=
  9084. wl=$lt_prog_compiler_wl
  9085. pic_flag=$lt_prog_compiler_pic
  9086. compiler_flags=-v
  9087. linker_flags=-v
  9088. verstring=
  9089. output_objdir=.
  9090. libname=conftest
  9091. lt_save_allow_undefined_flag=$allow_undefined_flag
  9092. allow_undefined_flag=
  9093. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9094. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9095. ac_status=$?
  9096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9097. test $ac_status = 0; }
  9098. then
  9099. lt_cv_archive_cmds_need_lc=no
  9100. else
  9101. lt_cv_archive_cmds_need_lc=yes
  9102. fi
  9103. allow_undefined_flag=$lt_save_allow_undefined_flag
  9104. else
  9105. cat conftest.err 1>&5
  9106. fi
  9107. $RM conftest*
  9108. fi
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9110. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9111. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9112. ;;
  9113. esac
  9114. fi
  9115. ;;
  9116. esac
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9118. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9119. if test "$GCC" = yes; then
  9120. case $host_os in
  9121. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9122. *) lt_awk_arg="/^libraries:/" ;;
  9123. esac
  9124. case $host_os in
  9125. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9126. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9127. esac
  9128. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9129. case $lt_search_path_spec in
  9130. *\;*)
  9131. # if the path contains ";" then we assume it to be the separator
  9132. # otherwise default to the standard path separator (i.e. ":") - it is
  9133. # assumed that no part of a normal pathname contains ";" but that should
  9134. # okay in the real world where ";" in dirpaths is itself problematic.
  9135. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9136. ;;
  9137. *)
  9138. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9139. ;;
  9140. esac
  9141. # Ok, now we have the path, separated by spaces, we can step through it
  9142. # and add multilib dir if necessary.
  9143. lt_tmp_lt_search_path_spec=
  9144. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9145. for lt_sys_path in $lt_search_path_spec; do
  9146. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9147. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9148. else
  9149. test -d "$lt_sys_path" && \
  9150. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9151. fi
  9152. done
  9153. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9154. BEGIN {RS=" "; FS="/|\n";} {
  9155. lt_foo="";
  9156. lt_count=0;
  9157. for (lt_i = NF; lt_i > 0; lt_i--) {
  9158. if ($lt_i != "" && $lt_i != ".") {
  9159. if ($lt_i == "..") {
  9160. lt_count++;
  9161. } else {
  9162. if (lt_count == 0) {
  9163. lt_foo="/" $lt_i lt_foo;
  9164. } else {
  9165. lt_count--;
  9166. }
  9167. }
  9168. }
  9169. }
  9170. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9171. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9172. }'`
  9173. # AWK program above erroneously prepends '/' to C:/dos/paths
  9174. # for these hosts.
  9175. case $host_os in
  9176. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9177. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9178. esac
  9179. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9180. else
  9181. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9182. fi
  9183. library_names_spec=
  9184. libname_spec='lib$name'
  9185. soname_spec=
  9186. shrext_cmds=".so"
  9187. postinstall_cmds=
  9188. postuninstall_cmds=
  9189. finish_cmds=
  9190. finish_eval=
  9191. shlibpath_var=
  9192. shlibpath_overrides_runpath=unknown
  9193. version_type=none
  9194. dynamic_linker="$host_os ld.so"
  9195. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9196. need_lib_prefix=unknown
  9197. hardcode_into_libs=no
  9198. # when you set need_version to no, make sure it does not cause -set_version
  9199. # flags to be left without arguments
  9200. need_version=unknown
  9201. case $host_os in
  9202. aix3*)
  9203. version_type=linux
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9205. shlibpath_var=LIBPATH
  9206. # AIX 3 has no versioning support, so we append a major version to the name.
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. ;;
  9209. aix[4-9]*)
  9210. version_type=linux
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. hardcode_into_libs=yes
  9214. if test "$host_cpu" = ia64; then
  9215. # AIX 5 supports IA64
  9216. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9217. shlibpath_var=LD_LIBRARY_PATH
  9218. else
  9219. # With GCC up to 2.95.x, collect2 would create an import file
  9220. # for dependence libraries. The import file would start with
  9221. # the line `#! .'. This would cause the generated library to
  9222. # depend on `.', always an invalid library. This was fixed in
  9223. # development snapshots of GCC prior to 3.0.
  9224. case $host_os in
  9225. aix4 | aix4.[01] | aix4.[01].*)
  9226. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9227. echo ' yes '
  9228. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9229. :
  9230. else
  9231. can_build_shared=no
  9232. fi
  9233. ;;
  9234. esac
  9235. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9236. # soname into executable. Probably we can add versioning support to
  9237. # collect2, so additional links can be useful in future.
  9238. if test "$aix_use_runtimelinking" = yes; then
  9239. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9240. # instead of lib<name>.a to let people know that these are not
  9241. # typical AIX shared libraries.
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. else
  9244. # We preserve .a as extension for shared libraries through AIX4.2
  9245. # and later when we are not doing run time linking.
  9246. library_names_spec='${libname}${release}.a $libname.a'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. fi
  9249. shlibpath_var=LIBPATH
  9250. fi
  9251. ;;
  9252. amigaos*)
  9253. case $host_cpu in
  9254. powerpc)
  9255. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9256. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9258. ;;
  9259. m68k)
  9260. library_names_spec='$libname.ixlibrary $libname.a'
  9261. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9262. 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'
  9263. ;;
  9264. esac
  9265. ;;
  9266. beos*)
  9267. library_names_spec='${libname}${shared_ext}'
  9268. dynamic_linker="$host_os ld.so"
  9269. shlibpath_var=LIBRARY_PATH
  9270. ;;
  9271. bsdi[45]*)
  9272. version_type=linux
  9273. need_version=no
  9274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9279. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9280. # the default ld.so.conf also contains /usr/contrib/lib and
  9281. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9282. # libtool to hard-code these into programs
  9283. ;;
  9284. cygwin* | mingw* | pw32* | cegcc*)
  9285. version_type=windows
  9286. shrext_cmds=".dll"
  9287. need_version=no
  9288. need_lib_prefix=no
  9289. case $GCC,$host_os in
  9290. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9291. library_names_spec='$libname.dll.a'
  9292. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9293. postinstall_cmds='base_file=`basename \${file}`~
  9294. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9295. dldir=$destdir/`dirname \$dlpath`~
  9296. test -d \$dldir || mkdir -p \$dldir~
  9297. $install_prog $dir/$dlname \$dldir/$dlname~
  9298. chmod a+x \$dldir/$dlname~
  9299. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9300. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9301. fi'
  9302. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9303. dlpath=$dir/\$dldll~
  9304. $RM \$dlpath'
  9305. shlibpath_overrides_runpath=yes
  9306. case $host_os in
  9307. cygwin*)
  9308. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9309. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9310. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9311. ;;
  9312. mingw* | cegcc*)
  9313. # MinGW DLLs use traditional 'lib' prefix
  9314. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9315. ;;
  9316. pw32*)
  9317. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9318. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9319. ;;
  9320. esac
  9321. ;;
  9322. *)
  9323. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9324. ;;
  9325. esac
  9326. dynamic_linker='Win32 ld.exe'
  9327. # FIXME: first we should search . and the directory the executable is in
  9328. shlibpath_var=PATH
  9329. ;;
  9330. darwin* | rhapsody*)
  9331. dynamic_linker="$host_os dyld"
  9332. version_type=darwin
  9333. need_lib_prefix=no
  9334. need_version=no
  9335. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9336. soname_spec='${libname}${release}${major}$shared_ext'
  9337. shlibpath_overrides_runpath=yes
  9338. shlibpath_var=DYLD_LIBRARY_PATH
  9339. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9340. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9341. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9342. ;;
  9343. dgux*)
  9344. version_type=linux
  9345. need_lib_prefix=no
  9346. need_version=no
  9347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9348. soname_spec='${libname}${release}${shared_ext}$major'
  9349. shlibpath_var=LD_LIBRARY_PATH
  9350. ;;
  9351. freebsd* | dragonfly*)
  9352. # DragonFly does not have aout. When/if they implement a new
  9353. # versioning mechanism, adjust this.
  9354. if test -x /usr/bin/objformat; then
  9355. objformat=`/usr/bin/objformat`
  9356. else
  9357. case $host_os in
  9358. freebsd[23].*) objformat=aout ;;
  9359. *) objformat=elf ;;
  9360. esac
  9361. fi
  9362. version_type=freebsd-$objformat
  9363. case $version_type in
  9364. freebsd-elf*)
  9365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9366. need_version=no
  9367. need_lib_prefix=no
  9368. ;;
  9369. freebsd-*)
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9371. need_version=yes
  9372. ;;
  9373. esac
  9374. shlibpath_var=LD_LIBRARY_PATH
  9375. case $host_os in
  9376. freebsd2.*)
  9377. shlibpath_overrides_runpath=yes
  9378. ;;
  9379. freebsd3.[01]* | freebsdelf3.[01]*)
  9380. shlibpath_overrides_runpath=yes
  9381. hardcode_into_libs=yes
  9382. ;;
  9383. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9384. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9385. shlibpath_overrides_runpath=no
  9386. hardcode_into_libs=yes
  9387. ;;
  9388. *) # from 4.6 on, and DragonFly
  9389. shlibpath_overrides_runpath=yes
  9390. hardcode_into_libs=yes
  9391. ;;
  9392. esac
  9393. ;;
  9394. haiku*)
  9395. version_type=linux
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. dynamic_linker="$host_os runtime_loader"
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. shlibpath_var=LIBRARY_PATH
  9402. shlibpath_overrides_runpath=yes
  9403. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9404. hardcode_into_libs=yes
  9405. ;;
  9406. hpux9* | hpux10* | hpux11*)
  9407. # Give a soname corresponding to the major version so that dld.sl refuses to
  9408. # link against other versions.
  9409. version_type=sunos
  9410. need_lib_prefix=no
  9411. need_version=no
  9412. case $host_cpu in
  9413. ia64*)
  9414. shrext_cmds='.so'
  9415. hardcode_into_libs=yes
  9416. dynamic_linker="$host_os dld.so"
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9420. soname_spec='${libname}${release}${shared_ext}$major'
  9421. if test "X$HPUX_IA64_MODE" = X32; then
  9422. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9423. else
  9424. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9425. fi
  9426. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9427. ;;
  9428. hppa*64*)
  9429. shrext_cmds='.sl'
  9430. hardcode_into_libs=yes
  9431. dynamic_linker="$host_os dld.sl"
  9432. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9433. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9435. soname_spec='${libname}${release}${shared_ext}$major'
  9436. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9437. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9438. ;;
  9439. *)
  9440. shrext_cmds='.sl'
  9441. dynamic_linker="$host_os dld.sl"
  9442. shlibpath_var=SHLIB_PATH
  9443. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. ;;
  9447. esac
  9448. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9449. postinstall_cmds='chmod 555 $lib'
  9450. # or fails outright, so override atomically:
  9451. install_override_mode=555
  9452. ;;
  9453. interix[3-9]*)
  9454. version_type=linux
  9455. need_lib_prefix=no
  9456. need_version=no
  9457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9458. soname_spec='${libname}${release}${shared_ext}$major'
  9459. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. shlibpath_overrides_runpath=no
  9462. hardcode_into_libs=yes
  9463. ;;
  9464. irix5* | irix6* | nonstopux*)
  9465. case $host_os in
  9466. nonstopux*) version_type=nonstopux ;;
  9467. *)
  9468. if test "$lt_cv_prog_gnu_ld" = yes; then
  9469. version_type=linux
  9470. else
  9471. version_type=irix
  9472. fi ;;
  9473. esac
  9474. need_lib_prefix=no
  9475. need_version=no
  9476. soname_spec='${libname}${release}${shared_ext}$major'
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9478. case $host_os in
  9479. irix5* | nonstopux*)
  9480. libsuff= shlibsuff=
  9481. ;;
  9482. *)
  9483. case $LD in # libtool.m4 will add one of these switches to LD
  9484. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9485. libsuff= shlibsuff= libmagic=32-bit;;
  9486. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9487. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9488. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9489. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9490. *) libsuff= shlibsuff= libmagic=never-match;;
  9491. esac
  9492. ;;
  9493. esac
  9494. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9495. shlibpath_overrides_runpath=no
  9496. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9497. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9498. hardcode_into_libs=yes
  9499. ;;
  9500. # No shared lib support for Linux oldld, aout, or coff.
  9501. linux*oldld* | linux*aout* | linux*coff*)
  9502. dynamic_linker=no
  9503. ;;
  9504. # This must be Linux ELF.
  9505. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9506. version_type=linux
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9510. soname_spec='${libname}${release}${shared_ext}$major'
  9511. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9512. shlibpath_var=LD_LIBRARY_PATH
  9513. shlibpath_overrides_runpath=no
  9514. # Some binutils ld are patched to set DT_RUNPATH
  9515. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. lt_cv_shlibpath_overrides_runpath=no
  9519. save_LDFLAGS=$LDFLAGS
  9520. save_libdir=$libdir
  9521. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9522. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9524. /* end confdefs.h. */
  9525. int
  9526. main ()
  9527. {
  9528. ;
  9529. return 0;
  9530. }
  9531. _ACEOF
  9532. if ac_fn_c_try_link "$LINENO"; then :
  9533. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9534. lt_cv_shlibpath_overrides_runpath=yes
  9535. fi
  9536. fi
  9537. rm -f core conftest.err conftest.$ac_objext \
  9538. conftest$ac_exeext conftest.$ac_ext
  9539. LDFLAGS=$save_LDFLAGS
  9540. libdir=$save_libdir
  9541. fi
  9542. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9543. # This implies no fast_install, which is unacceptable.
  9544. # Some rework will be needed to allow for fast_install
  9545. # before this can be enabled.
  9546. hardcode_into_libs=yes
  9547. # Append ld.so.conf contents to the search path
  9548. if test -f /etc/ld.so.conf; then
  9549. 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' ' '`
  9550. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9551. fi
  9552. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9553. # powerpc, because MkLinux only supported shared libraries with the
  9554. # GNU dynamic linker. Since this was broken with cross compilers,
  9555. # most powerpc-linux boxes support dynamic linking these days and
  9556. # people can always --disable-shared, the test was removed, and we
  9557. # assume the GNU/Linux dynamic linker is in use.
  9558. dynamic_linker='GNU/Linux ld.so'
  9559. ;;
  9560. netbsd*)
  9561. version_type=sunos
  9562. need_lib_prefix=no
  9563. need_version=no
  9564. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9566. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9567. dynamic_linker='NetBSD (a.out) ld.so'
  9568. else
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9570. soname_spec='${libname}${release}${shared_ext}$major'
  9571. dynamic_linker='NetBSD ld.elf_so'
  9572. fi
  9573. shlibpath_var=LD_LIBRARY_PATH
  9574. shlibpath_overrides_runpath=yes
  9575. hardcode_into_libs=yes
  9576. ;;
  9577. newsos6)
  9578. version_type=linux
  9579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9580. shlibpath_var=LD_LIBRARY_PATH
  9581. shlibpath_overrides_runpath=yes
  9582. ;;
  9583. *nto* | *qnx*)
  9584. version_type=qnx
  9585. need_lib_prefix=no
  9586. need_version=no
  9587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9588. soname_spec='${libname}${release}${shared_ext}$major'
  9589. shlibpath_var=LD_LIBRARY_PATH
  9590. shlibpath_overrides_runpath=no
  9591. hardcode_into_libs=yes
  9592. dynamic_linker='ldqnx.so'
  9593. ;;
  9594. openbsd*)
  9595. version_type=sunos
  9596. sys_lib_dlsearch_path_spec="/usr/lib"
  9597. need_lib_prefix=no
  9598. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9599. case $host_os in
  9600. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9601. *) need_version=no ;;
  9602. esac
  9603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9604. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9607. case $host_os in
  9608. openbsd2.[89] | openbsd2.[89].*)
  9609. shlibpath_overrides_runpath=no
  9610. ;;
  9611. *)
  9612. shlibpath_overrides_runpath=yes
  9613. ;;
  9614. esac
  9615. else
  9616. shlibpath_overrides_runpath=yes
  9617. fi
  9618. ;;
  9619. os2*)
  9620. libname_spec='$name'
  9621. shrext_cmds=".dll"
  9622. need_lib_prefix=no
  9623. library_names_spec='$libname${shared_ext} $libname.a'
  9624. dynamic_linker='OS/2 ld.exe'
  9625. shlibpath_var=LIBPATH
  9626. ;;
  9627. osf3* | osf4* | osf5*)
  9628. version_type=osf
  9629. need_lib_prefix=no
  9630. need_version=no
  9631. soname_spec='${libname}${release}${shared_ext}$major'
  9632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9633. shlibpath_var=LD_LIBRARY_PATH
  9634. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9635. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9636. ;;
  9637. rdos*)
  9638. dynamic_linker=no
  9639. ;;
  9640. solaris*)
  9641. version_type=linux
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9645. soname_spec='${libname}${release}${shared_ext}$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=yes
  9648. hardcode_into_libs=yes
  9649. # ldd complains unless libraries are executable
  9650. postinstall_cmds='chmod +x $lib'
  9651. ;;
  9652. sunos4*)
  9653. version_type=sunos
  9654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9655. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9656. shlibpath_var=LD_LIBRARY_PATH
  9657. shlibpath_overrides_runpath=yes
  9658. if test "$with_gnu_ld" = yes; then
  9659. need_lib_prefix=no
  9660. fi
  9661. need_version=yes
  9662. ;;
  9663. sysv4 | sysv4.3*)
  9664. version_type=linux
  9665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9666. soname_spec='${libname}${release}${shared_ext}$major'
  9667. shlibpath_var=LD_LIBRARY_PATH
  9668. case $host_vendor in
  9669. sni)
  9670. shlibpath_overrides_runpath=no
  9671. need_lib_prefix=no
  9672. runpath_var=LD_RUN_PATH
  9673. ;;
  9674. siemens)
  9675. need_lib_prefix=no
  9676. ;;
  9677. motorola)
  9678. need_lib_prefix=no
  9679. need_version=no
  9680. shlibpath_overrides_runpath=no
  9681. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9682. ;;
  9683. esac
  9684. ;;
  9685. sysv4*MP*)
  9686. if test -d /usr/nec ;then
  9687. version_type=linux
  9688. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9689. soname_spec='$libname${shared_ext}.$major'
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. fi
  9692. ;;
  9693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9694. version_type=freebsd-elf
  9695. need_lib_prefix=no
  9696. need_version=no
  9697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9698. soname_spec='${libname}${release}${shared_ext}$major'
  9699. shlibpath_var=LD_LIBRARY_PATH
  9700. shlibpath_overrides_runpath=yes
  9701. hardcode_into_libs=yes
  9702. if test "$with_gnu_ld" = yes; then
  9703. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9704. else
  9705. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9706. case $host_os in
  9707. sco3.2v5*)
  9708. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9709. ;;
  9710. esac
  9711. fi
  9712. sys_lib_dlsearch_path_spec='/usr/lib'
  9713. ;;
  9714. tpf*)
  9715. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9716. version_type=linux
  9717. need_lib_prefix=no
  9718. need_version=no
  9719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9720. shlibpath_var=LD_LIBRARY_PATH
  9721. shlibpath_overrides_runpath=no
  9722. hardcode_into_libs=yes
  9723. ;;
  9724. uts4*)
  9725. version_type=linux
  9726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9727. soname_spec='${libname}${release}${shared_ext}$major'
  9728. shlibpath_var=LD_LIBRARY_PATH
  9729. ;;
  9730. *)
  9731. dynamic_linker=no
  9732. ;;
  9733. esac
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9735. $as_echo "$dynamic_linker" >&6; }
  9736. test "$dynamic_linker" = no && can_build_shared=no
  9737. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9738. if test "$GCC" = yes; then
  9739. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9740. fi
  9741. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9742. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9743. fi
  9744. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9745. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9746. fi
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9748. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9749. hardcode_action=
  9750. if test -n "$hardcode_libdir_flag_spec" ||
  9751. test -n "$runpath_var" ||
  9752. test "X$hardcode_automatic" = "Xyes" ; then
  9753. # We can hardcode non-existent directories.
  9754. if test "$hardcode_direct" != no &&
  9755. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9756. # have to relink, otherwise we might link with an installed library
  9757. # when we should be linking with a yet-to-be-installed one
  9758. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9759. test "$hardcode_minus_L" != no; then
  9760. # Linking always hardcodes the temporary library directory.
  9761. hardcode_action=relink
  9762. else
  9763. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9764. hardcode_action=immediate
  9765. fi
  9766. else
  9767. # We cannot hardcode anything, or else we can only hardcode existing
  9768. # directories.
  9769. hardcode_action=unsupported
  9770. fi
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9772. $as_echo "$hardcode_action" >&6; }
  9773. if test "$hardcode_action" = relink ||
  9774. test "$inherit_rpath" = yes; then
  9775. # Fast installation is not supported
  9776. enable_fast_install=no
  9777. elif test "$shlibpath_overrides_runpath" = yes ||
  9778. test "$enable_shared" = no; then
  9779. # Fast installation is not necessary
  9780. enable_fast_install=needless
  9781. fi
  9782. if test "x$enable_dlopen" != xyes; then
  9783. enable_dlopen=unknown
  9784. enable_dlopen_self=unknown
  9785. enable_dlopen_self_static=unknown
  9786. else
  9787. lt_cv_dlopen=no
  9788. lt_cv_dlopen_libs=
  9789. case $host_os in
  9790. beos*)
  9791. lt_cv_dlopen="load_add_on"
  9792. lt_cv_dlopen_libs=
  9793. lt_cv_dlopen_self=yes
  9794. ;;
  9795. mingw* | pw32* | cegcc*)
  9796. lt_cv_dlopen="LoadLibrary"
  9797. lt_cv_dlopen_libs=
  9798. ;;
  9799. cygwin*)
  9800. lt_cv_dlopen="dlopen"
  9801. lt_cv_dlopen_libs=
  9802. ;;
  9803. darwin*)
  9804. # if libdl is installed we need to link against it
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9806. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9807. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9808. $as_echo_n "(cached) " >&6
  9809. else
  9810. ac_check_lib_save_LIBS=$LIBS
  9811. LIBS="-ldl $LIBS"
  9812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9813. /* end confdefs.h. */
  9814. /* Override any GCC internal prototype to avoid an error.
  9815. Use char because int might match the return type of a GCC
  9816. builtin and then its argument prototype would still apply. */
  9817. #ifdef __cplusplus
  9818. extern "C"
  9819. #endif
  9820. char dlopen ();
  9821. int
  9822. main ()
  9823. {
  9824. return dlopen ();
  9825. ;
  9826. return 0;
  9827. }
  9828. _ACEOF
  9829. if ac_fn_c_try_link "$LINENO"; then :
  9830. ac_cv_lib_dl_dlopen=yes
  9831. else
  9832. ac_cv_lib_dl_dlopen=no
  9833. fi
  9834. rm -f core conftest.err conftest.$ac_objext \
  9835. conftest$ac_exeext conftest.$ac_ext
  9836. LIBS=$ac_check_lib_save_LIBS
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9839. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9840. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9841. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9842. else
  9843. lt_cv_dlopen="dyld"
  9844. lt_cv_dlopen_libs=
  9845. lt_cv_dlopen_self=yes
  9846. fi
  9847. ;;
  9848. *)
  9849. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9850. if test "x$ac_cv_func_shl_load" = xyes; then :
  9851. lt_cv_dlopen="shl_load"
  9852. else
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9854. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9855. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9856. $as_echo_n "(cached) " >&6
  9857. else
  9858. ac_check_lib_save_LIBS=$LIBS
  9859. LIBS="-ldld $LIBS"
  9860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9861. /* end confdefs.h. */
  9862. /* Override any GCC internal prototype to avoid an error.
  9863. Use char because int might match the return type of a GCC
  9864. builtin and then its argument prototype would still apply. */
  9865. #ifdef __cplusplus
  9866. extern "C"
  9867. #endif
  9868. char shl_load ();
  9869. int
  9870. main ()
  9871. {
  9872. return shl_load ();
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. if ac_fn_c_try_link "$LINENO"; then :
  9878. ac_cv_lib_dld_shl_load=yes
  9879. else
  9880. ac_cv_lib_dld_shl_load=no
  9881. fi
  9882. rm -f core conftest.err conftest.$ac_objext \
  9883. conftest$ac_exeext conftest.$ac_ext
  9884. LIBS=$ac_check_lib_save_LIBS
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9887. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9888. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9889. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9890. else
  9891. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9892. if test "x$ac_cv_func_dlopen" = xyes; then :
  9893. lt_cv_dlopen="dlopen"
  9894. else
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9896. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9897. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9898. $as_echo_n "(cached) " >&6
  9899. else
  9900. ac_check_lib_save_LIBS=$LIBS
  9901. LIBS="-ldl $LIBS"
  9902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9903. /* end confdefs.h. */
  9904. /* Override any GCC internal prototype to avoid an error.
  9905. Use char because int might match the return type of a GCC
  9906. builtin and then its argument prototype would still apply. */
  9907. #ifdef __cplusplus
  9908. extern "C"
  9909. #endif
  9910. char dlopen ();
  9911. int
  9912. main ()
  9913. {
  9914. return dlopen ();
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_link "$LINENO"; then :
  9920. ac_cv_lib_dl_dlopen=yes
  9921. else
  9922. ac_cv_lib_dl_dlopen=no
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext conftest.$ac_ext
  9926. LIBS=$ac_check_lib_save_LIBS
  9927. fi
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9929. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9930. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9931. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9934. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9935. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. ac_check_lib_save_LIBS=$LIBS
  9939. LIBS="-lsvld $LIBS"
  9940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9941. /* end confdefs.h. */
  9942. /* Override any GCC internal prototype to avoid an error.
  9943. Use char because int might match the return type of a GCC
  9944. builtin and then its argument prototype would still apply. */
  9945. #ifdef __cplusplus
  9946. extern "C"
  9947. #endif
  9948. char dlopen ();
  9949. int
  9950. main ()
  9951. {
  9952. return dlopen ();
  9953. ;
  9954. return 0;
  9955. }
  9956. _ACEOF
  9957. if ac_fn_c_try_link "$LINENO"; then :
  9958. ac_cv_lib_svld_dlopen=yes
  9959. else
  9960. ac_cv_lib_svld_dlopen=no
  9961. fi
  9962. rm -f core conftest.err conftest.$ac_objext \
  9963. conftest$ac_exeext conftest.$ac_ext
  9964. LIBS=$ac_check_lib_save_LIBS
  9965. fi
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9967. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9968. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9969. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9970. else
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9972. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9973. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. ac_check_lib_save_LIBS=$LIBS
  9977. LIBS="-ldld $LIBS"
  9978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9979. /* end confdefs.h. */
  9980. /* Override any GCC internal prototype to avoid an error.
  9981. Use char because int might match the return type of a GCC
  9982. builtin and then its argument prototype would still apply. */
  9983. #ifdef __cplusplus
  9984. extern "C"
  9985. #endif
  9986. char dld_link ();
  9987. int
  9988. main ()
  9989. {
  9990. return dld_link ();
  9991. ;
  9992. return 0;
  9993. }
  9994. _ACEOF
  9995. if ac_fn_c_try_link "$LINENO"; then :
  9996. ac_cv_lib_dld_dld_link=yes
  9997. else
  9998. ac_cv_lib_dld_dld_link=no
  9999. fi
  10000. rm -f core conftest.err conftest.$ac_objext \
  10001. conftest$ac_exeext conftest.$ac_ext
  10002. LIBS=$ac_check_lib_save_LIBS
  10003. fi
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10005. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10006. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10007. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10008. fi
  10009. fi
  10010. fi
  10011. fi
  10012. fi
  10013. fi
  10014. ;;
  10015. esac
  10016. if test "x$lt_cv_dlopen" != xno; then
  10017. enable_dlopen=yes
  10018. else
  10019. enable_dlopen=no
  10020. fi
  10021. case $lt_cv_dlopen in
  10022. dlopen)
  10023. save_CPPFLAGS="$CPPFLAGS"
  10024. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10025. save_LDFLAGS="$LDFLAGS"
  10026. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10027. save_LIBS="$LIBS"
  10028. LIBS="$lt_cv_dlopen_libs $LIBS"
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10030. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10031. if ${lt_cv_dlopen_self+:} false; then :
  10032. $as_echo_n "(cached) " >&6
  10033. else
  10034. if test "$cross_compiling" = yes; then :
  10035. lt_cv_dlopen_self=cross
  10036. else
  10037. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10038. lt_status=$lt_dlunknown
  10039. cat > conftest.$ac_ext <<_LT_EOF
  10040. #line 11638 "configure"
  10041. #include "confdefs.h"
  10042. #if HAVE_DLFCN_H
  10043. #include <dlfcn.h>
  10044. #endif
  10045. #include <stdio.h>
  10046. #ifdef RTLD_GLOBAL
  10047. # define LT_DLGLOBAL RTLD_GLOBAL
  10048. #else
  10049. # ifdef DL_GLOBAL
  10050. # define LT_DLGLOBAL DL_GLOBAL
  10051. # else
  10052. # define LT_DLGLOBAL 0
  10053. # endif
  10054. #endif
  10055. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10056. find out it does not work in some platform. */
  10057. #ifndef LT_DLLAZY_OR_NOW
  10058. # ifdef RTLD_LAZY
  10059. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10060. # else
  10061. # ifdef DL_LAZY
  10062. # define LT_DLLAZY_OR_NOW DL_LAZY
  10063. # else
  10064. # ifdef RTLD_NOW
  10065. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10066. # else
  10067. # ifdef DL_NOW
  10068. # define LT_DLLAZY_OR_NOW DL_NOW
  10069. # else
  10070. # define LT_DLLAZY_OR_NOW 0
  10071. # endif
  10072. # endif
  10073. # endif
  10074. # endif
  10075. #endif
  10076. /* When -fvisbility=hidden is used, assume the code has been annotated
  10077. correspondingly for the symbols needed. */
  10078. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10079. void fnord () __attribute__((visibility("default")));
  10080. #endif
  10081. void fnord () { int i=42; }
  10082. int main ()
  10083. {
  10084. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10085. int status = $lt_dlunknown;
  10086. if (self)
  10087. {
  10088. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10089. else
  10090. {
  10091. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10092. else puts (dlerror ());
  10093. }
  10094. /* dlclose (self); */
  10095. }
  10096. else
  10097. puts (dlerror ());
  10098. return status;
  10099. }
  10100. _LT_EOF
  10101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10102. (eval $ac_link) 2>&5
  10103. ac_status=$?
  10104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10105. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10106. (./conftest; exit; ) >&5 2>/dev/null
  10107. lt_status=$?
  10108. case x$lt_status in
  10109. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10110. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10111. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10112. esac
  10113. else :
  10114. # compilation failed
  10115. lt_cv_dlopen_self=no
  10116. fi
  10117. fi
  10118. rm -fr conftest*
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10121. $as_echo "$lt_cv_dlopen_self" >&6; }
  10122. if test "x$lt_cv_dlopen_self" = xyes; then
  10123. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10125. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10126. if ${lt_cv_dlopen_self_static+:} false; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. if test "$cross_compiling" = yes; then :
  10130. lt_cv_dlopen_self_static=cross
  10131. else
  10132. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10133. lt_status=$lt_dlunknown
  10134. cat > conftest.$ac_ext <<_LT_EOF
  10135. #line 11744 "configure"
  10136. #include "confdefs.h"
  10137. #if HAVE_DLFCN_H
  10138. #include <dlfcn.h>
  10139. #endif
  10140. #include <stdio.h>
  10141. #ifdef RTLD_GLOBAL
  10142. # define LT_DLGLOBAL RTLD_GLOBAL
  10143. #else
  10144. # ifdef DL_GLOBAL
  10145. # define LT_DLGLOBAL DL_GLOBAL
  10146. # else
  10147. # define LT_DLGLOBAL 0
  10148. # endif
  10149. #endif
  10150. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10151. find out it does not work in some platform. */
  10152. #ifndef LT_DLLAZY_OR_NOW
  10153. # ifdef RTLD_LAZY
  10154. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10155. # else
  10156. # ifdef DL_LAZY
  10157. # define LT_DLLAZY_OR_NOW DL_LAZY
  10158. # else
  10159. # ifdef RTLD_NOW
  10160. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10161. # else
  10162. # ifdef DL_NOW
  10163. # define LT_DLLAZY_OR_NOW DL_NOW
  10164. # else
  10165. # define LT_DLLAZY_OR_NOW 0
  10166. # endif
  10167. # endif
  10168. # endif
  10169. # endif
  10170. #endif
  10171. /* When -fvisbility=hidden is used, assume the code has been annotated
  10172. correspondingly for the symbols needed. */
  10173. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10174. void fnord () __attribute__((visibility("default")));
  10175. #endif
  10176. void fnord () { int i=42; }
  10177. int main ()
  10178. {
  10179. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10180. int status = $lt_dlunknown;
  10181. if (self)
  10182. {
  10183. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10184. else
  10185. {
  10186. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10187. else puts (dlerror ());
  10188. }
  10189. /* dlclose (self); */
  10190. }
  10191. else
  10192. puts (dlerror ());
  10193. return status;
  10194. }
  10195. _LT_EOF
  10196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10197. (eval $ac_link) 2>&5
  10198. ac_status=$?
  10199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10200. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10201. (./conftest; exit; ) >&5 2>/dev/null
  10202. lt_status=$?
  10203. case x$lt_status in
  10204. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10205. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10206. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10207. esac
  10208. else :
  10209. # compilation failed
  10210. lt_cv_dlopen_self_static=no
  10211. fi
  10212. fi
  10213. rm -fr conftest*
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10216. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10217. fi
  10218. CPPFLAGS="$save_CPPFLAGS"
  10219. LDFLAGS="$save_LDFLAGS"
  10220. LIBS="$save_LIBS"
  10221. ;;
  10222. esac
  10223. case $lt_cv_dlopen_self in
  10224. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10225. *) enable_dlopen_self=unknown ;;
  10226. esac
  10227. case $lt_cv_dlopen_self_static in
  10228. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10229. *) enable_dlopen_self_static=unknown ;;
  10230. esac
  10231. fi
  10232. striplib=
  10233. old_striplib=
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10235. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10236. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10237. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10238. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10240. $as_echo "yes" >&6; }
  10241. else
  10242. # FIXME - insert some real tests, host_os isn't really good enough
  10243. case $host_os in
  10244. darwin*)
  10245. if test -n "$STRIP" ; then
  10246. striplib="$STRIP -x"
  10247. old_striplib="$STRIP -S"
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10249. $as_echo "yes" >&6; }
  10250. else
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10252. $as_echo "no" >&6; }
  10253. fi
  10254. ;;
  10255. *)
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10257. $as_echo "no" >&6; }
  10258. ;;
  10259. esac
  10260. fi
  10261. # Report which library types will actually be built
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10263. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10265. $as_echo "$can_build_shared" >&6; }
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10267. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10268. test "$can_build_shared" = "no" && enable_shared=no
  10269. # On AIX, shared libraries and static libraries use the same namespace, and
  10270. # are all built from PIC.
  10271. case $host_os in
  10272. aix3*)
  10273. test "$enable_shared" = yes && enable_static=no
  10274. if test -n "$RANLIB"; then
  10275. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10276. postinstall_cmds='$RANLIB $lib'
  10277. fi
  10278. ;;
  10279. aix[4-9]*)
  10280. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10281. test "$enable_shared" = yes && enable_static=no
  10282. fi
  10283. ;;
  10284. esac
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10286. $as_echo "$enable_shared" >&6; }
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10288. $as_echo_n "checking whether to build static libraries... " >&6; }
  10289. # Make sure either enable_shared or enable_static is yes.
  10290. test "$enable_shared" = yes || enable_static=yes
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10292. $as_echo "$enable_static" >&6; }
  10293. fi
  10294. ac_ext=c
  10295. ac_cpp='$CPP $CPPFLAGS'
  10296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10299. CC="$lt_save_CC"
  10300. ac_config_commands="$ac_config_commands libtool"
  10301. # Only expand once:
  10302. # Check whether --enable-largefile was given.
  10303. if test "${enable_largefile+set}" = set; then :
  10304. enableval=$enable_largefile;
  10305. fi
  10306. if test "$enable_largefile" != no; then
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10308. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10309. if ${ac_cv_sys_largefile_CC+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. ac_cv_sys_largefile_CC=no
  10313. if test "$GCC" != yes; then
  10314. ac_save_CC=$CC
  10315. while :; do
  10316. # IRIX 6.2 and later do not support large files by default,
  10317. # so use the C compiler's -n32 option if that helps.
  10318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10319. /* end confdefs.h. */
  10320. #include <sys/types.h>
  10321. /* Check that off_t can represent 2**63 - 1 correctly.
  10322. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10323. since some C++ compilers masquerading as C compilers
  10324. incorrectly reject 9223372036854775807. */
  10325. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10326. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10327. && LARGE_OFF_T % 2147483647 == 1)
  10328. ? 1 : -1];
  10329. int
  10330. main ()
  10331. {
  10332. ;
  10333. return 0;
  10334. }
  10335. _ACEOF
  10336. if ac_fn_c_try_compile "$LINENO"; then :
  10337. break
  10338. fi
  10339. rm -f core conftest.err conftest.$ac_objext
  10340. CC="$CC -n32"
  10341. if ac_fn_c_try_compile "$LINENO"; then :
  10342. ac_cv_sys_largefile_CC=' -n32'; break
  10343. fi
  10344. rm -f core conftest.err conftest.$ac_objext
  10345. break
  10346. done
  10347. CC=$ac_save_CC
  10348. rm -f conftest.$ac_ext
  10349. fi
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10352. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10353. if test "$ac_cv_sys_largefile_CC" != no; then
  10354. CC=$CC$ac_cv_sys_largefile_CC
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10357. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10358. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. while :; do
  10362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10363. /* end confdefs.h. */
  10364. #include <sys/types.h>
  10365. /* Check that off_t can represent 2**63 - 1 correctly.
  10366. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10367. since some C++ compilers masquerading as C compilers
  10368. incorrectly reject 9223372036854775807. */
  10369. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10370. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10371. && LARGE_OFF_T % 2147483647 == 1)
  10372. ? 1 : -1];
  10373. int
  10374. main ()
  10375. {
  10376. ;
  10377. return 0;
  10378. }
  10379. _ACEOF
  10380. if ac_fn_c_try_compile "$LINENO"; then :
  10381. ac_cv_sys_file_offset_bits=no; break
  10382. fi
  10383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. #define _FILE_OFFSET_BITS 64
  10387. #include <sys/types.h>
  10388. /* Check that off_t can represent 2**63 - 1 correctly.
  10389. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10390. since some C++ compilers masquerading as C compilers
  10391. incorrectly reject 9223372036854775807. */
  10392. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10393. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10394. && LARGE_OFF_T % 2147483647 == 1)
  10395. ? 1 : -1];
  10396. int
  10397. main ()
  10398. {
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. if ac_fn_c_try_compile "$LINENO"; then :
  10404. ac_cv_sys_file_offset_bits=64; break
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10407. ac_cv_sys_file_offset_bits=unknown
  10408. break
  10409. done
  10410. fi
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10412. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10413. case $ac_cv_sys_file_offset_bits in #(
  10414. no | unknown) ;;
  10415. *)
  10416. cat >>confdefs.h <<_ACEOF
  10417. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10418. _ACEOF
  10419. ;;
  10420. esac
  10421. rm -rf conftest*
  10422. if test $ac_cv_sys_file_offset_bits = unknown; then
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10424. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10425. if ${ac_cv_sys_large_files+:} false; then :
  10426. $as_echo_n "(cached) " >&6
  10427. else
  10428. while :; do
  10429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10430. /* end confdefs.h. */
  10431. #include <sys/types.h>
  10432. /* Check that off_t can represent 2**63 - 1 correctly.
  10433. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10434. since some C++ compilers masquerading as C compilers
  10435. incorrectly reject 9223372036854775807. */
  10436. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10437. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10438. && LARGE_OFF_T % 2147483647 == 1)
  10439. ? 1 : -1];
  10440. int
  10441. main ()
  10442. {
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_c_try_compile "$LINENO"; then :
  10448. ac_cv_sys_large_files=no; break
  10449. fi
  10450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. #define _LARGE_FILES 1
  10454. #include <sys/types.h>
  10455. /* Check that off_t can represent 2**63 - 1 correctly.
  10456. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10457. since some C++ compilers masquerading as C compilers
  10458. incorrectly reject 9223372036854775807. */
  10459. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10460. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10461. && LARGE_OFF_T % 2147483647 == 1)
  10462. ? 1 : -1];
  10463. int
  10464. main ()
  10465. {
  10466. ;
  10467. return 0;
  10468. }
  10469. _ACEOF
  10470. if ac_fn_c_try_compile "$LINENO"; then :
  10471. ac_cv_sys_large_files=1; break
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10474. ac_cv_sys_large_files=unknown
  10475. break
  10476. done
  10477. fi
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10479. $as_echo "$ac_cv_sys_large_files" >&6; }
  10480. case $ac_cv_sys_large_files in #(
  10481. no | unknown) ;;
  10482. *)
  10483. cat >>confdefs.h <<_ACEOF
  10484. #define _LARGE_FILES $ac_cv_sys_large_files
  10485. _ACEOF
  10486. ;;
  10487. esac
  10488. rm -rf conftest*
  10489. fi
  10490. fi
  10491. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  10492. for ac_prog in aclocal
  10493. do
  10494. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10495. set dummy $ac_prog; ac_word=$2
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10497. $as_echo_n "checking for $ac_word... " >&6; }
  10498. if ${ac_cv_prog_ACLOCAL+:} false; then :
  10499. $as_echo_n "(cached) " >&6
  10500. else
  10501. if test -n "$ACLOCAL"; then
  10502. ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
  10503. else
  10504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10505. for as_dir in $PATH
  10506. do
  10507. IFS=$as_save_IFS
  10508. test -z "$as_dir" && as_dir=.
  10509. for ac_exec_ext in '' $ac_executable_extensions; do
  10510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10511. ac_cv_prog_ACLOCAL="$ac_prog"
  10512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10513. break 2
  10514. fi
  10515. done
  10516. done
  10517. IFS=$as_save_IFS
  10518. fi
  10519. fi
  10520. ACLOCAL=$ac_cv_prog_ACLOCAL
  10521. if test -n "$ACLOCAL"; then
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
  10523. $as_echo "$ACLOCAL" >&6; }
  10524. else
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10526. $as_echo "no" >&6; }
  10527. fi
  10528. test -n "$ACLOCAL" && break
  10529. done
  10530. test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
  10531. for ac_prog in autoconf
  10532. do
  10533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10534. set dummy $ac_prog; ac_word=$2
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10536. $as_echo_n "checking for $ac_word... " >&6; }
  10537. if ${ac_cv_prog_AUTOCONF+:} false; then :
  10538. $as_echo_n "(cached) " >&6
  10539. else
  10540. if test -n "$AUTOCONF"; then
  10541. ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  10542. else
  10543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10544. for as_dir in $PATH
  10545. do
  10546. IFS=$as_save_IFS
  10547. test -z "$as_dir" && as_dir=.
  10548. for ac_exec_ext in '' $ac_executable_extensions; do
  10549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10550. ac_cv_prog_AUTOCONF="$ac_prog"
  10551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10552. break 2
  10553. fi
  10554. done
  10555. done
  10556. IFS=$as_save_IFS
  10557. fi
  10558. fi
  10559. AUTOCONF=$ac_cv_prog_AUTOCONF
  10560. if test -n "$AUTOCONF"; then
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  10562. $as_echo "$AUTOCONF" >&6; }
  10563. else
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10565. $as_echo "no" >&6; }
  10566. fi
  10567. test -n "$AUTOCONF" && break
  10568. done
  10569. test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
  10570. for ac_prog in autoheader
  10571. do
  10572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10573. set dummy $ac_prog; ac_word=$2
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10575. $as_echo_n "checking for $ac_word... " >&6; }
  10576. if ${ac_cv_prog_AUTOHEADER+:} false; then :
  10577. $as_echo_n "(cached) " >&6
  10578. else
  10579. if test -n "$AUTOHEADER"; then
  10580. ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
  10581. else
  10582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10583. for as_dir in $PATH
  10584. do
  10585. IFS=$as_save_IFS
  10586. test -z "$as_dir" && as_dir=.
  10587. for ac_exec_ext in '' $ac_executable_extensions; do
  10588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10589. ac_cv_prog_AUTOHEADER="$ac_prog"
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10591. break 2
  10592. fi
  10593. done
  10594. done
  10595. IFS=$as_save_IFS
  10596. fi
  10597. fi
  10598. AUTOHEADER=$ac_cv_prog_AUTOHEADER
  10599. if test -n "$AUTOHEADER"; then
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
  10601. $as_echo "$AUTOHEADER" >&6; }
  10602. else
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10604. $as_echo "no" >&6; }
  10605. fi
  10606. test -n "$AUTOHEADER" && break
  10607. done
  10608. test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
  10609. # Figure out what compiler warnings we can enable.
  10610. # See config/warnings.m4 for details.
  10611. ac_ext=c
  10612. ac_cpp='$CPP $CPPFLAGS'
  10613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10616. warn=
  10617. save_CFLAGS="$CFLAGS"
  10618. for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
  10619. -Wmissing-format-attribute; do
  10620. # Do the check with the no- prefix removed since gcc silently
  10621. # accepts any -Wno-* option on purpose
  10622. case $real_option in
  10623. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  10624. *) option=$real_option ;;
  10625. esac
  10626. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  10628. $as_echo_n "checking whether $CC supports $option... " >&6; }
  10629. if eval \${$as_acx_Woption+:} false; then :
  10630. $as_echo_n "(cached) " >&6
  10631. else
  10632. CFLAGS="$option"
  10633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10634. /* end confdefs.h. */
  10635. int
  10636. main ()
  10637. {
  10638. ;
  10639. return 0;
  10640. }
  10641. _ACEOF
  10642. if ac_fn_c_try_compile "$LINENO"; then :
  10643. eval "$as_acx_Woption=yes"
  10644. else
  10645. eval "$as_acx_Woption=no"
  10646. fi
  10647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10648. fi
  10649. eval ac_res=\$$as_acx_Woption
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10651. $as_echo "$ac_res" >&6; }
  10652. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  10653. warn="$warn${warn:+ }$real_option"
  10654. fi
  10655. done
  10656. CFLAGS="$save_CFLAGS"
  10657. ac_ext=c
  10658. ac_cpp='$CPP $CPPFLAGS'
  10659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10662. ac_ext=c
  10663. ac_cpp='$CPP $CPPFLAGS'
  10664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10667. c_warn=
  10668. save_CFLAGS="$CFLAGS"
  10669. for real_option in -Wstrict-prototypes -Wmissing-prototypes \
  10670. -Wold-style-definition; do
  10671. # Do the check with the no- prefix removed since gcc silently
  10672. # accepts any -Wno-* option on purpose
  10673. case $real_option in
  10674. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  10675. *) option=$real_option ;;
  10676. esac
  10677. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  10679. $as_echo_n "checking whether $CC supports $option... " >&6; }
  10680. if eval \${$as_acx_Woption+:} false; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. CFLAGS="$option"
  10684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10685. /* end confdefs.h. */
  10686. int
  10687. main ()
  10688. {
  10689. ;
  10690. return 0;
  10691. }
  10692. _ACEOF
  10693. if ac_fn_c_try_compile "$LINENO"; then :
  10694. eval "$as_acx_Woption=yes"
  10695. else
  10696. eval "$as_acx_Woption=no"
  10697. fi
  10698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10699. fi
  10700. eval ac_res=\$$as_acx_Woption
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10702. $as_echo "$ac_res" >&6; }
  10703. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  10704. c_warn="$c_warn${c_warn:+ }$real_option"
  10705. fi
  10706. done
  10707. CFLAGS="$save_CFLAGS"
  10708. ac_ext=c
  10709. ac_cpp='$CPP $CPPFLAGS'
  10710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  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. WARN_PEDANTIC=
  10719. # Do the check with the no- prefix removed from the warning options
  10720. # since gcc silently accepts any -Wno-* option on purpose
  10721. if test "$GCC" = yes; then :
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
  10723. $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
  10724. if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
  10725. $as_echo_n "(cached) " >&6
  10726. else
  10727. save_CFLAGS="$CFLAGS"
  10728. CFLAGS="-pedantic -Wlong-long"
  10729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10730. /* end confdefs.h. */
  10731. int
  10732. main ()
  10733. {
  10734. ;
  10735. return 0;
  10736. }
  10737. _ACEOF
  10738. if ac_fn_c_try_compile "$LINENO"; then :
  10739. acx_cv_prog_cc_pedantic__Wlong_long=yes
  10740. else
  10741. acx_cv_prog_cc_pedantic__Wlong_long=no
  10742. fi
  10743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10744. CFLAGS="$save_CFLAGS"
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
  10747. $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
  10748. if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
  10749. WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
  10750. fi
  10751. fi
  10752. ac_ext=c
  10753. ac_cpp='$CPP $CPPFLAGS'
  10754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10757. # Only enable with --enable-werror-always until existing warnings are
  10758. # corrected.
  10759. ac_ext=c
  10760. ac_cpp='$CPP $CPPFLAGS'
  10761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10764. WERROR=
  10765. # Check whether --enable-werror-always was given.
  10766. if test "${enable_werror_always+set}" = set; then :
  10767. enableval=$enable_werror_always;
  10768. else
  10769. enable_werror_always=no
  10770. fi
  10771. if test $enable_werror_always = yes; then :
  10772. WERROR="$WERROR${WERROR:+ }-Werror"
  10773. fi
  10774. ac_ext=c
  10775. ac_cpp='$CPP $CPPFLAGS'
  10776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10780. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10781. # Check whether --enable-maintainer-mode was given.
  10782. if test "${enable_maintainer_mode+set}" = set; then :
  10783. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10784. else
  10785. USE_MAINTAINER_MODE=no
  10786. fi
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10788. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10789. if test $USE_MAINTAINER_MODE = yes; then
  10790. MAINTAINER_MODE_TRUE=
  10791. MAINTAINER_MODE_FALSE='#'
  10792. else
  10793. MAINTAINER_MODE_TRUE='#'
  10794. MAINTAINER_MODE_FALSE=
  10795. fi
  10796. MAINT=$MAINTAINER_MODE_TRUE
  10797. case ${build_alias} in
  10798. "") build_noncanonical=${build} ;;
  10799. *) build_noncanonical=${build_alias} ;;
  10800. esac
  10801. case ${host_alias} in
  10802. "") host_noncanonical=${build_noncanonical} ;;
  10803. *) host_noncanonical=${host_alias} ;;
  10804. esac
  10805. case ${target_alias} in
  10806. "") target_noncanonical=${host_noncanonical} ;;
  10807. *) target_noncanonical=${target_alias} ;;
  10808. esac
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
  10810. $as_echo_n "checking whether to install libbfd... " >&6; }
  10811. # Check whether --enable-install-libbfd was given.
  10812. if test "${enable_install_libbfd+set}" = set; then :
  10813. enableval=$enable_install_libbfd; install_libbfd_p=$enableval
  10814. else
  10815. if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
  10816. install_libbfd_p=yes
  10817. else
  10818. install_libbfd_p=no
  10819. fi
  10820. fi
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
  10822. $as_echo "$install_libbfd_p" >&6; }
  10823. if test $install_libbfd_p = yes; then
  10824. INSTALL_LIBBFD_TRUE=
  10825. INSTALL_LIBBFD_FALSE='#'
  10826. else
  10827. INSTALL_LIBBFD_TRUE='#'
  10828. INSTALL_LIBBFD_FALSE=
  10829. fi
  10830. # Need _noncanonical variables for this.
  10831. # libbfd.a is a host library containing target dependent code
  10832. bfdlibdir='$(libdir)'
  10833. bfdincludedir='$(includedir)'
  10834. if test "${host}" != "${target}"; then
  10835. bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
  10836. bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
  10837. fi
  10838. ac_ext=c
  10839. ac_cpp='$CPP $CPPFLAGS'
  10840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10843. ac_libctf_warn_cflags=
  10844. save_CFLAGS="$CFLAGS"
  10845. for real_option in -Wall; do
  10846. # Do the check with the no- prefix removed since gcc silently
  10847. # accepts any -Wno-* option on purpose
  10848. case $real_option in
  10849. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  10850. *) option=$real_option ;;
  10851. esac
  10852. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  10854. $as_echo_n "checking whether $CC supports $option... " >&6; }
  10855. if eval \${$as_acx_Woption+:} false; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. CFLAGS="$option"
  10859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10860. /* end confdefs.h. */
  10861. int
  10862. main ()
  10863. {
  10864. ;
  10865. return 0;
  10866. }
  10867. _ACEOF
  10868. if ac_fn_c_try_compile "$LINENO"; then :
  10869. eval "$as_acx_Woption=yes"
  10870. else
  10871. eval "$as_acx_Woption=no"
  10872. fi
  10873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10874. fi
  10875. eval ac_res=\$$as_acx_Woption
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10877. $as_echo "$ac_res" >&6; }
  10878. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  10879. ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
  10880. fi
  10881. done
  10882. CFLAGS="$save_CFLAGS"
  10883. ac_ext=c
  10884. ac_cpp='$CPP $CPPFLAGS'
  10885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10888. for ac_header in $ac_header_list
  10889. do :
  10890. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10891. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10892. "
  10893. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10894. cat >>confdefs.h <<_ACEOF
  10895. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10896. _ACEOF
  10897. fi
  10898. done
  10899. for ac_func in getpagesize
  10900. do :
  10901. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  10902. if test "x$ac_cv_func_getpagesize" = xyes; then :
  10903. cat >>confdefs.h <<_ACEOF
  10904. #define HAVE_GETPAGESIZE 1
  10905. _ACEOF
  10906. fi
  10907. done
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  10909. $as_echo_n "checking for working mmap... " >&6; }
  10910. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  10911. $as_echo_n "(cached) " >&6
  10912. else
  10913. if test "$cross_compiling" = yes; then :
  10914. ac_cv_func_mmap_fixed_mapped=no
  10915. else
  10916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10917. /* end confdefs.h. */
  10918. $ac_includes_default
  10919. /* malloc might have been renamed as rpl_malloc. */
  10920. #undef malloc
  10921. /* Thanks to Mike Haertel and Jim Avera for this test.
  10922. Here is a matrix of mmap possibilities:
  10923. mmap private not fixed
  10924. mmap private fixed at somewhere currently unmapped
  10925. mmap private fixed at somewhere already mapped
  10926. mmap shared not fixed
  10927. mmap shared fixed at somewhere currently unmapped
  10928. mmap shared fixed at somewhere already mapped
  10929. For private mappings, we should verify that changes cannot be read()
  10930. back from the file, nor mmap's back from the file at a different
  10931. address. (There have been systems where private was not correctly
  10932. implemented like the infamous i386 svr4.0, and systems where the
  10933. VM page cache was not coherent with the file system buffer cache
  10934. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10935. For shared mappings, we should conversely verify that changes get
  10936. propagated back to all the places they're supposed to be.
  10937. Grep wants private fixed already mapped.
  10938. The main things grep needs to know about mmap are:
  10939. * does it exist and is it safe to write into the mmap'd area
  10940. * how to use it (BSD variants) */
  10941. #include <fcntl.h>
  10942. #include <sys/mman.h>
  10943. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10944. char *malloc ();
  10945. #endif
  10946. /* This mess was copied from the GNU getpagesize.h. */
  10947. #ifndef HAVE_GETPAGESIZE
  10948. # ifdef _SC_PAGESIZE
  10949. # define getpagesize() sysconf(_SC_PAGESIZE)
  10950. # else /* no _SC_PAGESIZE */
  10951. # ifdef HAVE_SYS_PARAM_H
  10952. # include <sys/param.h>
  10953. # ifdef EXEC_PAGESIZE
  10954. # define getpagesize() EXEC_PAGESIZE
  10955. # else /* no EXEC_PAGESIZE */
  10956. # ifdef NBPG
  10957. # define getpagesize() NBPG * CLSIZE
  10958. # ifndef CLSIZE
  10959. # define CLSIZE 1
  10960. # endif /* no CLSIZE */
  10961. # else /* no NBPG */
  10962. # ifdef NBPC
  10963. # define getpagesize() NBPC
  10964. # else /* no NBPC */
  10965. # ifdef PAGESIZE
  10966. # define getpagesize() PAGESIZE
  10967. # endif /* PAGESIZE */
  10968. # endif /* no NBPC */
  10969. # endif /* no NBPG */
  10970. # endif /* no EXEC_PAGESIZE */
  10971. # else /* no HAVE_SYS_PARAM_H */
  10972. # define getpagesize() 8192 /* punt totally */
  10973. # endif /* no HAVE_SYS_PARAM_H */
  10974. # endif /* no _SC_PAGESIZE */
  10975. #endif /* no HAVE_GETPAGESIZE */
  10976. int
  10977. main ()
  10978. {
  10979. char *data, *data2, *data3;
  10980. const char *cdata2;
  10981. int i, pagesize;
  10982. int fd, fd2;
  10983. pagesize = getpagesize ();
  10984. /* First, make a file with some known garbage in it. */
  10985. data = (char *) malloc (pagesize);
  10986. if (!data)
  10987. return 1;
  10988. for (i = 0; i < pagesize; ++i)
  10989. *(data + i) = rand ();
  10990. umask (0);
  10991. fd = creat ("conftest.mmap", 0600);
  10992. if (fd < 0)
  10993. return 2;
  10994. if (write (fd, data, pagesize) != pagesize)
  10995. return 3;
  10996. close (fd);
  10997. /* Next, check that the tail of a page is zero-filled. File must have
  10998. non-zero length, otherwise we risk SIGBUS for entire page. */
  10999. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11000. if (fd2 < 0)
  11001. return 4;
  11002. cdata2 = "";
  11003. if (write (fd2, cdata2, 1) != 1)
  11004. return 5;
  11005. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11006. if (data2 == MAP_FAILED)
  11007. return 6;
  11008. for (i = 0; i < pagesize; ++i)
  11009. if (*(data2 + i))
  11010. return 7;
  11011. close (fd2);
  11012. if (munmap (data2, pagesize))
  11013. return 8;
  11014. /* Next, try to mmap the file at a fixed address which already has
  11015. something else allocated at it. If we can, also make sure that
  11016. we see the same garbage. */
  11017. fd = open ("conftest.mmap", O_RDWR);
  11018. if (fd < 0)
  11019. return 9;
  11020. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11021. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11022. return 10;
  11023. for (i = 0; i < pagesize; ++i)
  11024. if (*(data + i) != *(data2 + i))
  11025. return 11;
  11026. /* Finally, make sure that changes to the mapped area do not
  11027. percolate back to the file as seen by read(). (This is a bug on
  11028. some variants of i386 svr4.0.) */
  11029. for (i = 0; i < pagesize; ++i)
  11030. *(data2 + i) = *(data2 + i) + 1;
  11031. data3 = (char *) malloc (pagesize);
  11032. if (!data3)
  11033. return 12;
  11034. if (read (fd, data3, pagesize) != pagesize)
  11035. return 13;
  11036. for (i = 0; i < pagesize; ++i)
  11037. if (*(data + i) != *(data3 + i))
  11038. return 14;
  11039. close (fd);
  11040. return 0;
  11041. }
  11042. _ACEOF
  11043. if ac_fn_c_try_run "$LINENO"; then :
  11044. ac_cv_func_mmap_fixed_mapped=yes
  11045. else
  11046. ac_cv_func_mmap_fixed_mapped=no
  11047. fi
  11048. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11049. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11050. fi
  11051. fi
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11053. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11054. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11055. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11056. fi
  11057. rm -f conftest.mmap conftest.txt
  11058. # Needed for BFD capability checks.
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  11060. $as_echo_n "checking for library containing dlsym... " >&6; }
  11061. if ${ac_cv_search_dlsym+:} false; then :
  11062. $as_echo_n "(cached) " >&6
  11063. else
  11064. ac_func_search_save_LIBS=$LIBS
  11065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11066. /* end confdefs.h. */
  11067. /* Override any GCC internal prototype to avoid an error.
  11068. Use char because int might match the return type of a GCC
  11069. builtin and then its argument prototype would still apply. */
  11070. #ifdef __cplusplus
  11071. extern "C"
  11072. #endif
  11073. char dlsym ();
  11074. int
  11075. main ()
  11076. {
  11077. return dlsym ();
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. for ac_lib in '' dl; do
  11083. if test -z "$ac_lib"; then
  11084. ac_res="none required"
  11085. else
  11086. ac_res=-l$ac_lib
  11087. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11088. fi
  11089. if ac_fn_c_try_link "$LINENO"; then :
  11090. ac_cv_search_dlsym=$ac_res
  11091. fi
  11092. rm -f core conftest.err conftest.$ac_objext \
  11093. conftest$ac_exeext
  11094. if ${ac_cv_search_dlsym+:} false; then :
  11095. break
  11096. fi
  11097. done
  11098. if ${ac_cv_search_dlsym+:} false; then :
  11099. else
  11100. ac_cv_search_dlsym=no
  11101. fi
  11102. rm conftest.$ac_ext
  11103. LIBS=$ac_func_search_save_LIBS
  11104. fi
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  11106. $as_echo "$ac_cv_search_dlsym" >&6; }
  11107. ac_res=$ac_cv_search_dlsym
  11108. if test "$ac_res" != no; then :
  11109. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11110. fi
  11111. # Use the system's zlib library.
  11112. zlibdir="-L\$(top_builddir)/../zlib"
  11113. zlibinc="-I\$(top_srcdir)/../zlib"
  11114. # Check whether --with-system-zlib was given.
  11115. if test "${with_system_zlib+set}" = set; then :
  11116. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11117. zlibdir=
  11118. zlibinc=
  11119. fi
  11120. fi
  11121. # Check whether --enable-libctf-hash-debugging was given.
  11122. if test "${enable_libctf_hash_debugging+set}" = set; then :
  11123. enableval=$enable_libctf_hash_debugging;
  11124. case "$enableval" in
  11125. yes|no) ;;
  11126. *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
  11127. esac
  11128. else
  11129. enable_libctf_hash_debugging=no
  11130. fi
  11131. if test "${enable_libctf_hash_debugging}" = yes; then
  11132. $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
  11133. fi
  11134. if test "${enable_libctf_hash_debugging}" = yes; then
  11135. ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
  11136. ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
  11137. else
  11138. ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
  11139. ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
  11140. fi
  11141. # Similar to GDB_AC_CHECK_BFD.
  11142. OLD_CFLAGS=$CFLAGS
  11143. OLD_LDFLAGS=$LDFLAGS
  11144. OLD_LIBS=$LIBS
  11145. # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  11146. # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
  11147. # always want our bfd.
  11148. CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  11149. ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
  11150. LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
  11151. intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  11152. LIBS="-lbfd -liberty -lz $intl $LIBS"
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
  11154. $as_echo_n "checking for ELF support in BFD... " >&6; }
  11155. if ${ac_cv_libctf_bfd_elf+:} false; then :
  11156. $as_echo_n "(cached) " >&6
  11157. else
  11158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11159. /* end confdefs.h. */
  11160. #include <stdlib.h>
  11161. #include <string.h>
  11162. #include "bfd.h"
  11163. #include "elf-bfd.h"
  11164. int
  11165. main ()
  11166. {
  11167. (void) bfd_section_from_elf_index (NULL, 0);
  11168. return 0;
  11169. ;
  11170. return 0;
  11171. }
  11172. _ACEOF
  11173. if ac_fn_c_try_link "$LINENO"; then :
  11174. ac_cv_libctf_bfd_elf=yes
  11175. else
  11176. ac_cv_libctf_bfd_elf=no
  11177. fi
  11178. rm -f core conftest.err conftest.$ac_objext \
  11179. conftest$ac_exeext conftest.$ac_ext
  11180. fi
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
  11182. $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
  11183. CFLAGS=$OLD_CFLAGS
  11184. LDFLAGS=$OLD_LDFLAGS
  11185. LIBS=$OLD_LIBS
  11186. if test $ac_cv_libctf_bfd_elf = yes; then
  11187. $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
  11188. fi
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  11190. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11191. if ${ac_cv_c_bigendian+:} false; then :
  11192. $as_echo_n "(cached) " >&6
  11193. else
  11194. ac_cv_c_bigendian=unknown
  11195. # See if we're dealing with a universal compiler.
  11196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11197. /* end confdefs.h. */
  11198. #ifndef __APPLE_CC__
  11199. not a universal capable compiler
  11200. #endif
  11201. typedef int dummy;
  11202. _ACEOF
  11203. if ac_fn_c_try_compile "$LINENO"; then :
  11204. # Check for potential -arch flags. It is not universal unless
  11205. # there are at least two -arch flags with different values.
  11206. ac_arch=
  11207. ac_prev=
  11208. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  11209. if test -n "$ac_prev"; then
  11210. case $ac_word in
  11211. i?86 | x86_64 | ppc | ppc64)
  11212. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  11213. ac_arch=$ac_word
  11214. else
  11215. ac_cv_c_bigendian=universal
  11216. break
  11217. fi
  11218. ;;
  11219. esac
  11220. ac_prev=
  11221. elif test "x$ac_word" = "x-arch"; then
  11222. ac_prev=arch
  11223. fi
  11224. done
  11225. fi
  11226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11227. if test $ac_cv_c_bigendian = unknown; then
  11228. # See if sys/param.h defines the BYTE_ORDER macro.
  11229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11230. /* end confdefs.h. */
  11231. #include <sys/types.h>
  11232. #include <sys/param.h>
  11233. int
  11234. main ()
  11235. {
  11236. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11237. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11238. && LITTLE_ENDIAN)
  11239. bogus endian macros
  11240. #endif
  11241. ;
  11242. return 0;
  11243. }
  11244. _ACEOF
  11245. if ac_fn_c_try_compile "$LINENO"; then :
  11246. # It does; now see whether it defined to BIG_ENDIAN or not.
  11247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11248. /* end confdefs.h. */
  11249. #include <sys/types.h>
  11250. #include <sys/param.h>
  11251. int
  11252. main ()
  11253. {
  11254. #if BYTE_ORDER != BIG_ENDIAN
  11255. not big endian
  11256. #endif
  11257. ;
  11258. return 0;
  11259. }
  11260. _ACEOF
  11261. if ac_fn_c_try_compile "$LINENO"; then :
  11262. ac_cv_c_bigendian=yes
  11263. else
  11264. ac_cv_c_bigendian=no
  11265. fi
  11266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11267. fi
  11268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11269. fi
  11270. if test $ac_cv_c_bigendian = unknown; then
  11271. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11273. /* end confdefs.h. */
  11274. #include <limits.h>
  11275. int
  11276. main ()
  11277. {
  11278. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11279. bogus endian macros
  11280. #endif
  11281. ;
  11282. return 0;
  11283. }
  11284. _ACEOF
  11285. if ac_fn_c_try_compile "$LINENO"; then :
  11286. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11288. /* end confdefs.h. */
  11289. #include <limits.h>
  11290. int
  11291. main ()
  11292. {
  11293. #ifndef _BIG_ENDIAN
  11294. not big endian
  11295. #endif
  11296. ;
  11297. return 0;
  11298. }
  11299. _ACEOF
  11300. if ac_fn_c_try_compile "$LINENO"; then :
  11301. ac_cv_c_bigendian=yes
  11302. else
  11303. ac_cv_c_bigendian=no
  11304. fi
  11305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11306. fi
  11307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11308. fi
  11309. if test $ac_cv_c_bigendian = unknown; then
  11310. # Compile a test program.
  11311. if test "$cross_compiling" = yes; then :
  11312. # Try to guess by grepping values from an object file.
  11313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11314. /* end confdefs.h. */
  11315. short int ascii_mm[] =
  11316. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11317. short int ascii_ii[] =
  11318. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11319. int use_ascii (int i) {
  11320. return ascii_mm[i] + ascii_ii[i];
  11321. }
  11322. short int ebcdic_ii[] =
  11323. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11324. short int ebcdic_mm[] =
  11325. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11326. int use_ebcdic (int i) {
  11327. return ebcdic_mm[i] + ebcdic_ii[i];
  11328. }
  11329. extern int foo;
  11330. int
  11331. main ()
  11332. {
  11333. return use_ascii (foo) == use_ebcdic (foo);
  11334. ;
  11335. return 0;
  11336. }
  11337. _ACEOF
  11338. if ac_fn_c_try_compile "$LINENO"; then :
  11339. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11340. ac_cv_c_bigendian=yes
  11341. fi
  11342. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11343. if test "$ac_cv_c_bigendian" = unknown; then
  11344. ac_cv_c_bigendian=no
  11345. else
  11346. # finding both strings is unlikely to happen, but who knows?
  11347. ac_cv_c_bigendian=unknown
  11348. fi
  11349. fi
  11350. fi
  11351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11352. else
  11353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11354. /* end confdefs.h. */
  11355. $ac_includes_default
  11356. int
  11357. main ()
  11358. {
  11359. /* Are we little or big endian? From Harbison&Steele. */
  11360. union
  11361. {
  11362. long int l;
  11363. char c[sizeof (long int)];
  11364. } u;
  11365. u.l = 1;
  11366. return u.c[sizeof (long int) - 1] == 1;
  11367. ;
  11368. return 0;
  11369. }
  11370. _ACEOF
  11371. if ac_fn_c_try_run "$LINENO"; then :
  11372. ac_cv_c_bigendian=no
  11373. else
  11374. ac_cv_c_bigendian=yes
  11375. fi
  11376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11377. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11378. fi
  11379. fi
  11380. fi
  11381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  11382. $as_echo "$ac_cv_c_bigendian" >&6; }
  11383. case $ac_cv_c_bigendian in #(
  11384. yes)
  11385. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  11386. ;; #(
  11387. no)
  11388. ;; #(
  11389. universal)
  11390. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  11391. ;; #(
  11392. *)
  11393. as_fn_error $? "unknown endianness
  11394. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  11395. esac
  11396. for ac_header in byteswap.h endian.h
  11397. do :
  11398. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11399. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11400. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11401. cat >>confdefs.h <<_ACEOF
  11402. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11403. _ACEOF
  11404. fi
  11405. done
  11406. for ac_func in pread
  11407. do :
  11408. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  11409. if test "x$ac_cv_func_pread" = xyes; then :
  11410. cat >>confdefs.h <<_ACEOF
  11411. #define HAVE_PREAD 1
  11412. _ACEOF
  11413. fi
  11414. done
  11415. ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
  11416. "
  11417. if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
  11418. ac_have_decl=1
  11419. else
  11420. ac_have_decl=0
  11421. fi
  11422. cat >>confdefs.h <<_ACEOF
  11423. #define HAVE_DECL_BSWAP_16 $ac_have_decl
  11424. _ACEOF
  11425. ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
  11426. "
  11427. if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
  11428. ac_have_decl=1
  11429. else
  11430. ac_have_decl=0
  11431. fi
  11432. cat >>confdefs.h <<_ACEOF
  11433. #define HAVE_DECL_BSWAP_32 $ac_have_decl
  11434. _ACEOF
  11435. ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
  11436. "
  11437. if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
  11438. ac_have_decl=1
  11439. else
  11440. ac_have_decl=0
  11441. fi
  11442. cat >>confdefs.h <<_ACEOF
  11443. #define HAVE_DECL_BSWAP_64 $ac_have_decl
  11444. _ACEOF
  11445. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  11446. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  11447. ac_have_decl=1
  11448. else
  11449. ac_have_decl=0
  11450. fi
  11451. cat >>confdefs.h <<_ACEOF
  11452. #define HAVE_DECL_ASPRINTF $ac_have_decl
  11453. _ACEOF
  11454. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  11455. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  11456. ac_have_decl=1
  11457. else
  11458. ac_have_decl=0
  11459. fi
  11460. cat >>confdefs.h <<_ACEOF
  11461. #define HAVE_DECL_VASPRINTF $ac_have_decl
  11462. _ACEOF
  11463. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11464. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  11465. ac_have_decl=1
  11466. else
  11467. ac_have_decl=0
  11468. fi
  11469. cat >>confdefs.h <<_ACEOF
  11470. #define HAVE_DECL_STPCPY $ac_have_decl
  11471. _ACEOF
  11472. for ac_func in $ac_func_list
  11473. do :
  11474. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11475. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11476. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11477. cat >>confdefs.h <<_ACEOF
  11478. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11479. _ACEOF
  11480. fi
  11481. done
  11482. if test $ac_cv_func_qsort_r = yes; then
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
  11484. $as_echo_n "checking for qsort_r signature... " >&6; }
  11485. if ${ac_cv_libctf_qsort_r_signature+:} false; then :
  11486. $as_echo_n "(cached) " >&6
  11487. else
  11488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11489. /* end confdefs.h. */
  11490. #undef qsort_r
  11491. #include <stdlib.h>
  11492. void qsort_r (void *, size_t, size_t,
  11493. int (*) (void const *, void const *,
  11494. void *),
  11495. void *);
  11496. void (*p) (void *, size_t, size_t,
  11497. int (*) (void const *, void const *,
  11498. void *),
  11499. void *) = qsort_r;
  11500. int
  11501. main ()
  11502. {
  11503. ;
  11504. return 0;
  11505. }
  11506. _ACEOF
  11507. if ac_fn_c_try_link "$LINENO"; then :
  11508. ac_cv_libctf_qsort_r_signature=GNU
  11509. else
  11510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11511. /* end confdefs.h. */
  11512. #undef qsort_r
  11513. #include <stdlib.h>
  11514. void qsort_r (void *, size_t, size_t, void *,
  11515. int (*) (void *,
  11516. void const *,
  11517. void const *));
  11518. void (*p) (void *, size_t, size_t, void *,
  11519. int (*) (void *, void const *,
  11520. void const *)) = qsort_r;
  11521. int
  11522. main ()
  11523. {
  11524. ;
  11525. return 0;
  11526. }
  11527. _ACEOF
  11528. if ac_fn_c_try_link "$LINENO"; then :
  11529. ac_cv_libctf_qsort_r_signature=BSD
  11530. else
  11531. ac_cv_libctf_qsort_r_signature=unknown
  11532. fi
  11533. rm -f core conftest.err conftest.$ac_objext \
  11534. conftest$ac_exeext conftest.$ac_ext
  11535. fi
  11536. rm -f core conftest.err conftest.$ac_objext \
  11537. conftest$ac_exeext conftest.$ac_ext
  11538. fi
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
  11540. $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
  11541. fi
  11542. case x$ac_cv_libctf_qsort_r_signature in
  11543. xGNU)
  11544. $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
  11545. ;;
  11546. xBSD)
  11547. $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
  11548. ;;
  11549. *) ac_cv_libctf_qsort_r_signature=unknown;;
  11550. esac
  11551. if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
  11552. NEED_CTF_QSORT_R_TRUE=
  11553. NEED_CTF_QSORT_R_FALSE='#'
  11554. else
  11555. NEED_CTF_QSORT_R_TRUE='#'
  11556. NEED_CTF_QSORT_R_FALSE=
  11557. fi
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  11559. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  11560. if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
  11561. $as_echo_n "(cached) " >&6
  11562. else
  11563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11564. /* end confdefs.h. */
  11565. #include <fcntl.h>
  11566. #ifndef O_CLOEXEC
  11567. choke me;
  11568. #endif
  11569. int
  11570. main ()
  11571. {
  11572. return O_CLOEXEC;
  11573. ;
  11574. return 0;
  11575. }
  11576. _ACEOF
  11577. if ac_fn_c_try_link "$LINENO"; then :
  11578. ac_cv_libctf_macro_O_CLOEXEC=yes
  11579. else
  11580. ac_cv_libctf_macro_O_CLOEXEC=no
  11581. fi
  11582. rm -f core conftest.err conftest.$ac_objext \
  11583. conftest$ac_exeext conftest.$ac_ext
  11584. fi
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
  11586. $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
  11587. if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
  11588. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  11589. fi
  11590. build_info=
  11591. makeinfo_too_old=
  11592. for ac_prog in makeinfo
  11593. do
  11594. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11595. set dummy $ac_prog; ac_word=$2
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11597. $as_echo_n "checking for $ac_word... " >&6; }
  11598. if ${ac_cv_prog_MAKEINFO+:} false; then :
  11599. $as_echo_n "(cached) " >&6
  11600. else
  11601. if test -n "$MAKEINFO"; then
  11602. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  11603. else
  11604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11605. for as_dir in $PATH
  11606. do
  11607. IFS=$as_save_IFS
  11608. test -z "$as_dir" && as_dir=.
  11609. for ac_exec_ext in '' $ac_executable_extensions; do
  11610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11611. ac_cv_prog_MAKEINFO="$ac_prog"
  11612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11613. break 2
  11614. fi
  11615. done
  11616. done
  11617. IFS=$as_save_IFS
  11618. fi
  11619. fi
  11620. MAKEINFO=$ac_cv_prog_MAKEINFO
  11621. if test -n "$MAKEINFO"; then
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  11623. $as_echo "$MAKEINFO" >&6; }
  11624. else
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11626. $as_echo "no" >&6; }
  11627. fi
  11628. test -n "$MAKEINFO" && break
  11629. done
  11630. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  11631. case " $build_configdirs " in
  11632. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  11633. esac
  11634. # We require texinfo to be 6.3 or later, for a working synindex
  11635. # and validatemenus: otherwise we fall back to /bin/true.
  11636. if ${MAKEINFO} --version \
  11637. | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9][0-9])' >/dev/null 2>&1; then
  11638. build_info=yes
  11639. else
  11640. build_info=
  11641. makeinfo_too_old=t
  11642. fi
  11643. if test -n "$makeinfo_too_old"; then
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  11645. *** Makeinfo is too old. Info documentation will not be built." >&5
  11646. $as_echo "$as_me: WARNING:
  11647. *** Makeinfo is too old. Info documentation will not be built." >&2;}
  11648. fi
  11649. if test "${build_info}" = yes; then
  11650. BUILD_INFO_TRUE=
  11651. BUILD_INFO_FALSE='#'
  11652. else
  11653. BUILD_INFO_TRUE='#'
  11654. BUILD_INFO_FALSE=
  11655. fi
  11656. CTF_LIBADD="-L`pwd`/../libiberty -liberty"
  11657. SHARED_LDFLAGS=
  11658. # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
  11659. if test "$enable_shared" = "yes"; then
  11660. # When building a shared libctf, link against the pic version of libiberty
  11661. # so that apps that use libctf won't need libiberty just to satisfy any
  11662. # libctf references. We can't do that if a pic libiberty is unavailable
  11663. # since including non-pic # code would insert text relocations into libctf.
  11664. # Note that linking against libbfd as we do here, which is itself linked
  11665. # against libiberty, may not satisfy all the libctf libiberty references
  11666. # since libbfd may not pull in the entirety of libiberty.
  11667. # Also, jam libintl into the right place in all of this: after libiberty,
  11668. # which uses it, but before -lcygwin, which it uses.
  11669. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
  11670. if test -n "$x"; then
  11671. CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
  11672. fi
  11673. fi
  11674. CTF_LIBADD="$CTF_LIBADD $LIBINTL"
  11675. if test "$enable_shared" = "yes"; then
  11676. case "${host}" in
  11677. # More hacks to build DLLs on Windows.
  11678. *-*-cygwin*)
  11679. SHARED_LDFLAGS="-no-undefined"
  11680. CTF_LIBADD="$CTF_LIBADD -lcygwin"
  11681. ;;
  11682. esac
  11683. fi
  11684. # Extract the first word of "expect", so it can be a program name with args.
  11685. set dummy expect; ac_word=$2
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11687. $as_echo_n "checking for $ac_word... " >&6; }
  11688. if ${ac_cv_path_EXPECT+:} false; then :
  11689. $as_echo_n "(cached) " >&6
  11690. else
  11691. case $EXPECT in
  11692. [\\/]* | ?:[\\/]*)
  11693. ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
  11694. ;;
  11695. *)
  11696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11697. for as_dir in $PATH
  11698. do
  11699. IFS=$as_save_IFS
  11700. test -z "$as_dir" && as_dir=.
  11701. for ac_exec_ext in '' $ac_executable_extensions; do
  11702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11703. ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
  11704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11705. break 2
  11706. fi
  11707. done
  11708. done
  11709. IFS=$as_save_IFS
  11710. ;;
  11711. esac
  11712. fi
  11713. EXPECT=$ac_cv_path_EXPECT
  11714. if test -n "$EXPECT"; then
  11715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  11716. $as_echo "$EXPECT" >&6; }
  11717. else
  11718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11719. $as_echo "no" >&6; }
  11720. fi
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
  11722. $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
  11723. if ${ac_cv_libctf_tcl_try+:} false; then :
  11724. $as_echo_n "(cached) " >&6
  11725. else
  11726. ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
  11727. if [llength [info commands try]] then { puts yes } else { puts no }
  11728. EOF
  11729. fi`
  11730. fi
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
  11732. $as_echo "$ac_cv_libctf_tcl_try" >&6; }
  11733. if test "${ac_cv_libctf_tcl_try}" = yes; then
  11734. TCL_TRY_TRUE=
  11735. TCL_TRY_FALSE='#'
  11736. else
  11737. TCL_TRY_TRUE='#'
  11738. TCL_TRY_FALSE=
  11739. fi
  11740. # Use a version script, if possible, or an -export-symbols-regex otherwise.
  11741. decommented_version_script=
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
  11743. $as_echo_n "checking for linker versioning flags... " >&6; }
  11744. if ${ac_cv_libctf_version_script+:} false; then :
  11745. $as_echo_n "(cached) " >&6
  11746. else
  11747. echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
  11748. old_LDFLAGS="$LDFLAGS"
  11749. old_CFLAGS="$CFLAGS"
  11750. LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
  11751. CFLAGS="$CFLAGS -fPIC"
  11752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11753. /* end confdefs.h. */
  11754. int ctf_foo (void) { return 0; }
  11755. int main (void) { return ctf_foo(); }
  11756. _ACEOF
  11757. if ac_fn_c_try_link "$LINENO"; then :
  11758. ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
  11759. fi
  11760. rm -f core conftest.err conftest.$ac_objext \
  11761. conftest$ac_exeext conftest.$ac_ext
  11762. LDFLAGS="$old_LDFLAGS"
  11763. if test -z "$ac_cv_libctf_version_script"; then
  11764. LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
  11765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11766. /* end confdefs.h. */
  11767. int ctf_foo (void) { return 0; }
  11768. int main (void) { return ctf_foo(); }
  11769. _ACEOF
  11770. if ac_fn_c_try_link "$LINENO"; then :
  11771. ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
  11772. decommented_version_script=t
  11773. fi
  11774. rm -f core conftest.err conftest.$ac_objext \
  11775. conftest$ac_exeext conftest.$ac_ext
  11776. LDFLAGS="$old_LDFLAGS"
  11777. fi
  11778. CFLAGS="$old_CFLAGS"
  11779. if test -z "$ac_cv_libctf_version_script"; then
  11780. ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
  11781. fi
  11782. rm -f conftest.ver
  11783. fi
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
  11785. $as_echo "$ac_cv_libctf_version_script" >&6; }
  11786. if test -n "$decommented_version_script"; then
  11787. # Solaris's version scripts use shell-style comments rather than the C-style
  11788. # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
  11789. # name on all platforms that support ld -z gnu-version-script.)
  11790. # Also ensure that no symbols exist in the version script for libctf-nobfd.so
  11791. # that do not exist in the shared library itself, since some linkers add such
  11792. # symbols with type NOTYPE.
  11793. /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
  11794. grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
  11795. VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
  11796. VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
  11797. else
  11798. VERSION_FLAGS="$ac_cv_libctf_version_script"
  11799. VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
  11800. fi
  11801. ac_config_files="$ac_config_files Makefile"
  11802. ac_config_headers="$ac_config_headers config.h"
  11803. cat >confcache <<\_ACEOF
  11804. # This file is a shell script that caches the results of configure
  11805. # tests run on this system so they can be shared between configure
  11806. # scripts and configure runs, see configure's option --config-cache.
  11807. # It is not useful on other systems. If it contains results you don't
  11808. # want to keep, you may remove or edit it.
  11809. #
  11810. # config.status only pays attention to the cache file if you give it
  11811. # the --recheck option to rerun configure.
  11812. #
  11813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11815. # following values.
  11816. _ACEOF
  11817. # The following way of writing the cache mishandles newlines in values,
  11818. # but we know of no workaround that is simple, portable, and efficient.
  11819. # So, we kill variables containing newlines.
  11820. # Ultrix sh set writes to stderr and can't be redirected directly,
  11821. # and sets the high bit in the cache file unless we assign to the vars.
  11822. (
  11823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11824. eval ac_val=\$$ac_var
  11825. case $ac_val in #(
  11826. *${as_nl}*)
  11827. case $ac_var in #(
  11828. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11829. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11830. esac
  11831. case $ac_var in #(
  11832. _ | IFS | as_nl) ;; #(
  11833. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11834. *) { eval $ac_var=; unset $ac_var;} ;;
  11835. esac ;;
  11836. esac
  11837. done
  11838. (set) 2>&1 |
  11839. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11840. *${as_nl}ac_space=\ *)
  11841. # `set' does not quote correctly, so add quotes: double-quote
  11842. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11843. sed -n \
  11844. "s/'/'\\\\''/g;
  11845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11846. ;; #(
  11847. *)
  11848. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11849. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11850. ;;
  11851. esac |
  11852. sort
  11853. ) |
  11854. sed '
  11855. /^ac_cv_env_/b end
  11856. t clear
  11857. :clear
  11858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11859. t end
  11860. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11861. :end' >>confcache
  11862. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11863. if test -w "$cache_file"; then
  11864. if test "x$cache_file" != "x/dev/null"; then
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11866. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11867. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11868. cat confcache >"$cache_file"
  11869. else
  11870. case $cache_file in #(
  11871. */* | ?:*)
  11872. mv -f confcache "$cache_file"$$ &&
  11873. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11874. *)
  11875. mv -f confcache "$cache_file" ;;
  11876. esac
  11877. fi
  11878. fi
  11879. else
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11881. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11882. fi
  11883. fi
  11884. rm -f confcache
  11885. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11886. # Let make expand exec_prefix.
  11887. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11888. DEFS=-DHAVE_CONFIG_H
  11889. ac_libobjs=
  11890. ac_ltlibobjs=
  11891. U=
  11892. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11893. # 1. Remove the extension, and $U if already installed.
  11894. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11895. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11896. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11897. # will be set to the directory where LIBOBJS objects are built.
  11898. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11899. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11900. done
  11901. LIBOBJS=$ac_libobjs
  11902. LTLIBOBJS=$ac_ltlibobjs
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11904. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11905. if test -n "$am_sleep_pid"; then
  11906. # Hide warnings about reused PIDs.
  11907. wait $am_sleep_pid 2>/dev/null
  11908. fi
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11910. $as_echo "done" >&6; }
  11911. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11912. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11914. fi
  11915. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11916. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11918. fi
  11919. if test -n "$EXEEXT"; then
  11920. am__EXEEXT_TRUE=
  11921. am__EXEEXT_FALSE='#'
  11922. else
  11923. am__EXEEXT_TRUE='#'
  11924. am__EXEEXT_FALSE=
  11925. fi
  11926. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11927. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11929. fi
  11930. if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
  11931. as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
  11932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11933. fi
  11934. if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
  11935. as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
  11936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11937. fi
  11938. if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
  11939. as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
  11940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11941. fi
  11942. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  11943. as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
  11944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11945. fi
  11946. if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
  11947. as_fn_error $? "conditional \"TCL_TRY\" was never defined.
  11948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11949. fi
  11950. : "${CONFIG_STATUS=./config.status}"
  11951. ac_write_fail=0
  11952. ac_clean_files_save=$ac_clean_files
  11953. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11955. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11956. as_write_fail=0
  11957. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11958. #! $SHELL
  11959. # Generated by $as_me.
  11960. # Run this file to recreate the current configuration.
  11961. # Compiler output produced by configure, useful for debugging
  11962. # configure, is in config.log if it exists.
  11963. debug=false
  11964. ac_cs_recheck=false
  11965. ac_cs_silent=false
  11966. SHELL=\${CONFIG_SHELL-$SHELL}
  11967. export SHELL
  11968. _ASEOF
  11969. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11970. ## -------------------- ##
  11971. ## M4sh Initialization. ##
  11972. ## -------------------- ##
  11973. # Be more Bourne compatible
  11974. DUALCASE=1; export DUALCASE # for MKS sh
  11975. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11976. emulate sh
  11977. NULLCMD=:
  11978. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11979. # is contrary to our usage. Disable this feature.
  11980. alias -g '${1+"$@"}'='"$@"'
  11981. setopt NO_GLOB_SUBST
  11982. else
  11983. case `(set -o) 2>/dev/null` in #(
  11984. *posix*) :
  11985. set -o posix ;; #(
  11986. *) :
  11987. ;;
  11988. esac
  11989. fi
  11990. as_nl='
  11991. '
  11992. export as_nl
  11993. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11994. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11995. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11996. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11997. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11998. # but without wasting forks for bash or zsh.
  11999. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12000. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12001. as_echo='print -r --'
  12002. as_echo_n='print -rn --'
  12003. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12004. as_echo='printf %s\n'
  12005. as_echo_n='printf %s'
  12006. else
  12007. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12008. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12009. as_echo_n='/usr/ucb/echo -n'
  12010. else
  12011. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12012. as_echo_n_body='eval
  12013. arg=$1;
  12014. case $arg in #(
  12015. *"$as_nl"*)
  12016. expr "X$arg" : "X\\(.*\\)$as_nl";
  12017. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12018. esac;
  12019. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12020. '
  12021. export as_echo_n_body
  12022. as_echo_n='sh -c $as_echo_n_body as_echo'
  12023. fi
  12024. export as_echo_body
  12025. as_echo='sh -c $as_echo_body as_echo'
  12026. fi
  12027. # The user is always right.
  12028. if test "${PATH_SEPARATOR+set}" != set; then
  12029. PATH_SEPARATOR=:
  12030. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12031. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12032. PATH_SEPARATOR=';'
  12033. }
  12034. fi
  12035. # IFS
  12036. # We need space, tab and new line, in precisely that order. Quoting is
  12037. # there to prevent editors from complaining about space-tab.
  12038. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12039. # splitting by setting IFS to empty value.)
  12040. IFS=" "" $as_nl"
  12041. # Find who we are. Look in the path if we contain no directory separator.
  12042. as_myself=
  12043. case $0 in #((
  12044. *[\\/]* ) as_myself=$0 ;;
  12045. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12046. for as_dir in $PATH
  12047. do
  12048. IFS=$as_save_IFS
  12049. test -z "$as_dir" && as_dir=.
  12050. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12051. done
  12052. IFS=$as_save_IFS
  12053. ;;
  12054. esac
  12055. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12056. # in which case we are not to be found in the path.
  12057. if test "x$as_myself" = x; then
  12058. as_myself=$0
  12059. fi
  12060. if test ! -f "$as_myself"; then
  12061. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12062. exit 1
  12063. fi
  12064. # Unset variables that we do not need and which cause bugs (e.g. in
  12065. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12066. # suppresses any "Segmentation fault" message there. '((' could
  12067. # trigger a bug in pdksh 5.2.14.
  12068. for as_var in BASH_ENV ENV MAIL MAILPATH
  12069. do eval test x\${$as_var+set} = xset \
  12070. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12071. done
  12072. PS1='$ '
  12073. PS2='> '
  12074. PS4='+ '
  12075. # NLS nuisances.
  12076. LC_ALL=C
  12077. export LC_ALL
  12078. LANGUAGE=C
  12079. export LANGUAGE
  12080. # CDPATH.
  12081. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12082. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12083. # ----------------------------------------
  12084. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12085. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12086. # script with STATUS, using 1 if that was 0.
  12087. as_fn_error ()
  12088. {
  12089. as_status=$1; test $as_status -eq 0 && as_status=1
  12090. if test "$4"; then
  12091. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12092. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12093. fi
  12094. $as_echo "$as_me: error: $2" >&2
  12095. as_fn_exit $as_status
  12096. } # as_fn_error
  12097. # as_fn_set_status STATUS
  12098. # -----------------------
  12099. # Set $? to STATUS, without forking.
  12100. as_fn_set_status ()
  12101. {
  12102. return $1
  12103. } # as_fn_set_status
  12104. # as_fn_exit STATUS
  12105. # -----------------
  12106. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12107. as_fn_exit ()
  12108. {
  12109. set +e
  12110. as_fn_set_status $1
  12111. exit $1
  12112. } # as_fn_exit
  12113. # as_fn_unset VAR
  12114. # ---------------
  12115. # Portably unset VAR.
  12116. as_fn_unset ()
  12117. {
  12118. { eval $1=; unset $1;}
  12119. }
  12120. as_unset=as_fn_unset
  12121. # as_fn_append VAR VALUE
  12122. # ----------------------
  12123. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12124. # advantage of any shell optimizations that allow amortized linear growth over
  12125. # repeated appends, instead of the typical quadratic growth present in naive
  12126. # implementations.
  12127. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12128. eval 'as_fn_append ()
  12129. {
  12130. eval $1+=\$2
  12131. }'
  12132. else
  12133. as_fn_append ()
  12134. {
  12135. eval $1=\$$1\$2
  12136. }
  12137. fi # as_fn_append
  12138. # as_fn_arith ARG...
  12139. # ------------------
  12140. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12141. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12142. # must be portable across $(()) and expr.
  12143. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12144. eval 'as_fn_arith ()
  12145. {
  12146. as_val=$(( $* ))
  12147. }'
  12148. else
  12149. as_fn_arith ()
  12150. {
  12151. as_val=`expr "$@" || test $? -eq 1`
  12152. }
  12153. fi # as_fn_arith
  12154. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12155. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12156. as_expr=expr
  12157. else
  12158. as_expr=false
  12159. fi
  12160. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12161. as_basename=basename
  12162. else
  12163. as_basename=false
  12164. fi
  12165. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12166. as_dirname=dirname
  12167. else
  12168. as_dirname=false
  12169. fi
  12170. as_me=`$as_basename -- "$0" ||
  12171. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12172. X"$0" : 'X\(//\)$' \| \
  12173. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12174. $as_echo X/"$0" |
  12175. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12176. s//\1/
  12177. q
  12178. }
  12179. /^X\/\(\/\/\)$/{
  12180. s//\1/
  12181. q
  12182. }
  12183. /^X\/\(\/\).*/{
  12184. s//\1/
  12185. q
  12186. }
  12187. s/.*/./; q'`
  12188. # Avoid depending upon Character Ranges.
  12189. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12190. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12191. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12192. as_cr_digits='0123456789'
  12193. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12194. ECHO_C= ECHO_N= ECHO_T=
  12195. case `echo -n x` in #(((((
  12196. -n*)
  12197. case `echo 'xy\c'` in
  12198. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12199. xy) ECHO_C='\c';;
  12200. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12201. ECHO_T=' ';;
  12202. esac;;
  12203. *)
  12204. ECHO_N='-n';;
  12205. esac
  12206. rm -f conf$$ conf$$.exe conf$$.file
  12207. if test -d conf$$.dir; then
  12208. rm -f conf$$.dir/conf$$.file
  12209. else
  12210. rm -f conf$$.dir
  12211. mkdir conf$$.dir 2>/dev/null
  12212. fi
  12213. if (echo >conf$$.file) 2>/dev/null; then
  12214. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12215. as_ln_s='ln -s'
  12216. # ... but there are two gotchas:
  12217. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12218. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12219. # In both cases, we have to default to `cp -pR'.
  12220. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12221. as_ln_s='cp -pR'
  12222. elif ln conf$$.file conf$$ 2>/dev/null; then
  12223. as_ln_s=ln
  12224. else
  12225. as_ln_s='cp -pR'
  12226. fi
  12227. else
  12228. as_ln_s='cp -pR'
  12229. fi
  12230. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12231. rmdir conf$$.dir 2>/dev/null
  12232. # as_fn_mkdir_p
  12233. # -------------
  12234. # Create "$as_dir" as a directory, including parents if necessary.
  12235. as_fn_mkdir_p ()
  12236. {
  12237. case $as_dir in #(
  12238. -*) as_dir=./$as_dir;;
  12239. esac
  12240. test -d "$as_dir" || eval $as_mkdir_p || {
  12241. as_dirs=
  12242. while :; do
  12243. case $as_dir in #(
  12244. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12245. *) as_qdir=$as_dir;;
  12246. esac
  12247. as_dirs="'$as_qdir' $as_dirs"
  12248. as_dir=`$as_dirname -- "$as_dir" ||
  12249. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12250. X"$as_dir" : 'X\(//\)[^/]' \| \
  12251. X"$as_dir" : 'X\(//\)$' \| \
  12252. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12253. $as_echo X"$as_dir" |
  12254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12255. s//\1/
  12256. q
  12257. }
  12258. /^X\(\/\/\)[^/].*/{
  12259. s//\1/
  12260. q
  12261. }
  12262. /^X\(\/\/\)$/{
  12263. s//\1/
  12264. q
  12265. }
  12266. /^X\(\/\).*/{
  12267. s//\1/
  12268. q
  12269. }
  12270. s/.*/./; q'`
  12271. test -d "$as_dir" && break
  12272. done
  12273. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12274. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12275. } # as_fn_mkdir_p
  12276. if mkdir -p . 2>/dev/null; then
  12277. as_mkdir_p='mkdir -p "$as_dir"'
  12278. else
  12279. test -d ./-p && rmdir ./-p
  12280. as_mkdir_p=false
  12281. fi
  12282. # as_fn_executable_p FILE
  12283. # -----------------------
  12284. # Test if FILE is an executable regular file.
  12285. as_fn_executable_p ()
  12286. {
  12287. test -f "$1" && test -x "$1"
  12288. } # as_fn_executable_p
  12289. as_test_x='test -x'
  12290. as_executable_p=as_fn_executable_p
  12291. # Sed expression to map a string onto a valid CPP name.
  12292. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12293. # Sed expression to map a string onto a valid variable name.
  12294. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12295. exec 6>&1
  12296. ## ----------------------------------- ##
  12297. ## Main body of $CONFIG_STATUS script. ##
  12298. ## ----------------------------------- ##
  12299. _ASEOF
  12300. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12302. # Save the log message, to keep $0 and so on meaningful, and to
  12303. # report actual input values of CONFIG_FILES etc. instead of their
  12304. # values after options handling.
  12305. ac_log="
  12306. This file was extended by libctf $as_me 1.2.0, which was
  12307. generated by GNU Autoconf 2.69. Invocation command line was
  12308. CONFIG_FILES = $CONFIG_FILES
  12309. CONFIG_HEADERS = $CONFIG_HEADERS
  12310. CONFIG_LINKS = $CONFIG_LINKS
  12311. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12312. $ $0 $@
  12313. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12314. "
  12315. _ACEOF
  12316. case $ac_config_files in *"
  12317. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12318. esac
  12319. case $ac_config_headers in *"
  12320. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12321. esac
  12322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12323. # Files that config.status was made for.
  12324. config_files="$ac_config_files"
  12325. config_headers="$ac_config_headers"
  12326. config_commands="$ac_config_commands"
  12327. _ACEOF
  12328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12329. ac_cs_usage="\
  12330. \`$as_me' instantiates files and other configuration actions
  12331. from templates according to the current configuration. Unless the files
  12332. and actions are specified as TAGs, all are instantiated by default.
  12333. Usage: $0 [OPTION]... [TAG]...
  12334. -h, --help print this help, then exit
  12335. -V, --version print version number and configuration settings, then exit
  12336. --config print configuration, then exit
  12337. -q, --quiet, --silent
  12338. do not print progress messages
  12339. -d, --debug don't remove temporary files
  12340. --recheck update $as_me by reconfiguring in the same conditions
  12341. --file=FILE[:TEMPLATE]
  12342. instantiate the configuration file FILE
  12343. --header=FILE[:TEMPLATE]
  12344. instantiate the configuration header FILE
  12345. Configuration files:
  12346. $config_files
  12347. Configuration headers:
  12348. $config_headers
  12349. Configuration commands:
  12350. $config_commands
  12351. Report bugs to the package provider."
  12352. _ACEOF
  12353. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12354. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12355. ac_cs_version="\\
  12356. libctf config.status 1.2.0
  12357. configured by $0, generated by GNU Autoconf 2.69,
  12358. with options \\"\$ac_cs_config\\"
  12359. Copyright (C) 2012 Free Software Foundation, Inc.
  12360. This config.status script is free software; the Free Software Foundation
  12361. gives unlimited permission to copy, distribute and modify it."
  12362. ac_pwd='$ac_pwd'
  12363. srcdir='$srcdir'
  12364. INSTALL='$INSTALL'
  12365. MKDIR_P='$MKDIR_P'
  12366. AWK='$AWK'
  12367. test -n "\$AWK" || AWK=awk
  12368. _ACEOF
  12369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12370. # The default lists apply if the user does not specify any file.
  12371. ac_need_defaults=:
  12372. while test $# != 0
  12373. do
  12374. case $1 in
  12375. --*=?*)
  12376. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12377. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12378. ac_shift=:
  12379. ;;
  12380. --*=)
  12381. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12382. ac_optarg=
  12383. ac_shift=:
  12384. ;;
  12385. *)
  12386. ac_option=$1
  12387. ac_optarg=$2
  12388. ac_shift=shift
  12389. ;;
  12390. esac
  12391. case $ac_option in
  12392. # Handling of the options.
  12393. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12394. ac_cs_recheck=: ;;
  12395. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12396. $as_echo "$ac_cs_version"; exit ;;
  12397. --config | --confi | --conf | --con | --co | --c )
  12398. $as_echo "$ac_cs_config"; exit ;;
  12399. --debug | --debu | --deb | --de | --d | -d )
  12400. debug=: ;;
  12401. --file | --fil | --fi | --f )
  12402. $ac_shift
  12403. case $ac_optarg in
  12404. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12405. '') as_fn_error $? "missing file argument" ;;
  12406. esac
  12407. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12408. ac_need_defaults=false;;
  12409. --header | --heade | --head | --hea )
  12410. $ac_shift
  12411. case $ac_optarg in
  12412. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12413. esac
  12414. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12415. ac_need_defaults=false;;
  12416. --he | --h)
  12417. # Conflict between --help and --header
  12418. as_fn_error $? "ambiguous option: \`$1'
  12419. Try \`$0 --help' for more information.";;
  12420. --help | --hel | -h )
  12421. $as_echo "$ac_cs_usage"; exit ;;
  12422. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12423. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12424. ac_cs_silent=: ;;
  12425. # This is an error.
  12426. -*) as_fn_error $? "unrecognized option: \`$1'
  12427. Try \`$0 --help' for more information." ;;
  12428. *) as_fn_append ac_config_targets " $1"
  12429. ac_need_defaults=false ;;
  12430. esac
  12431. shift
  12432. done
  12433. ac_configure_extra_args=
  12434. if $ac_cs_silent; then
  12435. exec 6>/dev/null
  12436. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12437. fi
  12438. _ACEOF
  12439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12440. if \$ac_cs_recheck; then
  12441. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12442. shift
  12443. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12444. CONFIG_SHELL='$SHELL'
  12445. export CONFIG_SHELL
  12446. exec "\$@"
  12447. fi
  12448. _ACEOF
  12449. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12450. exec 5>>config.log
  12451. {
  12452. echo
  12453. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12454. ## Running $as_me. ##
  12455. _ASBOX
  12456. $as_echo "$ac_log"
  12457. } >&5
  12458. _ACEOF
  12459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12460. #
  12461. # INIT-COMMANDS
  12462. #
  12463. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12464. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12465. # if CDPATH is set.
  12466. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12467. sed_quote_subst='$sed_quote_subst'
  12468. double_quote_subst='$double_quote_subst'
  12469. delay_variable_subst='$delay_variable_subst'
  12470. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12471. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12472. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12473. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12474. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12475. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12476. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12477. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12478. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12479. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12480. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12481. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12482. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12483. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12484. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12485. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12486. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12487. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12488. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12489. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12490. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12491. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12492. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12493. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12494. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12495. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12496. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12497. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12498. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12499. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12500. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12501. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12502. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12503. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12504. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12505. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12506. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12507. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12508. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12509. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12510. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12511. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12512. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12513. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12514. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12515. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12516. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12517. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12518. 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"`'
  12519. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12520. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12521. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12522. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12523. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12524. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12525. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12526. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12527. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12528. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12529. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12530. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12531. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12532. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12533. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12534. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12535. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12536. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12537. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12538. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12539. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12540. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12541. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12542. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12543. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12544. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12545. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12546. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12547. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12548. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12549. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12550. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12551. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12552. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12553. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12554. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12555. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12556. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12557. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12558. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12559. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12560. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12561. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12562. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12563. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12564. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12565. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12566. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12567. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12568. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12569. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12570. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12571. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12572. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12573. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12574. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12575. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12576. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12577. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12578. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12579. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12580. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12581. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12582. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12583. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12584. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12585. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12586. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12587. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12588. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12589. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12590. LTCC='$LTCC'
  12591. LTCFLAGS='$LTCFLAGS'
  12592. compiler='$compiler_DEFAULT'
  12593. # A function that is used when there is no print builtin or printf.
  12594. func_fallback_echo ()
  12595. {
  12596. eval 'cat <<_LTECHO_EOF
  12597. \$1
  12598. _LTECHO_EOF'
  12599. }
  12600. # Quote evaled strings.
  12601. for var in SHELL \
  12602. ECHO \
  12603. SED \
  12604. GREP \
  12605. EGREP \
  12606. FGREP \
  12607. LD \
  12608. NM \
  12609. LN_S \
  12610. lt_SP2NL \
  12611. lt_NL2SP \
  12612. reload_flag \
  12613. OBJDUMP \
  12614. deplibs_check_method \
  12615. file_magic_cmd \
  12616. AR \
  12617. AR_FLAGS \
  12618. STRIP \
  12619. RANLIB \
  12620. CC \
  12621. CFLAGS \
  12622. compiler \
  12623. lt_cv_sys_global_symbol_pipe \
  12624. lt_cv_sys_global_symbol_to_cdecl \
  12625. lt_cv_sys_global_symbol_to_c_name_address \
  12626. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12627. lt_prog_compiler_no_builtin_flag \
  12628. lt_prog_compiler_wl \
  12629. lt_prog_compiler_pic \
  12630. lt_prog_compiler_static \
  12631. lt_cv_prog_compiler_c_o \
  12632. need_locks \
  12633. DSYMUTIL \
  12634. NMEDIT \
  12635. LIPO \
  12636. OTOOL \
  12637. OTOOL64 \
  12638. shrext_cmds \
  12639. export_dynamic_flag_spec \
  12640. whole_archive_flag_spec \
  12641. compiler_needs_object \
  12642. with_gnu_ld \
  12643. allow_undefined_flag \
  12644. no_undefined_flag \
  12645. hardcode_libdir_flag_spec \
  12646. hardcode_libdir_flag_spec_ld \
  12647. hardcode_libdir_separator \
  12648. fix_srcfile_path \
  12649. exclude_expsyms \
  12650. include_expsyms \
  12651. file_list_spec \
  12652. variables_saved_for_relink \
  12653. libname_spec \
  12654. library_names_spec \
  12655. soname_spec \
  12656. install_override_mode \
  12657. finish_eval \
  12658. old_striplib \
  12659. striplib; do
  12660. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12661. *[\\\\\\\`\\"\\\$]*)
  12662. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12663. ;;
  12664. *)
  12665. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12666. ;;
  12667. esac
  12668. done
  12669. # Double-quote double-evaled strings.
  12670. for var in reload_cmds \
  12671. old_postinstall_cmds \
  12672. old_postuninstall_cmds \
  12673. old_archive_cmds \
  12674. extract_expsyms_cmds \
  12675. old_archive_from_new_cmds \
  12676. old_archive_from_expsyms_cmds \
  12677. archive_cmds \
  12678. archive_expsym_cmds \
  12679. module_cmds \
  12680. module_expsym_cmds \
  12681. export_symbols_cmds \
  12682. prelink_cmds \
  12683. postinstall_cmds \
  12684. postuninstall_cmds \
  12685. finish_cmds \
  12686. sys_lib_search_path_spec \
  12687. sys_lib_dlsearch_path_spec; do
  12688. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12689. *[\\\\\\\`\\"\\\$]*)
  12690. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12691. ;;
  12692. *)
  12693. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12694. ;;
  12695. esac
  12696. done
  12697. ac_aux_dir='$ac_aux_dir'
  12698. xsi_shell='$xsi_shell'
  12699. lt_shell_append='$lt_shell_append'
  12700. # See if we are running on zsh, and set the options which allow our
  12701. # commands through without removal of \ escapes INIT.
  12702. if test -n "\${ZSH_VERSION+set}" ; then
  12703. setopt NO_GLOB_SUBST
  12704. fi
  12705. PACKAGE='$PACKAGE'
  12706. VERSION='$VERSION'
  12707. TIMESTAMP='$TIMESTAMP'
  12708. RM='$RM'
  12709. ofile='$ofile'
  12710. _ACEOF
  12711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12712. # Handling of arguments.
  12713. for ac_config_target in $ac_config_targets
  12714. do
  12715. case $ac_config_target in
  12716. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12717. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12718. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12719. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12720. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12721. esac
  12722. done
  12723. # If the user did not use the arguments to specify the items to instantiate,
  12724. # then the envvar interface is used. Set only those that are not.
  12725. # We use the long form for the default assignment because of an extremely
  12726. # bizarre bug on SunOS 4.1.3.
  12727. if $ac_need_defaults; then
  12728. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12729. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12730. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12731. fi
  12732. # Have a temporary directory for convenience. Make it in the build tree
  12733. # simply because there is no reason against having it here, and in addition,
  12734. # creating and moving files from /tmp can sometimes cause problems.
  12735. # Hook for its removal unless debugging.
  12736. # Note that there is a small window in which the directory will not be cleaned:
  12737. # after its creation but before its name has been assigned to `$tmp'.
  12738. $debug ||
  12739. {
  12740. tmp= ac_tmp=
  12741. trap 'exit_status=$?
  12742. : "${ac_tmp:=$tmp}"
  12743. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12744. ' 0
  12745. trap 'as_fn_exit 1' 1 2 13 15
  12746. }
  12747. # Create a (secure) tmp directory for tmp files.
  12748. {
  12749. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12750. test -d "$tmp"
  12751. } ||
  12752. {
  12753. tmp=./conf$$-$RANDOM
  12754. (umask 077 && mkdir "$tmp")
  12755. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12756. ac_tmp=$tmp
  12757. # Set up the scripts for CONFIG_FILES section.
  12758. # No need to generate them if there are no CONFIG_FILES.
  12759. # This happens for instance with `./config.status config.h'.
  12760. if test -n "$CONFIG_FILES"; then
  12761. ac_cr=`echo X | tr X '\015'`
  12762. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12763. # But we know of no other shell where ac_cr would be empty at this
  12764. # point, so we can use a bashism as a fallback.
  12765. if test "x$ac_cr" = x; then
  12766. eval ac_cr=\$\'\\r\'
  12767. fi
  12768. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12769. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12770. ac_cs_awk_cr='\\r'
  12771. else
  12772. ac_cs_awk_cr=$ac_cr
  12773. fi
  12774. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12775. _ACEOF
  12776. {
  12777. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12778. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12779. echo "_ACEOF"
  12780. } >conf$$subs.sh ||
  12781. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12782. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12783. ac_delim='%!_!# '
  12784. for ac_last_try in false false false false false :; do
  12785. . ./conf$$subs.sh ||
  12786. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12787. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12788. if test $ac_delim_n = $ac_delim_num; then
  12789. break
  12790. elif $ac_last_try; then
  12791. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12792. else
  12793. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12794. fi
  12795. done
  12796. rm -f conf$$subs.sh
  12797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12798. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12799. _ACEOF
  12800. sed -n '
  12801. h
  12802. s/^/S["/; s/!.*/"]=/
  12803. p
  12804. g
  12805. s/^[^!]*!//
  12806. :repl
  12807. t repl
  12808. s/'"$ac_delim"'$//
  12809. t delim
  12810. :nl
  12811. h
  12812. s/\(.\{148\}\)..*/\1/
  12813. t more1
  12814. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12815. p
  12816. n
  12817. b repl
  12818. :more1
  12819. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12820. p
  12821. g
  12822. s/.\{148\}//
  12823. t nl
  12824. :delim
  12825. h
  12826. s/\(.\{148\}\)..*/\1/
  12827. t more2
  12828. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12829. p
  12830. b
  12831. :more2
  12832. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12833. p
  12834. g
  12835. s/.\{148\}//
  12836. t delim
  12837. ' <conf$$subs.awk | sed '
  12838. /^[^""]/{
  12839. N
  12840. s/\n//
  12841. }
  12842. ' >>$CONFIG_STATUS || ac_write_fail=1
  12843. rm -f conf$$subs.awk
  12844. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12845. _ACAWK
  12846. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12847. for (key in S) S_is_set[key] = 1
  12848. FS = ""
  12849. }
  12850. {
  12851. line = $ 0
  12852. nfields = split(line, field, "@")
  12853. substed = 0
  12854. len = length(field[1])
  12855. for (i = 2; i < nfields; i++) {
  12856. key = field[i]
  12857. keylen = length(key)
  12858. if (S_is_set[key]) {
  12859. value = S[key]
  12860. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12861. len += length(value) + length(field[++i])
  12862. substed = 1
  12863. } else
  12864. len += 1 + keylen
  12865. }
  12866. print line
  12867. }
  12868. _ACAWK
  12869. _ACEOF
  12870. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12871. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12872. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12873. else
  12874. cat
  12875. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12876. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12877. _ACEOF
  12878. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12879. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12880. # trailing colons and then remove the whole line if VPATH becomes empty
  12881. # (actually we leave an empty line to preserve line numbers).
  12882. if test "x$srcdir" = x.; then
  12883. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12884. h
  12885. s///
  12886. s/^/:/
  12887. s/[ ]*$/:/
  12888. s/:\$(srcdir):/:/g
  12889. s/:\${srcdir}:/:/g
  12890. s/:@srcdir@:/:/g
  12891. s/^:*//
  12892. s/:*$//
  12893. x
  12894. s/\(=[ ]*\).*/\1/
  12895. G
  12896. s/\n//
  12897. s/^[^=]*=[ ]*$//
  12898. }'
  12899. fi
  12900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12901. fi # test -n "$CONFIG_FILES"
  12902. # Set up the scripts for CONFIG_HEADERS section.
  12903. # No need to generate them if there are no CONFIG_HEADERS.
  12904. # This happens for instance with `./config.status Makefile'.
  12905. if test -n "$CONFIG_HEADERS"; then
  12906. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12907. BEGIN {
  12908. _ACEOF
  12909. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12910. # here-document in config.status, that substitutes the proper values into
  12911. # config.h.in to produce config.h.
  12912. # Create a delimiter string that does not exist in confdefs.h, to ease
  12913. # handling of long lines.
  12914. ac_delim='%!_!# '
  12915. for ac_last_try in false false :; do
  12916. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12917. if test -z "$ac_tt"; then
  12918. break
  12919. elif $ac_last_try; then
  12920. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12921. else
  12922. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12923. fi
  12924. done
  12925. # For the awk script, D is an array of macro values keyed by name,
  12926. # likewise P contains macro parameters if any. Preserve backslash
  12927. # newline sequences.
  12928. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12929. sed -n '
  12930. s/.\{148\}/&'"$ac_delim"'/g
  12931. t rset
  12932. :rset
  12933. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12934. t def
  12935. d
  12936. :def
  12937. s/\\$//
  12938. t bsnl
  12939. s/["\\]/\\&/g
  12940. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12941. D["\1"]=" \3"/p
  12942. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12943. d
  12944. :bsnl
  12945. s/["\\]/\\&/g
  12946. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12947. D["\1"]=" \3\\\\\\n"\\/p
  12948. t cont
  12949. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12950. t cont
  12951. d
  12952. :cont
  12953. n
  12954. s/.\{148\}/&'"$ac_delim"'/g
  12955. t clear
  12956. :clear
  12957. s/\\$//
  12958. t bsnlc
  12959. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12960. d
  12961. :bsnlc
  12962. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12963. b cont
  12964. ' <confdefs.h | sed '
  12965. s/'"$ac_delim"'/"\\\
  12966. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12967. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12968. for (key in D) D_is_set[key] = 1
  12969. FS = ""
  12970. }
  12971. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12972. line = \$ 0
  12973. split(line, arg, " ")
  12974. if (arg[1] == "#") {
  12975. defundef = arg[2]
  12976. mac1 = arg[3]
  12977. } else {
  12978. defundef = substr(arg[1], 2)
  12979. mac1 = arg[2]
  12980. }
  12981. split(mac1, mac2, "(") #)
  12982. macro = mac2[1]
  12983. prefix = substr(line, 1, index(line, defundef) - 1)
  12984. if (D_is_set[macro]) {
  12985. # Preserve the white space surrounding the "#".
  12986. print prefix "define", macro P[macro] D[macro]
  12987. next
  12988. } else {
  12989. # Replace #undef with comments. This is necessary, for example,
  12990. # in the case of _POSIX_SOURCE, which is predefined and required
  12991. # on some systems where configure will not decide to define it.
  12992. if (defundef == "undef") {
  12993. print "/*", prefix defundef, macro, "*/"
  12994. next
  12995. }
  12996. }
  12997. }
  12998. { print }
  12999. _ACAWK
  13000. _ACEOF
  13001. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13002. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13003. fi # test -n "$CONFIG_HEADERS"
  13004. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13005. shift
  13006. for ac_tag
  13007. do
  13008. case $ac_tag in
  13009. :[FHLC]) ac_mode=$ac_tag; continue;;
  13010. esac
  13011. case $ac_mode$ac_tag in
  13012. :[FHL]*:*);;
  13013. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13014. :[FH]-) ac_tag=-:-;;
  13015. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13016. esac
  13017. ac_save_IFS=$IFS
  13018. IFS=:
  13019. set x $ac_tag
  13020. IFS=$ac_save_IFS
  13021. shift
  13022. ac_file=$1
  13023. shift
  13024. case $ac_mode in
  13025. :L) ac_source=$1;;
  13026. :[FH])
  13027. ac_file_inputs=
  13028. for ac_f
  13029. do
  13030. case $ac_f in
  13031. -) ac_f="$ac_tmp/stdin";;
  13032. *) # Look for the file first in the build tree, then in the source tree
  13033. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13034. # because $ac_f cannot contain `:'.
  13035. test -f "$ac_f" ||
  13036. case $ac_f in
  13037. [\\/$]*) false;;
  13038. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13039. esac ||
  13040. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13041. esac
  13042. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13043. as_fn_append ac_file_inputs " '$ac_f'"
  13044. done
  13045. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13046. # use $as_me), people would be surprised to read:
  13047. # /* config.h. Generated by config.status. */
  13048. configure_input='Generated from '`
  13049. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13050. `' by configure.'
  13051. if test x"$ac_file" != x-; then
  13052. configure_input="$ac_file. $configure_input"
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13054. $as_echo "$as_me: creating $ac_file" >&6;}
  13055. fi
  13056. # Neutralize special characters interpreted by sed in replacement strings.
  13057. case $configure_input in #(
  13058. *\&* | *\|* | *\\* )
  13059. ac_sed_conf_input=`$as_echo "$configure_input" |
  13060. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13061. *) ac_sed_conf_input=$configure_input;;
  13062. esac
  13063. case $ac_tag in
  13064. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13065. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13066. esac
  13067. ;;
  13068. esac
  13069. ac_dir=`$as_dirname -- "$ac_file" ||
  13070. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13071. X"$ac_file" : 'X\(//\)[^/]' \| \
  13072. X"$ac_file" : 'X\(//\)$' \| \
  13073. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13074. $as_echo X"$ac_file" |
  13075. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13076. s//\1/
  13077. q
  13078. }
  13079. /^X\(\/\/\)[^/].*/{
  13080. s//\1/
  13081. q
  13082. }
  13083. /^X\(\/\/\)$/{
  13084. s//\1/
  13085. q
  13086. }
  13087. /^X\(\/\).*/{
  13088. s//\1/
  13089. q
  13090. }
  13091. s/.*/./; q'`
  13092. as_dir="$ac_dir"; as_fn_mkdir_p
  13093. ac_builddir=.
  13094. case "$ac_dir" in
  13095. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13096. *)
  13097. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13098. # A ".." for each directory in $ac_dir_suffix.
  13099. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13100. case $ac_top_builddir_sub in
  13101. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13102. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13103. esac ;;
  13104. esac
  13105. ac_abs_top_builddir=$ac_pwd
  13106. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13107. # for backward compatibility:
  13108. ac_top_builddir=$ac_top_build_prefix
  13109. case $srcdir in
  13110. .) # We are building in place.
  13111. ac_srcdir=.
  13112. ac_top_srcdir=$ac_top_builddir_sub
  13113. ac_abs_top_srcdir=$ac_pwd ;;
  13114. [\\/]* | ?:[\\/]* ) # Absolute name.
  13115. ac_srcdir=$srcdir$ac_dir_suffix;
  13116. ac_top_srcdir=$srcdir
  13117. ac_abs_top_srcdir=$srcdir ;;
  13118. *) # Relative name.
  13119. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13120. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13121. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13122. esac
  13123. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13124. case $ac_mode in
  13125. :F)
  13126. #
  13127. # CONFIG_FILE
  13128. #
  13129. case $INSTALL in
  13130. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13131. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13132. esac
  13133. ac_MKDIR_P=$MKDIR_P
  13134. case $MKDIR_P in
  13135. [\\/$]* | ?:[\\/]* ) ;;
  13136. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13137. esac
  13138. _ACEOF
  13139. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13140. # If the template does not know about datarootdir, expand it.
  13141. # FIXME: This hack should be removed a few years after 2.60.
  13142. ac_datarootdir_hack=; ac_datarootdir_seen=
  13143. ac_sed_dataroot='
  13144. /datarootdir/ {
  13145. p
  13146. q
  13147. }
  13148. /@datadir@/p
  13149. /@docdir@/p
  13150. /@infodir@/p
  13151. /@localedir@/p
  13152. /@mandir@/p'
  13153. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13154. *datarootdir*) ac_datarootdir_seen=yes;;
  13155. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13157. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13158. _ACEOF
  13159. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13160. ac_datarootdir_hack='
  13161. s&@datadir@&$datadir&g
  13162. s&@docdir@&$docdir&g
  13163. s&@infodir@&$infodir&g
  13164. s&@localedir@&$localedir&g
  13165. s&@mandir@&$mandir&g
  13166. s&\\\${datarootdir}&$datarootdir&g' ;;
  13167. esac
  13168. _ACEOF
  13169. # Neutralize VPATH when `$srcdir' = `.'.
  13170. # Shell code in configure.ac might set extrasub.
  13171. # FIXME: do we really want to maintain this feature?
  13172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13173. ac_sed_extra="$ac_vpsub
  13174. $extrasub
  13175. _ACEOF
  13176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13177. :t
  13178. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13179. s|@configure_input@|$ac_sed_conf_input|;t t
  13180. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13181. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13182. s&@srcdir@&$ac_srcdir&;t t
  13183. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13184. s&@top_srcdir@&$ac_top_srcdir&;t t
  13185. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13186. s&@builddir@&$ac_builddir&;t t
  13187. s&@abs_builddir@&$ac_abs_builddir&;t t
  13188. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13189. s&@INSTALL@&$ac_INSTALL&;t t
  13190. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13191. $ac_datarootdir_hack
  13192. "
  13193. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13194. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13195. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13196. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13197. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13198. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13200. which seems to be undefined. Please make sure it is defined" >&5
  13201. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13202. which seems to be undefined. Please make sure it is defined" >&2;}
  13203. rm -f "$ac_tmp/stdin"
  13204. case $ac_file in
  13205. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13206. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13207. esac \
  13208. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13209. ;;
  13210. :H)
  13211. #
  13212. # CONFIG_HEADER
  13213. #
  13214. if test x"$ac_file" != x-; then
  13215. {
  13216. $as_echo "/* $configure_input */" \
  13217. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13218. } >"$ac_tmp/config.h" \
  13219. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13220. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13222. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13223. else
  13224. rm -f "$ac_file"
  13225. mv "$ac_tmp/config.h" "$ac_file" \
  13226. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13227. fi
  13228. else
  13229. $as_echo "/* $configure_input */" \
  13230. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13231. || as_fn_error $? "could not create -" "$LINENO" 5
  13232. fi
  13233. # Compute "$ac_file"'s index in $config_headers.
  13234. _am_arg="$ac_file"
  13235. _am_stamp_count=1
  13236. for _am_header in $config_headers :; do
  13237. case $_am_header in
  13238. $_am_arg | $_am_arg:* )
  13239. break ;;
  13240. * )
  13241. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13242. esac
  13243. done
  13244. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13245. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13246. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13247. X"$_am_arg" : 'X\(//\)$' \| \
  13248. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13249. $as_echo X"$_am_arg" |
  13250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13251. s//\1/
  13252. q
  13253. }
  13254. /^X\(\/\/\)[^/].*/{
  13255. s//\1/
  13256. q
  13257. }
  13258. /^X\(\/\/\)$/{
  13259. s//\1/
  13260. q
  13261. }
  13262. /^X\(\/\).*/{
  13263. s//\1/
  13264. q
  13265. }
  13266. s/.*/./; q'`/stamp-h$_am_stamp_count
  13267. ;;
  13268. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13269. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13270. ;;
  13271. esac
  13272. case $ac_file$ac_mode in
  13273. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13274. # Older Autoconf quotes --file arguments for eval, but not when files
  13275. # are listed without --file. Let's play safe and only enable the eval
  13276. # if we detect the quoting.
  13277. case $CONFIG_FILES in
  13278. *\'*) eval set x "$CONFIG_FILES" ;;
  13279. *) set x $CONFIG_FILES ;;
  13280. esac
  13281. shift
  13282. for mf
  13283. do
  13284. # Strip MF so we end up with the name of the file.
  13285. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13286. # Check whether this is an Automake generated Makefile or not.
  13287. # We used to match only the files named 'Makefile.in', but
  13288. # some people rename them; so instead we look at the file content.
  13289. # Grep'ing the first line is not enough: some people post-process
  13290. # each Makefile.in and add a new line on top of each file to say so.
  13291. # Grep'ing the whole file is not good either: AIX grep has a line
  13292. # limit of 2048, but all sed's we know have understand at least 4000.
  13293. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13294. dirpart=`$as_dirname -- "$mf" ||
  13295. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13296. X"$mf" : 'X\(//\)[^/]' \| \
  13297. X"$mf" : 'X\(//\)$' \| \
  13298. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13299. $as_echo X"$mf" |
  13300. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13301. s//\1/
  13302. q
  13303. }
  13304. /^X\(\/\/\)[^/].*/{
  13305. s//\1/
  13306. q
  13307. }
  13308. /^X\(\/\/\)$/{
  13309. s//\1/
  13310. q
  13311. }
  13312. /^X\(\/\).*/{
  13313. s//\1/
  13314. q
  13315. }
  13316. s/.*/./; q'`
  13317. else
  13318. continue
  13319. fi
  13320. # Extract the definition of DEPDIR, am__include, and am__quote
  13321. # from the Makefile without running 'make'.
  13322. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13323. test -z "$DEPDIR" && continue
  13324. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13325. test -z "$am__include" && continue
  13326. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13327. # Find all dependency output files, they are included files with
  13328. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13329. # simplest approach to changing $(DEPDIR) to its actual value in the
  13330. # expansion.
  13331. for file in `sed -n "
  13332. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13333. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13334. # Make sure the directory exists.
  13335. test -f "$dirpart/$file" && continue
  13336. fdir=`$as_dirname -- "$file" ||
  13337. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13338. X"$file" : 'X\(//\)[^/]' \| \
  13339. X"$file" : 'X\(//\)$' \| \
  13340. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13341. $as_echo X"$file" |
  13342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13343. s//\1/
  13344. q
  13345. }
  13346. /^X\(\/\/\)[^/].*/{
  13347. s//\1/
  13348. q
  13349. }
  13350. /^X\(\/\/\)$/{
  13351. s//\1/
  13352. q
  13353. }
  13354. /^X\(\/\).*/{
  13355. s//\1/
  13356. q
  13357. }
  13358. s/.*/./; q'`
  13359. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13360. # echo "creating $dirpart/$file"
  13361. echo '# dummy' > "$dirpart/$file"
  13362. done
  13363. done
  13364. }
  13365. ;;
  13366. "libtool":C)
  13367. # See if we are running on zsh, and set the options which allow our
  13368. # commands through without removal of \ escapes.
  13369. if test -n "${ZSH_VERSION+set}" ; then
  13370. setopt NO_GLOB_SUBST
  13371. fi
  13372. cfgfile="${ofile}T"
  13373. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13374. $RM "$cfgfile"
  13375. cat <<_LT_EOF >> "$cfgfile"
  13376. #! $SHELL
  13377. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13378. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13379. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13380. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13381. #
  13382. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13383. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13384. # Written by Gordon Matzigkeit, 1996
  13385. #
  13386. # This file is part of GNU Libtool.
  13387. #
  13388. # GNU Libtool is free software; you can redistribute it and/or
  13389. # modify it under the terms of the GNU General Public License as
  13390. # published by the Free Software Foundation; either version 2 of
  13391. # the License, or (at your option) any later version.
  13392. #
  13393. # As a special exception to the GNU General Public License,
  13394. # if you distribute this file as part of a program or library that
  13395. # is built using GNU Libtool, you may include this file under the
  13396. # same distribution terms that you use for the rest of that program.
  13397. #
  13398. # GNU Libtool is distributed in the hope that it will be useful,
  13399. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13400. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13401. # GNU General Public License for more details.
  13402. #
  13403. # You should have received a copy of the GNU General Public License
  13404. # along with GNU Libtool; see the file COPYING. If not, a copy
  13405. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13406. # obtained by writing to the Free Software Foundation, Inc.,
  13407. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13408. # The names of the tagged configurations supported by this script.
  13409. available_tags=""
  13410. # ### BEGIN LIBTOOL CONFIG
  13411. # Whether or not to build shared libraries.
  13412. build_libtool_libs=$enable_shared
  13413. # Which release of libtool.m4 was used?
  13414. macro_version=$macro_version
  13415. macro_revision=$macro_revision
  13416. # Whether or not to build static libraries.
  13417. build_old_libs=$enable_static
  13418. # What type of objects to build.
  13419. pic_mode=$pic_mode
  13420. # Whether or not to optimize for fast installation.
  13421. fast_install=$enable_fast_install
  13422. # Shell to use when invoking shell scripts.
  13423. SHELL=$lt_SHELL
  13424. # An echo program that protects backslashes.
  13425. ECHO=$lt_ECHO
  13426. # The host system.
  13427. host_alias=$host_alias
  13428. host=$host
  13429. host_os=$host_os
  13430. # The build system.
  13431. build_alias=$build_alias
  13432. build=$build
  13433. build_os=$build_os
  13434. # A sed program that does not truncate output.
  13435. SED=$lt_SED
  13436. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13437. Xsed="\$SED -e 1s/^X//"
  13438. # A grep program that handles long lines.
  13439. GREP=$lt_GREP
  13440. # An ERE matcher.
  13441. EGREP=$lt_EGREP
  13442. # A literal string matcher.
  13443. FGREP=$lt_FGREP
  13444. # A BSD- or MS-compatible name lister.
  13445. NM=$lt_NM
  13446. # Whether we need soft or hard links.
  13447. LN_S=$lt_LN_S
  13448. # What is the maximum length of a command?
  13449. max_cmd_len=$max_cmd_len
  13450. # Object file suffix (normally "o").
  13451. objext=$ac_objext
  13452. # Executable file suffix (normally "").
  13453. exeext=$exeext
  13454. # whether the shell understands "unset".
  13455. lt_unset=$lt_unset
  13456. # turn spaces into newlines.
  13457. SP2NL=$lt_lt_SP2NL
  13458. # turn newlines into spaces.
  13459. NL2SP=$lt_lt_NL2SP
  13460. # An object symbol dumper.
  13461. OBJDUMP=$lt_OBJDUMP
  13462. # Method to check whether dependent libraries are shared objects.
  13463. deplibs_check_method=$lt_deplibs_check_method
  13464. # Command to use when deplibs_check_method == "file_magic".
  13465. file_magic_cmd=$lt_file_magic_cmd
  13466. # The archiver.
  13467. AR=$lt_AR
  13468. AR_FLAGS=$lt_AR_FLAGS
  13469. # A symbol stripping program.
  13470. STRIP=$lt_STRIP
  13471. # Commands used to install an old-style archive.
  13472. RANLIB=$lt_RANLIB
  13473. old_postinstall_cmds=$lt_old_postinstall_cmds
  13474. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13475. # Whether to use a lock for old archive extraction.
  13476. lock_old_archive_extraction=$lock_old_archive_extraction
  13477. # A C compiler.
  13478. LTCC=$lt_CC
  13479. # LTCC compiler flags.
  13480. LTCFLAGS=$lt_CFLAGS
  13481. # Take the output of nm and produce a listing of raw symbols and C names.
  13482. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13483. # Transform the output of nm in a proper C declaration.
  13484. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13485. # Transform the output of nm in a C name address pair.
  13486. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13487. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13488. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13489. # The name of the directory that contains temporary libtool files.
  13490. objdir=$objdir
  13491. # Used to examine libraries when file_magic_cmd begins with "file".
  13492. MAGIC_CMD=$MAGIC_CMD
  13493. # Must we lock files when doing compilation?
  13494. need_locks=$lt_need_locks
  13495. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13496. DSYMUTIL=$lt_DSYMUTIL
  13497. # Tool to change global to local symbols on Mac OS X.
  13498. NMEDIT=$lt_NMEDIT
  13499. # Tool to manipulate fat objects and archives on Mac OS X.
  13500. LIPO=$lt_LIPO
  13501. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13502. OTOOL=$lt_OTOOL
  13503. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13504. OTOOL64=$lt_OTOOL64
  13505. # Old archive suffix (normally "a").
  13506. libext=$libext
  13507. # Shared library suffix (normally ".so").
  13508. shrext_cmds=$lt_shrext_cmds
  13509. # The commands to extract the exported symbol list from a shared archive.
  13510. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13511. # Variables whose values should be saved in libtool wrapper scripts and
  13512. # restored at link time.
  13513. variables_saved_for_relink=$lt_variables_saved_for_relink
  13514. # Do we need the "lib" prefix for modules?
  13515. need_lib_prefix=$need_lib_prefix
  13516. # Do we need a version for libraries?
  13517. need_version=$need_version
  13518. # Library versioning type.
  13519. version_type=$version_type
  13520. # Shared library runtime path variable.
  13521. runpath_var=$runpath_var
  13522. # Shared library path variable.
  13523. shlibpath_var=$shlibpath_var
  13524. # Is shlibpath searched before the hard-coded library search path?
  13525. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13526. # Format of library name prefix.
  13527. libname_spec=$lt_libname_spec
  13528. # List of archive names. First name is the real one, the rest are links.
  13529. # The last name is the one that the linker finds with -lNAME
  13530. library_names_spec=$lt_library_names_spec
  13531. # The coded name of the library, if different from the real name.
  13532. soname_spec=$lt_soname_spec
  13533. # Permission mode override for installation of shared libraries.
  13534. install_override_mode=$lt_install_override_mode
  13535. # Command to use after installation of a shared archive.
  13536. postinstall_cmds=$lt_postinstall_cmds
  13537. # Command to use after uninstallation of a shared archive.
  13538. postuninstall_cmds=$lt_postuninstall_cmds
  13539. # Commands used to finish a libtool library installation in a directory.
  13540. finish_cmds=$lt_finish_cmds
  13541. # As "finish_cmds", except a single script fragment to be evaled but
  13542. # not shown.
  13543. finish_eval=$lt_finish_eval
  13544. # Whether we should hardcode library paths into libraries.
  13545. hardcode_into_libs=$hardcode_into_libs
  13546. # Compile-time system search path for libraries.
  13547. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13548. # Run-time system search path for libraries.
  13549. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13550. # Whether dlopen is supported.
  13551. dlopen_support=$enable_dlopen
  13552. # Whether dlopen of programs is supported.
  13553. dlopen_self=$enable_dlopen_self
  13554. # Whether dlopen of statically linked programs is supported.
  13555. dlopen_self_static=$enable_dlopen_self_static
  13556. # Commands to strip libraries.
  13557. old_striplib=$lt_old_striplib
  13558. striplib=$lt_striplib
  13559. # The linker used to build libraries.
  13560. LD=$lt_LD
  13561. # How to create reloadable object files.
  13562. reload_flag=$lt_reload_flag
  13563. reload_cmds=$lt_reload_cmds
  13564. # Commands used to build an old-style archive.
  13565. old_archive_cmds=$lt_old_archive_cmds
  13566. # A language specific compiler.
  13567. CC=$lt_compiler
  13568. # Is the compiler the GNU compiler?
  13569. with_gcc=$GCC
  13570. # Compiler flag to turn off builtin functions.
  13571. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13572. # How to pass a linker flag through the compiler.
  13573. wl=$lt_lt_prog_compiler_wl
  13574. # Additional compiler flags for building library objects.
  13575. pic_flag=$lt_lt_prog_compiler_pic
  13576. # Compiler flag to prevent dynamic linking.
  13577. link_static_flag=$lt_lt_prog_compiler_static
  13578. # Does compiler simultaneously support -c and -o options?
  13579. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13580. # Whether or not to add -lc for building shared libraries.
  13581. build_libtool_need_lc=$archive_cmds_need_lc
  13582. # Whether or not to disallow shared libs when runtime libs are static.
  13583. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13584. # Compiler flag to allow reflexive dlopens.
  13585. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13586. # Compiler flag to generate shared objects directly from archives.
  13587. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13588. # Whether the compiler copes with passing no objects directly.
  13589. compiler_needs_object=$lt_compiler_needs_object
  13590. # Create an old-style archive from a shared archive.
  13591. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13592. # Create a temporary old-style archive to link instead of a shared archive.
  13593. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13594. # Commands used to build a shared archive.
  13595. archive_cmds=$lt_archive_cmds
  13596. archive_expsym_cmds=$lt_archive_expsym_cmds
  13597. # Commands used to build a loadable module if different from building
  13598. # a shared archive.
  13599. module_cmds=$lt_module_cmds
  13600. module_expsym_cmds=$lt_module_expsym_cmds
  13601. # Whether we are building with GNU ld or not.
  13602. with_gnu_ld=$lt_with_gnu_ld
  13603. # Flag that allows shared libraries with undefined symbols to be built.
  13604. allow_undefined_flag=$lt_allow_undefined_flag
  13605. # Flag that enforces no undefined symbols.
  13606. no_undefined_flag=$lt_no_undefined_flag
  13607. # Flag to hardcode \$libdir into a binary during linking.
  13608. # This must work even if \$libdir does not exist
  13609. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13610. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13611. # during linking. This must work even if \$libdir does not exist.
  13612. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13613. # Whether we need a single "-rpath" flag with a separated argument.
  13614. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13615. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13616. # DIR into the resulting binary.
  13617. hardcode_direct=$hardcode_direct
  13618. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13619. # DIR into the resulting binary and the resulting library dependency is
  13620. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13621. # library is relocated.
  13622. hardcode_direct_absolute=$hardcode_direct_absolute
  13623. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13624. # into the resulting binary.
  13625. hardcode_minus_L=$hardcode_minus_L
  13626. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13627. # into the resulting binary.
  13628. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13629. # Set to "yes" if building a shared library automatically hardcodes DIR
  13630. # into the library and all subsequent libraries and executables linked
  13631. # against it.
  13632. hardcode_automatic=$hardcode_automatic
  13633. # Set to yes if linker adds runtime paths of dependent libraries
  13634. # to runtime path list.
  13635. inherit_rpath=$inherit_rpath
  13636. # Whether libtool must link a program against all its dependency libraries.
  13637. link_all_deplibs=$link_all_deplibs
  13638. # Fix the shell variable \$srcfile for the compiler.
  13639. fix_srcfile_path=$lt_fix_srcfile_path
  13640. # Set to "yes" if exported symbols are required.
  13641. always_export_symbols=$always_export_symbols
  13642. # The commands to list exported symbols.
  13643. export_symbols_cmds=$lt_export_symbols_cmds
  13644. # Symbols that should not be listed in the preloaded symbols.
  13645. exclude_expsyms=$lt_exclude_expsyms
  13646. # Symbols that must always be exported.
  13647. include_expsyms=$lt_include_expsyms
  13648. # Commands necessary for linking programs (against libraries) with templates.
  13649. prelink_cmds=$lt_prelink_cmds
  13650. # Specify filename containing input files.
  13651. file_list_spec=$lt_file_list_spec
  13652. # How to hardcode a shared library path into an executable.
  13653. hardcode_action=$hardcode_action
  13654. # ### END LIBTOOL CONFIG
  13655. _LT_EOF
  13656. case $host_os in
  13657. aix3*)
  13658. cat <<\_LT_EOF >> "$cfgfile"
  13659. # AIX sometimes has problems with the GCC collect2 program. For some
  13660. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13661. # vanish in a puff of smoke.
  13662. if test "X${COLLECT_NAMES+set}" != Xset; then
  13663. COLLECT_NAMES=
  13664. export COLLECT_NAMES
  13665. fi
  13666. _LT_EOF
  13667. ;;
  13668. esac
  13669. ltmain="$ac_aux_dir/ltmain.sh"
  13670. # We use sed instead of cat because bash on DJGPP gets confused if
  13671. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13672. # text mode, it properly converts lines to CR/LF. This bash problem
  13673. # is reportedly fixed, but why not run on old versions too?
  13674. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13675. || (rm -f "$cfgfile"; exit 1)
  13676. case $xsi_shell in
  13677. yes)
  13678. cat << \_LT_EOF >> "$cfgfile"
  13679. # func_dirname file append nondir_replacement
  13680. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13681. # otherwise set result to NONDIR_REPLACEMENT.
  13682. func_dirname ()
  13683. {
  13684. case ${1} in
  13685. */*) func_dirname_result="${1%/*}${2}" ;;
  13686. * ) func_dirname_result="${3}" ;;
  13687. esac
  13688. }
  13689. # func_basename file
  13690. func_basename ()
  13691. {
  13692. func_basename_result="${1##*/}"
  13693. }
  13694. # func_dirname_and_basename file append nondir_replacement
  13695. # perform func_basename and func_dirname in a single function
  13696. # call:
  13697. # dirname: Compute the dirname of FILE. If nonempty,
  13698. # add APPEND to the result, otherwise set result
  13699. # to NONDIR_REPLACEMENT.
  13700. # value returned in "$func_dirname_result"
  13701. # basename: Compute filename of FILE.
  13702. # value retuned in "$func_basename_result"
  13703. # Implementation must be kept synchronized with func_dirname
  13704. # and func_basename. For efficiency, we do not delegate to
  13705. # those functions but instead duplicate the functionality here.
  13706. func_dirname_and_basename ()
  13707. {
  13708. case ${1} in
  13709. */*) func_dirname_result="${1%/*}${2}" ;;
  13710. * ) func_dirname_result="${3}" ;;
  13711. esac
  13712. func_basename_result="${1##*/}"
  13713. }
  13714. # func_stripname prefix suffix name
  13715. # strip PREFIX and SUFFIX off of NAME.
  13716. # PREFIX and SUFFIX must not contain globbing or regex special
  13717. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13718. # dot (in which case that matches only a dot).
  13719. func_stripname ()
  13720. {
  13721. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13722. # positional parameters, so assign one to ordinary parameter first.
  13723. func_stripname_result=${3}
  13724. func_stripname_result=${func_stripname_result#"${1}"}
  13725. func_stripname_result=${func_stripname_result%"${2}"}
  13726. }
  13727. # func_opt_split
  13728. func_opt_split ()
  13729. {
  13730. func_opt_split_opt=${1%%=*}
  13731. func_opt_split_arg=${1#*=}
  13732. }
  13733. # func_lo2o object
  13734. func_lo2o ()
  13735. {
  13736. case ${1} in
  13737. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13738. *) func_lo2o_result=${1} ;;
  13739. esac
  13740. }
  13741. # func_xform libobj-or-source
  13742. func_xform ()
  13743. {
  13744. func_xform_result=${1%.*}.lo
  13745. }
  13746. # func_arith arithmetic-term...
  13747. func_arith ()
  13748. {
  13749. func_arith_result=$(( $* ))
  13750. }
  13751. # func_len string
  13752. # STRING may not start with a hyphen.
  13753. func_len ()
  13754. {
  13755. func_len_result=${#1}
  13756. }
  13757. _LT_EOF
  13758. ;;
  13759. *) # Bourne compatible functions.
  13760. cat << \_LT_EOF >> "$cfgfile"
  13761. # func_dirname file append nondir_replacement
  13762. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13763. # otherwise set result to NONDIR_REPLACEMENT.
  13764. func_dirname ()
  13765. {
  13766. # Extract subdirectory from the argument.
  13767. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  13768. if test "X$func_dirname_result" = "X${1}"; then
  13769. func_dirname_result="${3}"
  13770. else
  13771. func_dirname_result="$func_dirname_result${2}"
  13772. fi
  13773. }
  13774. # func_basename file
  13775. func_basename ()
  13776. {
  13777. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  13778. }
  13779. # func_stripname prefix suffix name
  13780. # strip PREFIX and SUFFIX off of NAME.
  13781. # PREFIX and SUFFIX must not contain globbing or regex special
  13782. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13783. # dot (in which case that matches only a dot).
  13784. # func_strip_suffix prefix name
  13785. func_stripname ()
  13786. {
  13787. case ${2} in
  13788. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13789. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13790. esac
  13791. }
  13792. # sed scripts:
  13793. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13794. my_sed_long_arg='1s/^-[^=]*=//'
  13795. # func_opt_split
  13796. func_opt_split ()
  13797. {
  13798. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  13799. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  13800. }
  13801. # func_lo2o object
  13802. func_lo2o ()
  13803. {
  13804. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  13805. }
  13806. # func_xform libobj-or-source
  13807. func_xform ()
  13808. {
  13809. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  13810. }
  13811. # func_arith arithmetic-term...
  13812. func_arith ()
  13813. {
  13814. func_arith_result=`expr "$@"`
  13815. }
  13816. # func_len string
  13817. # STRING may not start with a hyphen.
  13818. func_len ()
  13819. {
  13820. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13821. }
  13822. _LT_EOF
  13823. esac
  13824. case $lt_shell_append in
  13825. yes)
  13826. cat << \_LT_EOF >> "$cfgfile"
  13827. # func_append var value
  13828. # Append VALUE to the end of shell variable VAR.
  13829. func_append ()
  13830. {
  13831. eval "$1+=\$2"
  13832. }
  13833. _LT_EOF
  13834. ;;
  13835. *)
  13836. cat << \_LT_EOF >> "$cfgfile"
  13837. # func_append var value
  13838. # Append VALUE to the end of shell variable VAR.
  13839. func_append ()
  13840. {
  13841. eval "$1=\$$1\$2"
  13842. }
  13843. _LT_EOF
  13844. ;;
  13845. esac
  13846. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13847. || (rm -f "$cfgfile"; exit 1)
  13848. mv -f "$cfgfile" "$ofile" ||
  13849. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13850. chmod +x "$ofile"
  13851. ;;
  13852. esac
  13853. done # for ac_tag
  13854. as_fn_exit 0
  13855. _ACEOF
  13856. ac_clean_files=$ac_clean_files_save
  13857. test $ac_write_fail = 0 ||
  13858. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13859. # configure is writing to config.log, and then calls config.status.
  13860. # config.status does its own redirection, appending to config.log.
  13861. # Unfortunately, on DOS this fails, as config.log is still kept open
  13862. # by configure, so config.status won't be able to write to it; its
  13863. # output is simply discarded. So we exec the FD to /dev/null,
  13864. # effectively closing config.log, so it can be properly (re)opened and
  13865. # appended to by config.status. When coming back to configure, we
  13866. # need to make the FD available again.
  13867. if test "$no_create" != yes; then
  13868. ac_cs_success=:
  13869. ac_config_status_args=
  13870. test "$silent" = yes &&
  13871. ac_config_status_args="$ac_config_status_args --quiet"
  13872. exec 5>/dev/null
  13873. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13874. exec 5>>config.log
  13875. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13876. # would make configure fail if this is the last instruction.
  13877. $ac_cs_success || as_fn_exit 1
  13878. fi
  13879. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13881. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13882. fi
  13883. touch config.status.tmp
  13884. if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
  13885. sed '/as_fn_exit 0/i \
  13886. sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
  13887. touch --reference=Makefile Makefile.tmp \
  13888. mv Makefile.tmp Makefile \
  13889. ' config.status > config.status.tmp
  13890. touch --reference=config.status config.status.tmp
  13891. mv config.status.tmp config.status
  13892. chmod +x config.status
  13893. sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
  13894. touch --reference=Makefile Makefile.tmp
  13895. mv Makefile.tmp Makefile
  13896. else
  13897. rm -f config.status.tmp
  13898. fi