configure 430 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for package-unused version-unused.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  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. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='package-unused'
  509. PACKAGE_TARNAME='libbacktrace'
  510. PACKAGE_VERSION='version-unused'
  511. PACKAGE_STRING='package-unused version-unused'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="backtrace.h"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. NATIVE_FALSE
  555. NATIVE_TRUE
  556. BACKTRACE_USES_MALLOC
  557. ALLOC_FILE
  558. VIEW_FILE
  559. BACKTRACE_SUPPORTED
  560. FORMAT_FILE
  561. BACKTRACE_SUPPORTS_THREADS
  562. PIC_FLAG
  563. WARN_FLAGS
  564. EXTRA_FLAGS
  565. BACKTRACE_FILE
  566. OTOOL64
  567. OTOOL
  568. LIPO
  569. NMEDIT
  570. DSYMUTIL
  571. AR
  572. OBJDUMP
  573. LN_S
  574. NM
  575. ac_ct_DUMPBIN
  576. DUMPBIN
  577. LD
  578. FGREP
  579. SED
  580. LIBTOOL
  581. RANLIB
  582. MAINT
  583. MAINTAINER_MODE_FALSE
  584. MAINTAINER_MODE_TRUE
  585. am__untar
  586. am__tar
  587. AMTAR
  588. am__leading_dot
  589. SET_MAKE
  590. AWK
  591. mkdir_p
  592. MKDIR_P
  593. INSTALL_STRIP_PROGRAM
  594. STRIP
  595. install_sh
  596. MAKEINFO
  597. AUTOHEADER
  598. AUTOMAKE
  599. AUTOCONF
  600. ACLOCAL
  601. VERSION
  602. PACKAGE
  603. CYGPATH_W
  604. am__isrc
  605. INSTALL_DATA
  606. INSTALL_SCRIPT
  607. INSTALL_PROGRAM
  608. libtool_VERSION
  609. EGREP
  610. GREP
  611. CPP
  612. OBJEXT
  613. EXEEXT
  614. ac_ct_CC
  615. CPPFLAGS
  616. LDFLAGS
  617. CFLAGS
  618. CC
  619. target_os
  620. target_vendor
  621. target_cpu
  622. target
  623. host_os
  624. host_vendor
  625. host_cpu
  626. host
  627. build_os
  628. build_vendor
  629. build_cpu
  630. build
  631. multi_basedir
  632. target_alias
  633. host_alias
  634. build_alias
  635. LIBS
  636. ECHO_T
  637. ECHO_N
  638. ECHO_C
  639. DEFS
  640. mandir
  641. localedir
  642. libdir
  643. psdir
  644. pdfdir
  645. dvidir
  646. htmldir
  647. infodir
  648. docdir
  649. oldincludedir
  650. includedir
  651. localstatedir
  652. sharedstatedir
  653. sysconfdir
  654. datadir
  655. datarootdir
  656. libexecdir
  657. sbindir
  658. bindir
  659. program_transform_name
  660. prefix
  661. exec_prefix
  662. PACKAGE_URL
  663. PACKAGE_BUGREPORT
  664. PACKAGE_STRING
  665. PACKAGE_VERSION
  666. PACKAGE_TARNAME
  667. PACKAGE_NAME
  668. PATH_SEPARATOR
  669. SHELL'
  670. ac_subst_files=''
  671. ac_user_opts='
  672. enable_option_checking
  673. enable_multilib
  674. enable_maintainer_mode
  675. with_target_subdir
  676. enable_shared
  677. enable_static
  678. with_pic
  679. enable_fast_install
  680. with_gnu_ld
  681. enable_libtool_lock
  682. with_system_libunwind
  683. enable_host_shared
  684. '
  685. ac_precious_vars='build_alias
  686. host_alias
  687. target_alias
  688. CC
  689. CFLAGS
  690. LDFLAGS
  691. LIBS
  692. CPPFLAGS
  693. CPP'
  694. # Initialize some variables set by options.
  695. ac_init_help=
  696. ac_init_version=false
  697. ac_unrecognized_opts=
  698. ac_unrecognized_sep=
  699. # The variables have the same names as the options, with
  700. # dashes changed to underlines.
  701. cache_file=/dev/null
  702. exec_prefix=NONE
  703. no_create=
  704. no_recursion=
  705. prefix=NONE
  706. program_prefix=NONE
  707. program_suffix=NONE
  708. program_transform_name=s,x,x,
  709. silent=
  710. site=
  711. srcdir=
  712. verbose=
  713. x_includes=NONE
  714. x_libraries=NONE
  715. # Installation directory options.
  716. # These are left unexpanded so users can "make install exec_prefix=/foo"
  717. # and all the variables that are supposed to be based on exec_prefix
  718. # by default will actually change.
  719. # Use braces instead of parens because sh, perl, etc. also accept them.
  720. # (The list follows the same order as the GNU Coding Standards.)
  721. bindir='${exec_prefix}/bin'
  722. sbindir='${exec_prefix}/sbin'
  723. libexecdir='${exec_prefix}/libexec'
  724. datarootdir='${prefix}/share'
  725. datadir='${datarootdir}'
  726. sysconfdir='${prefix}/etc'
  727. sharedstatedir='${prefix}/com'
  728. localstatedir='${prefix}/var'
  729. includedir='${prefix}/include'
  730. oldincludedir='/usr/include'
  731. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  732. infodir='${datarootdir}/info'
  733. htmldir='${docdir}'
  734. dvidir='${docdir}'
  735. pdfdir='${docdir}'
  736. psdir='${docdir}'
  737. libdir='${exec_prefix}/lib'
  738. localedir='${datarootdir}/locale'
  739. mandir='${datarootdir}/man'
  740. ac_prev=
  741. ac_dashdash=
  742. for ac_option
  743. do
  744. # If the previous option needs an argument, assign it.
  745. if test -n "$ac_prev"; then
  746. eval $ac_prev=\$ac_option
  747. ac_prev=
  748. continue
  749. fi
  750. case $ac_option in
  751. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  752. *) ac_optarg=yes ;;
  753. esac
  754. # Accept the important Cygnus configure options, so we can diagnose typos.
  755. case $ac_dashdash$ac_option in
  756. --)
  757. ac_dashdash=yes ;;
  758. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  759. ac_prev=bindir ;;
  760. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  761. bindir=$ac_optarg ;;
  762. -build | --build | --buil | --bui | --bu)
  763. ac_prev=build_alias ;;
  764. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  765. build_alias=$ac_optarg ;;
  766. -cache-file | --cache-file | --cache-fil | --cache-fi \
  767. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  768. ac_prev=cache_file ;;
  769. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  770. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  771. cache_file=$ac_optarg ;;
  772. --config-cache | -C)
  773. cache_file=config.cache ;;
  774. -datadir | --datadir | --datadi | --datad)
  775. ac_prev=datadir ;;
  776. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  777. datadir=$ac_optarg ;;
  778. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  779. | --dataroo | --dataro | --datar)
  780. ac_prev=datarootdir ;;
  781. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  782. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  783. datarootdir=$ac_optarg ;;
  784. -disable-* | --disable-*)
  785. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  786. # Reject names that are not valid shell variable names.
  787. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  788. as_fn_error "invalid feature name: $ac_useropt"
  789. ac_useropt_orig=$ac_useropt
  790. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  791. case $ac_user_opts in
  792. *"
  793. "enable_$ac_useropt"
  794. "*) ;;
  795. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  796. ac_unrecognized_sep=', ';;
  797. esac
  798. eval enable_$ac_useropt=no ;;
  799. -docdir | --docdir | --docdi | --doc | --do)
  800. ac_prev=docdir ;;
  801. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  802. docdir=$ac_optarg ;;
  803. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  804. ac_prev=dvidir ;;
  805. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  806. dvidir=$ac_optarg ;;
  807. -enable-* | --enable-*)
  808. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  809. # Reject names that are not valid shell variable names.
  810. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  811. as_fn_error "invalid feature name: $ac_useropt"
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=\$ac_optarg ;;
  822. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  823. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  824. | --exec | --exe | --ex)
  825. ac_prev=exec_prefix ;;
  826. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  827. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  828. | --exec=* | --exe=* | --ex=*)
  829. exec_prefix=$ac_optarg ;;
  830. -gas | --gas | --ga | --g)
  831. # Obsolete; use --with-gas.
  832. with_gas=yes ;;
  833. -help | --help | --hel | --he | -h)
  834. ac_init_help=long ;;
  835. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  836. ac_init_help=recursive ;;
  837. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  838. ac_init_help=short ;;
  839. -host | --host | --hos | --ho)
  840. ac_prev=host_alias ;;
  841. -host=* | --host=* | --hos=* | --ho=*)
  842. host_alias=$ac_optarg ;;
  843. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  844. ac_prev=htmldir ;;
  845. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  846. | --ht=*)
  847. htmldir=$ac_optarg ;;
  848. -includedir | --includedir | --includedi | --included | --include \
  849. | --includ | --inclu | --incl | --inc)
  850. ac_prev=includedir ;;
  851. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  852. | --includ=* | --inclu=* | --incl=* | --inc=*)
  853. includedir=$ac_optarg ;;
  854. -infodir | --infodir | --infodi | --infod | --info | --inf)
  855. ac_prev=infodir ;;
  856. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  857. infodir=$ac_optarg ;;
  858. -libdir | --libdir | --libdi | --libd)
  859. ac_prev=libdir ;;
  860. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  861. libdir=$ac_optarg ;;
  862. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  863. | --libexe | --libex | --libe)
  864. ac_prev=libexecdir ;;
  865. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  866. | --libexe=* | --libex=* | --libe=*)
  867. libexecdir=$ac_optarg ;;
  868. -localedir | --localedir | --localedi | --localed | --locale)
  869. ac_prev=localedir ;;
  870. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  871. localedir=$ac_optarg ;;
  872. -localstatedir | --localstatedir | --localstatedi | --localstated \
  873. | --localstate | --localstat | --localsta | --localst | --locals)
  874. ac_prev=localstatedir ;;
  875. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  876. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  877. localstatedir=$ac_optarg ;;
  878. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  879. ac_prev=mandir ;;
  880. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  881. mandir=$ac_optarg ;;
  882. -nfp | --nfp | --nf)
  883. # Obsolete; use --without-fp.
  884. with_fp=no ;;
  885. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  886. | --no-cr | --no-c | -n)
  887. no_create=yes ;;
  888. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  889. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  890. no_recursion=yes ;;
  891. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  892. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  893. | --oldin | --oldi | --old | --ol | --o)
  894. ac_prev=oldincludedir ;;
  895. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  896. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  897. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  898. oldincludedir=$ac_optarg ;;
  899. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  900. ac_prev=prefix ;;
  901. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  902. prefix=$ac_optarg ;;
  903. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  904. | --program-pre | --program-pr | --program-p)
  905. ac_prev=program_prefix ;;
  906. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  907. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  908. program_prefix=$ac_optarg ;;
  909. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  910. | --program-suf | --program-su | --program-s)
  911. ac_prev=program_suffix ;;
  912. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  913. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  914. program_suffix=$ac_optarg ;;
  915. -program-transform-name | --program-transform-name \
  916. | --program-transform-nam | --program-transform-na \
  917. | --program-transform-n | --program-transform- \
  918. | --program-transform | --program-transfor \
  919. | --program-transfo | --program-transf \
  920. | --program-trans | --program-tran \
  921. | --progr-tra | --program-tr | --program-t)
  922. ac_prev=program_transform_name ;;
  923. -program-transform-name=* | --program-transform-name=* \
  924. | --program-transform-nam=* | --program-transform-na=* \
  925. | --program-transform-n=* | --program-transform-=* \
  926. | --program-transform=* | --program-transfor=* \
  927. | --program-transfo=* | --program-transf=* \
  928. | --program-trans=* | --program-tran=* \
  929. | --progr-tra=* | --program-tr=* | --program-t=*)
  930. program_transform_name=$ac_optarg ;;
  931. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  932. ac_prev=pdfdir ;;
  933. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  934. pdfdir=$ac_optarg ;;
  935. -psdir | --psdir | --psdi | --psd | --ps)
  936. ac_prev=psdir ;;
  937. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  938. psdir=$ac_optarg ;;
  939. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  940. | -silent | --silent | --silen | --sile | --sil)
  941. silent=yes ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. as_fn_error "invalid package name: $ac_useropt"
  984. ac_useropt_orig=$ac_useropt
  985. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986. case $ac_user_opts in
  987. *"
  988. "with_$ac_useropt"
  989. "*) ;;
  990. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  991. ac_unrecognized_sep=', ';;
  992. esac
  993. eval with_$ac_useropt=\$ac_optarg ;;
  994. -without-* | --without-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error "invalid package name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "with_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval with_$ac_useropt=no ;;
  1009. --x)
  1010. # Obsolete; use --with-x.
  1011. with_x=yes ;;
  1012. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1013. | --x-incl | --x-inc | --x-in | --x-i)
  1014. ac_prev=x_includes ;;
  1015. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1016. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1017. x_includes=$ac_optarg ;;
  1018. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1019. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1020. ac_prev=x_libraries ;;
  1021. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1022. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1023. x_libraries=$ac_optarg ;;
  1024. -*) as_fn_error "unrecognized option: \`$ac_option'
  1025. Try \`$0 --help' for more information."
  1026. ;;
  1027. *=*)
  1028. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1029. # Reject names that are not valid shell variable names.
  1030. case $ac_envvar in #(
  1031. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1032. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1033. esac
  1034. eval $ac_envvar=\$ac_optarg
  1035. export $ac_envvar ;;
  1036. *)
  1037. # FIXME: should be removed in autoconf 3.0.
  1038. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1039. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1041. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1042. ;;
  1043. esac
  1044. done
  1045. if test -n "$ac_prev"; then
  1046. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1047. as_fn_error "missing argument to $ac_option"
  1048. fi
  1049. if test -n "$ac_unrecognized_opts"; then
  1050. case $enable_option_checking in
  1051. no) ;;
  1052. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1053. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1054. esac
  1055. fi
  1056. # Check all directory arguments for consistency.
  1057. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1058. datadir sysconfdir sharedstatedir localstatedir includedir \
  1059. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1060. libdir localedir mandir
  1061. do
  1062. eval ac_val=\$$ac_var
  1063. # Remove trailing slashes.
  1064. case $ac_val in
  1065. */ )
  1066. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1067. eval $ac_var=\$ac_val;;
  1068. esac
  1069. # Be sure to have absolute directory names.
  1070. case $ac_val in
  1071. [\\/$]* | ?:[\\/]* ) continue;;
  1072. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1073. esac
  1074. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1075. done
  1076. # There might be people who depend on the old broken behavior: `$host'
  1077. # used to hold the argument of --host etc.
  1078. # FIXME: To remove some day.
  1079. build=$build_alias
  1080. host=$host_alias
  1081. target=$target_alias
  1082. # FIXME: To remove some day.
  1083. if test "x$host_alias" != x; then
  1084. if test "x$build_alias" = x; then
  1085. cross_compiling=maybe
  1086. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1087. If a cross compiler is detected then cross compile mode will be used." >&2
  1088. elif test "x$build_alias" != "x$host_alias"; then
  1089. cross_compiling=yes
  1090. fi
  1091. fi
  1092. ac_tool_prefix=
  1093. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1094. test "$silent" = yes && exec 6>/dev/null
  1095. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1096. ac_ls_di=`ls -di .` &&
  1097. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1098. as_fn_error "working directory cannot be determined"
  1099. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1100. as_fn_error "pwd does not report name of working directory"
  1101. # Find the source files, if location was not specified.
  1102. if test -z "$srcdir"; then
  1103. ac_srcdir_defaulted=yes
  1104. # Try the directory containing this script, then the parent directory.
  1105. ac_confdir=`$as_dirname -- "$as_myself" ||
  1106. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1107. X"$as_myself" : 'X\(//\)[^/]' \| \
  1108. X"$as_myself" : 'X\(//\)$' \| \
  1109. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1110. $as_echo X"$as_myself" |
  1111. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\/\)[^/].*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. /^X\(\/\/\)$/{
  1120. s//\1/
  1121. q
  1122. }
  1123. /^X\(\/\).*/{
  1124. s//\1/
  1125. q
  1126. }
  1127. s/.*/./; q'`
  1128. srcdir=$ac_confdir
  1129. if test ! -r "$srcdir/$ac_unique_file"; then
  1130. srcdir=..
  1131. fi
  1132. else
  1133. ac_srcdir_defaulted=no
  1134. fi
  1135. if test ! -r "$srcdir/$ac_unique_file"; then
  1136. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1137. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1138. fi
  1139. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1140. ac_abs_confdir=`(
  1141. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1142. pwd)`
  1143. # When building in place, set srcdir=.
  1144. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1145. srcdir=.
  1146. fi
  1147. # Remove unnecessary trailing slashes from srcdir.
  1148. # Double slashes in file names in object file debugging info
  1149. # mess up M-x gdb in Emacs.
  1150. case $srcdir in
  1151. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1152. esac
  1153. for ac_var in $ac_precious_vars; do
  1154. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1155. eval ac_env_${ac_var}_value=\$${ac_var}
  1156. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1157. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1158. done
  1159. #
  1160. # Report the --help message.
  1161. #
  1162. if test "$ac_init_help" = "long"; then
  1163. # Omit some internal or obsolete options to make the list less imposing.
  1164. # This message is too long to be a string in the A/UX 3.1 sh.
  1165. cat <<_ACEOF
  1166. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1167. Usage: $0 [OPTION]... [VAR=VALUE]...
  1168. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1169. VAR=VALUE. See below for descriptions of some of the useful variables.
  1170. Defaults for the options are specified in brackets.
  1171. Configuration:
  1172. -h, --help display this help and exit
  1173. --help=short display options specific to this package
  1174. --help=recursive display the short help of all the included packages
  1175. -V, --version display version information and exit
  1176. -q, --quiet, --silent do not print \`checking...' messages
  1177. --cache-file=FILE cache test results in FILE [disabled]
  1178. -C, --config-cache alias for \`--cache-file=config.cache'
  1179. -n, --no-create do not create output files
  1180. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1181. Installation directories:
  1182. --prefix=PREFIX install architecture-independent files in PREFIX
  1183. [$ac_default_prefix]
  1184. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1185. [PREFIX]
  1186. By default, \`make install' will install all the files in
  1187. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1188. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1189. for instance \`--prefix=\$HOME'.
  1190. For better control, use the options below.
  1191. Fine tuning of the installation directories:
  1192. --bindir=DIR user executables [EPREFIX/bin]
  1193. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1194. --libexecdir=DIR program executables [EPREFIX/libexec]
  1195. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1196. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1197. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1198. --libdir=DIR object code libraries [EPREFIX/lib]
  1199. --includedir=DIR C header files [PREFIX/include]
  1200. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1201. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1202. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1203. --infodir=DIR info documentation [DATAROOTDIR/info]
  1204. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1205. --mandir=DIR man documentation [DATAROOTDIR/man]
  1206. --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
  1207. --htmldir=DIR html documentation [DOCDIR]
  1208. --dvidir=DIR dvi documentation [DOCDIR]
  1209. --pdfdir=DIR pdf documentation [DOCDIR]
  1210. --psdir=DIR ps documentation [DOCDIR]
  1211. _ACEOF
  1212. cat <<\_ACEOF
  1213. Program names:
  1214. --program-prefix=PREFIX prepend PREFIX to installed program names
  1215. --program-suffix=SUFFIX append SUFFIX to installed program names
  1216. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1217. System types:
  1218. --build=BUILD configure for building on BUILD [guessed]
  1219. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1220. --target=TARGET configure for building compilers for TARGET [HOST]
  1221. _ACEOF
  1222. fi
  1223. if test -n "$ac_init_help"; then
  1224. case $ac_init_help in
  1225. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1226. esac
  1227. cat <<\_ACEOF
  1228. Optional Features:
  1229. --disable-option-checking ignore unrecognized --enable/--with options
  1230. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1231. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1232. --enable-multilib build many library versions (default)
  1233. --enable-maintainer-mode enable make rules and dependencies not useful
  1234. (and sometimes confusing) to the casual installer
  1235. --enable-shared[=PKGS] build shared libraries [default=no]
  1236. --enable-static[=PKGS] build static libraries [default=yes]
  1237. --enable-fast-install[=PKGS]
  1238. optimize for fast installation [default=yes]
  1239. --disable-libtool-lock avoid locking (might break parallel builds)
  1240. --enable-host-shared build host code as shared libraries
  1241. Optional Packages:
  1242. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1243. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1244. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1245. --with-pic try to use only PIC/non-PIC objects [default=use
  1246. both]
  1247. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1248. --with-system-libunwind use installed libunwind
  1249. Some influential environment variables:
  1250. CC C compiler command
  1251. CFLAGS C compiler flags
  1252. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1253. nonstandard directory <lib dir>
  1254. LIBS libraries to pass to the linker, e.g. -l<library>
  1255. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1256. you have headers in a nonstandard directory <include dir>
  1257. CPP C preprocessor
  1258. Use these variables to override the choices made by `configure' or to help
  1259. it to find libraries and programs with nonstandard names/locations.
  1260. Report bugs to the package provider.
  1261. _ACEOF
  1262. ac_status=$?
  1263. fi
  1264. if test "$ac_init_help" = "recursive"; then
  1265. # If there are subdirs, report their specific --help.
  1266. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1267. test -d "$ac_dir" ||
  1268. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1269. continue
  1270. ac_builddir=.
  1271. case "$ac_dir" in
  1272. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1273. *)
  1274. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1275. # A ".." for each directory in $ac_dir_suffix.
  1276. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1277. case $ac_top_builddir_sub in
  1278. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1279. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1280. esac ;;
  1281. esac
  1282. ac_abs_top_builddir=$ac_pwd
  1283. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1284. # for backward compatibility:
  1285. ac_top_builddir=$ac_top_build_prefix
  1286. case $srcdir in
  1287. .) # We are building in place.
  1288. ac_srcdir=.
  1289. ac_top_srcdir=$ac_top_builddir_sub
  1290. ac_abs_top_srcdir=$ac_pwd ;;
  1291. [\\/]* | ?:[\\/]* ) # Absolute name.
  1292. ac_srcdir=$srcdir$ac_dir_suffix;
  1293. ac_top_srcdir=$srcdir
  1294. ac_abs_top_srcdir=$srcdir ;;
  1295. *) # Relative name.
  1296. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1297. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1298. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1299. esac
  1300. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1301. cd "$ac_dir" || { ac_status=$?; continue; }
  1302. # Check for guested configure.
  1303. if test -f "$ac_srcdir/configure.gnu"; then
  1304. echo &&
  1305. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1306. elif test -f "$ac_srcdir/configure"; then
  1307. echo &&
  1308. $SHELL "$ac_srcdir/configure" --help=recursive
  1309. else
  1310. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1311. fi || ac_status=$?
  1312. cd "$ac_pwd" || { ac_status=$?; break; }
  1313. done
  1314. fi
  1315. test -n "$ac_init_help" && exit $ac_status
  1316. if $ac_init_version; then
  1317. cat <<\_ACEOF
  1318. package-unused configure version-unused
  1319. generated by GNU Autoconf 2.64
  1320. Copyright (C) 2009 Free Software Foundation, Inc.
  1321. This configure script is free software; the Free Software Foundation
  1322. gives unlimited permission to copy, distribute and modify it.
  1323. _ACEOF
  1324. exit
  1325. fi
  1326. ## ------------------------ ##
  1327. ## Autoconf initialization. ##
  1328. ## ------------------------ ##
  1329. # ac_fn_c_try_compile LINENO
  1330. # --------------------------
  1331. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1332. ac_fn_c_try_compile ()
  1333. {
  1334. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1335. rm -f conftest.$ac_objext
  1336. if { { ac_try="$ac_compile"
  1337. case "(($ac_try" in
  1338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1339. *) ac_try_echo=$ac_try;;
  1340. esac
  1341. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1342. $as_echo "$ac_try_echo"; } >&5
  1343. (eval "$ac_compile") 2>conftest.err
  1344. ac_status=$?
  1345. if test -s conftest.err; then
  1346. grep -v '^ *+' conftest.err >conftest.er1
  1347. cat conftest.er1 >&5
  1348. mv -f conftest.er1 conftest.err
  1349. fi
  1350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1351. test $ac_status = 0; } && {
  1352. test -z "$ac_c_werror_flag" ||
  1353. test ! -s conftest.err
  1354. } && test -s conftest.$ac_objext; then :
  1355. ac_retval=0
  1356. else
  1357. $as_echo "$as_me: failed program was:" >&5
  1358. sed 's/^/| /' conftest.$ac_ext >&5
  1359. ac_retval=1
  1360. fi
  1361. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1362. return $ac_retval
  1363. } # ac_fn_c_try_compile
  1364. # ac_fn_c_try_cpp LINENO
  1365. # ----------------------
  1366. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1367. ac_fn_c_try_cpp ()
  1368. {
  1369. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1370. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1371. case "(($ac_try" in
  1372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1373. *) ac_try_echo=$ac_try;;
  1374. esac
  1375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1376. $as_echo "$ac_try_echo"; } >&5
  1377. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1378. ac_status=$?
  1379. if test -s conftest.err; then
  1380. grep -v '^ *+' conftest.err >conftest.er1
  1381. cat conftest.er1 >&5
  1382. mv -f conftest.er1 conftest.err
  1383. fi
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } >/dev/null && {
  1386. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1387. test ! -s conftest.err
  1388. }; then :
  1389. ac_retval=0
  1390. else
  1391. $as_echo "$as_me: failed program was:" >&5
  1392. sed 's/^/| /' conftest.$ac_ext >&5
  1393. ac_retval=1
  1394. fi
  1395. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1396. return $ac_retval
  1397. } # ac_fn_c_try_cpp
  1398. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1399. # -------------------------------------------------------
  1400. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1401. # the include files in INCLUDES and setting the cache variable VAR
  1402. # accordingly.
  1403. ac_fn_c_check_header_mongrel ()
  1404. {
  1405. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1406. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1408. $as_echo_n "checking for $2... " >&6; }
  1409. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1410. $as_echo_n "(cached) " >&6
  1411. fi
  1412. eval ac_res=\$$3
  1413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1414. $as_echo "$ac_res" >&6; }
  1415. else
  1416. # Is the header compilable?
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1418. $as_echo_n "checking $2 usability... " >&6; }
  1419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1420. /* end confdefs.h. */
  1421. $4
  1422. #include <$2>
  1423. _ACEOF
  1424. if ac_fn_c_try_compile "$LINENO"; then :
  1425. ac_header_compiler=yes
  1426. else
  1427. ac_header_compiler=no
  1428. fi
  1429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1431. $as_echo "$ac_header_compiler" >&6; }
  1432. # Is the header present?
  1433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1434. $as_echo_n "checking $2 presence... " >&6; }
  1435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1436. /* end confdefs.h. */
  1437. #include <$2>
  1438. _ACEOF
  1439. if ac_fn_c_try_cpp "$LINENO"; then :
  1440. ac_header_preproc=yes
  1441. else
  1442. ac_header_preproc=no
  1443. fi
  1444. rm -f conftest.err conftest.$ac_ext
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1446. $as_echo "$ac_header_preproc" >&6; }
  1447. # So? What about this header?
  1448. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1449. yes:no: )
  1450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1451. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1453. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1454. ;;
  1455. no:yes:* )
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1457. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1459. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1461. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1463. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1465. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1466. ;;
  1467. esac
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1469. $as_echo_n "checking for $2... " >&6; }
  1470. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1471. $as_echo_n "(cached) " >&6
  1472. else
  1473. eval "$3=\$ac_header_compiler"
  1474. fi
  1475. eval ac_res=\$$3
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1477. $as_echo "$ac_res" >&6; }
  1478. fi
  1479. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1480. } # ac_fn_c_check_header_mongrel
  1481. # ac_fn_c_try_run LINENO
  1482. # ----------------------
  1483. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1484. # that executables *can* be run.
  1485. ac_fn_c_try_run ()
  1486. {
  1487. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1488. if { { ac_try="$ac_link"
  1489. case "(($ac_try" in
  1490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1491. *) ac_try_echo=$ac_try;;
  1492. esac
  1493. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1494. $as_echo "$ac_try_echo"; } >&5
  1495. (eval "$ac_link") 2>&5
  1496. ac_status=$?
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1499. { { case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_try") 2>&5
  1506. ac_status=$?
  1507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1508. test $ac_status = 0; }; }; then :
  1509. ac_retval=0
  1510. else
  1511. $as_echo "$as_me: program exited with status $ac_status" >&5
  1512. $as_echo "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=$ac_status
  1515. fi
  1516. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1517. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1518. return $ac_retval
  1519. } # ac_fn_c_try_run
  1520. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1521. # -------------------------------------------------------
  1522. # Tests whether HEADER exists and can be compiled using the include files in
  1523. # INCLUDES, setting the cache variable VAR accordingly.
  1524. ac_fn_c_check_header_compile ()
  1525. {
  1526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1528. $as_echo_n "checking for $2... " >&6; }
  1529. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1530. $as_echo_n "(cached) " >&6
  1531. else
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. #include <$2>
  1536. _ACEOF
  1537. if ac_fn_c_try_compile "$LINENO"; then :
  1538. eval "$3=yes"
  1539. else
  1540. eval "$3=no"
  1541. fi
  1542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1543. fi
  1544. eval ac_res=\$$3
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1546. $as_echo "$ac_res" >&6; }
  1547. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1548. } # ac_fn_c_check_header_compile
  1549. # ac_fn_c_try_link LINENO
  1550. # -----------------------
  1551. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1552. ac_fn_c_try_link ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. rm -f conftest.$ac_objext conftest$ac_exeext
  1556. if { { ac_try="$ac_link"
  1557. case "(($ac_try" in
  1558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1559. *) ac_try_echo=$ac_try;;
  1560. esac
  1561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1562. $as_echo "$ac_try_echo"; } >&5
  1563. (eval "$ac_link") 2>conftest.err
  1564. ac_status=$?
  1565. if test -s conftest.err; then
  1566. grep -v '^ *+' conftest.err >conftest.er1
  1567. cat conftest.er1 >&5
  1568. mv -f conftest.er1 conftest.err
  1569. fi
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; } && {
  1572. test -z "$ac_c_werror_flag" ||
  1573. test ! -s conftest.err
  1574. } && test -s conftest$ac_exeext && {
  1575. test "$cross_compiling" = yes ||
  1576. $as_test_x conftest$ac_exeext
  1577. }; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=1
  1583. fi
  1584. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1585. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1586. # interfere with the next link command; also delete a directory that is
  1587. # left behind by Apple's compiler. We do this before executing the actions.
  1588. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1589. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1590. return $ac_retval
  1591. } # ac_fn_c_try_link
  1592. # ac_fn_c_check_func LINENO FUNC VAR
  1593. # ----------------------------------
  1594. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1595. ac_fn_c_check_func ()
  1596. {
  1597. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1599. $as_echo_n "checking for $2... " >&6; }
  1600. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1601. $as_echo_n "(cached) " >&6
  1602. else
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1607. #define $2 innocuous_$2
  1608. /* System header to define __stub macros and hopefully few prototypes,
  1609. which can conflict with char $2 (); below.
  1610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1611. <limits.h> exists even on freestanding compilers. */
  1612. #ifdef __STDC__
  1613. # include <limits.h>
  1614. #else
  1615. # include <assert.h>
  1616. #endif
  1617. #undef $2
  1618. /* Override any GCC internal prototype to avoid an error.
  1619. Use char because int might match the return type of a GCC
  1620. builtin and then its argument prototype would still apply. */
  1621. #ifdef __cplusplus
  1622. extern "C"
  1623. #endif
  1624. char $2 ();
  1625. /* The GNU C library defines this for functions which it implements
  1626. to always fail with ENOSYS. Some functions are actually named
  1627. something starting with __ and the normal name is an alias. */
  1628. #if defined __stub_$2 || defined __stub___$2
  1629. choke me
  1630. #endif
  1631. int
  1632. main ()
  1633. {
  1634. return $2 ();
  1635. ;
  1636. return 0;
  1637. }
  1638. _ACEOF
  1639. if ac_fn_c_try_link "$LINENO"; then :
  1640. eval "$3=yes"
  1641. else
  1642. eval "$3=no"
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext \
  1645. conftest$ac_exeext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1651. } # ac_fn_c_check_func
  1652. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1653. # -------------------------------------------
  1654. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1655. # variable VAR accordingly.
  1656. ac_fn_c_check_type ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. eval "$3=no"
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. $4
  1668. int
  1669. main ()
  1670. {
  1671. if (sizeof ($2))
  1672. return 0;
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. if ac_fn_c_try_compile "$LINENO"; then :
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. $4
  1681. int
  1682. main ()
  1683. {
  1684. if (sizeof (($2)))
  1685. return 0;
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. if ac_fn_c_try_compile "$LINENO"; then :
  1691. else
  1692. eval "$3=yes"
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1695. fi
  1696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1697. fi
  1698. eval ac_res=\$$3
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1700. $as_echo "$ac_res" >&6; }
  1701. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1702. } # ac_fn_c_check_type
  1703. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1704. # --------------------------------------------
  1705. # Tries to find the compile-time value of EXPR in a program that includes
  1706. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1707. # computed
  1708. ac_fn_c_compute_int ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. if test "$cross_compiling" = yes; then
  1712. # Depending upon the size, compute the lo and hi bounds.
  1713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1714. /* end confdefs.h. */
  1715. $4
  1716. int
  1717. main ()
  1718. {
  1719. static int test_array [1 - 2 * !(($2) >= 0)];
  1720. test_array [0] = 0
  1721. ;
  1722. return 0;
  1723. }
  1724. _ACEOF
  1725. if ac_fn_c_try_compile "$LINENO"; then :
  1726. ac_lo=0 ac_mid=0
  1727. while :; do
  1728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1729. /* end confdefs.h. */
  1730. $4
  1731. int
  1732. main ()
  1733. {
  1734. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1735. test_array [0] = 0
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. if ac_fn_c_try_compile "$LINENO"; then :
  1741. ac_hi=$ac_mid; break
  1742. else
  1743. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1744. if test $ac_lo -le $ac_mid; then
  1745. ac_lo= ac_hi=
  1746. break
  1747. fi
  1748. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1749. fi
  1750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1751. done
  1752. else
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. int
  1757. main ()
  1758. {
  1759. static int test_array [1 - 2 * !(($2) < 0)];
  1760. test_array [0] = 0
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. ac_hi=-1 ac_mid=-1
  1767. while :; do
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $4
  1771. int
  1772. main ()
  1773. {
  1774. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1775. test_array [0] = 0
  1776. ;
  1777. return 0;
  1778. }
  1779. _ACEOF
  1780. if ac_fn_c_try_compile "$LINENO"; then :
  1781. ac_lo=$ac_mid; break
  1782. else
  1783. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1784. if test $ac_mid -le $ac_hi; then
  1785. ac_lo= ac_hi=
  1786. break
  1787. fi
  1788. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1789. fi
  1790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1791. done
  1792. else
  1793. ac_lo= ac_hi=
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1796. fi
  1797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1798. # Binary search between lo and hi bounds.
  1799. while test "x$ac_lo" != "x$ac_hi"; do
  1800. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $4
  1804. int
  1805. main ()
  1806. {
  1807. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1808. test_array [0] = 0
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. ac_hi=$ac_mid
  1815. else
  1816. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1819. done
  1820. case $ac_lo in #((
  1821. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1822. '') ac_retval=1 ;;
  1823. esac
  1824. else
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. static long int longval () { return $2; }
  1829. static unsigned long int ulongval () { return $2; }
  1830. #include <stdio.h>
  1831. #include <stdlib.h>
  1832. int
  1833. main ()
  1834. {
  1835. FILE *f = fopen ("conftest.val", "w");
  1836. if (! f)
  1837. return 1;
  1838. if (($2) < 0)
  1839. {
  1840. long int i = longval ();
  1841. if (i != ($2))
  1842. return 1;
  1843. fprintf (f, "%ld", i);
  1844. }
  1845. else
  1846. {
  1847. unsigned long int i = ulongval ();
  1848. if (i != ($2))
  1849. return 1;
  1850. fprintf (f, "%lu", i);
  1851. }
  1852. /* Do not output a trailing newline, as this causes \r\n confusion
  1853. on some platforms. */
  1854. return ferror (f) || fclose (f) != 0;
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_run "$LINENO"; then :
  1860. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1861. else
  1862. ac_retval=1
  1863. fi
  1864. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1865. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1866. rm -f conftest.val
  1867. fi
  1868. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1869. return $ac_retval
  1870. } # ac_fn_c_compute_int
  1871. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1872. # ------------------------------------
  1873. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1874. ac_fn_c_check_decl ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1878. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1880. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1881. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1882. $as_echo_n "(cached) " >&6
  1883. else
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. $4
  1887. int
  1888. main ()
  1889. {
  1890. #ifndef $as_decl_name
  1891. #ifdef __cplusplus
  1892. (void) $as_decl_use;
  1893. #else
  1894. (void) $as_decl_name;
  1895. #endif
  1896. #endif
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"; then :
  1902. eval "$3=yes"
  1903. else
  1904. eval "$3=no"
  1905. fi
  1906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1907. fi
  1908. eval ac_res=\$$3
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1910. $as_echo "$ac_res" >&6; }
  1911. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1912. } # ac_fn_c_check_decl
  1913. cat >config.log <<_ACEOF
  1914. This file contains any messages produced by compilers while
  1915. running configure, to aid debugging if configure makes a mistake.
  1916. It was created by package-unused $as_me version-unused, which was
  1917. generated by GNU Autoconf 2.64. Invocation command line was
  1918. $ $0 $@
  1919. _ACEOF
  1920. exec 5>>config.log
  1921. {
  1922. cat <<_ASUNAME
  1923. ## --------- ##
  1924. ## Platform. ##
  1925. ## --------- ##
  1926. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1927. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1928. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1929. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1930. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1931. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1932. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1933. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1934. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1935. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1936. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1937. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1938. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1939. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1940. _ASUNAME
  1941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1942. for as_dir in $PATH
  1943. do
  1944. IFS=$as_save_IFS
  1945. test -z "$as_dir" && as_dir=.
  1946. $as_echo "PATH: $as_dir"
  1947. done
  1948. IFS=$as_save_IFS
  1949. } >&5
  1950. cat >&5 <<_ACEOF
  1951. ## ----------- ##
  1952. ## Core tests. ##
  1953. ## ----------- ##
  1954. _ACEOF
  1955. # Keep a trace of the command line.
  1956. # Strip out --no-create and --no-recursion so they do not pile up.
  1957. # Strip out --silent because we don't want to record it for future runs.
  1958. # Also quote any args containing shell meta-characters.
  1959. # Make two passes to allow for proper duplicate-argument suppression.
  1960. ac_configure_args=
  1961. ac_configure_args0=
  1962. ac_configure_args1=
  1963. ac_must_keep_next=false
  1964. for ac_pass in 1 2
  1965. do
  1966. for ac_arg
  1967. do
  1968. case $ac_arg in
  1969. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1971. | -silent | --silent | --silen | --sile | --sil)
  1972. continue ;;
  1973. *\'*)
  1974. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1975. esac
  1976. case $ac_pass in
  1977. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1978. 2)
  1979. as_fn_append ac_configure_args1 " '$ac_arg'"
  1980. if test $ac_must_keep_next = true; then
  1981. ac_must_keep_next=false # Got value, back to normal.
  1982. else
  1983. case $ac_arg in
  1984. *=* | --config-cache | -C | -disable-* | --disable-* \
  1985. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1986. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1987. | -with-* | --with-* | -without-* | --without-* | --x)
  1988. case "$ac_configure_args0 " in
  1989. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1990. esac
  1991. ;;
  1992. -* ) ac_must_keep_next=true ;;
  1993. esac
  1994. fi
  1995. as_fn_append ac_configure_args " '$ac_arg'"
  1996. ;;
  1997. esac
  1998. done
  1999. done
  2000. { ac_configure_args0=; unset ac_configure_args0;}
  2001. { ac_configure_args1=; unset ac_configure_args1;}
  2002. # When interrupted or exit'd, cleanup temporary files, and complete
  2003. # config.log. We remove comments because anyway the quotes in there
  2004. # would cause problems or look ugly.
  2005. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2006. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2007. trap 'exit_status=$?
  2008. # Save into config.log some information that might help in debugging.
  2009. {
  2010. echo
  2011. cat <<\_ASBOX
  2012. ## ---------------- ##
  2013. ## Cache variables. ##
  2014. ## ---------------- ##
  2015. _ASBOX
  2016. echo
  2017. # The following way of writing the cache mishandles newlines in values,
  2018. (
  2019. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2020. eval ac_val=\$$ac_var
  2021. case $ac_val in #(
  2022. *${as_nl}*)
  2023. case $ac_var in #(
  2024. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2025. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2026. esac
  2027. case $ac_var in #(
  2028. _ | IFS | as_nl) ;; #(
  2029. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2030. *) { eval $ac_var=; unset $ac_var;} ;;
  2031. esac ;;
  2032. esac
  2033. done
  2034. (set) 2>&1 |
  2035. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2036. *${as_nl}ac_space=\ *)
  2037. sed -n \
  2038. "s/'\''/'\''\\\\'\'''\''/g;
  2039. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2040. ;; #(
  2041. *)
  2042. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2043. ;;
  2044. esac |
  2045. sort
  2046. )
  2047. echo
  2048. cat <<\_ASBOX
  2049. ## ----------------- ##
  2050. ## Output variables. ##
  2051. ## ----------------- ##
  2052. _ASBOX
  2053. echo
  2054. for ac_var in $ac_subst_vars
  2055. do
  2056. eval ac_val=\$$ac_var
  2057. case $ac_val in
  2058. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2059. esac
  2060. $as_echo "$ac_var='\''$ac_val'\''"
  2061. done | sort
  2062. echo
  2063. if test -n "$ac_subst_files"; then
  2064. cat <<\_ASBOX
  2065. ## ------------------- ##
  2066. ## File substitutions. ##
  2067. ## ------------------- ##
  2068. _ASBOX
  2069. echo
  2070. for ac_var in $ac_subst_files
  2071. do
  2072. eval ac_val=\$$ac_var
  2073. case $ac_val in
  2074. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2075. esac
  2076. $as_echo "$ac_var='\''$ac_val'\''"
  2077. done | sort
  2078. echo
  2079. fi
  2080. if test -s confdefs.h; then
  2081. cat <<\_ASBOX
  2082. ## ----------- ##
  2083. ## confdefs.h. ##
  2084. ## ----------- ##
  2085. _ASBOX
  2086. echo
  2087. cat confdefs.h
  2088. echo
  2089. fi
  2090. test "$ac_signal" != 0 &&
  2091. $as_echo "$as_me: caught signal $ac_signal"
  2092. $as_echo "$as_me: exit $exit_status"
  2093. } >&5
  2094. rm -f core *.core core.conftest.* &&
  2095. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2096. exit $exit_status
  2097. ' 0
  2098. for ac_signal in 1 2 13 15; do
  2099. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2100. done
  2101. ac_signal=0
  2102. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2103. rm -f -r conftest* confdefs.h
  2104. $as_echo "/* confdefs.h */" > confdefs.h
  2105. # Predefined preprocessor variables.
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_NAME "$PACKAGE_NAME"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_STRING "$PACKAGE_STRING"
  2117. _ACEOF
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2120. _ACEOF
  2121. cat >>confdefs.h <<_ACEOF
  2122. #define PACKAGE_URL "$PACKAGE_URL"
  2123. _ACEOF
  2124. # Let the site file select an alternate cache file if it wants to.
  2125. # Prefer an explicitly selected file to automatically selected ones.
  2126. ac_site_file1=NONE
  2127. ac_site_file2=NONE
  2128. if test -n "$CONFIG_SITE"; then
  2129. ac_site_file1=$CONFIG_SITE
  2130. elif test "x$prefix" != xNONE; then
  2131. ac_site_file1=$prefix/share/config.site
  2132. ac_site_file2=$prefix/etc/config.site
  2133. else
  2134. ac_site_file1=$ac_default_prefix/share/config.site
  2135. ac_site_file2=$ac_default_prefix/etc/config.site
  2136. fi
  2137. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2138. do
  2139. test "x$ac_site_file" = xNONE && continue
  2140. if test -r "$ac_site_file"; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2142. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2143. sed 's/^/| /' "$ac_site_file" >&5
  2144. . "$ac_site_file"
  2145. fi
  2146. done
  2147. if test -r "$cache_file"; then
  2148. # Some versions of bash will fail to source /dev/null (special
  2149. # files actually), so we avoid doing that.
  2150. if test -f "$cache_file"; then
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2152. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2153. case $cache_file in
  2154. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2155. *) . "./$cache_file";;
  2156. esac
  2157. fi
  2158. else
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2160. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2161. >$cache_file
  2162. fi
  2163. # Check that the precious variables saved in the cache have kept the same
  2164. # value.
  2165. ac_cache_corrupted=false
  2166. for ac_var in $ac_precious_vars; do
  2167. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2168. eval ac_new_set=\$ac_env_${ac_var}_set
  2169. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2170. eval ac_new_val=\$ac_env_${ac_var}_value
  2171. case $ac_old_set,$ac_new_set in
  2172. set,)
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2174. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2175. ac_cache_corrupted=: ;;
  2176. ,set)
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2178. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2179. ac_cache_corrupted=: ;;
  2180. ,);;
  2181. *)
  2182. if test "x$ac_old_val" != "x$ac_new_val"; then
  2183. # differences in whitespace do not lead to failure.
  2184. ac_old_val_w=`echo x $ac_old_val`
  2185. ac_new_val_w=`echo x $ac_new_val`
  2186. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2188. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2189. ac_cache_corrupted=:
  2190. else
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2192. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2193. eval $ac_var=\$ac_old_val
  2194. fi
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2196. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2198. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2199. fi;;
  2200. esac
  2201. # Pass precious variables to config.status.
  2202. if test "$ac_new_set" = set; then
  2203. case $ac_new_val in
  2204. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2205. *) ac_arg=$ac_var=$ac_new_val ;;
  2206. esac
  2207. case " $ac_configure_args " in
  2208. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2209. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2210. esac
  2211. fi
  2212. done
  2213. if $ac_cache_corrupted; then
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2215. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2217. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2218. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2219. fi
  2220. ## -------------------- ##
  2221. ## Main body of script. ##
  2222. ## -------------------- ##
  2223. ac_ext=c
  2224. ac_cpp='$CPP $CPPFLAGS'
  2225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2228. ac_config_headers="$ac_config_headers config.h"
  2229. if test -n "${with_target_subdir}"; then
  2230. # Default to --enable-multilib
  2231. # Check whether --enable-multilib was given.
  2232. if test "${enable_multilib+set}" = set; then :
  2233. enableval=$enable_multilib; case "$enableval" in
  2234. yes) multilib=yes ;;
  2235. no) multilib=no ;;
  2236. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2237. esac
  2238. else
  2239. multilib=yes
  2240. fi
  2241. # We may get other options which we leave undocumented:
  2242. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2243. # See config-ml.in if you want the gory details.
  2244. if test "$srcdir" = "."; then
  2245. if test "$with_target_subdir" != "."; then
  2246. multi_basedir="$srcdir/$with_multisrctop../.."
  2247. else
  2248. multi_basedir="$srcdir/$with_multisrctop.."
  2249. fi
  2250. else
  2251. multi_basedir="$srcdir/.."
  2252. fi
  2253. # Even if the default multilib is not a cross compilation,
  2254. # it may be that some of the other multilibs are.
  2255. if test $cross_compiling = no && test $multilib = yes \
  2256. && test "x${with_multisubdir}" != x ; then
  2257. cross_compiling=maybe
  2258. fi
  2259. ac_config_commands="$ac_config_commands default-1"
  2260. fi
  2261. ac_aux_dir=
  2262. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2263. for ac_t in install-sh install.sh shtool; do
  2264. if test -f "$ac_dir/$ac_t"; then
  2265. ac_aux_dir=$ac_dir
  2266. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2267. break 2
  2268. fi
  2269. done
  2270. done
  2271. if test -z "$ac_aux_dir"; then
  2272. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2273. fi
  2274. # These three variables are undocumented and unsupported,
  2275. # and are intended to be withdrawn in a future Autoconf release.
  2276. # They can cause serious problems if a builder's source tree is in a directory
  2277. # whose full name contains unusual characters.
  2278. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2279. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2280. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2281. # Make sure we can run config.sub.
  2282. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2283. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2285. $as_echo_n "checking build system type... " >&6; }
  2286. if test "${ac_cv_build+set}" = set; then :
  2287. $as_echo_n "(cached) " >&6
  2288. else
  2289. ac_build_alias=$build_alias
  2290. test "x$ac_build_alias" = x &&
  2291. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2292. test "x$ac_build_alias" = x &&
  2293. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2294. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2295. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2296. fi
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2298. $as_echo "$ac_cv_build" >&6; }
  2299. case $ac_cv_build in
  2300. *-*-*) ;;
  2301. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2302. esac
  2303. build=$ac_cv_build
  2304. ac_save_IFS=$IFS; IFS='-'
  2305. set x $ac_cv_build
  2306. shift
  2307. build_cpu=$1
  2308. build_vendor=$2
  2309. shift; shift
  2310. # Remember, the first character of IFS is used to create $*,
  2311. # except with old shells:
  2312. build_os=$*
  2313. IFS=$ac_save_IFS
  2314. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2316. $as_echo_n "checking host system type... " >&6; }
  2317. if test "${ac_cv_host+set}" = set; then :
  2318. $as_echo_n "(cached) " >&6
  2319. else
  2320. if test "x$host_alias" = x; then
  2321. ac_cv_host=$ac_cv_build
  2322. else
  2323. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2324. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2325. fi
  2326. fi
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2328. $as_echo "$ac_cv_host" >&6; }
  2329. case $ac_cv_host in
  2330. *-*-*) ;;
  2331. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2332. esac
  2333. host=$ac_cv_host
  2334. ac_save_IFS=$IFS; IFS='-'
  2335. set x $ac_cv_host
  2336. shift
  2337. host_cpu=$1
  2338. host_vendor=$2
  2339. shift; shift
  2340. # Remember, the first character of IFS is used to create $*,
  2341. # except with old shells:
  2342. host_os=$*
  2343. IFS=$ac_save_IFS
  2344. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2346. $as_echo_n "checking target system type... " >&6; }
  2347. if test "${ac_cv_target+set}" = set; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. if test "x$target_alias" = x; then
  2351. ac_cv_target=$ac_cv_host
  2352. else
  2353. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2354. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2355. fi
  2356. fi
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2358. $as_echo "$ac_cv_target" >&6; }
  2359. case $ac_cv_target in
  2360. *-*-*) ;;
  2361. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2362. esac
  2363. target=$ac_cv_target
  2364. ac_save_IFS=$IFS; IFS='-'
  2365. set x $ac_cv_target
  2366. shift
  2367. target_cpu=$1
  2368. target_vendor=$2
  2369. shift; shift
  2370. # Remember, the first character of IFS is used to create $*,
  2371. # except with old shells:
  2372. target_os=$*
  2373. IFS=$ac_save_IFS
  2374. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2375. # The aliases save the names the user supplied, while $host etc.
  2376. # will get canonicalized.
  2377. test -n "$target_alias" &&
  2378. test "$program_prefix$program_suffix$program_transform_name" = \
  2379. NONENONEs,x,x, &&
  2380. program_prefix=${target_alias}-
  2381. target_alias=${target_alias-$host_alias}
  2382. ac_ext=c
  2383. ac_cpp='$CPP $CPPFLAGS'
  2384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2387. if test -n "$ac_tool_prefix"; then
  2388. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2389. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2391. $as_echo_n "checking for $ac_word... " >&6; }
  2392. if test "${ac_cv_prog_CC+set}" = set; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. if test -n "$CC"; then
  2396. ac_cv_prog_CC="$CC" # Let the user override the test.
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2405. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2407. break 2
  2408. fi
  2409. done
  2410. done
  2411. IFS=$as_save_IFS
  2412. fi
  2413. fi
  2414. CC=$ac_cv_prog_CC
  2415. if test -n "$CC"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2417. $as_echo "$CC" >&6; }
  2418. else
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2420. $as_echo "no" >&6; }
  2421. fi
  2422. fi
  2423. if test -z "$ac_cv_prog_CC"; then
  2424. ac_ct_CC=$CC
  2425. # Extract the first word of "gcc", so it can be a program name with args.
  2426. set dummy gcc; ac_word=$2
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2428. $as_echo_n "checking for $ac_word... " >&6; }
  2429. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2430. $as_echo_n "(cached) " >&6
  2431. else
  2432. if test -n "$ac_ct_CC"; then
  2433. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2434. else
  2435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2436. for as_dir in $PATH
  2437. do
  2438. IFS=$as_save_IFS
  2439. test -z "$as_dir" && as_dir=.
  2440. for ac_exec_ext in '' $ac_executable_extensions; do
  2441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2442. ac_cv_prog_ac_ct_CC="gcc"
  2443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2444. break 2
  2445. fi
  2446. done
  2447. done
  2448. IFS=$as_save_IFS
  2449. fi
  2450. fi
  2451. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2452. if test -n "$ac_ct_CC"; then
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2454. $as_echo "$ac_ct_CC" >&6; }
  2455. else
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2457. $as_echo "no" >&6; }
  2458. fi
  2459. if test "x$ac_ct_CC" = x; then
  2460. CC=""
  2461. else
  2462. case $cross_compiling:$ac_tool_warned in
  2463. yes:)
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2465. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2466. ac_tool_warned=yes ;;
  2467. esac
  2468. CC=$ac_ct_CC
  2469. fi
  2470. else
  2471. CC="$ac_cv_prog_CC"
  2472. fi
  2473. if test -z "$CC"; then
  2474. if test -n "$ac_tool_prefix"; then
  2475. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2476. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2478. $as_echo_n "checking for $ac_word... " >&6; }
  2479. if test "${ac_cv_prog_CC+set}" = set; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. if test -n "$CC"; then
  2483. ac_cv_prog_CC="$CC" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2492. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. CC=$ac_cv_prog_CC
  2502. if test -n "$CC"; then
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2504. $as_echo "$CC" >&6; }
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2507. $as_echo "no" >&6; }
  2508. fi
  2509. fi
  2510. fi
  2511. if test -z "$CC"; then
  2512. # Extract the first word of "cc", so it can be a program name with args.
  2513. set dummy cc; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if test "${ac_cv_prog_CC+set}" = set; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$CC"; then
  2520. ac_cv_prog_CC="$CC" # Let the user override the test.
  2521. else
  2522. ac_prog_rejected=no
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_exec_ext in '' $ac_executable_extensions; do
  2529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2530. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2531. ac_prog_rejected=yes
  2532. continue
  2533. fi
  2534. ac_cv_prog_CC="cc"
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2536. break 2
  2537. fi
  2538. done
  2539. done
  2540. IFS=$as_save_IFS
  2541. if test $ac_prog_rejected = yes; then
  2542. # We found a bogon in the path, so make sure we never use it.
  2543. set dummy $ac_cv_prog_CC
  2544. shift
  2545. if test $# != 0; then
  2546. # We chose a different compiler from the bogus one.
  2547. # However, it has the same basename, so the bogon will be chosen
  2548. # first if we set CC to just the basename; use the full file name.
  2549. shift
  2550. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2551. fi
  2552. fi
  2553. fi
  2554. fi
  2555. CC=$ac_cv_prog_CC
  2556. if test -n "$CC"; then
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2558. $as_echo "$CC" >&6; }
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2561. $as_echo "no" >&6; }
  2562. fi
  2563. fi
  2564. if test -z "$CC"; then
  2565. if test -n "$ac_tool_prefix"; then
  2566. for ac_prog in cl.exe
  2567. do
  2568. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2569. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2571. $as_echo_n "checking for $ac_word... " >&6; }
  2572. if test "${ac_cv_prog_CC+set}" = set; then :
  2573. $as_echo_n "(cached) " >&6
  2574. else
  2575. if test -n "$CC"; then
  2576. ac_cv_prog_CC="$CC" # Let the user override the test.
  2577. else
  2578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2579. for as_dir in $PATH
  2580. do
  2581. IFS=$as_save_IFS
  2582. test -z "$as_dir" && as_dir=.
  2583. for ac_exec_ext in '' $ac_executable_extensions; do
  2584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2585. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2587. break 2
  2588. fi
  2589. done
  2590. done
  2591. IFS=$as_save_IFS
  2592. fi
  2593. fi
  2594. CC=$ac_cv_prog_CC
  2595. if test -n "$CC"; then
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2597. $as_echo "$CC" >&6; }
  2598. else
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2600. $as_echo "no" >&6; }
  2601. fi
  2602. test -n "$CC" && break
  2603. done
  2604. fi
  2605. if test -z "$CC"; then
  2606. ac_ct_CC=$CC
  2607. for ac_prog in cl.exe
  2608. do
  2609. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2610. set dummy $ac_prog; ac_word=$2
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2612. $as_echo_n "checking for $ac_word... " >&6; }
  2613. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if test -n "$ac_ct_CC"; then
  2617. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2618. else
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2626. ac_cv_prog_ac_ct_CC="$ac_prog"
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2628. break 2
  2629. fi
  2630. done
  2631. done
  2632. IFS=$as_save_IFS
  2633. fi
  2634. fi
  2635. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2636. if test -n "$ac_ct_CC"; then
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2638. $as_echo "$ac_ct_CC" >&6; }
  2639. else
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2641. $as_echo "no" >&6; }
  2642. fi
  2643. test -n "$ac_ct_CC" && break
  2644. done
  2645. if test "x$ac_ct_CC" = x; then
  2646. CC=""
  2647. else
  2648. case $cross_compiling:$ac_tool_warned in
  2649. yes:)
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2652. ac_tool_warned=yes ;;
  2653. esac
  2654. CC=$ac_ct_CC
  2655. fi
  2656. fi
  2657. fi
  2658. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2659. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2660. as_fn_error "no acceptable C compiler found in \$PATH
  2661. See \`config.log' for more details." "$LINENO" 5; }
  2662. # Provide some information about the compiler.
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2664. set X $ac_compile
  2665. ac_compiler=$2
  2666. for ac_option in --version -v -V -qversion; do
  2667. { { ac_try="$ac_compiler $ac_option >&5"
  2668. case "(($ac_try" in
  2669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670. *) ac_try_echo=$ac_try;;
  2671. esac
  2672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2673. $as_echo "$ac_try_echo"; } >&5
  2674. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2675. ac_status=$?
  2676. if test -s conftest.err; then
  2677. sed '10a\
  2678. ... rest of stderr output deleted ...
  2679. 10q' conftest.err >conftest.er1
  2680. cat conftest.er1 >&5
  2681. rm -f conftest.er1 conftest.err
  2682. fi
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2684. test $ac_status = 0; }
  2685. done
  2686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2687. /* end confdefs.h. */
  2688. int
  2689. main ()
  2690. {
  2691. ;
  2692. return 0;
  2693. }
  2694. _ACEOF
  2695. ac_clean_files_save=$ac_clean_files
  2696. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2697. # Try to create an executable without -o first, disregard a.out.
  2698. # It will help us diagnose broken compilers, and finding out an intuition
  2699. # of exeext.
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2701. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2702. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2703. # The possible output files:
  2704. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2705. ac_rmfiles=
  2706. for ac_file in $ac_files
  2707. do
  2708. case $ac_file in
  2709. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2710. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2711. esac
  2712. done
  2713. rm -f $ac_rmfiles
  2714. if { { ac_try="$ac_link_default"
  2715. case "(($ac_try" in
  2716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2717. *) ac_try_echo=$ac_try;;
  2718. esac
  2719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2720. $as_echo "$ac_try_echo"; } >&5
  2721. (eval "$ac_link_default") 2>&5
  2722. ac_status=$?
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2724. test $ac_status = 0; }; then :
  2725. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2726. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2727. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2728. # so that the user can short-circuit this test for compilers unknown to
  2729. # Autoconf.
  2730. for ac_file in $ac_files ''
  2731. do
  2732. test -f "$ac_file" || continue
  2733. case $ac_file in
  2734. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2735. ;;
  2736. [ab].out )
  2737. # We found the default executable, but exeext='' is most
  2738. # certainly right.
  2739. break;;
  2740. *.* )
  2741. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2742. then :; else
  2743. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2744. fi
  2745. # We set ac_cv_exeext here because the later test for it is not
  2746. # safe: cross compilers may not add the suffix if given an `-o'
  2747. # argument, so we may need to know it at that point already.
  2748. # Even if this section looks crufty: it has the advantage of
  2749. # actually working.
  2750. break;;
  2751. * )
  2752. break;;
  2753. esac
  2754. done
  2755. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2756. else
  2757. ac_file=''
  2758. fi
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2760. $as_echo "$ac_file" >&6; }
  2761. if test -z "$ac_file"; then :
  2762. $as_echo "$as_me: failed program was:" >&5
  2763. sed 's/^/| /' conftest.$ac_ext >&5
  2764. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2766. { as_fn_set_status 77
  2767. as_fn_error "C compiler cannot create executables
  2768. See \`config.log' for more details." "$LINENO" 5; }; }
  2769. fi
  2770. ac_exeext=$ac_cv_exeext
  2771. # Check that the compiler produces executables we can run. If not, either
  2772. # the compiler is broken, or we cross compile.
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2774. $as_echo_n "checking whether the C compiler works... " >&6; }
  2775. # If not cross compiling, check that we can run a simple program.
  2776. if test "$cross_compiling" != yes; then
  2777. if { ac_try='./$ac_file'
  2778. { { case "(($ac_try" in
  2779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780. *) ac_try_echo=$ac_try;;
  2781. esac
  2782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2783. $as_echo "$ac_try_echo"; } >&5
  2784. (eval "$ac_try") 2>&5
  2785. ac_status=$?
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2787. test $ac_status = 0; }; }; then
  2788. cross_compiling=no
  2789. else
  2790. if test "$cross_compiling" = maybe; then
  2791. cross_compiling=yes
  2792. else
  2793. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2794. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2795. as_fn_error "cannot run C compiled programs.
  2796. If you meant to cross compile, use \`--host'.
  2797. See \`config.log' for more details." "$LINENO" 5; }
  2798. fi
  2799. fi
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2802. $as_echo "yes" >&6; }
  2803. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2804. ac_clean_files=$ac_clean_files_save
  2805. # Check that the compiler produces executables we can run. If not, either
  2806. # the compiler is broken, or we cross compile.
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2808. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2810. $as_echo "$cross_compiling" >&6; }
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2812. $as_echo_n "checking for suffix of executables... " >&6; }
  2813. if { { ac_try="$ac_link"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_link") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }; then :
  2824. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2825. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2826. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2827. # `rm'.
  2828. for ac_file in conftest.exe conftest conftest.*; do
  2829. test -f "$ac_file" || continue
  2830. case $ac_file in
  2831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2832. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2833. break;;
  2834. * ) break;;
  2835. esac
  2836. done
  2837. else
  2838. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2839. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2840. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2841. See \`config.log' for more details." "$LINENO" 5; }
  2842. fi
  2843. rm -f conftest$ac_cv_exeext
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2845. $as_echo "$ac_cv_exeext" >&6; }
  2846. rm -f conftest.$ac_ext
  2847. EXEEXT=$ac_cv_exeext
  2848. ac_exeext=$EXEEXT
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2850. $as_echo_n "checking for suffix of object files... " >&6; }
  2851. if test "${ac_cv_objext+set}" = set; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.o conftest.obj
  2864. if { { ac_try="$ac_compile"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2870. $as_echo "$ac_try_echo"; } >&5
  2871. (eval "$ac_compile") 2>&5
  2872. ac_status=$?
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }; then :
  2875. for ac_file in conftest.o conftest.obj conftest.*; do
  2876. test -f "$ac_file" || continue;
  2877. case $ac_file in
  2878. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2879. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2880. break;;
  2881. esac
  2882. done
  2883. else
  2884. $as_echo "$as_me: failed program was:" >&5
  2885. sed 's/^/| /' conftest.$ac_ext >&5
  2886. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2888. as_fn_error "cannot compute suffix of object files: cannot compile
  2889. See \`config.log' for more details." "$LINENO" 5; }
  2890. fi
  2891. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2892. fi
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2894. $as_echo "$ac_cv_objext" >&6; }
  2895. OBJEXT=$ac_cv_objext
  2896. ac_objext=$OBJEXT
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2898. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2899. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. #ifndef __GNUC__
  2908. choke me
  2909. #endif
  2910. ;
  2911. return 0;
  2912. }
  2913. _ACEOF
  2914. if ac_fn_c_try_compile "$LINENO"; then :
  2915. ac_compiler_gnu=yes
  2916. else
  2917. ac_compiler_gnu=no
  2918. fi
  2919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2920. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2923. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2924. if test $ac_compiler_gnu = yes; then
  2925. GCC=yes
  2926. else
  2927. GCC=
  2928. fi
  2929. ac_test_CFLAGS=${CFLAGS+set}
  2930. ac_save_CFLAGS=$CFLAGS
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2932. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2933. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. ac_save_c_werror_flag=$ac_c_werror_flag
  2937. ac_c_werror_flag=yes
  2938. ac_cv_prog_cc_g=no
  2939. CFLAGS="-g"
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. if ac_fn_c_try_compile "$LINENO"; then :
  2950. ac_cv_prog_cc_g=yes
  2951. else
  2952. CFLAGS=""
  2953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2954. /* end confdefs.h. */
  2955. int
  2956. main ()
  2957. {
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. if ac_fn_c_try_compile "$LINENO"; then :
  2963. else
  2964. ac_c_werror_flag=$ac_save_c_werror_flag
  2965. CFLAGS="-g"
  2966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. ;
  2972. return 0;
  2973. }
  2974. _ACEOF
  2975. if ac_fn_c_try_compile "$LINENO"; then :
  2976. ac_cv_prog_cc_g=yes
  2977. fi
  2978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2979. fi
  2980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2981. fi
  2982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2983. ac_c_werror_flag=$ac_save_c_werror_flag
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2986. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2987. if test "$ac_test_CFLAGS" = set; then
  2988. CFLAGS=$ac_save_CFLAGS
  2989. elif test $ac_cv_prog_cc_g = yes; then
  2990. if test "$GCC" = yes; then
  2991. CFLAGS="-g -O2"
  2992. else
  2993. CFLAGS="-g"
  2994. fi
  2995. else
  2996. if test "$GCC" = yes; then
  2997. CFLAGS="-O2"
  2998. else
  2999. CFLAGS=
  3000. fi
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3003. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3004. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3005. $as_echo_n "(cached) " >&6
  3006. else
  3007. ac_cv_prog_cc_c89=no
  3008. ac_save_CC=$CC
  3009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3010. /* end confdefs.h. */
  3011. #include <stdarg.h>
  3012. #include <stdio.h>
  3013. #include <sys/types.h>
  3014. #include <sys/stat.h>
  3015. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3016. struct buf { int x; };
  3017. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3018. static char *e (p, i)
  3019. char **p;
  3020. int i;
  3021. {
  3022. return p[i];
  3023. }
  3024. static char *f (char * (*g) (char **, int), char **p, ...)
  3025. {
  3026. char *s;
  3027. va_list v;
  3028. va_start (v,p);
  3029. s = g (p, va_arg (v,int));
  3030. va_end (v);
  3031. return s;
  3032. }
  3033. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3034. function prototypes and stuff, but not '\xHH' hex character constants.
  3035. These don't provoke an error unfortunately, instead are silently treated
  3036. as 'x'. The following induces an error, until -std is added to get
  3037. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3038. array size at least. It's necessary to write '\x00'==0 to get something
  3039. that's true only with -std. */
  3040. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3041. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3042. inside strings and character constants. */
  3043. #define FOO(x) 'x'
  3044. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3045. int test (int i, double x);
  3046. struct s1 {int (*f) (int a);};
  3047. struct s2 {int (*f) (double a);};
  3048. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3049. int argc;
  3050. char **argv;
  3051. int
  3052. main ()
  3053. {
  3054. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3055. ;
  3056. return 0;
  3057. }
  3058. _ACEOF
  3059. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3060. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3061. do
  3062. CC="$ac_save_CC $ac_arg"
  3063. if ac_fn_c_try_compile "$LINENO"; then :
  3064. ac_cv_prog_cc_c89=$ac_arg
  3065. fi
  3066. rm -f core conftest.err conftest.$ac_objext
  3067. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3068. done
  3069. rm -f conftest.$ac_ext
  3070. CC=$ac_save_CC
  3071. fi
  3072. # AC_CACHE_VAL
  3073. case "x$ac_cv_prog_cc_c89" in
  3074. x)
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3076. $as_echo "none needed" >&6; } ;;
  3077. xno)
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3079. $as_echo "unsupported" >&6; } ;;
  3080. *)
  3081. CC="$CC $ac_cv_prog_cc_c89"
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3083. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3084. esac
  3085. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3086. fi
  3087. ac_ext=c
  3088. ac_cpp='$CPP $CPPFLAGS'
  3089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3092. ac_ext=c
  3093. ac_cpp='$CPP $CPPFLAGS'
  3094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3098. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3099. # On Suns, sometimes $CPP names a directory.
  3100. if test -n "$CPP" && test -d "$CPP"; then
  3101. CPP=
  3102. fi
  3103. if test -z "$CPP"; then
  3104. if test "${ac_cv_prog_CPP+set}" = set; then :
  3105. $as_echo_n "(cached) " >&6
  3106. else
  3107. # Double quotes because CPP needs to be expanded
  3108. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3109. do
  3110. ac_preproc_ok=false
  3111. for ac_c_preproc_warn_flag in '' yes
  3112. do
  3113. # Use a header file that comes with gcc, so configuring glibc
  3114. # with a fresh cross-compiler works.
  3115. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3116. # <limits.h> exists even on freestanding compilers.
  3117. # On the NeXT, cc -E runs the code through the compiler's parser,
  3118. # not just through cpp. "Syntax error" is here to catch this case.
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h. */
  3121. #ifdef __STDC__
  3122. # include <limits.h>
  3123. #else
  3124. # include <assert.h>
  3125. #endif
  3126. Syntax error
  3127. _ACEOF
  3128. if ac_fn_c_try_cpp "$LINENO"; then :
  3129. else
  3130. # Broken: fails on valid input.
  3131. continue
  3132. fi
  3133. rm -f conftest.err conftest.$ac_ext
  3134. # OK, works on sane cases. Now check whether nonexistent headers
  3135. # can be detected and how.
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. #include <ac_nonexistent.h>
  3139. _ACEOF
  3140. if ac_fn_c_try_cpp "$LINENO"; then :
  3141. # Broken: success on invalid input.
  3142. continue
  3143. else
  3144. # Passes both tests.
  3145. ac_preproc_ok=:
  3146. break
  3147. fi
  3148. rm -f conftest.err conftest.$ac_ext
  3149. done
  3150. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3151. rm -f conftest.err conftest.$ac_ext
  3152. if $ac_preproc_ok; then :
  3153. break
  3154. fi
  3155. done
  3156. ac_cv_prog_CPP=$CPP
  3157. fi
  3158. CPP=$ac_cv_prog_CPP
  3159. else
  3160. ac_cv_prog_CPP=$CPP
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3163. $as_echo "$CPP" >&6; }
  3164. ac_preproc_ok=false
  3165. for ac_c_preproc_warn_flag in '' yes
  3166. do
  3167. # Use a header file that comes with gcc, so configuring glibc
  3168. # with a fresh cross-compiler works.
  3169. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3170. # <limits.h> exists even on freestanding compilers.
  3171. # On the NeXT, cc -E runs the code through the compiler's parser,
  3172. # not just through cpp. "Syntax error" is here to catch this case.
  3173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3174. /* end confdefs.h. */
  3175. #ifdef __STDC__
  3176. # include <limits.h>
  3177. #else
  3178. # include <assert.h>
  3179. #endif
  3180. Syntax error
  3181. _ACEOF
  3182. if ac_fn_c_try_cpp "$LINENO"; then :
  3183. else
  3184. # Broken: fails on valid input.
  3185. continue
  3186. fi
  3187. rm -f conftest.err conftest.$ac_ext
  3188. # OK, works on sane cases. Now check whether nonexistent headers
  3189. # can be detected and how.
  3190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3191. /* end confdefs.h. */
  3192. #include <ac_nonexistent.h>
  3193. _ACEOF
  3194. if ac_fn_c_try_cpp "$LINENO"; then :
  3195. # Broken: success on invalid input.
  3196. continue
  3197. else
  3198. # Passes both tests.
  3199. ac_preproc_ok=:
  3200. break
  3201. fi
  3202. rm -f conftest.err conftest.$ac_ext
  3203. done
  3204. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3205. rm -f conftest.err conftest.$ac_ext
  3206. if $ac_preproc_ok; then :
  3207. else
  3208. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3210. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3211. See \`config.log' for more details." "$LINENO" 5; }
  3212. fi
  3213. ac_ext=c
  3214. ac_cpp='$CPP $CPPFLAGS'
  3215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3219. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3220. if test "${ac_cv_path_GREP+set}" = set; then :
  3221. $as_echo_n "(cached) " >&6
  3222. else
  3223. if test -z "$GREP"; then
  3224. ac_path_GREP_found=false
  3225. # Loop through the user's path and test for each of PROGNAME-LIST
  3226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3227. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3228. do
  3229. IFS=$as_save_IFS
  3230. test -z "$as_dir" && as_dir=.
  3231. for ac_prog in grep ggrep; do
  3232. for ac_exec_ext in '' $ac_executable_extensions; do
  3233. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3234. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3235. # Check for GNU ac_path_GREP and select it if it is found.
  3236. # Check for GNU $ac_path_GREP
  3237. case `"$ac_path_GREP" --version 2>&1` in
  3238. *GNU*)
  3239. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3240. *)
  3241. ac_count=0
  3242. $as_echo_n 0123456789 >"conftest.in"
  3243. while :
  3244. do
  3245. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3246. mv "conftest.tmp" "conftest.in"
  3247. cp "conftest.in" "conftest.nl"
  3248. $as_echo 'GREP' >> "conftest.nl"
  3249. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3250. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3251. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3252. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3253. # Best one so far, save it but keep looking for a better one
  3254. ac_cv_path_GREP="$ac_path_GREP"
  3255. ac_path_GREP_max=$ac_count
  3256. fi
  3257. # 10*(2^10) chars as input seems more than enough
  3258. test $ac_count -gt 10 && break
  3259. done
  3260. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3261. esac
  3262. $ac_path_GREP_found && break 3
  3263. done
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. if test -z "$ac_cv_path_GREP"; then
  3268. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3269. fi
  3270. else
  3271. ac_cv_path_GREP=$GREP
  3272. fi
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3275. $as_echo "$ac_cv_path_GREP" >&6; }
  3276. GREP="$ac_cv_path_GREP"
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3278. $as_echo_n "checking for egrep... " >&6; }
  3279. if test "${ac_cv_path_EGREP+set}" = set; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3283. then ac_cv_path_EGREP="$GREP -E"
  3284. else
  3285. if test -z "$EGREP"; then
  3286. ac_path_EGREP_found=false
  3287. # Loop through the user's path and test for each of PROGNAME-LIST
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_prog in egrep; do
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3296. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3297. # Check for GNU ac_path_EGREP and select it if it is found.
  3298. # Check for GNU $ac_path_EGREP
  3299. case `"$ac_path_EGREP" --version 2>&1` in
  3300. *GNU*)
  3301. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3302. *)
  3303. ac_count=0
  3304. $as_echo_n 0123456789 >"conftest.in"
  3305. while :
  3306. do
  3307. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3308. mv "conftest.tmp" "conftest.in"
  3309. cp "conftest.in" "conftest.nl"
  3310. $as_echo 'EGREP' >> "conftest.nl"
  3311. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3312. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3313. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3314. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3315. # Best one so far, save it but keep looking for a better one
  3316. ac_cv_path_EGREP="$ac_path_EGREP"
  3317. ac_path_EGREP_max=$ac_count
  3318. fi
  3319. # 10*(2^10) chars as input seems more than enough
  3320. test $ac_count -gt 10 && break
  3321. done
  3322. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3323. esac
  3324. $ac_path_EGREP_found && break 3
  3325. done
  3326. done
  3327. done
  3328. IFS=$as_save_IFS
  3329. if test -z "$ac_cv_path_EGREP"; then
  3330. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3331. fi
  3332. else
  3333. ac_cv_path_EGREP=$EGREP
  3334. fi
  3335. fi
  3336. fi
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3338. $as_echo "$ac_cv_path_EGREP" >&6; }
  3339. EGREP="$ac_cv_path_EGREP"
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3341. $as_echo_n "checking for ANSI C header files... " >&6; }
  3342. if test "${ac_cv_header_stdc+set}" = set; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. #include <stdlib.h>
  3348. #include <stdarg.h>
  3349. #include <string.h>
  3350. #include <float.h>
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. ac_cv_header_stdc=yes
  3360. else
  3361. ac_cv_header_stdc=no
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3364. if test $ac_cv_header_stdc = yes; then
  3365. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. #include <string.h>
  3369. _ACEOF
  3370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3371. $EGREP "memchr" >/dev/null 2>&1; then :
  3372. else
  3373. ac_cv_header_stdc=no
  3374. fi
  3375. rm -f conftest*
  3376. fi
  3377. if test $ac_cv_header_stdc = yes; then
  3378. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. #include <stdlib.h>
  3382. _ACEOF
  3383. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3384. $EGREP "free" >/dev/null 2>&1; then :
  3385. else
  3386. ac_cv_header_stdc=no
  3387. fi
  3388. rm -f conftest*
  3389. fi
  3390. if test $ac_cv_header_stdc = yes; then
  3391. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3392. if test "$cross_compiling" = yes; then :
  3393. :
  3394. else
  3395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3396. /* end confdefs.h. */
  3397. #include <ctype.h>
  3398. #include <stdlib.h>
  3399. #if ((' ' & 0x0FF) == 0x020)
  3400. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3401. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3402. #else
  3403. # define ISLOWER(c) \
  3404. (('a' <= (c) && (c) <= 'i') \
  3405. || ('j' <= (c) && (c) <= 'r') \
  3406. || ('s' <= (c) && (c) <= 'z'))
  3407. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3408. #endif
  3409. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3410. int
  3411. main ()
  3412. {
  3413. int i;
  3414. for (i = 0; i < 256; i++)
  3415. if (XOR (islower (i), ISLOWER (i))
  3416. || toupper (i) != TOUPPER (i))
  3417. return 2;
  3418. return 0;
  3419. }
  3420. _ACEOF
  3421. if ac_fn_c_try_run "$LINENO"; then :
  3422. else
  3423. ac_cv_header_stdc=no
  3424. fi
  3425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3426. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3427. fi
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3431. $as_echo "$ac_cv_header_stdc" >&6; }
  3432. if test $ac_cv_header_stdc = yes; then
  3433. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3434. fi
  3435. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3436. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3437. inttypes.h stdint.h unistd.h
  3438. do :
  3439. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3440. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3441. "
  3442. eval as_val=\$$as_ac_Header
  3443. if test "x$as_val" = x""yes; then :
  3444. cat >>confdefs.h <<_ACEOF
  3445. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3446. _ACEOF
  3447. fi
  3448. done
  3449. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3450. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3451. MINIX=yes
  3452. else
  3453. MINIX=
  3454. fi
  3455. if test "$MINIX" = yes; then
  3456. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3457. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3458. $as_echo "#define _MINIX 1" >>confdefs.h
  3459. fi
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3461. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3462. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3463. $as_echo_n "(cached) " >&6
  3464. else
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. # define __EXTENSIONS__ 1
  3468. $ac_includes_default
  3469. int
  3470. main ()
  3471. {
  3472. ;
  3473. return 0;
  3474. }
  3475. _ACEOF
  3476. if ac_fn_c_try_compile "$LINENO"; then :
  3477. ac_cv_safe_to_define___extensions__=yes
  3478. else
  3479. ac_cv_safe_to_define___extensions__=no
  3480. fi
  3481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3482. fi
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3484. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3485. test $ac_cv_safe_to_define___extensions__ = yes &&
  3486. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3487. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3488. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3489. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3490. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3491. libtool_VERSION=1:0:0
  3492. # 1.11.1: Require that version of automake.
  3493. # foreign: Don't require README, INSTALL, NEWS, etc.
  3494. # no-define: Don't define PACKAGE and VERSION.
  3495. # no-dependencies: Don't generate automatic dependencies.
  3496. # (because it breaks when using bootstrap-lean, since some of the
  3497. # headers are gone at "make install" time).
  3498. # -Wall: Issue all automake warnings.
  3499. # -Wno-portability: Don't warn about constructs supported by GNU make.
  3500. # (because GCC requires GNU make anyhow).
  3501. am__api_version='1.11'
  3502. # Find a good install program. We prefer a C program (faster),
  3503. # so one script is as good as another. But avoid the broken or
  3504. # incompatible versions:
  3505. # SysV /etc/install, /usr/sbin/install
  3506. # SunOS /usr/etc/install
  3507. # IRIX /sbin/install
  3508. # AIX /bin/install
  3509. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3510. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3511. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3512. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3513. # OS/2's system install, which has a completely different semantic
  3514. # ./install, which can be erroneously created by make from ./install.sh.
  3515. # Reject install programs that cannot install multiple files.
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3517. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3518. if test -z "$INSTALL"; then
  3519. if test "${ac_cv_path_install+set}" = set; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3523. for as_dir in $PATH
  3524. do
  3525. IFS=$as_save_IFS
  3526. test -z "$as_dir" && as_dir=.
  3527. # Account for people who put trailing slashes in PATH elements.
  3528. case $as_dir/ in #((
  3529. ./ | .// | /[cC]/* | \
  3530. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3531. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3532. /usr/ucb/* ) ;;
  3533. *)
  3534. # OSF1 and SCO ODT 3.0 have their own names for install.
  3535. # Don't use installbsd from OSF since it installs stuff as root
  3536. # by default.
  3537. for ac_prog in ginstall scoinst install; do
  3538. for ac_exec_ext in '' $ac_executable_extensions; do
  3539. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3540. if test $ac_prog = install &&
  3541. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3542. # AIX install. It has an incompatible calling convention.
  3543. :
  3544. elif test $ac_prog = install &&
  3545. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3546. # program-specific install script used by HP pwplus--don't use.
  3547. :
  3548. else
  3549. rm -rf conftest.one conftest.two conftest.dir
  3550. echo one > conftest.one
  3551. echo two > conftest.two
  3552. mkdir conftest.dir
  3553. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3554. test -s conftest.one && test -s conftest.two &&
  3555. test -s conftest.dir/conftest.one &&
  3556. test -s conftest.dir/conftest.two
  3557. then
  3558. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3559. break 3
  3560. fi
  3561. fi
  3562. fi
  3563. done
  3564. done
  3565. ;;
  3566. esac
  3567. done
  3568. IFS=$as_save_IFS
  3569. rm -rf conftest.one conftest.two conftest.dir
  3570. fi
  3571. if test "${ac_cv_path_install+set}" = set; then
  3572. INSTALL=$ac_cv_path_install
  3573. else
  3574. # As a last resort, use the slow shell script. Don't cache a
  3575. # value for INSTALL within a source directory, because that will
  3576. # break other packages using the cache if that directory is
  3577. # removed, or if the value is a relative name.
  3578. INSTALL=$ac_install_sh
  3579. fi
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3582. $as_echo "$INSTALL" >&6; }
  3583. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3584. # It thinks the first close brace ends the variable substitution.
  3585. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3586. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3587. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3589. $as_echo_n "checking whether build environment is sane... " >&6; }
  3590. # Just in case
  3591. sleep 1
  3592. echo timestamp > conftest.file
  3593. # Reject unsafe characters in $srcdir or the absolute working directory
  3594. # name. Accept space and tab only in the latter.
  3595. am_lf='
  3596. '
  3597. case `pwd` in
  3598. *[\\\"\#\$\&\'\`$am_lf]*)
  3599. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3600. esac
  3601. case $srcdir in
  3602. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3603. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3604. esac
  3605. # Do `set' in a subshell so we don't clobber the current shell's
  3606. # arguments. Must try -L first in case configure is actually a
  3607. # symlink; some systems play weird games with the mod time of symlinks
  3608. # (eg FreeBSD returns the mod time of the symlink's containing
  3609. # directory).
  3610. if (
  3611. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3612. if test "$*" = "X"; then
  3613. # -L didn't work.
  3614. set X `ls -t "$srcdir/configure" conftest.file`
  3615. fi
  3616. rm -f conftest.file
  3617. if test "$*" != "X $srcdir/configure conftest.file" \
  3618. && test "$*" != "X conftest.file $srcdir/configure"; then
  3619. # If neither matched, then we have a broken ls. This can happen
  3620. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3621. # broken ls alias from the environment. This has actually
  3622. # happened. Such a system could not be considered "sane".
  3623. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3624. alias in your environment" "$LINENO" 5
  3625. fi
  3626. test "$2" = conftest.file
  3627. )
  3628. then
  3629. # Ok.
  3630. :
  3631. else
  3632. as_fn_error "newly created file is older than distributed files!
  3633. Check your system clock" "$LINENO" 5
  3634. fi
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3636. $as_echo "yes" >&6; }
  3637. test "$program_prefix" != NONE &&
  3638. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3639. # Use a double $ so make ignores it.
  3640. test "$program_suffix" != NONE &&
  3641. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3642. # Double any \ or $.
  3643. # By default was `s,x,x', remove it if useless.
  3644. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3645. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3646. # expand $ac_aux_dir to an absolute path
  3647. am_aux_dir=`cd $ac_aux_dir && pwd`
  3648. if test x"${MISSING+set}" != xset; then
  3649. case $am_aux_dir in
  3650. *\ * | *\ *)
  3651. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3652. *)
  3653. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3654. esac
  3655. fi
  3656. # Use eval to expand $SHELL
  3657. if eval "$MISSING --run true"; then
  3658. am_missing_run="$MISSING --run "
  3659. else
  3660. am_missing_run=
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3662. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3663. fi
  3664. if test x"${install_sh}" != xset; then
  3665. case $am_aux_dir in
  3666. *\ * | *\ *)
  3667. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3668. *)
  3669. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3670. esac
  3671. fi
  3672. # Installed binaries are usually stripped using `strip' when the user
  3673. # run `make install-strip'. However `strip' might not be the right
  3674. # tool to use in cross-compilation environments, therefore Automake
  3675. # will honor the `STRIP' environment variable to overrule this program.
  3676. if test "$cross_compiling" != no; then
  3677. if test -n "$ac_tool_prefix"; then
  3678. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3679. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3681. $as_echo_n "checking for $ac_word... " >&6; }
  3682. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3683. $as_echo_n "(cached) " >&6
  3684. else
  3685. if test -n "$STRIP"; then
  3686. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3687. else
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH
  3690. do
  3691. IFS=$as_save_IFS
  3692. test -z "$as_dir" && as_dir=.
  3693. for ac_exec_ext in '' $ac_executable_extensions; do
  3694. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3695. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3697. break 2
  3698. fi
  3699. done
  3700. done
  3701. IFS=$as_save_IFS
  3702. fi
  3703. fi
  3704. STRIP=$ac_cv_prog_STRIP
  3705. if test -n "$STRIP"; then
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3707. $as_echo "$STRIP" >&6; }
  3708. else
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3710. $as_echo "no" >&6; }
  3711. fi
  3712. fi
  3713. if test -z "$ac_cv_prog_STRIP"; then
  3714. ac_ct_STRIP=$STRIP
  3715. # Extract the first word of "strip", so it can be a program name with args.
  3716. set dummy strip; ac_word=$2
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3718. $as_echo_n "checking for $ac_word... " >&6; }
  3719. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3720. $as_echo_n "(cached) " >&6
  3721. else
  3722. if test -n "$ac_ct_STRIP"; then
  3723. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3724. else
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3732. ac_cv_prog_ac_ct_STRIP="strip"
  3733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3734. break 2
  3735. fi
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. fi
  3740. fi
  3741. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3742. if test -n "$ac_ct_STRIP"; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3744. $as_echo "$ac_ct_STRIP" >&6; }
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3747. $as_echo "no" >&6; }
  3748. fi
  3749. if test "x$ac_ct_STRIP" = x; then
  3750. STRIP=":"
  3751. else
  3752. case $cross_compiling:$ac_tool_warned in
  3753. yes:)
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3756. ac_tool_warned=yes ;;
  3757. esac
  3758. STRIP=$ac_ct_STRIP
  3759. fi
  3760. else
  3761. STRIP="$ac_cv_prog_STRIP"
  3762. fi
  3763. fi
  3764. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3766. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3767. if test -z "$MKDIR_P"; then
  3768. if test "${ac_cv_path_mkdir+set}" = set; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3772. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3773. do
  3774. IFS=$as_save_IFS
  3775. test -z "$as_dir" && as_dir=.
  3776. for ac_prog in mkdir gmkdir; do
  3777. for ac_exec_ext in '' $ac_executable_extensions; do
  3778. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3779. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3780. 'mkdir (GNU coreutils) '* | \
  3781. 'mkdir (coreutils) '* | \
  3782. 'mkdir (fileutils) '4.1*)
  3783. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3784. break 3;;
  3785. esac
  3786. done
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. fi
  3791. if test "${ac_cv_path_mkdir+set}" = set; then
  3792. MKDIR_P="$ac_cv_path_mkdir -p"
  3793. else
  3794. # As a last resort, use the slow shell script. Don't cache a
  3795. # value for MKDIR_P within a source directory, because that will
  3796. # break other packages using the cache if that directory is
  3797. # removed, or if the value is a relative name.
  3798. test -d ./--version && rmdir ./--version
  3799. MKDIR_P="$ac_install_sh -d"
  3800. fi
  3801. fi
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3803. $as_echo "$MKDIR_P" >&6; }
  3804. mkdir_p="$MKDIR_P"
  3805. case $mkdir_p in
  3806. [\\/$]* | ?:[\\/]*) ;;
  3807. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3808. esac
  3809. for ac_prog in gawk mawk nawk awk
  3810. do
  3811. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3812. set dummy $ac_prog; ac_word=$2
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3814. $as_echo_n "checking for $ac_word... " >&6; }
  3815. if test "${ac_cv_prog_AWK+set}" = set; then :
  3816. $as_echo_n "(cached) " >&6
  3817. else
  3818. if test -n "$AWK"; then
  3819. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3820. else
  3821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3822. for as_dir in $PATH
  3823. do
  3824. IFS=$as_save_IFS
  3825. test -z "$as_dir" && as_dir=.
  3826. for ac_exec_ext in '' $ac_executable_extensions; do
  3827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3828. ac_cv_prog_AWK="$ac_prog"
  3829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3830. break 2
  3831. fi
  3832. done
  3833. done
  3834. IFS=$as_save_IFS
  3835. fi
  3836. fi
  3837. AWK=$ac_cv_prog_AWK
  3838. if test -n "$AWK"; then
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3840. $as_echo "$AWK" >&6; }
  3841. else
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3843. $as_echo "no" >&6; }
  3844. fi
  3845. test -n "$AWK" && break
  3846. done
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3848. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3849. set x ${MAKE-make}
  3850. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3851. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. cat >conftest.make <<\_ACEOF
  3855. SHELL = /bin/sh
  3856. all:
  3857. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3858. _ACEOF
  3859. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3860. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3861. *@@@%%%=?*=@@@%%%*)
  3862. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3863. *)
  3864. eval ac_cv_prog_make_${ac_make}_set=no;;
  3865. esac
  3866. rm -f conftest.make
  3867. fi
  3868. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3870. $as_echo "yes" >&6; }
  3871. SET_MAKE=
  3872. else
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3874. $as_echo "no" >&6; }
  3875. SET_MAKE="MAKE=${MAKE-make}"
  3876. fi
  3877. rm -rf .tst 2>/dev/null
  3878. mkdir .tst 2>/dev/null
  3879. if test -d .tst; then
  3880. am__leading_dot=.
  3881. else
  3882. am__leading_dot=_
  3883. fi
  3884. rmdir .tst 2>/dev/null
  3885. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3886. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3887. # is not polluted with repeated "-I."
  3888. am__isrc=' -I$(srcdir)'
  3889. # test to see if srcdir already configured
  3890. if test -f $srcdir/config.status; then
  3891. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3892. fi
  3893. fi
  3894. # test whether we have cygpath
  3895. if test -z "$CYGPATH_W"; then
  3896. if (cygpath --version) >/dev/null 2>/dev/null; then
  3897. CYGPATH_W='cygpath -w'
  3898. else
  3899. CYGPATH_W=echo
  3900. fi
  3901. fi
  3902. # Define the identity of the package.
  3903. PACKAGE='libbacktrace'
  3904. VERSION='version-unused'
  3905. # Some tools Automake needs.
  3906. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3907. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3908. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3909. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3910. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3911. # We need awk for the "check" target. The system "awk" is bad on
  3912. # some platforms.
  3913. # Always define AMTAR for backward compatibility.
  3914. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3915. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3917. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3918. # Check whether --enable-maintainer-mode was given.
  3919. if test "${enable_maintainer_mode+set}" = set; then :
  3920. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3921. else
  3922. USE_MAINTAINER_MODE=no
  3923. fi
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3925. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3926. if test $USE_MAINTAINER_MODE = yes; then
  3927. MAINTAINER_MODE_TRUE=
  3928. MAINTAINER_MODE_FALSE='#'
  3929. else
  3930. MAINTAINER_MODE_TRUE='#'
  3931. MAINTAINER_MODE_FALSE=
  3932. fi
  3933. MAINT=$MAINTAINER_MODE_TRUE
  3934. # Check whether --with-target-subdir was given.
  3935. if test "${with_target_subdir+set}" = set; then :
  3936. withval=$with_target_subdir;
  3937. fi
  3938. # We must force CC to /not/ be precious variables; otherwise
  3939. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3940. # As a side effect, we have to subst CFLAGS ourselves.
  3941. ac_ext=c
  3942. ac_cpp='$CPP $CPPFLAGS'
  3943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3946. if test -n "$ac_tool_prefix"; then
  3947. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3948. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3950. $as_echo_n "checking for $ac_word... " >&6; }
  3951. if test "${ac_cv_prog_CC+set}" = set; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$CC"; then
  3955. ac_cv_prog_CC="$CC" # Let the user override the test.
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. for ac_exec_ext in '' $ac_executable_extensions; do
  3963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3964. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3966. break 2
  3967. fi
  3968. done
  3969. done
  3970. IFS=$as_save_IFS
  3971. fi
  3972. fi
  3973. CC=$ac_cv_prog_CC
  3974. if test -n "$CC"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3976. $as_echo "$CC" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. fi
  3982. if test -z "$ac_cv_prog_CC"; then
  3983. ac_ct_CC=$CC
  3984. # Extract the first word of "gcc", so it can be a program name with args.
  3985. set dummy gcc; ac_word=$2
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3987. $as_echo_n "checking for $ac_word... " >&6; }
  3988. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. if test -n "$ac_ct_CC"; then
  3992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3993. else
  3994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3995. for as_dir in $PATH
  3996. do
  3997. IFS=$as_save_IFS
  3998. test -z "$as_dir" && as_dir=.
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4001. ac_cv_prog_ac_ct_CC="gcc"
  4002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4003. break 2
  4004. fi
  4005. done
  4006. done
  4007. IFS=$as_save_IFS
  4008. fi
  4009. fi
  4010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4011. if test -n "$ac_ct_CC"; then
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4013. $as_echo "$ac_ct_CC" >&6; }
  4014. else
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. $as_echo "no" >&6; }
  4017. fi
  4018. if test "x$ac_ct_CC" = x; then
  4019. CC=""
  4020. else
  4021. case $cross_compiling:$ac_tool_warned in
  4022. yes:)
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4025. ac_tool_warned=yes ;;
  4026. esac
  4027. CC=$ac_ct_CC
  4028. fi
  4029. else
  4030. CC="$ac_cv_prog_CC"
  4031. fi
  4032. if test -z "$CC"; then
  4033. if test -n "$ac_tool_prefix"; then
  4034. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4035. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4037. $as_echo_n "checking for $ac_word... " >&6; }
  4038. if test "${ac_cv_prog_CC+set}" = set; then :
  4039. $as_echo_n "(cached) " >&6
  4040. else
  4041. if test -n "$CC"; then
  4042. ac_cv_prog_CC="$CC" # Let the user override the test.
  4043. else
  4044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4045. for as_dir in $PATH
  4046. do
  4047. IFS=$as_save_IFS
  4048. test -z "$as_dir" && as_dir=.
  4049. for ac_exec_ext in '' $ac_executable_extensions; do
  4050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4051. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4053. break 2
  4054. fi
  4055. done
  4056. done
  4057. IFS=$as_save_IFS
  4058. fi
  4059. fi
  4060. CC=$ac_cv_prog_CC
  4061. if test -n "$CC"; then
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4063. $as_echo "$CC" >&6; }
  4064. else
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4066. $as_echo "no" >&6; }
  4067. fi
  4068. fi
  4069. fi
  4070. if test -z "$CC"; then
  4071. # Extract the first word of "cc", so it can be a program name with args.
  4072. set dummy cc; ac_word=$2
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4074. $as_echo_n "checking for $ac_word... " >&6; }
  4075. if test "${ac_cv_prog_CC+set}" = set; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. if test -n "$CC"; then
  4079. ac_cv_prog_CC="$CC" # Let the user override the test.
  4080. else
  4081. ac_prog_rejected=no
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4090. ac_prog_rejected=yes
  4091. continue
  4092. fi
  4093. ac_cv_prog_CC="cc"
  4094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4095. break 2
  4096. fi
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. if test $ac_prog_rejected = yes; then
  4101. # We found a bogon in the path, so make sure we never use it.
  4102. set dummy $ac_cv_prog_CC
  4103. shift
  4104. if test $# != 0; then
  4105. # We chose a different compiler from the bogus one.
  4106. # However, it has the same basename, so the bogon will be chosen
  4107. # first if we set CC to just the basename; use the full file name.
  4108. shift
  4109. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4110. fi
  4111. fi
  4112. fi
  4113. fi
  4114. CC=$ac_cv_prog_CC
  4115. if test -n "$CC"; then
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4117. $as_echo "$CC" >&6; }
  4118. else
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4120. $as_echo "no" >&6; }
  4121. fi
  4122. fi
  4123. if test -z "$CC"; then
  4124. if test -n "$ac_tool_prefix"; then
  4125. for ac_prog in cl.exe
  4126. do
  4127. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4128. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4130. $as_echo_n "checking for $ac_word... " >&6; }
  4131. if test "${ac_cv_prog_CC+set}" = set; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. if test -n "$CC"; then
  4135. ac_cv_prog_CC="$CC" # Let the user override the test.
  4136. else
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4144. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4146. break 2
  4147. fi
  4148. done
  4149. done
  4150. IFS=$as_save_IFS
  4151. fi
  4152. fi
  4153. CC=$ac_cv_prog_CC
  4154. if test -n "$CC"; then
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4156. $as_echo "$CC" >&6; }
  4157. else
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4159. $as_echo "no" >&6; }
  4160. fi
  4161. test -n "$CC" && break
  4162. done
  4163. fi
  4164. if test -z "$CC"; then
  4165. ac_ct_CC=$CC
  4166. for ac_prog in cl.exe
  4167. do
  4168. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4169. set dummy $ac_prog; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -n "$ac_ct_CC"; then
  4176. ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4185. ac_cv_prog_ac_ct_CC="$ac_prog"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4195. if test -n "$ac_ct_CC"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4197. $as_echo "$ac_ct_CC" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. test -n "$ac_ct_CC" && break
  4203. done
  4204. if test "x$ac_ct_CC" = x; then
  4205. CC=""
  4206. else
  4207. case $cross_compiling:$ac_tool_warned in
  4208. yes:)
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4210. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4211. ac_tool_warned=yes ;;
  4212. esac
  4213. CC=$ac_ct_CC
  4214. fi
  4215. fi
  4216. fi
  4217. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4219. as_fn_error "no acceptable C compiler found in \$PATH
  4220. See \`config.log' for more details." "$LINENO" 5; }
  4221. # Provide some information about the compiler.
  4222. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4223. set X $ac_compile
  4224. ac_compiler=$2
  4225. for ac_option in --version -v -V -qversion; do
  4226. { { ac_try="$ac_compiler $ac_option >&5"
  4227. case "(($ac_try" in
  4228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4229. *) ac_try_echo=$ac_try;;
  4230. esac
  4231. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4232. $as_echo "$ac_try_echo"; } >&5
  4233. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4234. ac_status=$?
  4235. if test -s conftest.err; then
  4236. sed '10a\
  4237. ... rest of stderr output deleted ...
  4238. 10q' conftest.err >conftest.er1
  4239. cat conftest.er1 >&5
  4240. rm -f conftest.er1 conftest.err
  4241. fi
  4242. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4243. test $ac_status = 0; }
  4244. done
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4246. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4247. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. int
  4253. main ()
  4254. {
  4255. #ifndef __GNUC__
  4256. choke me
  4257. #endif
  4258. ;
  4259. return 0;
  4260. }
  4261. _ACEOF
  4262. if ac_fn_c_try_compile "$LINENO"; then :
  4263. ac_compiler_gnu=yes
  4264. else
  4265. ac_compiler_gnu=no
  4266. fi
  4267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4268. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4271. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4272. if test $ac_compiler_gnu = yes; then
  4273. GCC=yes
  4274. else
  4275. GCC=
  4276. fi
  4277. ac_test_CFLAGS=${CFLAGS+set}
  4278. ac_save_CFLAGS=$CFLAGS
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4280. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4281. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. ac_save_c_werror_flag=$ac_c_werror_flag
  4285. ac_c_werror_flag=yes
  4286. ac_cv_prog_cc_g=no
  4287. CFLAGS="-g"
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int
  4291. main ()
  4292. {
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. ac_cv_prog_cc_g=yes
  4299. else
  4300. CFLAGS=""
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. int
  4304. main ()
  4305. {
  4306. ;
  4307. return 0;
  4308. }
  4309. _ACEOF
  4310. if ac_fn_c_try_compile "$LINENO"; then :
  4311. else
  4312. ac_c_werror_flag=$ac_save_c_werror_flag
  4313. CFLAGS="-g"
  4314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4315. /* end confdefs.h. */
  4316. int
  4317. main ()
  4318. {
  4319. ;
  4320. return 0;
  4321. }
  4322. _ACEOF
  4323. if ac_fn_c_try_compile "$LINENO"; then :
  4324. ac_cv_prog_cc_g=yes
  4325. fi
  4326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4327. fi
  4328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4329. fi
  4330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4331. ac_c_werror_flag=$ac_save_c_werror_flag
  4332. fi
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4334. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4335. if test "$ac_test_CFLAGS" = set; then
  4336. CFLAGS=$ac_save_CFLAGS
  4337. elif test $ac_cv_prog_cc_g = yes; then
  4338. if test "$GCC" = yes; then
  4339. CFLAGS="-g -O2"
  4340. else
  4341. CFLAGS="-g"
  4342. fi
  4343. else
  4344. if test "$GCC" = yes; then
  4345. CFLAGS="-O2"
  4346. else
  4347. CFLAGS=
  4348. fi
  4349. fi
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4351. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4352. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. ac_cv_prog_cc_c89=no
  4356. ac_save_CC=$CC
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. #include <stdarg.h>
  4360. #include <stdio.h>
  4361. #include <sys/types.h>
  4362. #include <sys/stat.h>
  4363. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4364. struct buf { int x; };
  4365. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4366. static char *e (p, i)
  4367. char **p;
  4368. int i;
  4369. {
  4370. return p[i];
  4371. }
  4372. static char *f (char * (*g) (char **, int), char **p, ...)
  4373. {
  4374. char *s;
  4375. va_list v;
  4376. va_start (v,p);
  4377. s = g (p, va_arg (v,int));
  4378. va_end (v);
  4379. return s;
  4380. }
  4381. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4382. function prototypes and stuff, but not '\xHH' hex character constants.
  4383. These don't provoke an error unfortunately, instead are silently treated
  4384. as 'x'. The following induces an error, until -std is added to get
  4385. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4386. array size at least. It's necessary to write '\x00'==0 to get something
  4387. that's true only with -std. */
  4388. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4389. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4390. inside strings and character constants. */
  4391. #define FOO(x) 'x'
  4392. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4393. int test (int i, double x);
  4394. struct s1 {int (*f) (int a);};
  4395. struct s2 {int (*f) (double a);};
  4396. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4397. int argc;
  4398. char **argv;
  4399. int
  4400. main ()
  4401. {
  4402. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4408. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4409. do
  4410. CC="$ac_save_CC $ac_arg"
  4411. if ac_fn_c_try_compile "$LINENO"; then :
  4412. ac_cv_prog_cc_c89=$ac_arg
  4413. fi
  4414. rm -f core conftest.err conftest.$ac_objext
  4415. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4416. done
  4417. rm -f conftest.$ac_ext
  4418. CC=$ac_save_CC
  4419. fi
  4420. # AC_CACHE_VAL
  4421. case "x$ac_cv_prog_cc_c89" in
  4422. x)
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4424. $as_echo "none needed" >&6; } ;;
  4425. xno)
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4427. $as_echo "unsupported" >&6; } ;;
  4428. *)
  4429. CC="$CC $ac_cv_prog_cc_c89"
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4431. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4432. esac
  4433. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4434. fi
  4435. ac_ext=c
  4436. ac_cpp='$CPP $CPPFLAGS'
  4437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$RANLIB"; then
  4449. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. RANLIB=$ac_cv_prog_RANLIB
  4468. if test -n "$RANLIB"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4470. $as_echo "$RANLIB" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_RANLIB"; then
  4477. ac_ct_RANLIB=$RANLIB
  4478. # Extract the first word of "ranlib", so it can be a program name with args.
  4479. set dummy ranlib; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_RANLIB"; then
  4486. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4505. if test -n "$ac_ct_RANLIB"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4507. $as_echo "$ac_ct_RANLIB" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_RANLIB" = x; then
  4513. RANLIB=":"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. RANLIB=$ac_ct_RANLIB
  4522. fi
  4523. else
  4524. RANLIB="$ac_cv_prog_RANLIB"
  4525. fi
  4526. for ac_prog in gawk mawk nawk awk
  4527. do
  4528. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4529. set dummy $ac_prog; ac_word=$2
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4531. $as_echo_n "checking for $ac_word... " >&6; }
  4532. if test "${ac_cv_prog_AWK+set}" = set; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -n "$AWK"; then
  4536. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4537. else
  4538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539. for as_dir in $PATH
  4540. do
  4541. IFS=$as_save_IFS
  4542. test -z "$as_dir" && as_dir=.
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4545. ac_cv_prog_AWK="$ac_prog"
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547. break 2
  4548. fi
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. fi
  4553. fi
  4554. AWK=$ac_cv_prog_AWK
  4555. if test -n "$AWK"; then
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4557. $as_echo "$AWK" >&6; }
  4558. else
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4560. $as_echo "no" >&6; }
  4561. fi
  4562. test -n "$AWK" && break
  4563. done
  4564. case "$AWK" in
  4565. "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
  4566. esac
  4567. case `pwd` in
  4568. *\ * | *\ *)
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4570. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4571. esac
  4572. macro_version='2.2.7a'
  4573. macro_revision='1.3134'
  4574. ltmain="$ac_aux_dir/ltmain.sh"
  4575. # Backslashify metacharacters that are still active within
  4576. # double-quoted strings.
  4577. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4578. # Same as above, but do not quote variable references.
  4579. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4580. # Sed substitution to delay expansion of an escaped shell variable in a
  4581. # double_quote_subst'ed string.
  4582. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4583. # Sed substitution to delay expansion of an escaped single quote.
  4584. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4585. # Sed substitution to avoid accidental globbing in evaled expressions
  4586. no_glob_subst='s/\*/\\\*/g'
  4587. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4588. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4589. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4591. $as_echo_n "checking how to print strings... " >&6; }
  4592. # Test print first, because it will be a builtin if present.
  4593. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4594. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4595. ECHO='print -r --'
  4596. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4597. ECHO='printf %s\n'
  4598. else
  4599. # Use this function as a fallback that always works.
  4600. func_fallback_echo ()
  4601. {
  4602. eval 'cat <<_LTECHO_EOF
  4603. $1
  4604. _LTECHO_EOF'
  4605. }
  4606. ECHO='func_fallback_echo'
  4607. fi
  4608. # func_echo_all arg...
  4609. # Invoke $ECHO with all args, space-separated.
  4610. func_echo_all ()
  4611. {
  4612. $ECHO ""
  4613. }
  4614. case "$ECHO" in
  4615. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4616. $as_echo "printf" >&6; } ;;
  4617. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4618. $as_echo "print -r" >&6; } ;;
  4619. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4620. $as_echo "cat" >&6; } ;;
  4621. esac
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4623. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4624. if test "${ac_cv_path_SED+set}" = set; then :
  4625. $as_echo_n "(cached) " >&6
  4626. else
  4627. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4628. for ac_i in 1 2 3 4 5 6 7; do
  4629. ac_script="$ac_script$as_nl$ac_script"
  4630. done
  4631. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4632. { ac_script=; unset ac_script;}
  4633. if test -z "$SED"; then
  4634. ac_path_SED_found=false
  4635. # Loop through the user's path and test for each of PROGNAME-LIST
  4636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637. for as_dir in $PATH
  4638. do
  4639. IFS=$as_save_IFS
  4640. test -z "$as_dir" && as_dir=.
  4641. for ac_prog in sed gsed; do
  4642. for ac_exec_ext in '' $ac_executable_extensions; do
  4643. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4644. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4645. # Check for GNU ac_path_SED and select it if it is found.
  4646. # Check for GNU $ac_path_SED
  4647. case `"$ac_path_SED" --version 2>&1` in
  4648. *GNU*)
  4649. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4650. *)
  4651. ac_count=0
  4652. $as_echo_n 0123456789 >"conftest.in"
  4653. while :
  4654. do
  4655. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4656. mv "conftest.tmp" "conftest.in"
  4657. cp "conftest.in" "conftest.nl"
  4658. $as_echo '' >> "conftest.nl"
  4659. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4660. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4661. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4662. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4663. # Best one so far, save it but keep looking for a better one
  4664. ac_cv_path_SED="$ac_path_SED"
  4665. ac_path_SED_max=$ac_count
  4666. fi
  4667. # 10*(2^10) chars as input seems more than enough
  4668. test $ac_count -gt 10 && break
  4669. done
  4670. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4671. esac
  4672. $ac_path_SED_found && break 3
  4673. done
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. if test -z "$ac_cv_path_SED"; then
  4678. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4679. fi
  4680. else
  4681. ac_cv_path_SED=$SED
  4682. fi
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4685. $as_echo "$ac_cv_path_SED" >&6; }
  4686. SED="$ac_cv_path_SED"
  4687. rm -f conftest.sed
  4688. test -z "$SED" && SED=sed
  4689. Xsed="$SED -e 1s/^X//"
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4691. $as_echo_n "checking for fgrep... " >&6; }
  4692. if test "${ac_cv_path_FGREP+set}" = set; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4696. then ac_cv_path_FGREP="$GREP -F"
  4697. else
  4698. if test -z "$FGREP"; then
  4699. ac_path_FGREP_found=false
  4700. # Loop through the user's path and test for each of PROGNAME-LIST
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4703. do
  4704. IFS=$as_save_IFS
  4705. test -z "$as_dir" && as_dir=.
  4706. for ac_prog in fgrep; do
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4709. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4710. # Check for GNU ac_path_FGREP and select it if it is found.
  4711. # Check for GNU $ac_path_FGREP
  4712. case `"$ac_path_FGREP" --version 2>&1` in
  4713. *GNU*)
  4714. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4715. *)
  4716. ac_count=0
  4717. $as_echo_n 0123456789 >"conftest.in"
  4718. while :
  4719. do
  4720. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4721. mv "conftest.tmp" "conftest.in"
  4722. cp "conftest.in" "conftest.nl"
  4723. $as_echo 'FGREP' >> "conftest.nl"
  4724. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4725. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4726. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4727. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4728. # Best one so far, save it but keep looking for a better one
  4729. ac_cv_path_FGREP="$ac_path_FGREP"
  4730. ac_path_FGREP_max=$ac_count
  4731. fi
  4732. # 10*(2^10) chars as input seems more than enough
  4733. test $ac_count -gt 10 && break
  4734. done
  4735. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4736. esac
  4737. $ac_path_FGREP_found && break 3
  4738. done
  4739. done
  4740. done
  4741. IFS=$as_save_IFS
  4742. if test -z "$ac_cv_path_FGREP"; then
  4743. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4744. fi
  4745. else
  4746. ac_cv_path_FGREP=$FGREP
  4747. fi
  4748. fi
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4751. $as_echo "$ac_cv_path_FGREP" >&6; }
  4752. FGREP="$ac_cv_path_FGREP"
  4753. test -z "$GREP" && GREP=grep
  4754. # Check whether --with-gnu-ld was given.
  4755. if test "${with_gnu_ld+set}" = set; then :
  4756. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4757. else
  4758. with_gnu_ld=no
  4759. fi
  4760. ac_prog=ld
  4761. if test "$GCC" = yes; then
  4762. # Check if gcc -print-prog-name=ld gives a path.
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4764. $as_echo_n "checking for ld used by $CC... " >&6; }
  4765. case $host in
  4766. *-*-mingw*)
  4767. # gcc leaves a trailing carriage return which upsets mingw
  4768. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4769. *)
  4770. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4771. esac
  4772. case $ac_prog in
  4773. # Accept absolute paths.
  4774. [\\/]* | ?:[\\/]*)
  4775. re_direlt='/[^/][^/]*/\.\./'
  4776. # Canonicalize the pathname of ld
  4777. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4778. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4779. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4780. done
  4781. test -z "$LD" && LD="$ac_prog"
  4782. ;;
  4783. "")
  4784. # If it fails, then pretend we aren't using GCC.
  4785. ac_prog=ld
  4786. ;;
  4787. *)
  4788. # If it is relative, then search for the first ld in PATH.
  4789. with_gnu_ld=unknown
  4790. ;;
  4791. esac
  4792. elif test "$with_gnu_ld" = yes; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4794. $as_echo_n "checking for GNU ld... " >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4797. $as_echo_n "checking for non-GNU ld... " >&6; }
  4798. fi
  4799. if test "${lt_cv_path_LD+set}" = set; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -z "$LD"; then
  4803. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4804. for ac_dir in $PATH; do
  4805. IFS="$lt_save_ifs"
  4806. test -z "$ac_dir" && ac_dir=.
  4807. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4808. lt_cv_path_LD="$ac_dir/$ac_prog"
  4809. # Check to see if the program is GNU ld. I'd rather use --version,
  4810. # but apparently some variants of GNU ld only accept -v.
  4811. # Break only if it was the GNU/non-GNU ld that we prefer.
  4812. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4813. *GNU* | *'with BFD'*)
  4814. test "$with_gnu_ld" != no && break
  4815. ;;
  4816. *)
  4817. test "$with_gnu_ld" != yes && break
  4818. ;;
  4819. esac
  4820. fi
  4821. done
  4822. IFS="$lt_save_ifs"
  4823. else
  4824. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4825. fi
  4826. fi
  4827. LD="$lt_cv_path_LD"
  4828. if test -n "$LD"; then
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4830. $as_echo "$LD" >&6; }
  4831. else
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4833. $as_echo "no" >&6; }
  4834. fi
  4835. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4837. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4838. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4842. case `$LD -v 2>&1 </dev/null` in
  4843. *GNU* | *'with BFD'*)
  4844. lt_cv_prog_gnu_ld=yes
  4845. ;;
  4846. *)
  4847. lt_cv_prog_gnu_ld=no
  4848. ;;
  4849. esac
  4850. fi
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4852. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4853. with_gnu_ld=$lt_cv_prog_gnu_ld
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4855. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4856. if test "${lt_cv_path_NM+set}" = set; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. if test -n "$NM"; then
  4860. # Let the user override the test.
  4861. lt_cv_path_NM="$NM"
  4862. else
  4863. lt_nm_to_check="${ac_tool_prefix}nm"
  4864. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4865. lt_nm_to_check="$lt_nm_to_check nm"
  4866. fi
  4867. for lt_tmp_nm in $lt_nm_to_check; do
  4868. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4869. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4870. IFS="$lt_save_ifs"
  4871. test -z "$ac_dir" && ac_dir=.
  4872. tmp_nm="$ac_dir/$lt_tmp_nm"
  4873. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4874. # Check to see if the nm accepts a BSD-compat flag.
  4875. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4876. # nm: unknown option "B" ignored
  4877. # Tru64's nm complains that /dev/null is an invalid object file
  4878. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4879. */dev/null* | *'Invalid file or object type'*)
  4880. lt_cv_path_NM="$tmp_nm -B"
  4881. break
  4882. ;;
  4883. *)
  4884. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4885. */dev/null*)
  4886. lt_cv_path_NM="$tmp_nm -p"
  4887. break
  4888. ;;
  4889. *)
  4890. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4891. continue # so that we can try to find one that supports BSD flags
  4892. ;;
  4893. esac
  4894. ;;
  4895. esac
  4896. fi
  4897. done
  4898. IFS="$lt_save_ifs"
  4899. done
  4900. : ${lt_cv_path_NM=no}
  4901. fi
  4902. fi
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4904. $as_echo "$lt_cv_path_NM" >&6; }
  4905. if test "$lt_cv_path_NM" != "no"; then
  4906. NM="$lt_cv_path_NM"
  4907. else
  4908. # Didn't find any BSD compatible name lister, look for dumpbin.
  4909. if test -n "$DUMPBIN"; then :
  4910. # Let the user override the test.
  4911. else
  4912. if test -n "$ac_tool_prefix"; then
  4913. for ac_prog in dumpbin "link -dump"
  4914. do
  4915. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4916. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$DUMPBIN"; then
  4923. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4932. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. DUMPBIN=$ac_cv_prog_DUMPBIN
  4942. if test -n "$DUMPBIN"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4944. $as_echo "$DUMPBIN" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. test -n "$DUMPBIN" && break
  4950. done
  4951. fi
  4952. if test -z "$DUMPBIN"; then
  4953. ac_ct_DUMPBIN=$DUMPBIN
  4954. for ac_prog in dumpbin "link -dump"
  4955. do
  4956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4957. set dummy $ac_prog; ac_word=$2
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4959. $as_echo_n "checking for $ac_word... " >&6; }
  4960. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. if test -n "$ac_ct_DUMPBIN"; then
  4964. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4965. else
  4966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4967. for as_dir in $PATH
  4968. do
  4969. IFS=$as_save_IFS
  4970. test -z "$as_dir" && as_dir=.
  4971. for ac_exec_ext in '' $ac_executable_extensions; do
  4972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4973. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4975. break 2
  4976. fi
  4977. done
  4978. done
  4979. IFS=$as_save_IFS
  4980. fi
  4981. fi
  4982. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4983. if test -n "$ac_ct_DUMPBIN"; then
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4985. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4986. else
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4988. $as_echo "no" >&6; }
  4989. fi
  4990. test -n "$ac_ct_DUMPBIN" && break
  4991. done
  4992. if test "x$ac_ct_DUMPBIN" = x; then
  4993. DUMPBIN=":"
  4994. else
  4995. case $cross_compiling:$ac_tool_warned in
  4996. yes:)
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4999. ac_tool_warned=yes ;;
  5000. esac
  5001. DUMPBIN=$ac_ct_DUMPBIN
  5002. fi
  5003. fi
  5004. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5005. *COFF*)
  5006. DUMPBIN="$DUMPBIN -symbols"
  5007. ;;
  5008. *)
  5009. DUMPBIN=:
  5010. ;;
  5011. esac
  5012. fi
  5013. if test "$DUMPBIN" != ":"; then
  5014. NM="$DUMPBIN"
  5015. fi
  5016. fi
  5017. test -z "$NM" && NM=nm
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5019. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5020. if test "${lt_cv_nm_interface+set}" = set; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. lt_cv_nm_interface="BSD nm"
  5024. echo "int some_variable = 0;" > conftest.$ac_ext
  5025. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5026. (eval "$ac_compile" 2>conftest.err)
  5027. cat conftest.err >&5
  5028. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5029. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5030. cat conftest.err >&5
  5031. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5032. cat conftest.out >&5
  5033. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5034. lt_cv_nm_interface="MS dumpbin"
  5035. fi
  5036. rm -f conftest*
  5037. fi
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5039. $as_echo "$lt_cv_nm_interface" >&6; }
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5041. $as_echo_n "checking whether ln -s works... " >&6; }
  5042. LN_S=$as_ln_s
  5043. if test "$LN_S" = "ln -s"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5045. $as_echo "yes" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5048. $as_echo "no, using $LN_S" >&6; }
  5049. fi
  5050. # find the maximum length of command line arguments
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5052. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5053. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. i=0
  5057. teststring="ABCD"
  5058. case $build_os in
  5059. msdosdjgpp*)
  5060. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5061. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5062. # during glob expansion). Even if it were fixed, the result of this
  5063. # check would be larger than it should be.
  5064. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5065. ;;
  5066. gnu*)
  5067. # Under GNU Hurd, this test is not required because there is
  5068. # no limit to the length of command line arguments.
  5069. # Libtool will interpret -1 as no limit whatsoever
  5070. lt_cv_sys_max_cmd_len=-1;
  5071. ;;
  5072. cygwin* | mingw* | cegcc*)
  5073. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5074. # about 5 minutes as the teststring grows exponentially.
  5075. # Worse, since 9x/ME are not pre-emptively multitasking,
  5076. # you end up with a "frozen" computer, even though with patience
  5077. # the test eventually succeeds (with a max line length of 256k).
  5078. # Instead, let's just punt: use the minimum linelength reported by
  5079. # all of the supported platforms: 8192 (on NT/2K/XP).
  5080. lt_cv_sys_max_cmd_len=8192;
  5081. ;;
  5082. mint*)
  5083. # On MiNT this can take a long time and run out of memory.
  5084. lt_cv_sys_max_cmd_len=8192;
  5085. ;;
  5086. amigaos*)
  5087. # On AmigaOS with pdksh, this test takes hours, literally.
  5088. # So we just punt and use a minimum line length of 8192.
  5089. lt_cv_sys_max_cmd_len=8192;
  5090. ;;
  5091. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5092. # This has been around since 386BSD, at least. Likely further.
  5093. if test -x /sbin/sysctl; then
  5094. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5095. elif test -x /usr/sbin/sysctl; then
  5096. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5097. else
  5098. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5099. fi
  5100. # And add a safety zone
  5101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5102. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5103. ;;
  5104. interix*)
  5105. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5106. lt_cv_sys_max_cmd_len=196608
  5107. ;;
  5108. osf*)
  5109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5111. # nice to cause kernel panics so lets avoid the loop below.
  5112. # First set a reasonable default.
  5113. lt_cv_sys_max_cmd_len=16384
  5114. #
  5115. if test -x /sbin/sysconfig; then
  5116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5118. esac
  5119. fi
  5120. ;;
  5121. sco3.2v5*)
  5122. lt_cv_sys_max_cmd_len=102400
  5123. ;;
  5124. sysv5* | sco5v6* | sysv4.2uw2*)
  5125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5126. if test -n "$kargmax"; then
  5127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5128. else
  5129. lt_cv_sys_max_cmd_len=32768
  5130. fi
  5131. ;;
  5132. *)
  5133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5134. if test -n "$lt_cv_sys_max_cmd_len"; then
  5135. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5137. else
  5138. # Make teststring a little bigger before we do anything with it.
  5139. # a 1K string should be a reasonable start.
  5140. for i in 1 2 3 4 5 6 7 8 ; do
  5141. teststring=$teststring$teststring
  5142. done
  5143. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5144. # If test is not a shell built-in, we'll probably end up computing a
  5145. # maximum length that is only half of the actual maximum length, but
  5146. # we can't tell.
  5147. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5148. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5149. test $i != 17 # 1/2 MB should be enough
  5150. do
  5151. i=`expr $i + 1`
  5152. teststring=$teststring$teststring
  5153. done
  5154. # Only check the string length outside the loop.
  5155. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5156. teststring=
  5157. # Add a significant safety factor because C++ compilers can tack on
  5158. # massive amounts of additional arguments before passing them to the
  5159. # linker. It appears as though 1/2 is a usable value.
  5160. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5161. fi
  5162. ;;
  5163. esac
  5164. fi
  5165. if test -n $lt_cv_sys_max_cmd_len ; then
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5167. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5168. else
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5170. $as_echo "none" >&6; }
  5171. fi
  5172. max_cmd_len=$lt_cv_sys_max_cmd_len
  5173. : ${CP="cp -f"}
  5174. : ${MV="mv -f"}
  5175. : ${RM="rm -f"}
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5177. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5178. # Try some XSI features
  5179. xsi_shell=no
  5180. ( _lt_dummy="a/b/c"
  5181. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5182. = c,a/b,, \
  5183. && eval 'test $(( 1 + 1 )) -eq 2 \
  5184. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5185. && xsi_shell=yes
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5187. $as_echo "$xsi_shell" >&6; }
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5189. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5190. lt_shell_append=no
  5191. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5192. >/dev/null 2>&1 \
  5193. && lt_shell_append=yes
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5195. $as_echo "$lt_shell_append" >&6; }
  5196. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5197. lt_unset=unset
  5198. else
  5199. lt_unset=false
  5200. fi
  5201. # test EBCDIC or ASCII
  5202. case `echo X|tr X '\101'` in
  5203. A) # ASCII based system
  5204. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5205. lt_SP2NL='tr \040 \012'
  5206. lt_NL2SP='tr \015\012 \040\040'
  5207. ;;
  5208. *) # EBCDIC based system
  5209. lt_SP2NL='tr \100 \n'
  5210. lt_NL2SP='tr \r\n \100\100'
  5211. ;;
  5212. esac
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5214. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5215. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. lt_cv_ld_reload_flag='-r'
  5219. fi
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5221. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5222. reload_flag=$lt_cv_ld_reload_flag
  5223. case $reload_flag in
  5224. "" | " "*) ;;
  5225. *) reload_flag=" $reload_flag" ;;
  5226. esac
  5227. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5228. case $host_os in
  5229. darwin*)
  5230. if test "$GCC" = yes; then
  5231. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5232. else
  5233. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5234. fi
  5235. ;;
  5236. esac
  5237. if test -n "$ac_tool_prefix"; then
  5238. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5239. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5241. $as_echo_n "checking for $ac_word... " >&6; }
  5242. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5243. $as_echo_n "(cached) " >&6
  5244. else
  5245. if test -n "$OBJDUMP"; then
  5246. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5247. else
  5248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5249. for as_dir in $PATH
  5250. do
  5251. IFS=$as_save_IFS
  5252. test -z "$as_dir" && as_dir=.
  5253. for ac_exec_ext in '' $ac_executable_extensions; do
  5254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5255. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5257. break 2
  5258. fi
  5259. done
  5260. done
  5261. IFS=$as_save_IFS
  5262. fi
  5263. fi
  5264. OBJDUMP=$ac_cv_prog_OBJDUMP
  5265. if test -n "$OBJDUMP"; then
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5267. $as_echo "$OBJDUMP" >&6; }
  5268. else
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5270. $as_echo "no" >&6; }
  5271. fi
  5272. fi
  5273. if test -z "$ac_cv_prog_OBJDUMP"; then
  5274. ac_ct_OBJDUMP=$OBJDUMP
  5275. # Extract the first word of "objdump", so it can be a program name with args.
  5276. set dummy objdump; ac_word=$2
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5278. $as_echo_n "checking for $ac_word... " >&6; }
  5279. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. if test -n "$ac_ct_OBJDUMP"; then
  5283. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5284. else
  5285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5286. for as_dir in $PATH
  5287. do
  5288. IFS=$as_save_IFS
  5289. test -z "$as_dir" && as_dir=.
  5290. for ac_exec_ext in '' $ac_executable_extensions; do
  5291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5292. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5294. break 2
  5295. fi
  5296. done
  5297. done
  5298. IFS=$as_save_IFS
  5299. fi
  5300. fi
  5301. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5302. if test -n "$ac_ct_OBJDUMP"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5304. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5307. $as_echo "no" >&6; }
  5308. fi
  5309. if test "x$ac_ct_OBJDUMP" = x; then
  5310. OBJDUMP="false"
  5311. else
  5312. case $cross_compiling:$ac_tool_warned in
  5313. yes:)
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5315. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5316. ac_tool_warned=yes ;;
  5317. esac
  5318. OBJDUMP=$ac_ct_OBJDUMP
  5319. fi
  5320. else
  5321. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5322. fi
  5323. test -z "$OBJDUMP" && OBJDUMP=objdump
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5325. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5326. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5330. lt_cv_file_magic_test_file=
  5331. lt_cv_deplibs_check_method='unknown'
  5332. # Need to set the preceding variable on all platforms that support
  5333. # interlibrary dependencies.
  5334. # 'none' -- dependencies not supported.
  5335. # `unknown' -- same as none, but documents that we really don't know.
  5336. # 'pass_all' -- all dependencies passed with no checks.
  5337. # 'test_compile' -- check by making test program.
  5338. # 'file_magic [[regex]]' -- check by looking for files in library path
  5339. # which responds to the $file_magic_cmd with a given extended regex.
  5340. # If you have `file' or equivalent on your system and you're not sure
  5341. # whether `pass_all' will *always* work, you probably want this one.
  5342. case $host_os in
  5343. aix[4-9]*)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. beos*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. bsdi[45]*)
  5350. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5351. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5352. lt_cv_file_magic_test_file=/shlib/libc.so
  5353. ;;
  5354. cygwin*)
  5355. # func_win32_libid is a shell function defined in ltmain.sh
  5356. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5357. lt_cv_file_magic_cmd='func_win32_libid'
  5358. ;;
  5359. mingw* | pw32*)
  5360. # Base MSYS/MinGW do not provide the 'file' command needed by
  5361. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5362. # unless we find 'file', for example because we are cross-compiling.
  5363. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5364. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5365. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5366. lt_cv_file_magic_cmd='func_win32_libid'
  5367. else
  5368. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5369. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5370. fi
  5371. ;;
  5372. cegcc*)
  5373. # use the weaker test based on 'objdump'. See mingw*.
  5374. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5375. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5376. ;;
  5377. darwin* | rhapsody*)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. freebsd* | dragonfly*)
  5381. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5382. case $host_cpu in
  5383. i*86 )
  5384. # Not sure whether the presence of OpenBSD here was a mistake.
  5385. # Let's accept both of them until this is cleared up.
  5386. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5387. lt_cv_file_magic_cmd=/usr/bin/file
  5388. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5389. ;;
  5390. esac
  5391. else
  5392. lt_cv_deplibs_check_method=pass_all
  5393. fi
  5394. ;;
  5395. gnu*)
  5396. lt_cv_deplibs_check_method=pass_all
  5397. ;;
  5398. haiku*)
  5399. lt_cv_deplibs_check_method=pass_all
  5400. ;;
  5401. hpux10.20* | hpux11*)
  5402. lt_cv_file_magic_cmd=/usr/bin/file
  5403. case $host_cpu in
  5404. ia64*)
  5405. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5406. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5407. ;;
  5408. hppa*64*)
  5409. 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]'
  5410. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5411. ;;
  5412. *)
  5413. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5414. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5415. ;;
  5416. esac
  5417. ;;
  5418. interix[3-9]*)
  5419. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5420. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5421. ;;
  5422. irix5* | irix6* | nonstopux*)
  5423. case $LD in
  5424. *-32|*"-32 ") libmagic=32-bit;;
  5425. *-n32|*"-n32 ") libmagic=N32;;
  5426. *-64|*"-64 ") libmagic=64-bit;;
  5427. *) libmagic=never-match;;
  5428. esac
  5429. lt_cv_deplibs_check_method=pass_all
  5430. ;;
  5431. # This must be Linux ELF.
  5432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5433. lt_cv_deplibs_check_method=pass_all
  5434. ;;
  5435. netbsd*)
  5436. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5437. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5438. else
  5439. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5440. fi
  5441. ;;
  5442. newos6*)
  5443. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5444. lt_cv_file_magic_cmd=/usr/bin/file
  5445. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5446. ;;
  5447. *nto* | *qnx*)
  5448. lt_cv_deplibs_check_method=pass_all
  5449. ;;
  5450. openbsd*)
  5451. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5452. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5453. else
  5454. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5455. fi
  5456. ;;
  5457. osf3* | osf4* | osf5*)
  5458. lt_cv_deplibs_check_method=pass_all
  5459. ;;
  5460. rdos*)
  5461. lt_cv_deplibs_check_method=pass_all
  5462. ;;
  5463. solaris*)
  5464. lt_cv_deplibs_check_method=pass_all
  5465. ;;
  5466. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5467. lt_cv_deplibs_check_method=pass_all
  5468. ;;
  5469. sysv4 | sysv4.3*)
  5470. case $host_vendor in
  5471. motorola)
  5472. 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]'
  5473. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5474. ;;
  5475. ncr)
  5476. lt_cv_deplibs_check_method=pass_all
  5477. ;;
  5478. sequent)
  5479. lt_cv_file_magic_cmd='/bin/file'
  5480. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5481. ;;
  5482. sni)
  5483. lt_cv_file_magic_cmd='/bin/file'
  5484. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5485. lt_cv_file_magic_test_file=/lib/libc.so
  5486. ;;
  5487. siemens)
  5488. lt_cv_deplibs_check_method=pass_all
  5489. ;;
  5490. pc)
  5491. lt_cv_deplibs_check_method=pass_all
  5492. ;;
  5493. esac
  5494. ;;
  5495. tpf*)
  5496. lt_cv_deplibs_check_method=pass_all
  5497. ;;
  5498. esac
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5501. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5502. file_magic_cmd=$lt_cv_file_magic_cmd
  5503. deplibs_check_method=$lt_cv_deplibs_check_method
  5504. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5505. if test -n "$ac_tool_prefix"; then
  5506. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5507. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5509. $as_echo_n "checking for $ac_word... " >&6; }
  5510. if test "${ac_cv_prog_AR+set}" = set; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. if test -n "$AR"; then
  5514. ac_cv_prog_AR="$AR" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5523. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. AR=$ac_cv_prog_AR
  5533. if test -n "$AR"; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5535. $as_echo "$AR" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5538. $as_echo "no" >&6; }
  5539. fi
  5540. fi
  5541. if test -z "$ac_cv_prog_AR"; then
  5542. ac_ct_AR=$AR
  5543. # Extract the first word of "ar", so it can be a program name with args.
  5544. set dummy ar; ac_word=$2
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5546. $as_echo_n "checking for $ac_word... " >&6; }
  5547. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. if test -n "$ac_ct_AR"; then
  5551. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5552. else
  5553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5554. for as_dir in $PATH
  5555. do
  5556. IFS=$as_save_IFS
  5557. test -z "$as_dir" && as_dir=.
  5558. for ac_exec_ext in '' $ac_executable_extensions; do
  5559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5560. ac_cv_prog_ac_ct_AR="ar"
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5562. break 2
  5563. fi
  5564. done
  5565. done
  5566. IFS=$as_save_IFS
  5567. fi
  5568. fi
  5569. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5570. if test -n "$ac_ct_AR"; then
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5572. $as_echo "$ac_ct_AR" >&6; }
  5573. else
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5575. $as_echo "no" >&6; }
  5576. fi
  5577. if test "x$ac_ct_AR" = x; then
  5578. AR="false"
  5579. else
  5580. case $cross_compiling:$ac_tool_warned in
  5581. yes:)
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5584. ac_tool_warned=yes ;;
  5585. esac
  5586. AR=$ac_ct_AR
  5587. fi
  5588. else
  5589. AR="$ac_cv_prog_AR"
  5590. fi
  5591. test -z "$AR" && AR=ar
  5592. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5593. if test -n "$ac_tool_prefix"; then
  5594. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5595. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5597. $as_echo_n "checking for $ac_word... " >&6; }
  5598. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. if test -n "$STRIP"; then
  5602. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. test -z "$as_dir" && as_dir=.
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5611. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5613. break 2
  5614. fi
  5615. done
  5616. done
  5617. IFS=$as_save_IFS
  5618. fi
  5619. fi
  5620. STRIP=$ac_cv_prog_STRIP
  5621. if test -n "$STRIP"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5623. $as_echo "$STRIP" >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. fi
  5628. fi
  5629. if test -z "$ac_cv_prog_STRIP"; then
  5630. ac_ct_STRIP=$STRIP
  5631. # Extract the first word of "strip", so it can be a program name with args.
  5632. set dummy strip; ac_word=$2
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5634. $as_echo_n "checking for $ac_word... " >&6; }
  5635. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5636. $as_echo_n "(cached) " >&6
  5637. else
  5638. if test -n "$ac_ct_STRIP"; then
  5639. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5640. else
  5641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5642. for as_dir in $PATH
  5643. do
  5644. IFS=$as_save_IFS
  5645. test -z "$as_dir" && as_dir=.
  5646. for ac_exec_ext in '' $ac_executable_extensions; do
  5647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5648. ac_cv_prog_ac_ct_STRIP="strip"
  5649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5650. break 2
  5651. fi
  5652. done
  5653. done
  5654. IFS=$as_save_IFS
  5655. fi
  5656. fi
  5657. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5658. if test -n "$ac_ct_STRIP"; then
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5660. $as_echo "$ac_ct_STRIP" >&6; }
  5661. else
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5663. $as_echo "no" >&6; }
  5664. fi
  5665. if test "x$ac_ct_STRIP" = x; then
  5666. STRIP=":"
  5667. else
  5668. case $cross_compiling:$ac_tool_warned in
  5669. yes:)
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5672. ac_tool_warned=yes ;;
  5673. esac
  5674. STRIP=$ac_ct_STRIP
  5675. fi
  5676. else
  5677. STRIP="$ac_cv_prog_STRIP"
  5678. fi
  5679. test -z "$STRIP" && STRIP=:
  5680. if test -n "$ac_tool_prefix"; then
  5681. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5682. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5684. $as_echo_n "checking for $ac_word... " >&6; }
  5685. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. if test -n "$RANLIB"; then
  5689. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5690. else
  5691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5692. for as_dir in $PATH
  5693. do
  5694. IFS=$as_save_IFS
  5695. test -z "$as_dir" && as_dir=.
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5698. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. RANLIB=$ac_cv_prog_RANLIB
  5708. if test -n "$RANLIB"; then
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5710. $as_echo "$RANLIB" >&6; }
  5711. else
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. $as_echo "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_RANLIB"; then
  5717. ac_ct_RANLIB=$RANLIB
  5718. # Extract the first word of "ranlib", so it can be a program name with args.
  5719. set dummy ranlib; 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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -n "$ac_ct_RANLIB"; then
  5726. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5735. ac_cv_prog_ac_ct_RANLIB="ranlib"
  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. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5745. if test -n "$ac_ct_RANLIB"; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5747. $as_echo "$ac_ct_RANLIB" >&6; }
  5748. else
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5750. $as_echo "no" >&6; }
  5751. fi
  5752. if test "x$ac_ct_RANLIB" = x; then
  5753. RANLIB=":"
  5754. else
  5755. case $cross_compiling:$ac_tool_warned in
  5756. yes:)
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5759. ac_tool_warned=yes ;;
  5760. esac
  5761. RANLIB=$ac_ct_RANLIB
  5762. fi
  5763. else
  5764. RANLIB="$ac_cv_prog_RANLIB"
  5765. fi
  5766. test -z "$RANLIB" && RANLIB=:
  5767. # Determine commands to create old-style static archives.
  5768. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5769. old_postinstall_cmds='chmod 644 $oldlib'
  5770. old_postuninstall_cmds=
  5771. if test -n "$RANLIB"; then
  5772. case $host_os in
  5773. openbsd*)
  5774. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5775. ;;
  5776. *)
  5777. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5778. ;;
  5779. esac
  5780. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5781. fi
  5782. case $host_os in
  5783. darwin*)
  5784. lock_old_archive_extraction=yes ;;
  5785. *)
  5786. lock_old_archive_extraction=no ;;
  5787. esac
  5788. # If no C compiler was specified, use CC.
  5789. LTCC=${LTCC-"$CC"}
  5790. # If no C compiler flags were specified, use CFLAGS.
  5791. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5792. # Allow CC to be a program name with arguments.
  5793. compiler=$CC
  5794. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5796. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5797. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. # These are sane defaults that work on at least a few old systems.
  5801. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5802. # Character class describing NM global symbol codes.
  5803. symcode='[BCDEGRST]'
  5804. # Regexp to match symbols that can be accessed directly from C.
  5805. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5806. # Define system-specific variables.
  5807. case $host_os in
  5808. aix*)
  5809. symcode='[BCDT]'
  5810. ;;
  5811. cygwin* | mingw* | pw32* | cegcc*)
  5812. symcode='[ABCDGISTW]'
  5813. ;;
  5814. hpux*)
  5815. if test "$host_cpu" = ia64; then
  5816. symcode='[ABCDEGRST]'
  5817. fi
  5818. ;;
  5819. irix* | nonstopux*)
  5820. symcode='[BCDEGRST]'
  5821. ;;
  5822. osf*)
  5823. symcode='[BCDEGQRST]'
  5824. ;;
  5825. solaris*)
  5826. symcode='[BDRT]'
  5827. ;;
  5828. sco3.2v5*)
  5829. symcode='[DT]'
  5830. ;;
  5831. sysv4.2uw2*)
  5832. symcode='[DT]'
  5833. ;;
  5834. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5835. symcode='[ABDT]'
  5836. ;;
  5837. sysv4)
  5838. symcode='[DFNSTU]'
  5839. ;;
  5840. esac
  5841. # If we're using GNU nm, then use its standard symbol codes.
  5842. case `$NM -V 2>&1` in
  5843. *GNU* | *'with BFD'*)
  5844. symcode='[ABCDGIRSTW]' ;;
  5845. esac
  5846. # Transform an extracted symbol line into a proper C declaration.
  5847. # Some systems (esp. on ia64) link data and code symbols differently,
  5848. # so use this general approach.
  5849. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5850. # Transform an extracted symbol line into symbol name and symbol address
  5851. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5852. 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'"
  5853. # Handle CRLF in mingw tool chain
  5854. opt_cr=
  5855. case $build_os in
  5856. mingw*)
  5857. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5858. ;;
  5859. esac
  5860. # Try without a prefix underscore, then with it.
  5861. for ac_symprfx in "" "_"; do
  5862. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5863. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5864. # Write the raw and C identifiers.
  5865. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5866. # Fake it for dumpbin and say T for any non-static function
  5867. # and D for any global variable.
  5868. # Also find C++ and __fastcall symbols from MSVC++,
  5869. # which start with @ or ?.
  5870. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5871. " {last_section=section; section=\$ 3};"\
  5872. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5873. " \$ 0!~/External *\|/{next};"\
  5874. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5875. " {if(hide[section]) next};"\
  5876. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5877. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5878. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5879. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5880. " ' prfx=^$ac_symprfx"
  5881. else
  5882. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5883. fi
  5884. # Check to see that the pipe works correctly.
  5885. pipe_works=no
  5886. rm -f conftest*
  5887. cat > conftest.$ac_ext <<_LT_EOF
  5888. #ifdef __cplusplus
  5889. extern "C" {
  5890. #endif
  5891. char nm_test_var;
  5892. void nm_test_func(void);
  5893. void nm_test_func(void){}
  5894. #ifdef __cplusplus
  5895. }
  5896. #endif
  5897. int main(){nm_test_var='a';nm_test_func();return(0);}
  5898. _LT_EOF
  5899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5900. (eval $ac_compile) 2>&5
  5901. ac_status=$?
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5903. test $ac_status = 0; }; then
  5904. # Now try to grab the symbols.
  5905. nlist=conftest.nm
  5906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5907. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5908. ac_status=$?
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5910. test $ac_status = 0; } && test -s "$nlist"; then
  5911. # Try sorting and uniquifying the output.
  5912. if sort "$nlist" | uniq > "$nlist"T; then
  5913. mv -f "$nlist"T "$nlist"
  5914. else
  5915. rm -f "$nlist"T
  5916. fi
  5917. # Make sure that we snagged all the symbols we need.
  5918. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5919. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5920. cat <<_LT_EOF > conftest.$ac_ext
  5921. #ifdef __cplusplus
  5922. extern "C" {
  5923. #endif
  5924. _LT_EOF
  5925. # Now generate the symbol file.
  5926. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5927. cat <<_LT_EOF >> conftest.$ac_ext
  5928. /* The mapping between symbol names and symbols. */
  5929. const struct {
  5930. const char *name;
  5931. void *address;
  5932. }
  5933. lt__PROGRAM__LTX_preloaded_symbols[] =
  5934. {
  5935. { "@PROGRAM@", (void *) 0 },
  5936. _LT_EOF
  5937. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5938. cat <<\_LT_EOF >> conftest.$ac_ext
  5939. {0, (void *) 0}
  5940. };
  5941. /* This works around a problem in FreeBSD linker */
  5942. #ifdef FREEBSD_WORKAROUND
  5943. static const void *lt_preloaded_setup() {
  5944. return lt__PROGRAM__LTX_preloaded_symbols;
  5945. }
  5946. #endif
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. _LT_EOF
  5951. # Now try linking the two files.
  5952. mv conftest.$ac_objext conftstm.$ac_objext
  5953. lt_save_LIBS="$LIBS"
  5954. lt_save_CFLAGS="$CFLAGS"
  5955. LIBS="conftstm.$ac_objext"
  5956. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5957. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5958. (eval $ac_link) 2>&5
  5959. ac_status=$?
  5960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5961. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5962. pipe_works=yes
  5963. fi
  5964. LIBS="$lt_save_LIBS"
  5965. CFLAGS="$lt_save_CFLAGS"
  5966. else
  5967. echo "cannot find nm_test_func in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot find nm_test_var in $nlist" >&5
  5971. fi
  5972. else
  5973. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5974. fi
  5975. else
  5976. echo "$progname: failed program was:" >&5
  5977. cat conftest.$ac_ext >&5
  5978. fi
  5979. rm -rf conftest* conftst*
  5980. # Do not use the global_symbol_pipe unless it works.
  5981. if test "$pipe_works" = yes; then
  5982. break
  5983. else
  5984. lt_cv_sys_global_symbol_pipe=
  5985. fi
  5986. done
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5989. lt_cv_sys_global_symbol_to_cdecl=
  5990. fi
  5991. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5993. $as_echo "failed" >&6; }
  5994. else
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5996. $as_echo "ok" >&6; }
  5997. fi
  5998. # Check whether --enable-libtool-lock was given.
  5999. if test "${enable_libtool_lock+set}" = set; then :
  6000. enableval=$enable_libtool_lock;
  6001. fi
  6002. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6003. # Some flags need to be propagated to the compiler or linker for good
  6004. # libtool support.
  6005. case $host in
  6006. ia64-*-hpux*)
  6007. # Find out which ABI we are using.
  6008. echo 'int i;' > conftest.$ac_ext
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6010. (eval $ac_compile) 2>&5
  6011. ac_status=$?
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; }; then
  6014. case `/usr/bin/file conftest.$ac_objext` in
  6015. *ELF-32*)
  6016. HPUX_IA64_MODE="32"
  6017. ;;
  6018. *ELF-64*)
  6019. HPUX_IA64_MODE="64"
  6020. ;;
  6021. esac
  6022. fi
  6023. rm -rf conftest*
  6024. ;;
  6025. *-*-irix6*)
  6026. # Find out which ABI we are using.
  6027. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6029. (eval $ac_compile) 2>&5
  6030. ac_status=$?
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6032. test $ac_status = 0; }; then
  6033. if test "$lt_cv_prog_gnu_ld" = yes; then
  6034. case `/usr/bin/file conftest.$ac_objext` in
  6035. *32-bit*)
  6036. LD="${LD-ld} -melf32bsmip"
  6037. ;;
  6038. *N32*)
  6039. LD="${LD-ld} -melf32bmipn32"
  6040. ;;
  6041. *64-bit*)
  6042. LD="${LD-ld} -melf64bmip"
  6043. ;;
  6044. esac
  6045. else
  6046. case `/usr/bin/file conftest.$ac_objext` in
  6047. *32-bit*)
  6048. LD="${LD-ld} -32"
  6049. ;;
  6050. *N32*)
  6051. LD="${LD-ld} -n32"
  6052. ;;
  6053. *64-bit*)
  6054. LD="${LD-ld} -64"
  6055. ;;
  6056. esac
  6057. fi
  6058. fi
  6059. rm -rf conftest*
  6060. ;;
  6061. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6062. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6063. # Find out which ABI we are using.
  6064. echo 'int i;' > conftest.$ac_ext
  6065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6066. (eval $ac_compile) 2>&5
  6067. ac_status=$?
  6068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6069. test $ac_status = 0; }; then
  6070. case `/usr/bin/file conftest.o` in
  6071. *32-bit*)
  6072. case $host in
  6073. x86_64-*kfreebsd*-gnu)
  6074. LD="${LD-ld} -m elf_i386_fbsd"
  6075. ;;
  6076. x86_64-*linux*)
  6077. case `/usr/bin/file conftest.o` in
  6078. *x86-64*)
  6079. LD="${LD-ld} -m elf32_x86_64"
  6080. ;;
  6081. *)
  6082. LD="${LD-ld} -m elf_i386"
  6083. ;;
  6084. esac
  6085. ;;
  6086. powerpc64le-*linux*)
  6087. LD="${LD-ld} -m elf32lppclinux"
  6088. ;;
  6089. powerpc64-*linux*)
  6090. LD="${LD-ld} -m elf32ppclinux"
  6091. ;;
  6092. s390x-*linux*)
  6093. LD="${LD-ld} -m elf_s390"
  6094. ;;
  6095. sparc64-*linux*)
  6096. LD="${LD-ld} -m elf32_sparc"
  6097. ;;
  6098. esac
  6099. ;;
  6100. *64-bit*)
  6101. case $host in
  6102. x86_64-*kfreebsd*-gnu)
  6103. LD="${LD-ld} -m elf_x86_64_fbsd"
  6104. ;;
  6105. x86_64-*linux*)
  6106. LD="${LD-ld} -m elf_x86_64"
  6107. ;;
  6108. powerpcle-*linux*)
  6109. LD="${LD-ld} -m elf64lppc"
  6110. ;;
  6111. powerpc-*linux*)
  6112. LD="${LD-ld} -m elf64ppc"
  6113. ;;
  6114. s390*-*linux*|s390*-*tpf*)
  6115. LD="${LD-ld} -m elf64_s390"
  6116. ;;
  6117. sparc*-*linux*)
  6118. LD="${LD-ld} -m elf64_sparc"
  6119. ;;
  6120. esac
  6121. ;;
  6122. esac
  6123. fi
  6124. rm -rf conftest*
  6125. ;;
  6126. *-*-sco3.2v5*)
  6127. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6128. SAVE_CFLAGS="$CFLAGS"
  6129. CFLAGS="$CFLAGS -belf"
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6131. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6132. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6133. $as_echo_n "(cached) " >&6
  6134. else
  6135. ac_ext=c
  6136. ac_cpp='$CPP $CPPFLAGS'
  6137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6141. /* end confdefs.h. */
  6142. int
  6143. main ()
  6144. {
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. if ac_fn_c_try_link "$LINENO"; then :
  6150. lt_cv_cc_needs_belf=yes
  6151. else
  6152. lt_cv_cc_needs_belf=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. ac_ext=c
  6157. ac_cpp='$CPP $CPPFLAGS'
  6158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6163. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6164. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6165. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6166. CFLAGS="$SAVE_CFLAGS"
  6167. fi
  6168. ;;
  6169. sparc*-*solaris*)
  6170. # Find out which ABI we are using.
  6171. echo 'int i;' > conftest.$ac_ext
  6172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6173. (eval $ac_compile) 2>&5
  6174. ac_status=$?
  6175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6176. test $ac_status = 0; }; then
  6177. case `/usr/bin/file conftest.o` in
  6178. *64-bit*)
  6179. case $lt_cv_prog_gnu_ld in
  6180. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6181. *)
  6182. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6183. LD="${LD-ld} -64"
  6184. fi
  6185. ;;
  6186. esac
  6187. ;;
  6188. esac
  6189. fi
  6190. rm -rf conftest*
  6191. ;;
  6192. esac
  6193. need_locks="$enable_libtool_lock"
  6194. case $host_os in
  6195. rhapsody* | darwin*)
  6196. if test -n "$ac_tool_prefix"; then
  6197. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6198. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6200. $as_echo_n "checking for $ac_word... " >&6; }
  6201. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. if test -n "$DSYMUTIL"; then
  6205. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6206. else
  6207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6208. for as_dir in $PATH
  6209. do
  6210. IFS=$as_save_IFS
  6211. test -z "$as_dir" && as_dir=.
  6212. for ac_exec_ext in '' $ac_executable_extensions; do
  6213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6214. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6216. break 2
  6217. fi
  6218. done
  6219. done
  6220. IFS=$as_save_IFS
  6221. fi
  6222. fi
  6223. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6224. if test -n "$DSYMUTIL"; then
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6226. $as_echo "$DSYMUTIL" >&6; }
  6227. else
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6229. $as_echo "no" >&6; }
  6230. fi
  6231. fi
  6232. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6233. ac_ct_DSYMUTIL=$DSYMUTIL
  6234. # Extract the first word of "dsymutil", so it can be a program name with args.
  6235. set dummy dsymutil; ac_word=$2
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6237. $as_echo_n "checking for $ac_word... " >&6; }
  6238. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test -n "$ac_ct_DSYMUTIL"; then
  6242. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6243. else
  6244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6245. for as_dir in $PATH
  6246. do
  6247. IFS=$as_save_IFS
  6248. test -z "$as_dir" && as_dir=.
  6249. for ac_exec_ext in '' $ac_executable_extensions; do
  6250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6251. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6253. break 2
  6254. fi
  6255. done
  6256. done
  6257. IFS=$as_save_IFS
  6258. fi
  6259. fi
  6260. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6261. if test -n "$ac_ct_DSYMUTIL"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6263. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6264. else
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. if test "x$ac_ct_DSYMUTIL" = x; then
  6269. DSYMUTIL=":"
  6270. else
  6271. case $cross_compiling:$ac_tool_warned in
  6272. yes:)
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6275. ac_tool_warned=yes ;;
  6276. esac
  6277. DSYMUTIL=$ac_ct_DSYMUTIL
  6278. fi
  6279. else
  6280. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6281. fi
  6282. if test -n "$ac_tool_prefix"; then
  6283. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6284. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6286. $as_echo_n "checking for $ac_word... " >&6; }
  6287. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. if test -n "$NMEDIT"; then
  6291. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6292. else
  6293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6294. for as_dir in $PATH
  6295. do
  6296. IFS=$as_save_IFS
  6297. test -z "$as_dir" && as_dir=.
  6298. for ac_exec_ext in '' $ac_executable_extensions; do
  6299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6300. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6302. break 2
  6303. fi
  6304. done
  6305. done
  6306. IFS=$as_save_IFS
  6307. fi
  6308. fi
  6309. NMEDIT=$ac_cv_prog_NMEDIT
  6310. if test -n "$NMEDIT"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6312. $as_echo "$NMEDIT" >&6; }
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6315. $as_echo "no" >&6; }
  6316. fi
  6317. fi
  6318. if test -z "$ac_cv_prog_NMEDIT"; then
  6319. ac_ct_NMEDIT=$NMEDIT
  6320. # Extract the first word of "nmedit", so it can be a program name with args.
  6321. set dummy nmedit; ac_word=$2
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6323. $as_echo_n "checking for $ac_word... " >&6; }
  6324. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. if test -n "$ac_ct_NMEDIT"; then
  6328. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6329. else
  6330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6331. for as_dir in $PATH
  6332. do
  6333. IFS=$as_save_IFS
  6334. test -z "$as_dir" && as_dir=.
  6335. for ac_exec_ext in '' $ac_executable_extensions; do
  6336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6337. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6339. break 2
  6340. fi
  6341. done
  6342. done
  6343. IFS=$as_save_IFS
  6344. fi
  6345. fi
  6346. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6347. if test -n "$ac_ct_NMEDIT"; then
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6349. $as_echo "$ac_ct_NMEDIT" >&6; }
  6350. else
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. $as_echo "no" >&6; }
  6353. fi
  6354. if test "x$ac_ct_NMEDIT" = x; then
  6355. NMEDIT=":"
  6356. else
  6357. case $cross_compiling:$ac_tool_warned in
  6358. yes:)
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6361. ac_tool_warned=yes ;;
  6362. esac
  6363. NMEDIT=$ac_ct_NMEDIT
  6364. fi
  6365. else
  6366. NMEDIT="$ac_cv_prog_NMEDIT"
  6367. fi
  6368. if test -n "$ac_tool_prefix"; then
  6369. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6370. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6372. $as_echo_n "checking for $ac_word... " >&6; }
  6373. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. if test -n "$LIPO"; then
  6377. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6378. else
  6379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6380. for as_dir in $PATH
  6381. do
  6382. IFS=$as_save_IFS
  6383. test -z "$as_dir" && as_dir=.
  6384. for ac_exec_ext in '' $ac_executable_extensions; do
  6385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6386. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6388. break 2
  6389. fi
  6390. done
  6391. done
  6392. IFS=$as_save_IFS
  6393. fi
  6394. fi
  6395. LIPO=$ac_cv_prog_LIPO
  6396. if test -n "$LIPO"; then
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6398. $as_echo "$LIPO" >&6; }
  6399. else
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6401. $as_echo "no" >&6; }
  6402. fi
  6403. fi
  6404. if test -z "$ac_cv_prog_LIPO"; then
  6405. ac_ct_LIPO=$LIPO
  6406. # Extract the first word of "lipo", so it can be a program name with args.
  6407. set dummy lipo; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$ac_ct_LIPO"; then
  6414. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6423. ac_cv_prog_ac_ct_LIPO="lipo"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6433. if test -n "$ac_ct_LIPO"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6435. $as_echo "$ac_ct_LIPO" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. if test "x$ac_ct_LIPO" = x; then
  6441. LIPO=":"
  6442. else
  6443. case $cross_compiling:$ac_tool_warned in
  6444. yes:)
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6446. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6447. ac_tool_warned=yes ;;
  6448. esac
  6449. LIPO=$ac_ct_LIPO
  6450. fi
  6451. else
  6452. LIPO="$ac_cv_prog_LIPO"
  6453. fi
  6454. if test -n "$ac_tool_prefix"; then
  6455. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6456. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6458. $as_echo_n "checking for $ac_word... " >&6; }
  6459. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. if test -n "$OTOOL"; then
  6463. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6464. else
  6465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6466. for as_dir in $PATH
  6467. do
  6468. IFS=$as_save_IFS
  6469. test -z "$as_dir" && as_dir=.
  6470. for ac_exec_ext in '' $ac_executable_extensions; do
  6471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6472. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6474. break 2
  6475. fi
  6476. done
  6477. done
  6478. IFS=$as_save_IFS
  6479. fi
  6480. fi
  6481. OTOOL=$ac_cv_prog_OTOOL
  6482. if test -n "$OTOOL"; then
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6484. $as_echo "$OTOOL" >&6; }
  6485. else
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6487. $as_echo "no" >&6; }
  6488. fi
  6489. fi
  6490. if test -z "$ac_cv_prog_OTOOL"; then
  6491. ac_ct_OTOOL=$OTOOL
  6492. # Extract the first word of "otool", so it can be a program name with args.
  6493. set dummy otool; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$ac_ct_OTOOL"; then
  6500. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6509. ac_cv_prog_ac_ct_OTOOL="otool"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6519. if test -n "$ac_ct_OTOOL"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6521. $as_echo "$ac_ct_OTOOL" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. if test "x$ac_ct_OTOOL" = x; then
  6527. OTOOL=":"
  6528. else
  6529. case $cross_compiling:$ac_tool_warned in
  6530. yes:)
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6533. ac_tool_warned=yes ;;
  6534. esac
  6535. OTOOL=$ac_ct_OTOOL
  6536. fi
  6537. else
  6538. OTOOL="$ac_cv_prog_OTOOL"
  6539. fi
  6540. if test -n "$ac_tool_prefix"; then
  6541. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6542. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6544. $as_echo_n "checking for $ac_word... " >&6; }
  6545. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. if test -n "$OTOOL64"; then
  6549. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6550. else
  6551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6552. for as_dir in $PATH
  6553. do
  6554. IFS=$as_save_IFS
  6555. test -z "$as_dir" && as_dir=.
  6556. for ac_exec_ext in '' $ac_executable_extensions; do
  6557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6558. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6560. break 2
  6561. fi
  6562. done
  6563. done
  6564. IFS=$as_save_IFS
  6565. fi
  6566. fi
  6567. OTOOL64=$ac_cv_prog_OTOOL64
  6568. if test -n "$OTOOL64"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6570. $as_echo "$OTOOL64" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6573. $as_echo "no" >&6; }
  6574. fi
  6575. fi
  6576. if test -z "$ac_cv_prog_OTOOL64"; then
  6577. ac_ct_OTOOL64=$OTOOL64
  6578. # Extract the first word of "otool64", so it can be a program name with args.
  6579. set dummy otool64; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$ac_ct_OTOOL64"; then
  6586. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6605. if test -n "$ac_ct_OTOOL64"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6607. $as_echo "$ac_ct_OTOOL64" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. if test "x$ac_ct_OTOOL64" = x; then
  6613. OTOOL64=":"
  6614. else
  6615. case $cross_compiling:$ac_tool_warned in
  6616. yes:)
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6619. ac_tool_warned=yes ;;
  6620. esac
  6621. OTOOL64=$ac_ct_OTOOL64
  6622. fi
  6623. else
  6624. OTOOL64="$ac_cv_prog_OTOOL64"
  6625. fi
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6627. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6628. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. lt_cv_apple_cc_single_mod=no
  6632. if test -z "${LT_MULTI_MODULE}"; then
  6633. # By default we will add the -single_module flag. You can override
  6634. # by either setting the environment variable LT_MULTI_MODULE
  6635. # non-empty at configure time, or by adding -multi_module to the
  6636. # link flags.
  6637. rm -rf libconftest.dylib*
  6638. echo "int foo(void){return 1;}" > conftest.c
  6639. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6640. -dynamiclib -Wl,-single_module conftest.c" >&5
  6641. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6642. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6643. _lt_result=$?
  6644. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6645. lt_cv_apple_cc_single_mod=yes
  6646. else
  6647. cat conftest.err >&5
  6648. fi
  6649. rm -rf libconftest.dylib*
  6650. rm -f conftest.*
  6651. fi
  6652. fi
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6654. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6656. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6657. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. lt_cv_ld_exported_symbols_list=no
  6661. save_LDFLAGS=$LDFLAGS
  6662. echo "_main" > conftest.sym
  6663. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6665. /* end confdefs.h. */
  6666. int
  6667. main ()
  6668. {
  6669. ;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. if ac_fn_c_try_link "$LINENO"; then :
  6674. lt_cv_ld_exported_symbols_list=yes
  6675. else
  6676. lt_cv_ld_exported_symbols_list=no
  6677. fi
  6678. rm -f core conftest.err conftest.$ac_objext \
  6679. conftest$ac_exeext conftest.$ac_ext
  6680. LDFLAGS="$save_LDFLAGS"
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6683. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6685. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6686. if test "${lt_cv_ld_force_load+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. lt_cv_ld_force_load=no
  6690. cat > conftest.c << _LT_EOF
  6691. int forced_loaded() { return 2;}
  6692. _LT_EOF
  6693. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6694. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6695. echo "$AR cru libconftest.a conftest.o" >&5
  6696. $AR cru libconftest.a conftest.o 2>&5
  6697. cat > conftest.c << _LT_EOF
  6698. int main() { return 0;}
  6699. _LT_EOF
  6700. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6701. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6702. _lt_result=$?
  6703. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6704. lt_cv_ld_force_load=yes
  6705. else
  6706. cat conftest.err >&5
  6707. fi
  6708. rm -f conftest.err libconftest.a conftest conftest.c
  6709. rm -rf conftest.dSYM
  6710. fi
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6712. $as_echo "$lt_cv_ld_force_load" >&6; }
  6713. case $host_os in
  6714. rhapsody* | darwin1.[012])
  6715. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6716. darwin1.*)
  6717. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6718. darwin*) # darwin 5.x on
  6719. # if running on 10.5 or later, the deployment target defaults
  6720. # to the OS version, if on x86, and 10.4, the deployment
  6721. # target defaults to 10.4. Don't you love it?
  6722. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6723. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6724. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6725. 10.[012][,.]*)
  6726. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6727. 10.*)
  6728. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6729. esac
  6730. ;;
  6731. esac
  6732. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6733. _lt_dar_single_mod='$single_module'
  6734. fi
  6735. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6736. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6737. else
  6738. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6739. fi
  6740. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6741. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6742. else
  6743. _lt_dsymutil=
  6744. fi
  6745. ;;
  6746. esac
  6747. for ac_header in dlfcn.h
  6748. do :
  6749. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6750. "
  6751. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6752. cat >>confdefs.h <<_ACEOF
  6753. #define HAVE_DLFCN_H 1
  6754. _ACEOF
  6755. fi
  6756. done
  6757. # Set options
  6758. # Check whether --enable-shared was given.
  6759. if test "${enable_shared+set}" = set; then :
  6760. enableval=$enable_shared; p=${PACKAGE-default}
  6761. case $enableval in
  6762. yes) enable_shared=yes ;;
  6763. no) enable_shared=no ;;
  6764. *)
  6765. enable_shared=no
  6766. # Look at the argument we got. We use all the common list separators.
  6767. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6768. for pkg in $enableval; do
  6769. IFS="$lt_save_ifs"
  6770. if test "X$pkg" = "X$p"; then
  6771. enable_shared=yes
  6772. fi
  6773. done
  6774. IFS="$lt_save_ifs"
  6775. ;;
  6776. esac
  6777. else
  6778. enable_shared=no
  6779. fi
  6780. enable_dlopen=no
  6781. enable_win32_dll=no
  6782. # Check whether --enable-static was given.
  6783. if test "${enable_static+set}" = set; then :
  6784. enableval=$enable_static; p=${PACKAGE-default}
  6785. case $enableval in
  6786. yes) enable_static=yes ;;
  6787. no) enable_static=no ;;
  6788. *)
  6789. enable_static=no
  6790. # Look at the argument we got. We use all the common list separators.
  6791. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6792. for pkg in $enableval; do
  6793. IFS="$lt_save_ifs"
  6794. if test "X$pkg" = "X$p"; then
  6795. enable_static=yes
  6796. fi
  6797. done
  6798. IFS="$lt_save_ifs"
  6799. ;;
  6800. esac
  6801. else
  6802. enable_static=yes
  6803. fi
  6804. # Check whether --with-pic was given.
  6805. if test "${with_pic+set}" = set; then :
  6806. withval=$with_pic; pic_mode="$withval"
  6807. else
  6808. pic_mode=default
  6809. fi
  6810. test -z "$pic_mode" && pic_mode=default
  6811. # Check whether --enable-fast-install was given.
  6812. if test "${enable_fast_install+set}" = set; then :
  6813. enableval=$enable_fast_install; p=${PACKAGE-default}
  6814. case $enableval in
  6815. yes) enable_fast_install=yes ;;
  6816. no) enable_fast_install=no ;;
  6817. *)
  6818. enable_fast_install=no
  6819. # Look at the argument we got. We use all the common list separators.
  6820. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6821. for pkg in $enableval; do
  6822. IFS="$lt_save_ifs"
  6823. if test "X$pkg" = "X$p"; then
  6824. enable_fast_install=yes
  6825. fi
  6826. done
  6827. IFS="$lt_save_ifs"
  6828. ;;
  6829. esac
  6830. else
  6831. enable_fast_install=yes
  6832. fi
  6833. # This can be used to rebuild libtool when needed
  6834. LIBTOOL_DEPS="$ltmain"
  6835. # Always use our own libtool.
  6836. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6837. test -z "$LN_S" && LN_S="ln -s"
  6838. if test -n "${ZSH_VERSION+set}" ; then
  6839. setopt NO_GLOB_SUBST
  6840. fi
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6842. $as_echo_n "checking for objdir... " >&6; }
  6843. if test "${lt_cv_objdir+set}" = set; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. rm -f .libs 2>/dev/null
  6847. mkdir .libs 2>/dev/null
  6848. if test -d .libs; then
  6849. lt_cv_objdir=.libs
  6850. else
  6851. # MS-DOS does not allow filenames that begin with a dot.
  6852. lt_cv_objdir=_libs
  6853. fi
  6854. rmdir .libs 2>/dev/null
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6857. $as_echo "$lt_cv_objdir" >&6; }
  6858. objdir=$lt_cv_objdir
  6859. cat >>confdefs.h <<_ACEOF
  6860. #define LT_OBJDIR "$lt_cv_objdir/"
  6861. _ACEOF
  6862. case $host_os in
  6863. aix3*)
  6864. # AIX sometimes has problems with the GCC collect2 program. For some
  6865. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6866. # vanish in a puff of smoke.
  6867. if test "X${COLLECT_NAMES+set}" != Xset; then
  6868. COLLECT_NAMES=
  6869. export COLLECT_NAMES
  6870. fi
  6871. ;;
  6872. esac
  6873. # Global variables:
  6874. ofile=libtool
  6875. can_build_shared=yes
  6876. # All known linkers require a `.a' archive for static linking (except MSVC,
  6877. # which needs '.lib').
  6878. libext=a
  6879. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6880. old_CC="$CC"
  6881. old_CFLAGS="$CFLAGS"
  6882. # Set sane defaults for various variables
  6883. test -z "$CC" && CC=cc
  6884. test -z "$LTCC" && LTCC=$CC
  6885. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6886. test -z "$LD" && LD=ld
  6887. test -z "$ac_objext" && ac_objext=o
  6888. for cc_temp in $compiler""; do
  6889. case $cc_temp in
  6890. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6891. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6892. \-*) ;;
  6893. *) break;;
  6894. esac
  6895. done
  6896. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6897. # Only perform the check for file, if the check method requires it
  6898. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6899. case $deplibs_check_method in
  6900. file_magic*)
  6901. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6903. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6904. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. case $MAGIC_CMD in
  6908. [\\/*] | ?:[\\/]*)
  6909. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6910. ;;
  6911. *)
  6912. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6913. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6914. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6915. for ac_dir in $ac_dummy; do
  6916. IFS="$lt_save_ifs"
  6917. test -z "$ac_dir" && ac_dir=.
  6918. if test -f $ac_dir/${ac_tool_prefix}file; then
  6919. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6920. if test -n "$file_magic_test_file"; then
  6921. case $deplibs_check_method in
  6922. "file_magic "*)
  6923. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6924. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6925. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6926. $EGREP "$file_magic_regex" > /dev/null; then
  6927. :
  6928. else
  6929. cat <<_LT_EOF 1>&2
  6930. *** Warning: the command libtool uses to detect shared libraries,
  6931. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6932. *** The result is that libtool may fail to recognize shared libraries
  6933. *** as such. This will affect the creation of libtool libraries that
  6934. *** depend on shared libraries, but programs linked with such libtool
  6935. *** libraries will work regardless of this problem. Nevertheless, you
  6936. *** may want to report the problem to your system manager and/or to
  6937. *** bug-libtool@gnu.org
  6938. _LT_EOF
  6939. fi ;;
  6940. esac
  6941. fi
  6942. break
  6943. fi
  6944. done
  6945. IFS="$lt_save_ifs"
  6946. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6947. ;;
  6948. esac
  6949. fi
  6950. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6951. if test -n "$MAGIC_CMD"; then
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6953. $as_echo "$MAGIC_CMD" >&6; }
  6954. else
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6956. $as_echo "no" >&6; }
  6957. fi
  6958. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6959. if test -n "$ac_tool_prefix"; then
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6961. $as_echo_n "checking for file... " >&6; }
  6962. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6963. $as_echo_n "(cached) " >&6
  6964. else
  6965. case $MAGIC_CMD in
  6966. [\\/*] | ?:[\\/]*)
  6967. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6968. ;;
  6969. *)
  6970. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6971. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6972. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6973. for ac_dir in $ac_dummy; do
  6974. IFS="$lt_save_ifs"
  6975. test -z "$ac_dir" && ac_dir=.
  6976. if test -f $ac_dir/file; then
  6977. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6978. if test -n "$file_magic_test_file"; then
  6979. case $deplibs_check_method in
  6980. "file_magic "*)
  6981. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6982. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6983. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6984. $EGREP "$file_magic_regex" > /dev/null; then
  6985. :
  6986. else
  6987. cat <<_LT_EOF 1>&2
  6988. *** Warning: the command libtool uses to detect shared libraries,
  6989. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6990. *** The result is that libtool may fail to recognize shared libraries
  6991. *** as such. This will affect the creation of libtool libraries that
  6992. *** depend on shared libraries, but programs linked with such libtool
  6993. *** libraries will work regardless of this problem. Nevertheless, you
  6994. *** may want to report the problem to your system manager and/or to
  6995. *** bug-libtool@gnu.org
  6996. _LT_EOF
  6997. fi ;;
  6998. esac
  6999. fi
  7000. break
  7001. fi
  7002. done
  7003. IFS="$lt_save_ifs"
  7004. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7005. ;;
  7006. esac
  7007. fi
  7008. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7009. if test -n "$MAGIC_CMD"; then
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7011. $as_echo "$MAGIC_CMD" >&6; }
  7012. else
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7014. $as_echo "no" >&6; }
  7015. fi
  7016. else
  7017. MAGIC_CMD=:
  7018. fi
  7019. fi
  7020. fi
  7021. ;;
  7022. esac
  7023. # Use C for the default configuration in the libtool script
  7024. lt_save_CC="$CC"
  7025. ac_ext=c
  7026. ac_cpp='$CPP $CPPFLAGS'
  7027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7030. # Source file extension for C test sources.
  7031. ac_ext=c
  7032. # Object file extension for compiled C test sources.
  7033. objext=o
  7034. objext=$objext
  7035. # Code to be used in simple compile tests
  7036. lt_simple_compile_test_code="int some_variable = 0;"
  7037. # Code to be used in simple link tests
  7038. lt_simple_link_test_code='int main(){return(0);}'
  7039. # If no C compiler was specified, use CC.
  7040. LTCC=${LTCC-"$CC"}
  7041. # If no C compiler flags were specified, use CFLAGS.
  7042. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7043. # Allow CC to be a program name with arguments.
  7044. compiler=$CC
  7045. # Save the default compiler, since it gets overwritten when the other
  7046. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7047. compiler_DEFAULT=$CC
  7048. # save warnings/boilerplate of simple test code
  7049. ac_outfile=conftest.$ac_objext
  7050. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7051. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7052. _lt_compiler_boilerplate=`cat conftest.err`
  7053. $RM conftest*
  7054. ac_outfile=conftest.$ac_objext
  7055. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7056. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7057. _lt_linker_boilerplate=`cat conftest.err`
  7058. $RM -r conftest*
  7059. ## CAVEAT EMPTOR:
  7060. ## There is no encapsulation within the following macros, do not change
  7061. ## the running order or otherwise move them around unless you know exactly
  7062. ## what you are doing...
  7063. if test -n "$compiler"; then
  7064. lt_prog_compiler_no_builtin_flag=
  7065. if test "$GCC" = yes; then
  7066. case $cc_basename in
  7067. nvcc*)
  7068. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7069. *)
  7070. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7071. esac
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7073. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7074. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. lt_cv_prog_compiler_rtti_exceptions=no
  7078. ac_outfile=conftest.$ac_objext
  7079. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7080. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7081. # Insert the option either (1) after the last *FLAGS variable, or
  7082. # (2) before a word containing "conftest.", or (3) at the end.
  7083. # Note that $ac_compile itself does not contain backslashes and begins
  7084. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7085. # The option is referenced via a variable to avoid confusing sed.
  7086. lt_compile=`echo "$ac_compile" | $SED \
  7087. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7088. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7089. -e 's:$: $lt_compiler_flag:'`
  7090. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7091. (eval "$lt_compile" 2>conftest.err)
  7092. ac_status=$?
  7093. cat conftest.err >&5
  7094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. if (exit $ac_status) && test -s "$ac_outfile"; then
  7096. # The compiler can only warn and ignore the option if not recognized
  7097. # So say no if there are warnings other than the usual output.
  7098. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7099. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7100. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7101. lt_cv_prog_compiler_rtti_exceptions=yes
  7102. fi
  7103. fi
  7104. $RM conftest*
  7105. fi
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7107. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7108. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7109. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7110. else
  7111. :
  7112. fi
  7113. fi
  7114. lt_prog_compiler_wl=
  7115. lt_prog_compiler_pic=
  7116. lt_prog_compiler_static=
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7118. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7119. if test "$GCC" = yes; then
  7120. lt_prog_compiler_wl='-Wl,'
  7121. lt_prog_compiler_static='-static'
  7122. case $host_os in
  7123. aix*)
  7124. # All AIX code is PIC.
  7125. if test "$host_cpu" = ia64; then
  7126. # AIX 5 now supports IA64 processor
  7127. lt_prog_compiler_static='-Bstatic'
  7128. fi
  7129. lt_prog_compiler_pic='-fPIC'
  7130. ;;
  7131. amigaos*)
  7132. case $host_cpu in
  7133. powerpc)
  7134. # see comment about AmigaOS4 .so support
  7135. lt_prog_compiler_pic='-fPIC'
  7136. ;;
  7137. m68k)
  7138. # FIXME: we need at least 68020 code to build shared libraries, but
  7139. # adding the `-m68020' flag to GCC prevents building anything better,
  7140. # like `-m68040'.
  7141. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7142. ;;
  7143. esac
  7144. ;;
  7145. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7146. # PIC is the default for these OSes.
  7147. ;;
  7148. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7149. # This hack is so that the source file can tell whether it is being
  7150. # built for inclusion in a dll (and should export symbols for example).
  7151. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7152. # (--disable-auto-import) libraries
  7153. lt_prog_compiler_pic='-DDLL_EXPORT'
  7154. ;;
  7155. darwin* | rhapsody*)
  7156. # PIC is the default on this platform
  7157. # Common symbols not allowed in MH_DYLIB files
  7158. lt_prog_compiler_pic='-fno-common'
  7159. ;;
  7160. haiku*)
  7161. # PIC is the default for Haiku.
  7162. # The "-static" flag exists, but is broken.
  7163. lt_prog_compiler_static=
  7164. ;;
  7165. hpux*)
  7166. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7167. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7168. # sets the default TLS model and affects inlining.
  7169. case $host_cpu in
  7170. hppa*64*)
  7171. # +Z the default
  7172. ;;
  7173. *)
  7174. lt_prog_compiler_pic='-fPIC'
  7175. ;;
  7176. esac
  7177. ;;
  7178. interix[3-9]*)
  7179. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7180. # Instead, we relocate shared libraries at runtime.
  7181. ;;
  7182. msdosdjgpp*)
  7183. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7184. # on systems that don't support them.
  7185. lt_prog_compiler_can_build_shared=no
  7186. enable_shared=no
  7187. ;;
  7188. *nto* | *qnx*)
  7189. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7190. # it will coredump.
  7191. lt_prog_compiler_pic='-fPIC -shared'
  7192. ;;
  7193. sysv4*MP*)
  7194. if test -d /usr/nec; then
  7195. lt_prog_compiler_pic=-Kconform_pic
  7196. fi
  7197. ;;
  7198. *)
  7199. lt_prog_compiler_pic='-fPIC'
  7200. ;;
  7201. esac
  7202. case $cc_basename in
  7203. nvcc*) # Cuda Compiler Driver 2.2
  7204. lt_prog_compiler_wl='-Xlinker '
  7205. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7206. ;;
  7207. esac
  7208. else
  7209. # PORTME Check for flag to pass linker flags through the system compiler.
  7210. case $host_os in
  7211. aix*)
  7212. lt_prog_compiler_wl='-Wl,'
  7213. if test "$host_cpu" = ia64; then
  7214. # AIX 5 now supports IA64 processor
  7215. lt_prog_compiler_static='-Bstatic'
  7216. else
  7217. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7218. fi
  7219. ;;
  7220. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7221. # This hack is so that the source file can tell whether it is being
  7222. # built for inclusion in a dll (and should export symbols for example).
  7223. lt_prog_compiler_pic='-DDLL_EXPORT'
  7224. ;;
  7225. hpux9* | hpux10* | hpux11*)
  7226. lt_prog_compiler_wl='-Wl,'
  7227. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7228. # not for PA HP-UX.
  7229. case $host_cpu in
  7230. hppa*64*|ia64*)
  7231. # +Z the default
  7232. ;;
  7233. *)
  7234. lt_prog_compiler_pic='+Z'
  7235. ;;
  7236. esac
  7237. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7238. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7239. ;;
  7240. irix5* | irix6* | nonstopux*)
  7241. lt_prog_compiler_wl='-Wl,'
  7242. # PIC (with -KPIC) is the default.
  7243. lt_prog_compiler_static='-non_shared'
  7244. ;;
  7245. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7246. case $cc_basename in
  7247. # old Intel for x86_64 which still supported -KPIC.
  7248. ecc*)
  7249. lt_prog_compiler_wl='-Wl,'
  7250. lt_prog_compiler_pic='-KPIC'
  7251. lt_prog_compiler_static='-static'
  7252. ;;
  7253. # icc used to be incompatible with GCC.
  7254. # ICC 10 doesn't accept -KPIC any more.
  7255. icc* | ifort*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. lt_prog_compiler_pic='-fPIC'
  7258. lt_prog_compiler_static='-static'
  7259. ;;
  7260. # Lahey Fortran 8.1.
  7261. lf95*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. lt_prog_compiler_pic='--shared'
  7264. lt_prog_compiler_static='--static'
  7265. ;;
  7266. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7267. # Portland Group compilers (*not* the Pentium gcc compiler,
  7268. # which looks to be a dead project)
  7269. lt_prog_compiler_wl='-Wl,'
  7270. lt_prog_compiler_pic='-fpic'
  7271. lt_prog_compiler_static='-Bstatic'
  7272. ;;
  7273. ccc*)
  7274. lt_prog_compiler_wl='-Wl,'
  7275. # All Alpha code is PIC.
  7276. lt_prog_compiler_static='-non_shared'
  7277. ;;
  7278. xl* | bgxl* | bgf* | mpixl*)
  7279. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7280. lt_prog_compiler_wl='-Wl,'
  7281. lt_prog_compiler_pic='-qpic'
  7282. lt_prog_compiler_static='-qstaticlink'
  7283. ;;
  7284. *)
  7285. case `$CC -V 2>&1 | sed 5q` in
  7286. *Sun\ F* | *Sun*Fortran*)
  7287. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7288. lt_prog_compiler_pic='-KPIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. lt_prog_compiler_wl=''
  7291. ;;
  7292. *Sun\ C*)
  7293. # Sun C 5.9
  7294. lt_prog_compiler_pic='-KPIC'
  7295. lt_prog_compiler_static='-Bstatic'
  7296. lt_prog_compiler_wl='-Wl,'
  7297. ;;
  7298. esac
  7299. ;;
  7300. esac
  7301. ;;
  7302. newsos6)
  7303. lt_prog_compiler_pic='-KPIC'
  7304. lt_prog_compiler_static='-Bstatic'
  7305. ;;
  7306. *nto* | *qnx*)
  7307. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7308. # it will coredump.
  7309. lt_prog_compiler_pic='-fPIC -shared'
  7310. ;;
  7311. osf3* | osf4* | osf5*)
  7312. lt_prog_compiler_wl='-Wl,'
  7313. # All OSF/1 code is PIC.
  7314. lt_prog_compiler_static='-non_shared'
  7315. ;;
  7316. rdos*)
  7317. lt_prog_compiler_static='-non_shared'
  7318. ;;
  7319. solaris*)
  7320. lt_prog_compiler_pic='-KPIC'
  7321. lt_prog_compiler_static='-Bstatic'
  7322. case $cc_basename in
  7323. f77* | f90* | f95*)
  7324. lt_prog_compiler_wl='-Qoption ld ';;
  7325. *)
  7326. lt_prog_compiler_wl='-Wl,';;
  7327. esac
  7328. ;;
  7329. sunos4*)
  7330. lt_prog_compiler_wl='-Qoption ld '
  7331. lt_prog_compiler_pic='-PIC'
  7332. lt_prog_compiler_static='-Bstatic'
  7333. ;;
  7334. sysv4 | sysv4.2uw2* | sysv4.3*)
  7335. lt_prog_compiler_wl='-Wl,'
  7336. lt_prog_compiler_pic='-KPIC'
  7337. lt_prog_compiler_static='-Bstatic'
  7338. ;;
  7339. sysv4*MP*)
  7340. if test -d /usr/nec ;then
  7341. lt_prog_compiler_pic='-Kconform_pic'
  7342. lt_prog_compiler_static='-Bstatic'
  7343. fi
  7344. ;;
  7345. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7346. lt_prog_compiler_wl='-Wl,'
  7347. lt_prog_compiler_pic='-KPIC'
  7348. lt_prog_compiler_static='-Bstatic'
  7349. ;;
  7350. unicos*)
  7351. lt_prog_compiler_wl='-Wl,'
  7352. lt_prog_compiler_can_build_shared=no
  7353. ;;
  7354. uts4*)
  7355. lt_prog_compiler_pic='-pic'
  7356. lt_prog_compiler_static='-Bstatic'
  7357. ;;
  7358. *)
  7359. lt_prog_compiler_can_build_shared=no
  7360. ;;
  7361. esac
  7362. fi
  7363. case $host_os in
  7364. # For platforms which do not support PIC, -DPIC is meaningless:
  7365. *djgpp*)
  7366. lt_prog_compiler_pic=
  7367. ;;
  7368. *)
  7369. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7370. ;;
  7371. esac
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7373. $as_echo "$lt_prog_compiler_pic" >&6; }
  7374. #
  7375. # Check to make sure the PIC flag actually works.
  7376. #
  7377. if test -n "$lt_prog_compiler_pic"; then
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7379. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7380. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. lt_cv_prog_compiler_pic_works=no
  7384. ac_outfile=conftest.$ac_objext
  7385. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7386. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7387. # Insert the option either (1) after the last *FLAGS variable, or
  7388. # (2) before a word containing "conftest.", or (3) at the end.
  7389. # Note that $ac_compile itself does not contain backslashes and begins
  7390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7391. # The option is referenced via a variable to avoid confusing sed.
  7392. lt_compile=`echo "$ac_compile" | $SED \
  7393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7395. -e 's:$: $lt_compiler_flag:'`
  7396. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7397. (eval "$lt_compile" 2>conftest.err)
  7398. ac_status=$?
  7399. cat conftest.err >&5
  7400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401. if (exit $ac_status) && test -s "$ac_outfile"; then
  7402. # The compiler can only warn and ignore the option if not recognized
  7403. # So say no if there are warnings other than the usual output.
  7404. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7405. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7406. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7407. lt_cv_prog_compiler_pic_works=yes
  7408. fi
  7409. fi
  7410. $RM conftest*
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7413. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7414. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7415. case $lt_prog_compiler_pic in
  7416. "" | " "*) ;;
  7417. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7418. esac
  7419. else
  7420. lt_prog_compiler_pic=
  7421. lt_prog_compiler_can_build_shared=no
  7422. fi
  7423. fi
  7424. #
  7425. # Check to make sure the static flag actually works.
  7426. #
  7427. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7429. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7430. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7431. $as_echo_n "(cached) " >&6
  7432. else
  7433. lt_cv_prog_compiler_static_works=no
  7434. save_LDFLAGS="$LDFLAGS"
  7435. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7436. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7437. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7438. # The linker can only warn and ignore the option if not recognized
  7439. # So say no if there are warnings
  7440. if test -s conftest.err; then
  7441. # Append any errors to the config.log.
  7442. cat conftest.err 1>&5
  7443. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7445. if diff conftest.exp conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_static_works=yes
  7447. fi
  7448. else
  7449. lt_cv_prog_compiler_static_works=yes
  7450. fi
  7451. fi
  7452. $RM -r conftest*
  7453. LDFLAGS="$save_LDFLAGS"
  7454. fi
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7456. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7457. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7458. :
  7459. else
  7460. lt_prog_compiler_static=
  7461. fi
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7463. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7464. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. lt_cv_prog_compiler_c_o=no
  7468. $RM -r conftest 2>/dev/null
  7469. mkdir conftest
  7470. cd conftest
  7471. mkdir out
  7472. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7473. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7474. # Insert the option either (1) after the last *FLAGS variable, or
  7475. # (2) before a word containing "conftest.", or (3) at the end.
  7476. # Note that $ac_compile itself does not contain backslashes and begins
  7477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7478. lt_compile=`echo "$ac_compile" | $SED \
  7479. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7480. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7481. -e 's:$: $lt_compiler_flag:'`
  7482. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7483. (eval "$lt_compile" 2>out/conftest.err)
  7484. ac_status=$?
  7485. cat out/conftest.err >&5
  7486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7487. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7488. then
  7489. # The compiler can only warn and ignore the option if not recognized
  7490. # So say no if there are warnings
  7491. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7492. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7493. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7494. lt_cv_prog_compiler_c_o=yes
  7495. fi
  7496. fi
  7497. chmod u+w . 2>&5
  7498. $RM conftest*
  7499. # SGI C++ compiler will create directory out/ii_files/ for
  7500. # template instantiation
  7501. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7502. $RM out/* && rmdir out
  7503. cd ..
  7504. $RM -r conftest
  7505. $RM conftest*
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7508. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7510. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7511. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. lt_cv_prog_compiler_c_o=no
  7515. $RM -r conftest 2>/dev/null
  7516. mkdir conftest
  7517. cd conftest
  7518. mkdir out
  7519. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7520. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7521. # Insert the option either (1) after the last *FLAGS variable, or
  7522. # (2) before a word containing "conftest.", or (3) at the end.
  7523. # Note that $ac_compile itself does not contain backslashes and begins
  7524. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7525. lt_compile=`echo "$ac_compile" | $SED \
  7526. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7527. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7528. -e 's:$: $lt_compiler_flag:'`
  7529. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7530. (eval "$lt_compile" 2>out/conftest.err)
  7531. ac_status=$?
  7532. cat out/conftest.err >&5
  7533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7535. then
  7536. # The compiler can only warn and ignore the option if not recognized
  7537. # So say no if there are warnings
  7538. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7539. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7540. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7541. lt_cv_prog_compiler_c_o=yes
  7542. fi
  7543. fi
  7544. chmod u+w . 2>&5
  7545. $RM conftest*
  7546. # SGI C++ compiler will create directory out/ii_files/ for
  7547. # template instantiation
  7548. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7549. $RM out/* && rmdir out
  7550. cd ..
  7551. $RM -r conftest
  7552. $RM conftest*
  7553. fi
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7555. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7556. hard_links="nottested"
  7557. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7558. # do not overwrite the value of need_locks provided by the user
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7560. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7561. hard_links=yes
  7562. $RM conftest*
  7563. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7564. touch conftest.a
  7565. ln conftest.a conftest.b 2>&5 || hard_links=no
  7566. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7568. $as_echo "$hard_links" >&6; }
  7569. if test "$hard_links" = no; then
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7571. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7572. need_locks=warn
  7573. fi
  7574. else
  7575. need_locks=no
  7576. fi
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7578. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7579. runpath_var=
  7580. allow_undefined_flag=
  7581. always_export_symbols=no
  7582. archive_cmds=
  7583. archive_expsym_cmds=
  7584. compiler_needs_object=no
  7585. enable_shared_with_static_runtimes=no
  7586. export_dynamic_flag_spec=
  7587. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7588. hardcode_automatic=no
  7589. hardcode_direct=no
  7590. hardcode_direct_absolute=no
  7591. hardcode_libdir_flag_spec=
  7592. hardcode_libdir_flag_spec_ld=
  7593. hardcode_libdir_separator=
  7594. hardcode_minus_L=no
  7595. hardcode_shlibpath_var=unsupported
  7596. inherit_rpath=no
  7597. link_all_deplibs=unknown
  7598. module_cmds=
  7599. module_expsym_cmds=
  7600. old_archive_from_new_cmds=
  7601. old_archive_from_expsyms_cmds=
  7602. thread_safe_flag_spec=
  7603. whole_archive_flag_spec=
  7604. # include_expsyms should be a list of space-separated symbols to be *always*
  7605. # included in the symbol list
  7606. include_expsyms=
  7607. # exclude_expsyms can be an extended regexp of symbols to exclude
  7608. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7609. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7610. # as well as any symbol that contains `d'.
  7611. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7612. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7613. # platforms (ab)use it in PIC code, but their linkers get confused if
  7614. # the symbol is explicitly referenced. Since portable code cannot
  7615. # rely on this symbol name, it's probably fine to never include it in
  7616. # preloaded symbol tables.
  7617. # Exclude shared library initialization/finalization symbols.
  7618. extract_expsyms_cmds=
  7619. case $host_os in
  7620. cygwin* | mingw* | pw32* | cegcc*)
  7621. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7622. # When not using gcc, we currently assume that we are using
  7623. # Microsoft Visual C++.
  7624. if test "$GCC" != yes; then
  7625. with_gnu_ld=no
  7626. fi
  7627. ;;
  7628. interix*)
  7629. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7630. with_gnu_ld=yes
  7631. ;;
  7632. openbsd*)
  7633. with_gnu_ld=no
  7634. ;;
  7635. esac
  7636. ld_shlibs=yes
  7637. # On some targets, GNU ld is compatible enough with the native linker
  7638. # that we're better off using the native interface for both.
  7639. lt_use_gnu_ld_interface=no
  7640. if test "$with_gnu_ld" = yes; then
  7641. case $host_os in
  7642. aix*)
  7643. # The AIX port of GNU ld has always aspired to compatibility
  7644. # with the native linker. However, as the warning in the GNU ld
  7645. # block says, versions before 2.19.5* couldn't really create working
  7646. # shared libraries, regardless of the interface used.
  7647. case `$LD -v 2>&1` in
  7648. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7649. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7650. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7651. *)
  7652. lt_use_gnu_ld_interface=yes
  7653. ;;
  7654. esac
  7655. ;;
  7656. *)
  7657. lt_use_gnu_ld_interface=yes
  7658. ;;
  7659. esac
  7660. fi
  7661. if test "$lt_use_gnu_ld_interface" = yes; then
  7662. # If archive_cmds runs LD, not CC, wlarc should be empty
  7663. wlarc='${wl}'
  7664. # Set some defaults for GNU ld with shared library support. These
  7665. # are reset later if shared libraries are not supported. Putting them
  7666. # here allows them to be overridden if necessary.
  7667. runpath_var=LD_RUN_PATH
  7668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7669. export_dynamic_flag_spec='${wl}--export-dynamic'
  7670. # ancient GNU ld didn't support --whole-archive et. al.
  7671. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7672. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7673. else
  7674. whole_archive_flag_spec=
  7675. fi
  7676. supports_anon_versioning=no
  7677. case `$LD -v 2>&1` in
  7678. *GNU\ gold*) supports_anon_versioning=yes ;;
  7679. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7680. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7681. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7682. *\ 2.11.*) ;; # other 2.11 versions
  7683. *) supports_anon_versioning=yes ;;
  7684. esac
  7685. # See if GNU ld supports shared libraries.
  7686. case $host_os in
  7687. aix[3-9]*)
  7688. # On AIX/PPC, the GNU linker is very broken
  7689. if test "$host_cpu" != ia64; then
  7690. ld_shlibs=no
  7691. cat <<_LT_EOF 1>&2
  7692. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7693. *** to be unable to reliably create shared libraries on AIX.
  7694. *** Therefore, libtool is disabling shared libraries support. If you
  7695. *** really care for shared libraries, you may want to install binutils
  7696. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7697. *** You will then need to restart the configuration process.
  7698. _LT_EOF
  7699. fi
  7700. ;;
  7701. amigaos*)
  7702. case $host_cpu in
  7703. powerpc)
  7704. # see comment about AmigaOS4 .so support
  7705. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7706. archive_expsym_cmds=''
  7707. ;;
  7708. m68k)
  7709. 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)'
  7710. hardcode_libdir_flag_spec='-L$libdir'
  7711. hardcode_minus_L=yes
  7712. ;;
  7713. esac
  7714. ;;
  7715. beos*)
  7716. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7717. allow_undefined_flag=unsupported
  7718. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7719. # support --undefined. This deserves some investigation. FIXME
  7720. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7721. else
  7722. ld_shlibs=no
  7723. fi
  7724. ;;
  7725. cygwin* | mingw* | pw32* | cegcc*)
  7726. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7727. # as there is no search path for DLLs.
  7728. hardcode_libdir_flag_spec='-L$libdir'
  7729. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7730. allow_undefined_flag=unsupported
  7731. always_export_symbols=no
  7732. enable_shared_with_static_runtimes=yes
  7733. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7734. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7735. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7736. # If the export-symbols file already is a .def file (1st line
  7737. # is EXPORTS), use it as is; otherwise, prepend...
  7738. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7739. cp $export_symbols $output_objdir/$soname.def;
  7740. else
  7741. echo EXPORTS > $output_objdir/$soname.def;
  7742. cat $export_symbols >> $output_objdir/$soname.def;
  7743. fi~
  7744. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7745. else
  7746. ld_shlibs=no
  7747. fi
  7748. ;;
  7749. haiku*)
  7750. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7751. link_all_deplibs=yes
  7752. ;;
  7753. interix[3-9]*)
  7754. hardcode_direct=no
  7755. hardcode_shlibpath_var=no
  7756. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7757. export_dynamic_flag_spec='${wl}-E'
  7758. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7759. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7760. # default) and relocated if they conflict, which is a slow very memory
  7761. # consuming and fragmenting process. To avoid this, we pick a random,
  7762. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7763. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7764. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7765. 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'
  7766. ;;
  7767. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7768. tmp_diet=no
  7769. if test "$host_os" = linux-dietlibc; then
  7770. case $cc_basename in
  7771. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7772. esac
  7773. fi
  7774. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7775. && test "$tmp_diet" = no
  7776. then
  7777. tmp_addflag=' $pic_flag'
  7778. tmp_sharedflag='-shared'
  7779. case $cc_basename,$host_cpu in
  7780. pgcc*) # Portland Group C compiler
  7781. 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'
  7782. tmp_addflag=' $pic_flag'
  7783. ;;
  7784. pgf77* | pgf90* | pgf95* | pgfortran*)
  7785. # Portland Group f77 and f90 compilers
  7786. 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'
  7787. tmp_addflag=' $pic_flag -Mnomain' ;;
  7788. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7789. tmp_addflag=' -i_dynamic' ;;
  7790. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7791. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7792. ifc* | ifort*) # Intel Fortran compiler
  7793. tmp_addflag=' -nofor_main' ;;
  7794. lf95*) # Lahey Fortran 8.1
  7795. whole_archive_flag_spec=
  7796. tmp_sharedflag='--shared' ;;
  7797. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7798. tmp_sharedflag='-qmkshrobj'
  7799. tmp_addflag= ;;
  7800. nvcc*) # Cuda Compiler Driver 2.2
  7801. 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'
  7802. compiler_needs_object=yes
  7803. ;;
  7804. esac
  7805. case `$CC -V 2>&1 | sed 5q` in
  7806. *Sun\ C*) # Sun C 5.9
  7807. 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'
  7808. compiler_needs_object=yes
  7809. tmp_sharedflag='-G' ;;
  7810. *Sun\ F*) # Sun Fortran 8.3
  7811. tmp_sharedflag='-G' ;;
  7812. esac
  7813. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7814. if test "x$supports_anon_versioning" = xyes; then
  7815. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7816. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7817. echo "local: *; };" >> $output_objdir/$libname.ver~
  7818. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7819. fi
  7820. case $cc_basename in
  7821. xlf* | bgf* | bgxlf* | mpixlf*)
  7822. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7823. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7824. hardcode_libdir_flag_spec=
  7825. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7826. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7827. if test "x$supports_anon_versioning" = xyes; then
  7828. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7829. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7830. echo "local: *; };" >> $output_objdir/$libname.ver~
  7831. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7832. fi
  7833. ;;
  7834. esac
  7835. else
  7836. ld_shlibs=no
  7837. fi
  7838. ;;
  7839. netbsd*)
  7840. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7841. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7842. wlarc=
  7843. else
  7844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7845. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7846. fi
  7847. ;;
  7848. solaris*)
  7849. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7850. ld_shlibs=no
  7851. cat <<_LT_EOF 1>&2
  7852. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7853. *** create shared libraries on Solaris systems. Therefore, libtool
  7854. *** is disabling shared libraries support. We urge you to upgrade GNU
  7855. *** binutils to release 2.9.1 or newer. Another option is to modify
  7856. *** your PATH or compiler configuration so that the native linker is
  7857. *** used, and then restart.
  7858. _LT_EOF
  7859. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7861. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7862. else
  7863. ld_shlibs=no
  7864. fi
  7865. ;;
  7866. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7867. case `$LD -v 2>&1` in
  7868. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7869. ld_shlibs=no
  7870. cat <<_LT_EOF 1>&2
  7871. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7872. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7873. *** is disabling shared libraries support. We urge you to upgrade GNU
  7874. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7875. *** your PATH or compiler configuration so that the native linker is
  7876. *** used, and then restart.
  7877. _LT_EOF
  7878. ;;
  7879. *)
  7880. # For security reasons, it is highly recommended that you always
  7881. # use absolute paths for naming shared libraries, and exclude the
  7882. # DT_RUNPATH tag from executables and libraries. But doing so
  7883. # requires that you compile everything twice, which is a pain.
  7884. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7885. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7886. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7887. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7888. else
  7889. ld_shlibs=no
  7890. fi
  7891. ;;
  7892. esac
  7893. ;;
  7894. sunos4*)
  7895. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7896. wlarc=
  7897. hardcode_direct=yes
  7898. hardcode_shlibpath_var=no
  7899. ;;
  7900. *)
  7901. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7902. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7903. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7904. else
  7905. ld_shlibs=no
  7906. fi
  7907. ;;
  7908. esac
  7909. if test "$ld_shlibs" = no; then
  7910. runpath_var=
  7911. hardcode_libdir_flag_spec=
  7912. export_dynamic_flag_spec=
  7913. whole_archive_flag_spec=
  7914. fi
  7915. else
  7916. # PORTME fill in a description of your system's linker (not GNU ld)
  7917. case $host_os in
  7918. aix3*)
  7919. allow_undefined_flag=unsupported
  7920. always_export_symbols=yes
  7921. 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'
  7922. # Note: this linker hardcodes the directories in LIBPATH if there
  7923. # are no directories specified by -L.
  7924. hardcode_minus_L=yes
  7925. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7926. # Neither direct hardcoding nor static linking is supported with a
  7927. # broken collect2.
  7928. hardcode_direct=unsupported
  7929. fi
  7930. ;;
  7931. aix[4-9]*)
  7932. if test "$host_cpu" = ia64; then
  7933. # On IA64, the linker does run time linking by default, so we don't
  7934. # have to do anything special.
  7935. aix_use_runtimelinking=no
  7936. exp_sym_flag='-Bexport'
  7937. no_entry_flag=""
  7938. else
  7939. # If we're using GNU nm, then we don't want the "-C" option.
  7940. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7941. # Also, AIX nm treats weak defined symbols like other global
  7942. # defined symbols, whereas GNU nm marks them as "W".
  7943. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7944. 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'
  7945. else
  7946. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7947. fi
  7948. aix_use_runtimelinking=no
  7949. # Test if we are trying to use run time linking or normal
  7950. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7951. # need to do runtime linking.
  7952. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7953. for ld_flag in $LDFLAGS; do
  7954. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7955. aix_use_runtimelinking=yes
  7956. break
  7957. fi
  7958. done
  7959. ;;
  7960. esac
  7961. exp_sym_flag='-bexport'
  7962. no_entry_flag='-bnoentry'
  7963. fi
  7964. # When large executables or shared objects are built, AIX ld can
  7965. # have problems creating the table of contents. If linking a library
  7966. # or program results in "error TOC overflow" add -mminimal-toc to
  7967. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7968. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7969. archive_cmds=''
  7970. hardcode_direct=yes
  7971. hardcode_direct_absolute=yes
  7972. hardcode_libdir_separator=':'
  7973. link_all_deplibs=yes
  7974. file_list_spec='${wl}-f,'
  7975. if test "$GCC" = yes; then
  7976. case $host_os in aix4.[012]|aix4.[012].*)
  7977. # We only want to do this on AIX 4.2 and lower, the check
  7978. # below for broken collect2 doesn't work under 4.3+
  7979. collect2name=`${CC} -print-prog-name=collect2`
  7980. if test -f "$collect2name" &&
  7981. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7982. then
  7983. # We have reworked collect2
  7984. :
  7985. else
  7986. # We have old collect2
  7987. hardcode_direct=unsupported
  7988. # It fails to find uninstalled libraries when the uninstalled
  7989. # path is not listed in the libpath. Setting hardcode_minus_L
  7990. # to unsupported forces relinking
  7991. hardcode_minus_L=yes
  7992. hardcode_libdir_flag_spec='-L$libdir'
  7993. hardcode_libdir_separator=
  7994. fi
  7995. ;;
  7996. esac
  7997. shared_flag='-shared'
  7998. if test "$aix_use_runtimelinking" = yes; then
  7999. shared_flag="$shared_flag "'${wl}-G'
  8000. fi
  8001. else
  8002. # not using gcc
  8003. if test "$host_cpu" = ia64; then
  8004. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8005. # chokes on -Wl,-G. The following line is correct:
  8006. shared_flag='-G'
  8007. else
  8008. if test "$aix_use_runtimelinking" = yes; then
  8009. shared_flag='${wl}-G'
  8010. else
  8011. shared_flag='${wl}-bM:SRE'
  8012. fi
  8013. fi
  8014. fi
  8015. export_dynamic_flag_spec='${wl}-bexpall'
  8016. # It seems that -bexpall does not export symbols beginning with
  8017. # underscore (_), so it is better to generate a list of symbols to export.
  8018. always_export_symbols=yes
  8019. if test "$aix_use_runtimelinking" = yes; then
  8020. # Warning - without using the other runtime loading flags (-brtl),
  8021. # -berok will link without error, but may produce a broken library.
  8022. allow_undefined_flag='-berok'
  8023. # Determine the default libpath from the value encoded in an
  8024. # empty executable.
  8025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8026. /* end confdefs.h. */
  8027. int
  8028. main ()
  8029. {
  8030. ;
  8031. return 0;
  8032. }
  8033. _ACEOF
  8034. if ac_fn_c_try_link "$LINENO"; then :
  8035. lt_aix_libpath_sed='
  8036. /Import File Strings/,/^$/ {
  8037. /^0/ {
  8038. s/^0 *\(.*\)$/\1/
  8039. p
  8040. }
  8041. }'
  8042. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8043. # Check for a 64-bit object if we didn't find anything.
  8044. if test -z "$aix_libpath"; then
  8045. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8046. fi
  8047. fi
  8048. rm -f core conftest.err conftest.$ac_objext \
  8049. conftest$ac_exeext conftest.$ac_ext
  8050. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8051. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8052. 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"
  8053. else
  8054. if test "$host_cpu" = ia64; then
  8055. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8056. allow_undefined_flag="-z nodefs"
  8057. 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"
  8058. else
  8059. # Determine the default libpath from the value encoded in an
  8060. # empty executable.
  8061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8062. /* end confdefs.h. */
  8063. int
  8064. main ()
  8065. {
  8066. ;
  8067. return 0;
  8068. }
  8069. _ACEOF
  8070. if ac_fn_c_try_link "$LINENO"; then :
  8071. lt_aix_libpath_sed='
  8072. /Import File Strings/,/^$/ {
  8073. /^0/ {
  8074. s/^0 *\(.*\)$/\1/
  8075. p
  8076. }
  8077. }'
  8078. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8079. # Check for a 64-bit object if we didn't find anything.
  8080. if test -z "$aix_libpath"; then
  8081. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8082. fi
  8083. fi
  8084. rm -f core conftest.err conftest.$ac_objext \
  8085. conftest$ac_exeext conftest.$ac_ext
  8086. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8087. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8088. # Warning - without using the other run time loading flags,
  8089. # -berok will link without error, but may produce a broken library.
  8090. no_undefined_flag=' ${wl}-bernotok'
  8091. allow_undefined_flag=' ${wl}-berok'
  8092. if test "$with_gnu_ld" = yes; then
  8093. # We only use this code for GNU lds that support --whole-archive.
  8094. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8095. else
  8096. # Exported symbols can be pulled into shared objects from archives
  8097. whole_archive_flag_spec='$convenience'
  8098. fi
  8099. archive_cmds_need_lc=yes
  8100. # This is similar to how AIX traditionally builds its shared libraries.
  8101. 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'
  8102. fi
  8103. fi
  8104. ;;
  8105. amigaos*)
  8106. case $host_cpu in
  8107. powerpc)
  8108. # see comment about AmigaOS4 .so support
  8109. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8110. archive_expsym_cmds=''
  8111. ;;
  8112. m68k)
  8113. 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)'
  8114. hardcode_libdir_flag_spec='-L$libdir'
  8115. hardcode_minus_L=yes
  8116. ;;
  8117. esac
  8118. ;;
  8119. bsdi[45]*)
  8120. export_dynamic_flag_spec=-rdynamic
  8121. ;;
  8122. cygwin* | mingw* | pw32* | cegcc*)
  8123. # When not using gcc, we currently assume that we are using
  8124. # Microsoft Visual C++.
  8125. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8126. # no search path for DLLs.
  8127. hardcode_libdir_flag_spec=' '
  8128. allow_undefined_flag=unsupported
  8129. # Tell ltmain to make .lib files, not .a files.
  8130. libext=lib
  8131. # Tell ltmain to make .dll files, not .so files.
  8132. shrext_cmds=".dll"
  8133. # FIXME: Setting linknames here is a bad hack.
  8134. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8135. # The linker will automatically build a .lib file if we build a DLL.
  8136. old_archive_from_new_cmds='true'
  8137. # FIXME: Should let the user specify the lib program.
  8138. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8139. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8140. enable_shared_with_static_runtimes=yes
  8141. ;;
  8142. darwin* | rhapsody*)
  8143. archive_cmds_need_lc=no
  8144. hardcode_direct=no
  8145. hardcode_automatic=yes
  8146. hardcode_shlibpath_var=unsupported
  8147. if test "$lt_cv_ld_force_load" = "yes"; then
  8148. 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\"`'
  8149. else
  8150. whole_archive_flag_spec=''
  8151. fi
  8152. link_all_deplibs=yes
  8153. allow_undefined_flag="$_lt_dar_allow_undefined"
  8154. case $cc_basename in
  8155. ifort*) _lt_dar_can_shared=yes ;;
  8156. *) _lt_dar_can_shared=$GCC ;;
  8157. esac
  8158. if test "$_lt_dar_can_shared" = "yes"; then
  8159. output_verbose_link_cmd=func_echo_all
  8160. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8161. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8162. 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}"
  8163. 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}"
  8164. else
  8165. ld_shlibs=no
  8166. fi
  8167. ;;
  8168. dgux*)
  8169. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8170. hardcode_libdir_flag_spec='-L$libdir'
  8171. hardcode_shlibpath_var=no
  8172. ;;
  8173. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8174. # support. Future versions do this automatically, but an explicit c++rt0.o
  8175. # does not break anything, and helps significantly (at the cost of a little
  8176. # extra space).
  8177. freebsd2.2*)
  8178. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8179. hardcode_libdir_flag_spec='-R$libdir'
  8180. hardcode_direct=yes
  8181. hardcode_shlibpath_var=no
  8182. ;;
  8183. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8184. freebsd2.*)
  8185. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8186. hardcode_direct=yes
  8187. hardcode_minus_L=yes
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8191. freebsd* | dragonfly*)
  8192. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8193. hardcode_libdir_flag_spec='-R$libdir'
  8194. hardcode_direct=yes
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. hpux9*)
  8198. if test "$GCC" = yes; then
  8199. 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'
  8200. else
  8201. 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'
  8202. fi
  8203. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8204. hardcode_libdir_separator=:
  8205. hardcode_direct=yes
  8206. # hardcode_minus_L: Not really in the search PATH,
  8207. # but as the default location of the library.
  8208. hardcode_minus_L=yes
  8209. export_dynamic_flag_spec='${wl}-E'
  8210. ;;
  8211. hpux10*)
  8212. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8213. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8214. else
  8215. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8216. fi
  8217. if test "$with_gnu_ld" = no; then
  8218. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8219. hardcode_libdir_flag_spec_ld='+b $libdir'
  8220. hardcode_libdir_separator=:
  8221. hardcode_direct=yes
  8222. hardcode_direct_absolute=yes
  8223. export_dynamic_flag_spec='${wl}-E'
  8224. # hardcode_minus_L: Not really in the search PATH,
  8225. # but as the default location of the library.
  8226. hardcode_minus_L=yes
  8227. fi
  8228. ;;
  8229. hpux11*)
  8230. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8231. case $host_cpu in
  8232. hppa*64*)
  8233. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8234. ;;
  8235. ia64*)
  8236. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8237. ;;
  8238. *)
  8239. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8240. ;;
  8241. esac
  8242. else
  8243. case $host_cpu in
  8244. hppa*64*)
  8245. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8246. ;;
  8247. ia64*)
  8248. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8249. ;;
  8250. *)
  8251. # Older versions of the 11.00 compiler do not understand -b yet
  8252. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8254. $as_echo_n "checking if $CC understands -b... " >&6; }
  8255. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8256. $as_echo_n "(cached) " >&6
  8257. else
  8258. lt_cv_prog_compiler__b=no
  8259. save_LDFLAGS="$LDFLAGS"
  8260. LDFLAGS="$LDFLAGS -b"
  8261. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8262. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8263. # The linker can only warn and ignore the option if not recognized
  8264. # So say no if there are warnings
  8265. if test -s conftest.err; then
  8266. # Append any errors to the config.log.
  8267. cat conftest.err 1>&5
  8268. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8270. if diff conftest.exp conftest.er2 >/dev/null; then
  8271. lt_cv_prog_compiler__b=yes
  8272. fi
  8273. else
  8274. lt_cv_prog_compiler__b=yes
  8275. fi
  8276. fi
  8277. $RM -r conftest*
  8278. LDFLAGS="$save_LDFLAGS"
  8279. fi
  8280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8281. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8282. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8283. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8284. else
  8285. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8286. fi
  8287. ;;
  8288. esac
  8289. fi
  8290. if test "$with_gnu_ld" = no; then
  8291. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8292. hardcode_libdir_separator=:
  8293. case $host_cpu in
  8294. hppa*64*|ia64*)
  8295. hardcode_direct=no
  8296. hardcode_shlibpath_var=no
  8297. ;;
  8298. *)
  8299. hardcode_direct=yes
  8300. hardcode_direct_absolute=yes
  8301. export_dynamic_flag_spec='${wl}-E'
  8302. # hardcode_minus_L: Not really in the search PATH,
  8303. # but as the default location of the library.
  8304. hardcode_minus_L=yes
  8305. ;;
  8306. esac
  8307. fi
  8308. ;;
  8309. irix5* | irix6* | nonstopux*)
  8310. if test "$GCC" = yes; then
  8311. 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'
  8312. # Try to use the -exported_symbol ld option, if it does not
  8313. # work, assume that -exports_file does not work either and
  8314. # implicitly export all symbols.
  8315. save_LDFLAGS="$LDFLAGS"
  8316. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8318. /* end confdefs.h. */
  8319. int foo(void) {}
  8320. _ACEOF
  8321. if ac_fn_c_try_link "$LINENO"; then :
  8322. 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'
  8323. fi
  8324. rm -f core conftest.err conftest.$ac_objext \
  8325. conftest$ac_exeext conftest.$ac_ext
  8326. LDFLAGS="$save_LDFLAGS"
  8327. else
  8328. 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'
  8329. 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'
  8330. fi
  8331. archive_cmds_need_lc='no'
  8332. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8333. hardcode_libdir_separator=:
  8334. inherit_rpath=yes
  8335. link_all_deplibs=yes
  8336. ;;
  8337. netbsd*)
  8338. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8339. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8340. else
  8341. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8342. fi
  8343. hardcode_libdir_flag_spec='-R$libdir'
  8344. hardcode_direct=yes
  8345. hardcode_shlibpath_var=no
  8346. ;;
  8347. newsos6)
  8348. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8349. hardcode_direct=yes
  8350. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8351. hardcode_libdir_separator=:
  8352. hardcode_shlibpath_var=no
  8353. ;;
  8354. *nto* | *qnx*)
  8355. ;;
  8356. openbsd*)
  8357. if test -f /usr/libexec/ld.so; then
  8358. hardcode_direct=yes
  8359. hardcode_shlibpath_var=no
  8360. hardcode_direct_absolute=yes
  8361. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8362. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8363. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8364. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8365. export_dynamic_flag_spec='${wl}-E'
  8366. else
  8367. case $host_os in
  8368. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8369. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8370. hardcode_libdir_flag_spec='-R$libdir'
  8371. ;;
  8372. *)
  8373. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8374. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8375. ;;
  8376. esac
  8377. fi
  8378. else
  8379. ld_shlibs=no
  8380. fi
  8381. ;;
  8382. os2*)
  8383. hardcode_libdir_flag_spec='-L$libdir'
  8384. hardcode_minus_L=yes
  8385. allow_undefined_flag=unsupported
  8386. 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'
  8387. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8388. ;;
  8389. osf3*)
  8390. if test "$GCC" = yes; then
  8391. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8392. 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'
  8393. else
  8394. allow_undefined_flag=' -expect_unresolved \*'
  8395. 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'
  8396. fi
  8397. archive_cmds_need_lc='no'
  8398. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8399. hardcode_libdir_separator=:
  8400. ;;
  8401. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8402. if test "$GCC" = yes; then
  8403. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8404. 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'
  8405. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8406. else
  8407. allow_undefined_flag=' -expect_unresolved \*'
  8408. 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'
  8409. 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~
  8410. $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'
  8411. # Both c and cxx compiler support -rpath directly
  8412. hardcode_libdir_flag_spec='-rpath $libdir'
  8413. fi
  8414. archive_cmds_need_lc='no'
  8415. hardcode_libdir_separator=:
  8416. ;;
  8417. solaris*)
  8418. no_undefined_flag=' -z defs'
  8419. if test "$GCC" = yes; then
  8420. wlarc='${wl}'
  8421. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8423. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8424. else
  8425. case `$CC -V 2>&1` in
  8426. *"Compilers 5.0"*)
  8427. wlarc=''
  8428. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8430. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8431. ;;
  8432. *)
  8433. wlarc='${wl}'
  8434. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8436. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8437. ;;
  8438. esac
  8439. fi
  8440. hardcode_libdir_flag_spec='-R$libdir'
  8441. hardcode_shlibpath_var=no
  8442. case $host_os in
  8443. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8444. *)
  8445. # The compiler driver will combine and reorder linker options,
  8446. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8447. # but is careful enough not to reorder.
  8448. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8449. if test "$GCC" = yes; then
  8450. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8451. else
  8452. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8453. fi
  8454. ;;
  8455. esac
  8456. link_all_deplibs=yes
  8457. ;;
  8458. sunos4*)
  8459. if test "x$host_vendor" = xsequent; then
  8460. # Use $CC to link under sequent, because it throws in some extra .o
  8461. # files that make .init and .fini sections work.
  8462. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. else
  8464. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8465. fi
  8466. hardcode_libdir_flag_spec='-L$libdir'
  8467. hardcode_direct=yes
  8468. hardcode_minus_L=yes
  8469. hardcode_shlibpath_var=no
  8470. ;;
  8471. sysv4)
  8472. case $host_vendor in
  8473. sni)
  8474. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8475. hardcode_direct=yes # is this really true???
  8476. ;;
  8477. siemens)
  8478. ## LD is ld it makes a PLAMLIB
  8479. ## CC just makes a GrossModule.
  8480. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8481. reload_cmds='$CC -r -o $output$reload_objs'
  8482. hardcode_direct=no
  8483. ;;
  8484. motorola)
  8485. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8486. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8487. ;;
  8488. esac
  8489. runpath_var='LD_RUN_PATH'
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. sysv4.3*)
  8493. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8494. hardcode_shlibpath_var=no
  8495. export_dynamic_flag_spec='-Bexport'
  8496. ;;
  8497. sysv4*MP*)
  8498. if test -d /usr/nec; then
  8499. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8500. hardcode_shlibpath_var=no
  8501. runpath_var=LD_RUN_PATH
  8502. hardcode_runpath_var=yes
  8503. ld_shlibs=yes
  8504. fi
  8505. ;;
  8506. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8507. no_undefined_flag='${wl}-z,text'
  8508. archive_cmds_need_lc=no
  8509. hardcode_shlibpath_var=no
  8510. runpath_var='LD_RUN_PATH'
  8511. if test "$GCC" = yes; then
  8512. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8514. else
  8515. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8516. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8517. fi
  8518. ;;
  8519. sysv5* | sco3.2v5* | sco5v6*)
  8520. # Note: We can NOT use -z defs as we might desire, because we do not
  8521. # link with -lc, and that would cause any symbols used from libc to
  8522. # always be unresolved, which means just about no library would
  8523. # ever link correctly. If we're not using GNU ld we use -z text
  8524. # though, which does catch some bad symbols but isn't as heavy-handed
  8525. # as -z defs.
  8526. no_undefined_flag='${wl}-z,text'
  8527. allow_undefined_flag='${wl}-z,nodefs'
  8528. archive_cmds_need_lc=no
  8529. hardcode_shlibpath_var=no
  8530. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8531. hardcode_libdir_separator=':'
  8532. link_all_deplibs=yes
  8533. export_dynamic_flag_spec='${wl}-Bexport'
  8534. runpath_var='LD_RUN_PATH'
  8535. if test "$GCC" = yes; then
  8536. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. else
  8539. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. fi
  8542. ;;
  8543. uts4*)
  8544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8545. hardcode_libdir_flag_spec='-L$libdir'
  8546. hardcode_shlibpath_var=no
  8547. ;;
  8548. *)
  8549. ld_shlibs=no
  8550. ;;
  8551. esac
  8552. if test x$host_vendor = xsni; then
  8553. case $host in
  8554. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8555. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8556. ;;
  8557. esac
  8558. fi
  8559. fi
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8561. $as_echo "$ld_shlibs" >&6; }
  8562. test "$ld_shlibs" = no && can_build_shared=no
  8563. with_gnu_ld=$with_gnu_ld
  8564. #
  8565. # Do we need to explicitly link libc?
  8566. #
  8567. case "x$archive_cmds_need_lc" in
  8568. x|xyes)
  8569. # Assume -lc should be added
  8570. archive_cmds_need_lc=yes
  8571. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8572. case $archive_cmds in
  8573. *'~'*)
  8574. # FIXME: we may have to deal with multi-command sequences.
  8575. ;;
  8576. '$CC '*)
  8577. # Test whether the compiler implicitly links with -lc since on some
  8578. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8579. # to ld, don't add -lc before -lgcc.
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8581. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8582. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8583. $as_echo_n "(cached) " >&6
  8584. else
  8585. $RM conftest*
  8586. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8588. (eval $ac_compile) 2>&5
  8589. ac_status=$?
  8590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8591. test $ac_status = 0; } 2>conftest.err; then
  8592. soname=conftest
  8593. lib=conftest
  8594. libobjs=conftest.$ac_objext
  8595. deplibs=
  8596. wl=$lt_prog_compiler_wl
  8597. pic_flag=$lt_prog_compiler_pic
  8598. compiler_flags=-v
  8599. linker_flags=-v
  8600. verstring=
  8601. output_objdir=.
  8602. libname=conftest
  8603. lt_save_allow_undefined_flag=$allow_undefined_flag
  8604. allow_undefined_flag=
  8605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8606. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8607. ac_status=$?
  8608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8609. test $ac_status = 0; }
  8610. then
  8611. lt_cv_archive_cmds_need_lc=no
  8612. else
  8613. lt_cv_archive_cmds_need_lc=yes
  8614. fi
  8615. allow_undefined_flag=$lt_save_allow_undefined_flag
  8616. else
  8617. cat conftest.err 1>&5
  8618. fi
  8619. $RM conftest*
  8620. fi
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8622. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8623. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8624. ;;
  8625. esac
  8626. fi
  8627. ;;
  8628. esac
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8630. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8631. if test "$GCC" = yes; then
  8632. case $host_os in
  8633. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8634. *) lt_awk_arg="/^libraries:/" ;;
  8635. esac
  8636. case $host_os in
  8637. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8638. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8639. esac
  8640. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8641. case $lt_search_path_spec in
  8642. *\;*)
  8643. # if the path contains ";" then we assume it to be the separator
  8644. # otherwise default to the standard path separator (i.e. ":") - it is
  8645. # assumed that no part of a normal pathname contains ";" but that should
  8646. # okay in the real world where ";" in dirpaths is itself problematic.
  8647. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8648. ;;
  8649. *)
  8650. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8651. ;;
  8652. esac
  8653. # Ok, now we have the path, separated by spaces, we can step through it
  8654. # and add multilib dir if necessary.
  8655. lt_tmp_lt_search_path_spec=
  8656. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8657. for lt_sys_path in $lt_search_path_spec; do
  8658. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8659. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8660. else
  8661. test -d "$lt_sys_path" && \
  8662. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8663. fi
  8664. done
  8665. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8666. BEGIN {RS=" "; FS="/|\n";} {
  8667. lt_foo="";
  8668. lt_count=0;
  8669. for (lt_i = NF; lt_i > 0; lt_i--) {
  8670. if ($lt_i != "" && $lt_i != ".") {
  8671. if ($lt_i == "..") {
  8672. lt_count++;
  8673. } else {
  8674. if (lt_count == 0) {
  8675. lt_foo="/" $lt_i lt_foo;
  8676. } else {
  8677. lt_count--;
  8678. }
  8679. }
  8680. }
  8681. }
  8682. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8683. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8684. }'`
  8685. # AWK program above erroneously prepends '/' to C:/dos/paths
  8686. # for these hosts.
  8687. case $host_os in
  8688. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8689. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8690. esac
  8691. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8692. else
  8693. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8694. fi
  8695. library_names_spec=
  8696. libname_spec='lib$name'
  8697. soname_spec=
  8698. shrext_cmds=".so"
  8699. postinstall_cmds=
  8700. postuninstall_cmds=
  8701. finish_cmds=
  8702. finish_eval=
  8703. shlibpath_var=
  8704. shlibpath_overrides_runpath=unknown
  8705. version_type=none
  8706. dynamic_linker="$host_os ld.so"
  8707. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8708. need_lib_prefix=unknown
  8709. hardcode_into_libs=no
  8710. # when you set need_version to no, make sure it does not cause -set_version
  8711. # flags to be left without arguments
  8712. need_version=unknown
  8713. case $host_os in
  8714. aix3*)
  8715. version_type=linux
  8716. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8717. shlibpath_var=LIBPATH
  8718. # AIX 3 has no versioning support, so we append a major version to the name.
  8719. soname_spec='${libname}${release}${shared_ext}$major'
  8720. ;;
  8721. aix[4-9]*)
  8722. version_type=linux
  8723. need_lib_prefix=no
  8724. need_version=no
  8725. hardcode_into_libs=yes
  8726. if test "$host_cpu" = ia64; then
  8727. # AIX 5 supports IA64
  8728. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8729. shlibpath_var=LD_LIBRARY_PATH
  8730. else
  8731. # With GCC up to 2.95.x, collect2 would create an import file
  8732. # for dependence libraries. The import file would start with
  8733. # the line `#! .'. This would cause the generated library to
  8734. # depend on `.', always an invalid library. This was fixed in
  8735. # development snapshots of GCC prior to 3.0.
  8736. case $host_os in
  8737. aix4 | aix4.[01] | aix4.[01].*)
  8738. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8739. echo ' yes '
  8740. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8741. :
  8742. else
  8743. can_build_shared=no
  8744. fi
  8745. ;;
  8746. esac
  8747. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8748. # soname into executable. Probably we can add versioning support to
  8749. # collect2, so additional links can be useful in future.
  8750. if test "$aix_use_runtimelinking" = yes; then
  8751. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8752. # instead of lib<name>.a to let people know that these are not
  8753. # typical AIX shared libraries.
  8754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8755. else
  8756. # We preserve .a as extension for shared libraries through AIX4.2
  8757. # and later when we are not doing run time linking.
  8758. library_names_spec='${libname}${release}.a $libname.a'
  8759. soname_spec='${libname}${release}${shared_ext}$major'
  8760. fi
  8761. shlibpath_var=LIBPATH
  8762. fi
  8763. ;;
  8764. amigaos*)
  8765. case $host_cpu in
  8766. powerpc)
  8767. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8768. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8770. ;;
  8771. m68k)
  8772. library_names_spec='$libname.ixlibrary $libname.a'
  8773. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8774. 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'
  8775. ;;
  8776. esac
  8777. ;;
  8778. beos*)
  8779. library_names_spec='${libname}${shared_ext}'
  8780. dynamic_linker="$host_os ld.so"
  8781. shlibpath_var=LIBRARY_PATH
  8782. ;;
  8783. bsdi[45]*)
  8784. version_type=linux
  8785. need_version=no
  8786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8789. shlibpath_var=LD_LIBRARY_PATH
  8790. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8791. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8792. # the default ld.so.conf also contains /usr/contrib/lib and
  8793. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8794. # libtool to hard-code these into programs
  8795. ;;
  8796. cygwin* | mingw* | pw32* | cegcc*)
  8797. version_type=windows
  8798. shrext_cmds=".dll"
  8799. need_version=no
  8800. need_lib_prefix=no
  8801. case $GCC,$host_os in
  8802. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8803. library_names_spec='$libname.dll.a'
  8804. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8805. postinstall_cmds='base_file=`basename \${file}`~
  8806. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8807. dldir=$destdir/`dirname \$dlpath`~
  8808. test -d \$dldir || mkdir -p \$dldir~
  8809. $install_prog $dir/$dlname \$dldir/$dlname~
  8810. chmod a+x \$dldir/$dlname~
  8811. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8812. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8813. fi'
  8814. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8815. dlpath=$dir/\$dldll~
  8816. $RM \$dlpath'
  8817. shlibpath_overrides_runpath=yes
  8818. case $host_os in
  8819. cygwin*)
  8820. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8821. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8822. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8823. ;;
  8824. mingw* | cegcc*)
  8825. # MinGW DLLs use traditional 'lib' prefix
  8826. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8827. ;;
  8828. pw32*)
  8829. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8830. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8831. ;;
  8832. esac
  8833. ;;
  8834. *)
  8835. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8836. ;;
  8837. esac
  8838. dynamic_linker='Win32 ld.exe'
  8839. # FIXME: first we should search . and the directory the executable is in
  8840. shlibpath_var=PATH
  8841. ;;
  8842. darwin* | rhapsody*)
  8843. dynamic_linker="$host_os dyld"
  8844. version_type=darwin
  8845. need_lib_prefix=no
  8846. need_version=no
  8847. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8848. soname_spec='${libname}${release}${major}$shared_ext'
  8849. shlibpath_overrides_runpath=yes
  8850. shlibpath_var=DYLD_LIBRARY_PATH
  8851. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8852. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8853. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8854. ;;
  8855. dgux*)
  8856. version_type=linux
  8857. need_lib_prefix=no
  8858. need_version=no
  8859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8860. soname_spec='${libname}${release}${shared_ext}$major'
  8861. shlibpath_var=LD_LIBRARY_PATH
  8862. ;;
  8863. freebsd* | dragonfly*)
  8864. # DragonFly does not have aout. When/if they implement a new
  8865. # versioning mechanism, adjust this.
  8866. if test -x /usr/bin/objformat; then
  8867. objformat=`/usr/bin/objformat`
  8868. else
  8869. case $host_os in
  8870. freebsd[23].*) objformat=aout ;;
  8871. *) objformat=elf ;;
  8872. esac
  8873. fi
  8874. version_type=freebsd-$objformat
  8875. case $version_type in
  8876. freebsd-elf*)
  8877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8878. need_version=no
  8879. need_lib_prefix=no
  8880. ;;
  8881. freebsd-*)
  8882. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8883. need_version=yes
  8884. ;;
  8885. esac
  8886. shlibpath_var=LD_LIBRARY_PATH
  8887. case $host_os in
  8888. freebsd2.*)
  8889. shlibpath_overrides_runpath=yes
  8890. ;;
  8891. freebsd3.[01]* | freebsdelf3.[01]*)
  8892. shlibpath_overrides_runpath=yes
  8893. hardcode_into_libs=yes
  8894. ;;
  8895. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8896. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8897. shlibpath_overrides_runpath=no
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. *) # from 4.6 on, and DragonFly
  8901. shlibpath_overrides_runpath=yes
  8902. hardcode_into_libs=yes
  8903. ;;
  8904. esac
  8905. ;;
  8906. gnu*)
  8907. version_type=linux
  8908. need_lib_prefix=no
  8909. need_version=no
  8910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8911. soname_spec='${libname}${release}${shared_ext}$major'
  8912. shlibpath_var=LD_LIBRARY_PATH
  8913. hardcode_into_libs=yes
  8914. ;;
  8915. haiku*)
  8916. version_type=linux
  8917. need_lib_prefix=no
  8918. need_version=no
  8919. dynamic_linker="$host_os runtime_loader"
  8920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. shlibpath_var=LIBRARY_PATH
  8923. shlibpath_overrides_runpath=yes
  8924. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8925. hardcode_into_libs=yes
  8926. ;;
  8927. hpux9* | hpux10* | hpux11*)
  8928. # Give a soname corresponding to the major version so that dld.sl refuses to
  8929. # link against other versions.
  8930. version_type=sunos
  8931. need_lib_prefix=no
  8932. need_version=no
  8933. case $host_cpu in
  8934. ia64*)
  8935. shrext_cmds='.so'
  8936. hardcode_into_libs=yes
  8937. dynamic_linker="$host_os dld.so"
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8941. soname_spec='${libname}${release}${shared_ext}$major'
  8942. if test "X$HPUX_IA64_MODE" = X32; then
  8943. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8944. else
  8945. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8946. fi
  8947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8948. ;;
  8949. hppa*64*)
  8950. shrext_cmds='.sl'
  8951. hardcode_into_libs=yes
  8952. dynamic_linker="$host_os dld.sl"
  8953. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8954. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8956. soname_spec='${libname}${release}${shared_ext}$major'
  8957. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8958. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8959. ;;
  8960. *)
  8961. shrext_cmds='.sl'
  8962. dynamic_linker="$host_os dld.sl"
  8963. shlibpath_var=SHLIB_PATH
  8964. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. soname_spec='${libname}${release}${shared_ext}$major'
  8967. ;;
  8968. esac
  8969. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8970. postinstall_cmds='chmod 555 $lib'
  8971. # or fails outright, so override atomically:
  8972. install_override_mode=555
  8973. ;;
  8974. interix[3-9]*)
  8975. version_type=linux
  8976. need_lib_prefix=no
  8977. need_version=no
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8979. soname_spec='${libname}${release}${shared_ext}$major'
  8980. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8981. shlibpath_var=LD_LIBRARY_PATH
  8982. shlibpath_overrides_runpath=no
  8983. hardcode_into_libs=yes
  8984. ;;
  8985. irix5* | irix6* | nonstopux*)
  8986. case $host_os in
  8987. nonstopux*) version_type=nonstopux ;;
  8988. *)
  8989. if test "$lt_cv_prog_gnu_ld" = yes; then
  8990. version_type=linux
  8991. else
  8992. version_type=irix
  8993. fi ;;
  8994. esac
  8995. need_lib_prefix=no
  8996. need_version=no
  8997. soname_spec='${libname}${release}${shared_ext}$major'
  8998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8999. case $host_os in
  9000. irix5* | nonstopux*)
  9001. libsuff= shlibsuff=
  9002. ;;
  9003. *)
  9004. case $LD in # libtool.m4 will add one of these switches to LD
  9005. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9006. libsuff= shlibsuff= libmagic=32-bit;;
  9007. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9008. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9009. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9010. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9011. *) libsuff= shlibsuff= libmagic=never-match;;
  9012. esac
  9013. ;;
  9014. esac
  9015. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9016. shlibpath_overrides_runpath=no
  9017. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9018. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9019. hardcode_into_libs=yes
  9020. ;;
  9021. # No shared lib support for Linux oldld, aout, or coff.
  9022. linux*oldld* | linux*aout* | linux*coff*)
  9023. dynamic_linker=no
  9024. ;;
  9025. # This must be Linux ELF.
  9026. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9027. version_type=linux
  9028. need_lib_prefix=no
  9029. need_version=no
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9033. shlibpath_var=LD_LIBRARY_PATH
  9034. shlibpath_overrides_runpath=no
  9035. # Some binutils ld are patched to set DT_RUNPATH
  9036. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9037. $as_echo_n "(cached) " >&6
  9038. else
  9039. lt_cv_shlibpath_overrides_runpath=no
  9040. save_LDFLAGS=$LDFLAGS
  9041. save_libdir=$libdir
  9042. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9043. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9045. /* end confdefs.h. */
  9046. int
  9047. main ()
  9048. {
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"; then :
  9054. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9055. lt_cv_shlibpath_overrides_runpath=yes
  9056. fi
  9057. fi
  9058. rm -f core conftest.err conftest.$ac_objext \
  9059. conftest$ac_exeext conftest.$ac_ext
  9060. LDFLAGS=$save_LDFLAGS
  9061. libdir=$save_libdir
  9062. fi
  9063. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9064. # This implies no fast_install, which is unacceptable.
  9065. # Some rework will be needed to allow for fast_install
  9066. # before this can be enabled.
  9067. hardcode_into_libs=yes
  9068. # Append ld.so.conf contents to the search path
  9069. if test -f /etc/ld.so.conf; then
  9070. 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' ' '`
  9071. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9072. fi
  9073. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9074. # powerpc, because MkLinux only supported shared libraries with the
  9075. # GNU dynamic linker. Since this was broken with cross compilers,
  9076. # most powerpc-linux boxes support dynamic linking these days and
  9077. # people can always --disable-shared, the test was removed, and we
  9078. # assume the GNU/Linux dynamic linker is in use.
  9079. dynamic_linker='GNU/Linux ld.so'
  9080. ;;
  9081. netbsd*)
  9082. version_type=sunos
  9083. need_lib_prefix=no
  9084. need_version=no
  9085. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9087. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9088. dynamic_linker='NetBSD (a.out) ld.so'
  9089. else
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. dynamic_linker='NetBSD ld.elf_so'
  9093. fi
  9094. shlibpath_var=LD_LIBRARY_PATH
  9095. shlibpath_overrides_runpath=yes
  9096. hardcode_into_libs=yes
  9097. ;;
  9098. newsos6)
  9099. version_type=linux
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=yes
  9103. ;;
  9104. *nto* | *qnx*)
  9105. version_type=qnx
  9106. need_lib_prefix=no
  9107. need_version=no
  9108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9109. soname_spec='${libname}${release}${shared_ext}$major'
  9110. shlibpath_var=LD_LIBRARY_PATH
  9111. shlibpath_overrides_runpath=no
  9112. hardcode_into_libs=yes
  9113. dynamic_linker='ldqnx.so'
  9114. ;;
  9115. openbsd*)
  9116. version_type=sunos
  9117. sys_lib_dlsearch_path_spec="/usr/lib"
  9118. need_lib_prefix=no
  9119. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9120. case $host_os in
  9121. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9122. *) need_version=no ;;
  9123. esac
  9124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9128. case $host_os in
  9129. openbsd2.[89] | openbsd2.[89].*)
  9130. shlibpath_overrides_runpath=no
  9131. ;;
  9132. *)
  9133. shlibpath_overrides_runpath=yes
  9134. ;;
  9135. esac
  9136. else
  9137. shlibpath_overrides_runpath=yes
  9138. fi
  9139. ;;
  9140. os2*)
  9141. libname_spec='$name'
  9142. shrext_cmds=".dll"
  9143. need_lib_prefix=no
  9144. library_names_spec='$libname${shared_ext} $libname.a'
  9145. dynamic_linker='OS/2 ld.exe'
  9146. shlibpath_var=LIBPATH
  9147. ;;
  9148. osf3* | osf4* | osf5*)
  9149. version_type=osf
  9150. need_lib_prefix=no
  9151. need_version=no
  9152. soname_spec='${libname}${release}${shared_ext}$major'
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9154. shlibpath_var=LD_LIBRARY_PATH
  9155. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9156. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9157. ;;
  9158. rdos*)
  9159. dynamic_linker=no
  9160. ;;
  9161. solaris*)
  9162. version_type=linux
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9166. soname_spec='${libname}${release}${shared_ext}$major'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. shlibpath_overrides_runpath=yes
  9169. hardcode_into_libs=yes
  9170. # ldd complains unless libraries are executable
  9171. postinstall_cmds='chmod +x $lib'
  9172. ;;
  9173. sunos4*)
  9174. version_type=sunos
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9176. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. shlibpath_overrides_runpath=yes
  9179. if test "$with_gnu_ld" = yes; then
  9180. need_lib_prefix=no
  9181. fi
  9182. need_version=yes
  9183. ;;
  9184. sysv4 | sysv4.3*)
  9185. version_type=linux
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. case $host_vendor in
  9190. sni)
  9191. shlibpath_overrides_runpath=no
  9192. need_lib_prefix=no
  9193. runpath_var=LD_RUN_PATH
  9194. ;;
  9195. siemens)
  9196. need_lib_prefix=no
  9197. ;;
  9198. motorola)
  9199. need_lib_prefix=no
  9200. need_version=no
  9201. shlibpath_overrides_runpath=no
  9202. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9203. ;;
  9204. esac
  9205. ;;
  9206. sysv4*MP*)
  9207. if test -d /usr/nec ;then
  9208. version_type=linux
  9209. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9210. soname_spec='$libname${shared_ext}.$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. fi
  9213. ;;
  9214. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9215. version_type=freebsd-elf
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9219. soname_spec='${libname}${release}${shared_ext}$major'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. shlibpath_overrides_runpath=yes
  9222. hardcode_into_libs=yes
  9223. if test "$with_gnu_ld" = yes; then
  9224. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9225. else
  9226. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9227. case $host_os in
  9228. sco3.2v5*)
  9229. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9230. ;;
  9231. esac
  9232. fi
  9233. sys_lib_dlsearch_path_spec='/usr/lib'
  9234. ;;
  9235. tpf*)
  9236. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9237. version_type=linux
  9238. need_lib_prefix=no
  9239. need_version=no
  9240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9241. shlibpath_var=LD_LIBRARY_PATH
  9242. shlibpath_overrides_runpath=no
  9243. hardcode_into_libs=yes
  9244. ;;
  9245. uts4*)
  9246. version_type=linux
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9248. soname_spec='${libname}${release}${shared_ext}$major'
  9249. shlibpath_var=LD_LIBRARY_PATH
  9250. ;;
  9251. *)
  9252. dynamic_linker=no
  9253. ;;
  9254. esac
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9256. $as_echo "$dynamic_linker" >&6; }
  9257. test "$dynamic_linker" = no && can_build_shared=no
  9258. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9259. if test "$GCC" = yes; then
  9260. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9261. fi
  9262. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9263. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9264. fi
  9265. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9266. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9267. fi
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9269. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9270. hardcode_action=
  9271. if test -n "$hardcode_libdir_flag_spec" ||
  9272. test -n "$runpath_var" ||
  9273. test "X$hardcode_automatic" = "Xyes" ; then
  9274. # We can hardcode non-existent directories.
  9275. if test "$hardcode_direct" != no &&
  9276. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9277. # have to relink, otherwise we might link with an installed library
  9278. # when we should be linking with a yet-to-be-installed one
  9279. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9280. test "$hardcode_minus_L" != no; then
  9281. # Linking always hardcodes the temporary library directory.
  9282. hardcode_action=relink
  9283. else
  9284. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9285. hardcode_action=immediate
  9286. fi
  9287. else
  9288. # We cannot hardcode anything, or else we can only hardcode existing
  9289. # directories.
  9290. hardcode_action=unsupported
  9291. fi
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9293. $as_echo "$hardcode_action" >&6; }
  9294. if test "$hardcode_action" = relink ||
  9295. test "$inherit_rpath" = yes; then
  9296. # Fast installation is not supported
  9297. enable_fast_install=no
  9298. elif test "$shlibpath_overrides_runpath" = yes ||
  9299. test "$enable_shared" = no; then
  9300. # Fast installation is not necessary
  9301. enable_fast_install=needless
  9302. fi
  9303. if test "x$enable_dlopen" != xyes; then
  9304. enable_dlopen=unknown
  9305. enable_dlopen_self=unknown
  9306. enable_dlopen_self_static=unknown
  9307. else
  9308. lt_cv_dlopen=no
  9309. lt_cv_dlopen_libs=
  9310. case $host_os in
  9311. beos*)
  9312. lt_cv_dlopen="load_add_on"
  9313. lt_cv_dlopen_libs=
  9314. lt_cv_dlopen_self=yes
  9315. ;;
  9316. mingw* | pw32* | cegcc*)
  9317. lt_cv_dlopen="LoadLibrary"
  9318. lt_cv_dlopen_libs=
  9319. ;;
  9320. cygwin*)
  9321. lt_cv_dlopen="dlopen"
  9322. lt_cv_dlopen_libs=
  9323. ;;
  9324. darwin*)
  9325. # if libdl is installed we need to link against it
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9327. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9328. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9329. $as_echo_n "(cached) " >&6
  9330. else
  9331. ac_check_lib_save_LIBS=$LIBS
  9332. LIBS="-ldl $LIBS"
  9333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h. */
  9335. /* Override any GCC internal prototype to avoid an error.
  9336. Use char because int might match the return type of a GCC
  9337. builtin and then its argument prototype would still apply. */
  9338. #ifdef __cplusplus
  9339. extern "C"
  9340. #endif
  9341. char dlopen ();
  9342. int
  9343. main ()
  9344. {
  9345. return dlopen ();
  9346. ;
  9347. return 0;
  9348. }
  9349. _ACEOF
  9350. if ac_fn_c_try_link "$LINENO"; then :
  9351. ac_cv_lib_dl_dlopen=yes
  9352. else
  9353. ac_cv_lib_dl_dlopen=no
  9354. fi
  9355. rm -f core conftest.err conftest.$ac_objext \
  9356. conftest$ac_exeext conftest.$ac_ext
  9357. LIBS=$ac_check_lib_save_LIBS
  9358. fi
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9360. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9361. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9362. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9363. else
  9364. lt_cv_dlopen="dyld"
  9365. lt_cv_dlopen_libs=
  9366. lt_cv_dlopen_self=yes
  9367. fi
  9368. ;;
  9369. *)
  9370. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9371. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9372. lt_cv_dlopen="shl_load"
  9373. else
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9375. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9376. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9377. $as_echo_n "(cached) " >&6
  9378. else
  9379. ac_check_lib_save_LIBS=$LIBS
  9380. LIBS="-ldld $LIBS"
  9381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9382. /* end confdefs.h. */
  9383. /* Override any GCC internal prototype to avoid an error.
  9384. Use char because int might match the return type of a GCC
  9385. builtin and then its argument prototype would still apply. */
  9386. #ifdef __cplusplus
  9387. extern "C"
  9388. #endif
  9389. char shl_load ();
  9390. int
  9391. main ()
  9392. {
  9393. return shl_load ();
  9394. ;
  9395. return 0;
  9396. }
  9397. _ACEOF
  9398. if ac_fn_c_try_link "$LINENO"; then :
  9399. ac_cv_lib_dld_shl_load=yes
  9400. else
  9401. ac_cv_lib_dld_shl_load=no
  9402. fi
  9403. rm -f core conftest.err conftest.$ac_objext \
  9404. conftest$ac_exeext conftest.$ac_ext
  9405. LIBS=$ac_check_lib_save_LIBS
  9406. fi
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9408. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9409. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9410. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9411. else
  9412. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9413. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9414. lt_cv_dlopen="dlopen"
  9415. else
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9417. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9418. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9419. $as_echo_n "(cached) " >&6
  9420. else
  9421. ac_check_lib_save_LIBS=$LIBS
  9422. LIBS="-ldl $LIBS"
  9423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9424. /* end confdefs.h. */
  9425. /* Override any GCC internal prototype to avoid an error.
  9426. Use char because int might match the return type of a GCC
  9427. builtin and then its argument prototype would still apply. */
  9428. #ifdef __cplusplus
  9429. extern "C"
  9430. #endif
  9431. char dlopen ();
  9432. int
  9433. main ()
  9434. {
  9435. return dlopen ();
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. if ac_fn_c_try_link "$LINENO"; then :
  9441. ac_cv_lib_dl_dlopen=yes
  9442. else
  9443. ac_cv_lib_dl_dlopen=no
  9444. fi
  9445. rm -f core conftest.err conftest.$ac_objext \
  9446. conftest$ac_exeext conftest.$ac_ext
  9447. LIBS=$ac_check_lib_save_LIBS
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9450. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9451. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9452. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9453. else
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9455. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9456. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9457. $as_echo_n "(cached) " >&6
  9458. else
  9459. ac_check_lib_save_LIBS=$LIBS
  9460. LIBS="-lsvld $LIBS"
  9461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9462. /* end confdefs.h. */
  9463. /* Override any GCC internal prototype to avoid an error.
  9464. Use char because int might match the return type of a GCC
  9465. builtin and then its argument prototype would still apply. */
  9466. #ifdef __cplusplus
  9467. extern "C"
  9468. #endif
  9469. char dlopen ();
  9470. int
  9471. main ()
  9472. {
  9473. return dlopen ();
  9474. ;
  9475. return 0;
  9476. }
  9477. _ACEOF
  9478. if ac_fn_c_try_link "$LINENO"; then :
  9479. ac_cv_lib_svld_dlopen=yes
  9480. else
  9481. ac_cv_lib_svld_dlopen=no
  9482. fi
  9483. rm -f core conftest.err conftest.$ac_objext \
  9484. conftest$ac_exeext conftest.$ac_ext
  9485. LIBS=$ac_check_lib_save_LIBS
  9486. fi
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9488. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9489. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9490. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9491. else
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9493. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9494. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9495. $as_echo_n "(cached) " >&6
  9496. else
  9497. ac_check_lib_save_LIBS=$LIBS
  9498. LIBS="-ldld $LIBS"
  9499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9500. /* end confdefs.h. */
  9501. /* Override any GCC internal prototype to avoid an error.
  9502. Use char because int might match the return type of a GCC
  9503. builtin and then its argument prototype would still apply. */
  9504. #ifdef __cplusplus
  9505. extern "C"
  9506. #endif
  9507. char dld_link ();
  9508. int
  9509. main ()
  9510. {
  9511. return dld_link ();
  9512. ;
  9513. return 0;
  9514. }
  9515. _ACEOF
  9516. if ac_fn_c_try_link "$LINENO"; then :
  9517. ac_cv_lib_dld_dld_link=yes
  9518. else
  9519. ac_cv_lib_dld_dld_link=no
  9520. fi
  9521. rm -f core conftest.err conftest.$ac_objext \
  9522. conftest$ac_exeext conftest.$ac_ext
  9523. LIBS=$ac_check_lib_save_LIBS
  9524. fi
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9526. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9527. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9528. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9529. fi
  9530. fi
  9531. fi
  9532. fi
  9533. fi
  9534. fi
  9535. ;;
  9536. esac
  9537. if test "x$lt_cv_dlopen" != xno; then
  9538. enable_dlopen=yes
  9539. else
  9540. enable_dlopen=no
  9541. fi
  9542. case $lt_cv_dlopen in
  9543. dlopen)
  9544. save_CPPFLAGS="$CPPFLAGS"
  9545. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9546. save_LDFLAGS="$LDFLAGS"
  9547. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9548. save_LIBS="$LIBS"
  9549. LIBS="$lt_cv_dlopen_libs $LIBS"
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9551. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9552. if test "${lt_cv_dlopen_self+set}" = set; then :
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. if test "$cross_compiling" = yes; then :
  9556. lt_cv_dlopen_self=cross
  9557. else
  9558. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9559. lt_status=$lt_dlunknown
  9560. cat > conftest.$ac_ext <<_LT_EOF
  9561. #line 11132 "configure"
  9562. #include "confdefs.h"
  9563. #if HAVE_DLFCN_H
  9564. #include <dlfcn.h>
  9565. #endif
  9566. #include <stdio.h>
  9567. #ifdef RTLD_GLOBAL
  9568. # define LT_DLGLOBAL RTLD_GLOBAL
  9569. #else
  9570. # ifdef DL_GLOBAL
  9571. # define LT_DLGLOBAL DL_GLOBAL
  9572. # else
  9573. # define LT_DLGLOBAL 0
  9574. # endif
  9575. #endif
  9576. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9577. find out it does not work in some platform. */
  9578. #ifndef LT_DLLAZY_OR_NOW
  9579. # ifdef RTLD_LAZY
  9580. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9581. # else
  9582. # ifdef DL_LAZY
  9583. # define LT_DLLAZY_OR_NOW DL_LAZY
  9584. # else
  9585. # ifdef RTLD_NOW
  9586. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9587. # else
  9588. # ifdef DL_NOW
  9589. # define LT_DLLAZY_OR_NOW DL_NOW
  9590. # else
  9591. # define LT_DLLAZY_OR_NOW 0
  9592. # endif
  9593. # endif
  9594. # endif
  9595. # endif
  9596. #endif
  9597. /* When -fvisbility=hidden is used, assume the code has been annotated
  9598. correspondingly for the symbols needed. */
  9599. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9600. void fnord () __attribute__((visibility("default")));
  9601. #endif
  9602. void fnord () { int i=42; }
  9603. int main ()
  9604. {
  9605. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9606. int status = $lt_dlunknown;
  9607. if (self)
  9608. {
  9609. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9610. else
  9611. {
  9612. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9613. else puts (dlerror ());
  9614. }
  9615. /* dlclose (self); */
  9616. }
  9617. else
  9618. puts (dlerror ());
  9619. return status;
  9620. }
  9621. _LT_EOF
  9622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9623. (eval $ac_link) 2>&5
  9624. ac_status=$?
  9625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9626. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9627. (./conftest; exit; ) >&5 2>/dev/null
  9628. lt_status=$?
  9629. case x$lt_status in
  9630. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9631. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9632. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9633. esac
  9634. else :
  9635. # compilation failed
  9636. lt_cv_dlopen_self=no
  9637. fi
  9638. fi
  9639. rm -fr conftest*
  9640. fi
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9642. $as_echo "$lt_cv_dlopen_self" >&6; }
  9643. if test "x$lt_cv_dlopen_self" = xyes; then
  9644. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9646. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9647. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9648. $as_echo_n "(cached) " >&6
  9649. else
  9650. if test "$cross_compiling" = yes; then :
  9651. lt_cv_dlopen_self_static=cross
  9652. else
  9653. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9654. lt_status=$lt_dlunknown
  9655. cat > conftest.$ac_ext <<_LT_EOF
  9656. #line 11238 "configure"
  9657. #include "confdefs.h"
  9658. #if HAVE_DLFCN_H
  9659. #include <dlfcn.h>
  9660. #endif
  9661. #include <stdio.h>
  9662. #ifdef RTLD_GLOBAL
  9663. # define LT_DLGLOBAL RTLD_GLOBAL
  9664. #else
  9665. # ifdef DL_GLOBAL
  9666. # define LT_DLGLOBAL DL_GLOBAL
  9667. # else
  9668. # define LT_DLGLOBAL 0
  9669. # endif
  9670. #endif
  9671. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9672. find out it does not work in some platform. */
  9673. #ifndef LT_DLLAZY_OR_NOW
  9674. # ifdef RTLD_LAZY
  9675. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9676. # else
  9677. # ifdef DL_LAZY
  9678. # define LT_DLLAZY_OR_NOW DL_LAZY
  9679. # else
  9680. # ifdef RTLD_NOW
  9681. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9682. # else
  9683. # ifdef DL_NOW
  9684. # define LT_DLLAZY_OR_NOW DL_NOW
  9685. # else
  9686. # define LT_DLLAZY_OR_NOW 0
  9687. # endif
  9688. # endif
  9689. # endif
  9690. # endif
  9691. #endif
  9692. /* When -fvisbility=hidden is used, assume the code has been annotated
  9693. correspondingly for the symbols needed. */
  9694. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9695. void fnord () __attribute__((visibility("default")));
  9696. #endif
  9697. void fnord () { int i=42; }
  9698. int main ()
  9699. {
  9700. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9701. int status = $lt_dlunknown;
  9702. if (self)
  9703. {
  9704. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9705. else
  9706. {
  9707. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9708. else puts (dlerror ());
  9709. }
  9710. /* dlclose (self); */
  9711. }
  9712. else
  9713. puts (dlerror ());
  9714. return status;
  9715. }
  9716. _LT_EOF
  9717. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9718. (eval $ac_link) 2>&5
  9719. ac_status=$?
  9720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9721. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9722. (./conftest; exit; ) >&5 2>/dev/null
  9723. lt_status=$?
  9724. case x$lt_status in
  9725. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9726. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9727. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9728. esac
  9729. else :
  9730. # compilation failed
  9731. lt_cv_dlopen_self_static=no
  9732. fi
  9733. fi
  9734. rm -fr conftest*
  9735. fi
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9737. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9738. fi
  9739. CPPFLAGS="$save_CPPFLAGS"
  9740. LDFLAGS="$save_LDFLAGS"
  9741. LIBS="$save_LIBS"
  9742. ;;
  9743. esac
  9744. case $lt_cv_dlopen_self in
  9745. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9746. *) enable_dlopen_self=unknown ;;
  9747. esac
  9748. case $lt_cv_dlopen_self_static in
  9749. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9750. *) enable_dlopen_self_static=unknown ;;
  9751. esac
  9752. fi
  9753. striplib=
  9754. old_striplib=
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9756. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9757. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9758. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9759. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9761. $as_echo "yes" >&6; }
  9762. else
  9763. # FIXME - insert some real tests, host_os isn't really good enough
  9764. case $host_os in
  9765. darwin*)
  9766. if test -n "$STRIP" ; then
  9767. striplib="$STRIP -x"
  9768. old_striplib="$STRIP -S"
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9770. $as_echo "yes" >&6; }
  9771. else
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. fi
  9775. ;;
  9776. *)
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9778. $as_echo "no" >&6; }
  9779. ;;
  9780. esac
  9781. fi
  9782. # Report which library types will actually be built
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9784. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9786. $as_echo "$can_build_shared" >&6; }
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9788. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9789. test "$can_build_shared" = "no" && enable_shared=no
  9790. # On AIX, shared libraries and static libraries use the same namespace, and
  9791. # are all built from PIC.
  9792. case $host_os in
  9793. aix3*)
  9794. test "$enable_shared" = yes && enable_static=no
  9795. if test -n "$RANLIB"; then
  9796. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9797. postinstall_cmds='$RANLIB $lib'
  9798. fi
  9799. ;;
  9800. aix[4-9]*)
  9801. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9802. test "$enable_shared" = yes && enable_static=no
  9803. fi
  9804. ;;
  9805. esac
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9807. $as_echo "$enable_shared" >&6; }
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9809. $as_echo_n "checking whether to build static libraries... " >&6; }
  9810. # Make sure either enable_shared or enable_static is yes.
  9811. test "$enable_shared" = yes || enable_static=yes
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9813. $as_echo "$enable_static" >&6; }
  9814. fi
  9815. ac_ext=c
  9816. ac_cpp='$CPP $CPPFLAGS'
  9817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9820. CC="$lt_save_CC"
  9821. ac_config_commands="$ac_config_commands libtool"
  9822. # Only expand once:
  9823. backtrace_supported=yes
  9824. if test -n "${with_target_subdir}"; then
  9825. # We are compiling a GCC library. We can assume that the unwind
  9826. # library exists.
  9827. BACKTRACE_FILE="backtrace.lo simple.lo"
  9828. else
  9829. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  9830. if test "x$ac_cv_header_unwind_h" = x""yes; then :
  9831. ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
  9832. if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
  9833. BACKTRACE_FILE="backtrace.lo simple.lo"
  9834. else
  9835. BACKTRACE_FILE="nounwind.lo"
  9836. backtrace_supported=no
  9837. fi
  9838. else
  9839. BACKTRACE_FILE="nounwind.lo"
  9840. backtrace_supported=no
  9841. fi
  9842. fi
  9843. EXTRA_FLAGS=
  9844. if test -n "${with_target_subdir}"; then
  9845. EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
  9846. else
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
  9848. $as_echo_n "checking for -funwind-tables option... " >&6; }
  9849. if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. CFLAGS_hold="$CFLAGS"
  9853. CFLAGS="$CFLAGS -funwind-tables"
  9854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9855. /* end confdefs.h. */
  9856. static int f() { return 0; }
  9857. int
  9858. main ()
  9859. {
  9860. return f();
  9861. ;
  9862. return 0;
  9863. }
  9864. _ACEOF
  9865. if ac_fn_c_try_compile "$LINENO"; then :
  9866. libbacktrace_cv_c_unwind_tables=yes
  9867. else
  9868. libbacktrace_cv_c_unwind_tables=no
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9871. CFLAGS="$CFLAGS_hold"
  9872. fi
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
  9874. $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
  9875. if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
  9876. EXTRA_FLAGS=-funwind-tables
  9877. fi
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
  9879. $as_echo_n "checking for -frandom-seed=string option... " >&6; }
  9880. if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
  9881. $as_echo_n "(cached) " >&6
  9882. else
  9883. CFLAGS_hold="$CFLAGS"
  9884. CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
  9885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9886. /* end confdefs.h. */
  9887. int
  9888. main ()
  9889. {
  9890. return 0;
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. if ac_fn_c_try_compile "$LINENO"; then :
  9896. libbacktrace_cv_c_random_seed_string=yes
  9897. else
  9898. libbacktrace_cv_c_random_seed_string=no
  9899. fi
  9900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9901. CFLAGS="$CFLAGS_hold"
  9902. fi
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
  9904. $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
  9905. if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
  9906. EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
  9907. fi
  9908. fi
  9909. WARN_FLAGS=
  9910. save_CFLAGS="$CFLAGS"
  9911. for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
  9912. -Wmissing-prototypes -Wold-style-definition \
  9913. -Wmissing-format-attribute -Wcast-qual; do
  9914. # Do the check with the no- prefix removed since gcc silently
  9915. # accepts any -Wno-* option on purpose
  9916. case $real_option in
  9917. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  9918. *) option=$real_option ;;
  9919. esac
  9920. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  9922. $as_echo_n "checking whether $CC supports $option... " >&6; }
  9923. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  9924. $as_echo_n "(cached) " >&6
  9925. else
  9926. CFLAGS="$option"
  9927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9928. /* end confdefs.h. */
  9929. int
  9930. main ()
  9931. {
  9932. ;
  9933. return 0;
  9934. }
  9935. _ACEOF
  9936. if ac_fn_c_try_compile "$LINENO"; then :
  9937. eval "$as_acx_Woption=yes"
  9938. else
  9939. eval "$as_acx_Woption=no"
  9940. fi
  9941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9942. fi
  9943. eval ac_res=\$$as_acx_Woption
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9945. $as_echo "$ac_res" >&6; }
  9946. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  9947. WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
  9948. fi
  9949. done
  9950. CFLAGS="$save_CFLAGS"
  9951. if test -n "${with_target_subdir}"; then
  9952. WARN_FLAGS="$WARN_FLAGS -Werror"
  9953. fi
  9954. if test -n "${with_target_subdir}"; then
  9955. # Check whether --with-system-libunwind was given.
  9956. if test "${with_system_libunwind+set}" = set; then :
  9957. withval=$with_system_libunwind;
  9958. fi
  9959. # If system-libunwind was not specifically set, pick a default setting.
  9960. if test x$with_system_libunwind = x; then
  9961. case ${target} in
  9962. ia64-*-hpux*) with_system_libunwind=yes ;;
  9963. *) with_system_libunwind=no ;;
  9964. esac
  9965. fi
  9966. # Based on system-libunwind and target, do we have ipinfo?
  9967. if test x$with_system_libunwind = xyes; then
  9968. case ${target} in
  9969. ia64-*-*) have_unwind_getipinfo=no ;;
  9970. *) have_unwind_getipinfo=yes ;;
  9971. esac
  9972. else
  9973. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  9974. case ${target} in
  9975. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  9976. *) have_unwind_getipinfo=yes ;;
  9977. esac
  9978. fi
  9979. if test x$have_unwind_getipinfo = xyes; then
  9980. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  9981. fi
  9982. else
  9983. ac_save_CFFLAGS="$CFLAGS"
  9984. CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
  9986. $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
  9987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9988. /* end confdefs.h. */
  9989. #include "unwind.h"
  9990. struct _Unwind_Context *context;
  9991. int ip_before_insn = 0;
  9992. int
  9993. main ()
  9994. {
  9995. return _Unwind_GetIPInfo (context, &ip_before_insn);
  9996. ;
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. if ac_fn_c_try_link "$LINENO"; then :
  10001. have_unwind_getipinfo=yes
  10002. else
  10003. have_unwind_getipinfo=no
  10004. fi
  10005. rm -f core conftest.err conftest.$ac_objext \
  10006. conftest$ac_exeext conftest.$ac_ext
  10007. CFLAGS="$ac_save_CFLAGS"
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
  10009. $as_echo "$have_unwind_getipinfo" >&6; }
  10010. if test "$have_unwind_getipinfo" = "yes"; then
  10011. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  10012. fi
  10013. fi
  10014. # When building as a target library, shared libraries may want to link
  10015. # this in. We don't want to provide another shared library to
  10016. # complicate dependencies. Instead, we just compile with -fPIC.
  10017. PIC_FLAG=
  10018. if test -n "${with_target_subdir}"; then
  10019. PIC_FLAG=-fPIC
  10020. fi
  10021. # Similarly, use -fPIC with --enable-host-shared:
  10022. # Check whether --enable-host-shared was given.
  10023. if test "${enable_host_shared+set}" = set; then :
  10024. enableval=$enable_host_shared; PIC_FLAG=-fPIC
  10025. fi
  10026. # Test for __sync support.
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
  10028. $as_echo_n "checking __sync extensions... " >&6; }
  10029. if test "${libbacktrace_cv_sys_sync+set}" = set; then :
  10030. $as_echo_n "(cached) " >&6
  10031. else
  10032. if test -n "${with_target_subdir}"; then
  10033. libbacktrace_cv_sys_sync=yes
  10034. else
  10035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10036. /* end confdefs.h. */
  10037. int i;
  10038. int
  10039. main ()
  10040. {
  10041. __sync_bool_compare_and_swap (&i, i, i);
  10042. __sync_lock_test_and_set (&i, 1);
  10043. __sync_lock_release (&i);
  10044. ;
  10045. return 0;
  10046. }
  10047. _ACEOF
  10048. if ac_fn_c_try_link "$LINENO"; then :
  10049. libbacktrace_cv_sys_sync=yes
  10050. else
  10051. libbacktrace_cv_sys_sync=no
  10052. fi
  10053. rm -f core conftest.err conftest.$ac_objext \
  10054. conftest$ac_exeext conftest.$ac_ext
  10055. fi
  10056. fi
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
  10058. $as_echo "$libbacktrace_cv_sys_sync" >&6; }
  10059. BACKTRACE_SUPPORTS_THREADS=0
  10060. if test "$libbacktrace_cv_sys_sync" = "yes"; then
  10061. BACKTRACE_SUPPORTS_THREADS=1
  10062. $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
  10063. fi
  10064. # Test for __atomic support.
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
  10066. $as_echo_n "checking __atomic extensions... " >&6; }
  10067. if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. if test -n "${with_target_subdir}"; then
  10071. libbacktrace_cv_sys_atomic=yes
  10072. else
  10073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10074. /* end confdefs.h. */
  10075. int i;
  10076. int
  10077. main ()
  10078. {
  10079. __atomic_load_n (&i, __ATOMIC_ACQUIRE);
  10080. __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_link "$LINENO"; then :
  10086. libbacktrace_cv_sys_atomic=yes
  10087. else
  10088. libbacktrace_cv_sys_atomic=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext \
  10091. conftest$ac_exeext conftest.$ac_ext
  10092. fi
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
  10095. $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
  10096. if test "$libbacktrace_cv_sys_atomic" = "yes"; then
  10097. $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
  10098. fi
  10099. # The library needs to be able to read the executable itself. Compile
  10100. # a file to determine the executable format. The awk script
  10101. # filetype.awk prints out the file type.
  10102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
  10103. $as_echo_n "checking output filetype... " >&6; }
  10104. if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
  10105. $as_echo_n "(cached) " >&6
  10106. else
  10107. filetype=
  10108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10109. /* end confdefs.h. */
  10110. int i;
  10111. int
  10112. main ()
  10113. {
  10114. int j;
  10115. ;
  10116. return 0;
  10117. }
  10118. _ACEOF
  10119. if ac_fn_c_try_compile "$LINENO"; then :
  10120. filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
  10121. else
  10122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10124. as_fn_error "compiler failed
  10125. See \`config.log' for more details." "$LINENO" 5; }
  10126. fi
  10127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10128. libbacktrace_cv_sys_filetype=$filetype
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
  10131. $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
  10132. # Match the file type to decide what files to compile.
  10133. FORMAT_FILE=
  10134. case "$libbacktrace_cv_sys_filetype" in
  10135. elf*) FORMAT_FILE="elf.lo" ;;
  10136. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
  10137. $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
  10138. FORMAT_FILE="unknown.lo"
  10139. backtrace_supported=no
  10140. ;;
  10141. esac
  10142. # ELF defines.
  10143. elfsize=
  10144. case "$libbacktrace_cv_sys_filetype" in
  10145. elf32) elfsize=32 ;;
  10146. elf64) elfsize=64 ;;
  10147. esac
  10148. cat >>confdefs.h <<_ACEOF
  10149. #define BACKTRACE_ELF_SIZE $elfsize
  10150. _ACEOF
  10151. BACKTRACE_SUPPORTED=0
  10152. if test "$backtrace_supported" = "yes"; then
  10153. BACKTRACE_SUPPORTED=1
  10154. fi
  10155. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  10156. acx_cv_header_stdint=stddef.h
  10157. acx_cv_header_stdint_kind="(already complete)"
  10158. for i in stdint.h $inttype_headers; do
  10159. unset ac_cv_type_uintptr_t
  10160. unset ac_cv_type_uintmax_t
  10161. unset ac_cv_type_int_least32_t
  10162. unset ac_cv_type_int_fast32_t
  10163. unset ac_cv_type_uint64_t
  10164. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  10165. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  10166. #include <$i>
  10167. "
  10168. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  10169. acx_cv_header_stdint=$i
  10170. else
  10171. continue
  10172. fi
  10173. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10174. #include <$i>
  10175. "
  10176. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  10177. else
  10178. acx_cv_header_stdint_kind="(mostly complete)"
  10179. fi
  10180. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  10181. #include <$i>
  10182. "
  10183. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  10184. else
  10185. acx_cv_header_stdint_kind="(mostly complete)"
  10186. fi
  10187. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  10188. #include <$i>
  10189. "
  10190. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  10191. else
  10192. acx_cv_header_stdint_kind="(mostly complete)"
  10193. fi
  10194. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10195. #include <$i>
  10196. "
  10197. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  10198. else
  10199. acx_cv_header_stdint_kind="(lacks uint64_t)"
  10200. fi
  10201. break
  10202. done
  10203. if test "$acx_cv_header_stdint" = stddef.h; then
  10204. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  10205. for i in stdint.h $inttype_headers; do
  10206. unset ac_cv_type_uintptr_t
  10207. unset ac_cv_type_uint32_t
  10208. unset ac_cv_type_uint64_t
  10209. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  10210. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  10211. #include <$i>
  10212. "
  10213. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  10214. acx_cv_header_stdint=$i
  10215. else
  10216. continue
  10217. fi
  10218. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10219. #include <$i>
  10220. "
  10221. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  10222. fi
  10223. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10224. #include <$i>
  10225. "
  10226. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  10227. fi
  10228. break
  10229. done
  10230. fi
  10231. if test "$acx_cv_header_stdint" = stddef.h; then
  10232. acx_cv_header_stdint_kind="(u_intXX_t style)"
  10233. for i in sys/types.h $inttype_headers; do
  10234. unset ac_cv_type_u_int32_t
  10235. unset ac_cv_type_u_int64_t
  10236. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  10237. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  10238. #include <$i>
  10239. "
  10240. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  10241. acx_cv_header_stdint=$i
  10242. else
  10243. continue
  10244. fi
  10245. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  10246. #include <$i>
  10247. "
  10248. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  10249. fi
  10250. break
  10251. done
  10252. fi
  10253. if test "$acx_cv_header_stdint" = stddef.h; then
  10254. acx_cv_header_stdint_kind="(using manual detection)"
  10255. fi
  10256. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  10257. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  10258. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  10259. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  10260. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  10261. # ----------------- Summarize what we found so far
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  10263. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  10264. case `$as_basename -- gstdint.h ||
  10265. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  10266. Xgstdint.h : 'X\(//\)$' \| \
  10267. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  10268. $as_echo X/gstdint.h |
  10269. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10270. s//\1/
  10271. q
  10272. }
  10273. /^X\/\(\/\/\)$/{
  10274. s//\1/
  10275. q
  10276. }
  10277. /^X\/\(\/\).*/{
  10278. s//\1/
  10279. q
  10280. }
  10281. s/.*/./; q'` in
  10282. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10283. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10284. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10285. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10286. *) ;;
  10287. esac
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  10289. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  10290. # ----------------- done included file, check C basic types --------
  10291. # Lacking an uintptr_t? Test size of void *
  10292. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  10293. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  10294. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10295. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10296. # This bug is HP SR number 8606223364.
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10298. $as_echo_n "checking size of void *... " >&6; }
  10299. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  10300. $as_echo_n "(cached) " >&6
  10301. else
  10302. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  10303. else
  10304. if test "$ac_cv_type_void_p" = yes; then
  10305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10307. { as_fn_set_status 77
  10308. as_fn_error "cannot compute sizeof (void *)
  10309. See \`config.log' for more details." "$LINENO" 5; }; }
  10310. else
  10311. ac_cv_sizeof_void_p=0
  10312. fi
  10313. fi
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10316. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10317. cat >>confdefs.h <<_ACEOF
  10318. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10319. _ACEOF
  10320. ;;
  10321. esac
  10322. # Lacking an uint64_t? Test size of long
  10323. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  10324. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  10325. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10326. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10327. # This bug is HP SR number 8606223364.
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10329. $as_echo_n "checking size of long... " >&6; }
  10330. if test "${ac_cv_sizeof_long+set}" = set; then :
  10331. $as_echo_n "(cached) " >&6
  10332. else
  10333. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10334. else
  10335. if test "$ac_cv_type_long" = yes; then
  10336. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10338. { as_fn_set_status 77
  10339. as_fn_error "cannot compute sizeof (long)
  10340. See \`config.log' for more details." "$LINENO" 5; }; }
  10341. else
  10342. ac_cv_sizeof_long=0
  10343. fi
  10344. fi
  10345. fi
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10347. $as_echo "$ac_cv_sizeof_long" >&6; }
  10348. cat >>confdefs.h <<_ACEOF
  10349. #define SIZEOF_LONG $ac_cv_sizeof_long
  10350. _ACEOF
  10351. ;;
  10352. esac
  10353. if test $acx_cv_header_stdint = stddef.h; then
  10354. # Lacking a good header? Test size of everything and deduce all types.
  10355. # The cast to long int works around a bug in the HP C Compiler
  10356. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10357. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10358. # This bug is HP SR number 8606223364.
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10360. $as_echo_n "checking size of int... " >&6; }
  10361. if test "${ac_cv_sizeof_int+set}" = set; then :
  10362. $as_echo_n "(cached) " >&6
  10363. else
  10364. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10365. else
  10366. if test "$ac_cv_type_int" = yes; then
  10367. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10369. { as_fn_set_status 77
  10370. as_fn_error "cannot compute sizeof (int)
  10371. See \`config.log' for more details." "$LINENO" 5; }; }
  10372. else
  10373. ac_cv_sizeof_int=0
  10374. fi
  10375. fi
  10376. fi
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10378. $as_echo "$ac_cv_sizeof_int" >&6; }
  10379. cat >>confdefs.h <<_ACEOF
  10380. #define SIZEOF_INT $ac_cv_sizeof_int
  10381. _ACEOF
  10382. # The cast to long int works around a bug in the HP C Compiler
  10383. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10384. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10385. # This bug is HP SR number 8606223364.
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10387. $as_echo_n "checking size of short... " >&6; }
  10388. if test "${ac_cv_sizeof_short+set}" = set; then :
  10389. $as_echo_n "(cached) " >&6
  10390. else
  10391. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10392. else
  10393. if test "$ac_cv_type_short" = yes; then
  10394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10396. { as_fn_set_status 77
  10397. as_fn_error "cannot compute sizeof (short)
  10398. See \`config.log' for more details." "$LINENO" 5; }; }
  10399. else
  10400. ac_cv_sizeof_short=0
  10401. fi
  10402. fi
  10403. fi
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10405. $as_echo "$ac_cv_sizeof_short" >&6; }
  10406. cat >>confdefs.h <<_ACEOF
  10407. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10408. _ACEOF
  10409. # The cast to long int works around a bug in the HP C Compiler
  10410. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10411. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10412. # This bug is HP SR number 8606223364.
  10413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  10414. $as_echo_n "checking size of char... " >&6; }
  10415. if test "${ac_cv_sizeof_char+set}" = set; then :
  10416. $as_echo_n "(cached) " >&6
  10417. else
  10418. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  10419. else
  10420. if test "$ac_cv_type_char" = yes; then
  10421. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10422. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10423. { as_fn_set_status 77
  10424. as_fn_error "cannot compute sizeof (char)
  10425. See \`config.log' for more details." "$LINENO" 5; }; }
  10426. else
  10427. ac_cv_sizeof_char=0
  10428. fi
  10429. fi
  10430. fi
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  10432. $as_echo "$ac_cv_sizeof_char" >&6; }
  10433. cat >>confdefs.h <<_ACEOF
  10434. #define SIZEOF_CHAR $ac_cv_sizeof_char
  10435. _ACEOF
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  10437. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  10438. case "$ac_cv_sizeof_char" in
  10439. 1) acx_cv_type_int8_t=char ;;
  10440. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  10441. esac
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  10443. $as_echo "$acx_cv_type_int8_t" >&6; }
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  10445. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  10446. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  10447. 2:*) acx_cv_type_int16_t=int ;;
  10448. *:2) acx_cv_type_int16_t=short ;;
  10449. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  10450. esac
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  10452. $as_echo "$acx_cv_type_int16_t" >&6; }
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  10454. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  10455. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  10456. 4:*) acx_cv_type_int32_t=int ;;
  10457. *:4) acx_cv_type_int32_t=long ;;
  10458. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  10459. esac
  10460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  10461. $as_echo "$acx_cv_type_int32_t" >&6; }
  10462. fi
  10463. # These tests are here to make the output prettier
  10464. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  10465. case "$ac_cv_sizeof_long" in
  10466. 8) acx_cv_type_int64_t=long ;;
  10467. esac
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  10469. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  10471. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  10472. fi
  10473. # Now we can use the above types
  10474. if test "$ac_cv_type_uintptr_t" != yes; then
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  10476. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  10477. case $ac_cv_sizeof_void_p in
  10478. 2) acx_cv_type_intptr_t=int16_t ;;
  10479. 4) acx_cv_type_intptr_t=int32_t ;;
  10480. 8) acx_cv_type_intptr_t=int64_t ;;
  10481. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  10482. esac
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  10484. $as_echo "$acx_cv_type_intptr_t" >&6; }
  10485. fi
  10486. # ----------------- done all checks, emit header -------------
  10487. ac_config_commands="$ac_config_commands gstdint.h"
  10488. for ac_header in sys/mman.h
  10489. do :
  10490. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  10491. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  10492. cat >>confdefs.h <<_ACEOF
  10493. #define HAVE_SYS_MMAN_H 1
  10494. _ACEOF
  10495. fi
  10496. done
  10497. if test "$ac_cv_header_sys_mman_h" = "no"; then
  10498. have_mmap=no
  10499. else
  10500. if test -n "${with_target_subdir}"; then
  10501. # When built as a GCC target library, we can't do a link test. We
  10502. # simply assume that if we have mman.h, we have mmap.
  10503. have_mmap=yes
  10504. else
  10505. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  10506. if test "x$ac_cv_func_mmap" = x""yes; then :
  10507. have_mmap=yes
  10508. else
  10509. have_mmap=no
  10510. fi
  10511. fi
  10512. fi
  10513. if test "$have_mmap" = "no"; then
  10514. VIEW_FILE=read.lo
  10515. ALLOC_FILE=alloc.lo
  10516. else
  10517. VIEW_FILE=mmapio.lo
  10518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10519. /* end confdefs.h. */
  10520. #include <sys/mman.h>
  10521. #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
  10522. #error no MAP_ANONYMOUS
  10523. #endif
  10524. _ACEOF
  10525. if ac_fn_c_try_cpp "$LINENO"; then :
  10526. ALLOC_FILE=mmap.lo
  10527. else
  10528. ALLOC_FILE=alloc.lo
  10529. fi
  10530. rm -f conftest.err conftest.$ac_ext
  10531. fi
  10532. BACKTRACE_USES_MALLOC=0
  10533. if test "$ALLOC_FILE" = "alloc.lo"; then
  10534. BACKTRACE_USES_MALLOC=1
  10535. fi
  10536. # Check for dl_iterate_phdr.
  10537. for ac_header in link.h
  10538. do :
  10539. ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
  10540. if test "x$ac_cv_header_link_h" = x""yes; then :
  10541. cat >>confdefs.h <<_ACEOF
  10542. #define HAVE_LINK_H 1
  10543. _ACEOF
  10544. fi
  10545. done
  10546. if test "$ac_cv_header_link_h" = "no"; then
  10547. have_dl_iterate_phdr=no
  10548. else
  10549. if test -n "${with_target_subdir}"; then
  10550. # When built as a GCC target library, we can't do a link test.
  10551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10552. /* end confdefs.h. */
  10553. #include <link.h>
  10554. _ACEOF
  10555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10556. $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
  10557. have_dl_iterate_phdr=yes
  10558. else
  10559. have_dl_iterate_phdr=no
  10560. fi
  10561. rm -f conftest*
  10562. case "${host}" in
  10563. *-*-solaris2.10*)
  10564. # Avoid dl_iterate_phdr on Solaris 10, where it is in the
  10565. # header file but is only in -ldl.
  10566. have_dl_iterate_phdr=no ;;
  10567. esac
  10568. else
  10569. ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
  10570. if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
  10571. have_dl_iterate_phdr=yes
  10572. else
  10573. have_dl_iterate_phdr=no
  10574. fi
  10575. fi
  10576. fi
  10577. if test "$have_dl_iterate_phdr" = "yes"; then
  10578. $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
  10579. fi
  10580. # Check for the fcntl function.
  10581. if test -n "${with_target_subdir}"; then
  10582. case "${host}" in
  10583. *-*-mingw*) have_fcntl=no ;;
  10584. *) have_fcntl=yes ;;
  10585. esac
  10586. else
  10587. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  10588. if test "x$ac_cv_func_fcntl" = x""yes; then :
  10589. have_fcntl=yes
  10590. else
  10591. have_fcntl=no
  10592. fi
  10593. fi
  10594. if test "$have_fcntl" = "yes"; then
  10595. $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
  10596. fi
  10597. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  10598. if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
  10599. ac_have_decl=1
  10600. else
  10601. ac_have_decl=0
  10602. fi
  10603. cat >>confdefs.h <<_ACEOF
  10604. #define HAVE_DECL_STRNLEN $ac_have_decl
  10605. _ACEOF
  10606. # Check for getexecname function.
  10607. if test -n "${with_target_subdir}"; then
  10608. case "${host}" in
  10609. *-*-solaris2*) have_getexecname=yes ;;
  10610. *) have_getexecname=no ;;
  10611. esac
  10612. else
  10613. ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
  10614. if test "x$ac_cv_func_getexecname" = x""yes; then :
  10615. have_getexecname=yes
  10616. else
  10617. have_getexecname=no
  10618. fi
  10619. fi
  10620. if test "$have_getexecname" = "yes"; then
  10621. $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
  10622. fi
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
  10624. $as_echo_n "checking whether tests can run... " >&6; }
  10625. if test "${libbacktrace_cv_sys_native+set}" = set; then :
  10626. $as_echo_n "(cached) " >&6
  10627. else
  10628. if test "$cross_compiling" = yes; then :
  10629. libbacktrace_cv_sys_native=no
  10630. else
  10631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10632. /* end confdefs.h. */
  10633. int
  10634. main ()
  10635. {
  10636. return 0;
  10637. ;
  10638. return 0;
  10639. }
  10640. _ACEOF
  10641. if ac_fn_c_try_run "$LINENO"; then :
  10642. libbacktrace_cv_sys_native=yes
  10643. else
  10644. libbacktrace_cv_sys_native=no
  10645. fi
  10646. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10647. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10648. fi
  10649. fi
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
  10651. $as_echo "$libbacktrace_cv_sys_native" >&6; }
  10652. if test "$libbacktrace_cv_sys_native" = "yes"; then
  10653. NATIVE_TRUE=
  10654. NATIVE_FALSE='#'
  10655. else
  10656. NATIVE_TRUE='#'
  10657. NATIVE_FALSE=
  10658. fi
  10659. if test "${multilib}" = "yes"; then
  10660. multilib_arg="--enable-multilib"
  10661. else
  10662. multilib_arg=
  10663. fi
  10664. ac_config_files="$ac_config_files Makefile backtrace-supported.h"
  10665. # We need multilib support, but only if configuring for the target.
  10666. ac_config_commands="$ac_config_commands default"
  10667. cat >confcache <<\_ACEOF
  10668. # This file is a shell script that caches the results of configure
  10669. # tests run on this system so they can be shared between configure
  10670. # scripts and configure runs, see configure's option --config-cache.
  10671. # It is not useful on other systems. If it contains results you don't
  10672. # want to keep, you may remove or edit it.
  10673. #
  10674. # config.status only pays attention to the cache file if you give it
  10675. # the --recheck option to rerun configure.
  10676. #
  10677. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10678. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10679. # following values.
  10680. _ACEOF
  10681. # The following way of writing the cache mishandles newlines in values,
  10682. # but we know of no workaround that is simple, portable, and efficient.
  10683. # So, we kill variables containing newlines.
  10684. # Ultrix sh set writes to stderr and can't be redirected directly,
  10685. # and sets the high bit in the cache file unless we assign to the vars.
  10686. (
  10687. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10688. eval ac_val=\$$ac_var
  10689. case $ac_val in #(
  10690. *${as_nl}*)
  10691. case $ac_var in #(
  10692. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10693. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10694. esac
  10695. case $ac_var in #(
  10696. _ | IFS | as_nl) ;; #(
  10697. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10698. *) { eval $ac_var=; unset $ac_var;} ;;
  10699. esac ;;
  10700. esac
  10701. done
  10702. (set) 2>&1 |
  10703. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10704. *${as_nl}ac_space=\ *)
  10705. # `set' does not quote correctly, so add quotes: double-quote
  10706. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10707. sed -n \
  10708. "s/'/'\\\\''/g;
  10709. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10710. ;; #(
  10711. *)
  10712. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10713. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10714. ;;
  10715. esac |
  10716. sort
  10717. ) |
  10718. sed '
  10719. /^ac_cv_env_/b end
  10720. t clear
  10721. :clear
  10722. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10723. t end
  10724. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10725. :end' >>confcache
  10726. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10727. if test -w "$cache_file"; then
  10728. test "x$cache_file" != "x/dev/null" &&
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10730. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10731. cat confcache >$cache_file
  10732. else
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10734. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10735. fi
  10736. fi
  10737. rm -f confcache
  10738. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10739. # Let make expand exec_prefix.
  10740. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10741. DEFS=-DHAVE_CONFIG_H
  10742. ac_libobjs=
  10743. ac_ltlibobjs=
  10744. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10745. # 1. Remove the extension, and $U if already installed.
  10746. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10747. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10748. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10749. # will be set to the directory where LIBOBJS objects are built.
  10750. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10751. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10752. done
  10753. LIBOBJS=$ac_libobjs
  10754. LTLIBOBJS=$ac_ltlibobjs
  10755. if test -n "$EXEEXT"; then
  10756. am__EXEEXT_TRUE=
  10757. am__EXEEXT_FALSE='#'
  10758. else
  10759. am__EXEEXT_TRUE='#'
  10760. am__EXEEXT_FALSE=
  10761. fi
  10762. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10763. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10765. fi
  10766. if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
  10767. as_fn_error "conditional \"NATIVE\" was never defined.
  10768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10769. fi
  10770. : ${CONFIG_STATUS=./config.status}
  10771. ac_write_fail=0
  10772. ac_clean_files_save=$ac_clean_files
  10773. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10775. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10776. as_write_fail=0
  10777. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10778. #! $SHELL
  10779. # Generated by $as_me.
  10780. # Run this file to recreate the current configuration.
  10781. # Compiler output produced by configure, useful for debugging
  10782. # configure, is in config.log if it exists.
  10783. debug=false
  10784. ac_cs_recheck=false
  10785. ac_cs_silent=false
  10786. SHELL=\${CONFIG_SHELL-$SHELL}
  10787. export SHELL
  10788. _ASEOF
  10789. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10790. ## -------------------- ##
  10791. ## M4sh Initialization. ##
  10792. ## -------------------- ##
  10793. # Be more Bourne compatible
  10794. DUALCASE=1; export DUALCASE # for MKS sh
  10795. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10796. emulate sh
  10797. NULLCMD=:
  10798. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10799. # is contrary to our usage. Disable this feature.
  10800. alias -g '${1+"$@"}'='"$@"'
  10801. setopt NO_GLOB_SUBST
  10802. else
  10803. case `(set -o) 2>/dev/null` in #(
  10804. *posix*) :
  10805. set -o posix ;; #(
  10806. *) :
  10807. ;;
  10808. esac
  10809. fi
  10810. as_nl='
  10811. '
  10812. export as_nl
  10813. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10814. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10815. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10816. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10817. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10818. # but without wasting forks for bash or zsh.
  10819. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10820. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10821. as_echo='print -r --'
  10822. as_echo_n='print -rn --'
  10823. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10824. as_echo='printf %s\n'
  10825. as_echo_n='printf %s'
  10826. else
  10827. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10828. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10829. as_echo_n='/usr/ucb/echo -n'
  10830. else
  10831. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10832. as_echo_n_body='eval
  10833. arg=$1;
  10834. case $arg in #(
  10835. *"$as_nl"*)
  10836. expr "X$arg" : "X\\(.*\\)$as_nl";
  10837. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10838. esac;
  10839. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10840. '
  10841. export as_echo_n_body
  10842. as_echo_n='sh -c $as_echo_n_body as_echo'
  10843. fi
  10844. export as_echo_body
  10845. as_echo='sh -c $as_echo_body as_echo'
  10846. fi
  10847. # The user is always right.
  10848. if test "${PATH_SEPARATOR+set}" != set; then
  10849. PATH_SEPARATOR=:
  10850. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10851. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10852. PATH_SEPARATOR=';'
  10853. }
  10854. fi
  10855. # IFS
  10856. # We need space, tab and new line, in precisely that order. Quoting is
  10857. # there to prevent editors from complaining about space-tab.
  10858. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10859. # splitting by setting IFS to empty value.)
  10860. IFS=" "" $as_nl"
  10861. # Find who we are. Look in the path if we contain no directory separator.
  10862. case $0 in #((
  10863. *[\\/]* ) as_myself=$0 ;;
  10864. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10865. for as_dir in $PATH
  10866. do
  10867. IFS=$as_save_IFS
  10868. test -z "$as_dir" && as_dir=.
  10869. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10870. done
  10871. IFS=$as_save_IFS
  10872. ;;
  10873. esac
  10874. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10875. # in which case we are not to be found in the path.
  10876. if test "x$as_myself" = x; then
  10877. as_myself=$0
  10878. fi
  10879. if test ! -f "$as_myself"; then
  10880. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10881. exit 1
  10882. fi
  10883. # Unset variables that we do not need and which cause bugs (e.g. in
  10884. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10885. # suppresses any "Segmentation fault" message there. '((' could
  10886. # trigger a bug in pdksh 5.2.14.
  10887. for as_var in BASH_ENV ENV MAIL MAILPATH
  10888. do eval test x\${$as_var+set} = xset \
  10889. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10890. done
  10891. PS1='$ '
  10892. PS2='> '
  10893. PS4='+ '
  10894. # NLS nuisances.
  10895. LC_ALL=C
  10896. export LC_ALL
  10897. LANGUAGE=C
  10898. export LANGUAGE
  10899. # CDPATH.
  10900. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10901. # as_fn_error ERROR [LINENO LOG_FD]
  10902. # ---------------------------------
  10903. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10904. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10905. # script with status $?, using 1 if that was 0.
  10906. as_fn_error ()
  10907. {
  10908. as_status=$?; test $as_status -eq 0 && as_status=1
  10909. if test "$3"; then
  10910. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10911. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10912. fi
  10913. $as_echo "$as_me: error: $1" >&2
  10914. as_fn_exit $as_status
  10915. } # as_fn_error
  10916. # as_fn_set_status STATUS
  10917. # -----------------------
  10918. # Set $? to STATUS, without forking.
  10919. as_fn_set_status ()
  10920. {
  10921. return $1
  10922. } # as_fn_set_status
  10923. # as_fn_exit STATUS
  10924. # -----------------
  10925. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10926. as_fn_exit ()
  10927. {
  10928. set +e
  10929. as_fn_set_status $1
  10930. exit $1
  10931. } # as_fn_exit
  10932. # as_fn_unset VAR
  10933. # ---------------
  10934. # Portably unset VAR.
  10935. as_fn_unset ()
  10936. {
  10937. { eval $1=; unset $1;}
  10938. }
  10939. as_unset=as_fn_unset
  10940. # as_fn_append VAR VALUE
  10941. # ----------------------
  10942. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10943. # advantage of any shell optimizations that allow amortized linear growth over
  10944. # repeated appends, instead of the typical quadratic growth present in naive
  10945. # implementations.
  10946. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10947. eval 'as_fn_append ()
  10948. {
  10949. eval $1+=\$2
  10950. }'
  10951. else
  10952. as_fn_append ()
  10953. {
  10954. eval $1=\$$1\$2
  10955. }
  10956. fi # as_fn_append
  10957. # as_fn_arith ARG...
  10958. # ------------------
  10959. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10960. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10961. # must be portable across $(()) and expr.
  10962. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10963. eval 'as_fn_arith ()
  10964. {
  10965. as_val=$(( $* ))
  10966. }'
  10967. else
  10968. as_fn_arith ()
  10969. {
  10970. as_val=`expr "$@" || test $? -eq 1`
  10971. }
  10972. fi # as_fn_arith
  10973. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10974. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10975. as_expr=expr
  10976. else
  10977. as_expr=false
  10978. fi
  10979. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10980. as_basename=basename
  10981. else
  10982. as_basename=false
  10983. fi
  10984. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10985. as_dirname=dirname
  10986. else
  10987. as_dirname=false
  10988. fi
  10989. as_me=`$as_basename -- "$0" ||
  10990. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10991. X"$0" : 'X\(//\)$' \| \
  10992. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10993. $as_echo X/"$0" |
  10994. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10995. s//\1/
  10996. q
  10997. }
  10998. /^X\/\(\/\/\)$/{
  10999. s//\1/
  11000. q
  11001. }
  11002. /^X\/\(\/\).*/{
  11003. s//\1/
  11004. q
  11005. }
  11006. s/.*/./; q'`
  11007. # Avoid depending upon Character Ranges.
  11008. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11009. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11010. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11011. as_cr_digits='0123456789'
  11012. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11013. ECHO_C= ECHO_N= ECHO_T=
  11014. case `echo -n x` in #(((((
  11015. -n*)
  11016. case `echo 'xy\c'` in
  11017. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11018. xy) ECHO_C='\c';;
  11019. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11020. ECHO_T=' ';;
  11021. esac;;
  11022. *)
  11023. ECHO_N='-n';;
  11024. esac
  11025. rm -f conf$$ conf$$.exe conf$$.file
  11026. if test -d conf$$.dir; then
  11027. rm -f conf$$.dir/conf$$.file
  11028. else
  11029. rm -f conf$$.dir
  11030. mkdir conf$$.dir 2>/dev/null
  11031. fi
  11032. if (echo >conf$$.file) 2>/dev/null; then
  11033. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11034. as_ln_s='ln -s'
  11035. # ... but there are two gotchas:
  11036. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11037. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11038. # In both cases, we have to default to `cp -p'.
  11039. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11040. as_ln_s='cp -p'
  11041. elif ln conf$$.file conf$$ 2>/dev/null; then
  11042. as_ln_s=ln
  11043. else
  11044. as_ln_s='cp -p'
  11045. fi
  11046. else
  11047. as_ln_s='cp -p'
  11048. fi
  11049. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11050. rmdir conf$$.dir 2>/dev/null
  11051. # as_fn_mkdir_p
  11052. # -------------
  11053. # Create "$as_dir" as a directory, including parents if necessary.
  11054. as_fn_mkdir_p ()
  11055. {
  11056. case $as_dir in #(
  11057. -*) as_dir=./$as_dir;;
  11058. esac
  11059. test -d "$as_dir" || eval $as_mkdir_p || {
  11060. as_dirs=
  11061. while :; do
  11062. case $as_dir in #(
  11063. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11064. *) as_qdir=$as_dir;;
  11065. esac
  11066. as_dirs="'$as_qdir' $as_dirs"
  11067. as_dir=`$as_dirname -- "$as_dir" ||
  11068. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11069. X"$as_dir" : 'X\(//\)[^/]' \| \
  11070. X"$as_dir" : 'X\(//\)$' \| \
  11071. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11072. $as_echo X"$as_dir" |
  11073. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11074. s//\1/
  11075. q
  11076. }
  11077. /^X\(\/\/\)[^/].*/{
  11078. s//\1/
  11079. q
  11080. }
  11081. /^X\(\/\/\)$/{
  11082. s//\1/
  11083. q
  11084. }
  11085. /^X\(\/\).*/{
  11086. s//\1/
  11087. q
  11088. }
  11089. s/.*/./; q'`
  11090. test -d "$as_dir" && break
  11091. done
  11092. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11093. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11094. } # as_fn_mkdir_p
  11095. if mkdir -p . 2>/dev/null; then
  11096. as_mkdir_p='mkdir -p "$as_dir"'
  11097. else
  11098. test -d ./-p && rmdir ./-p
  11099. as_mkdir_p=false
  11100. fi
  11101. if test -x / >/dev/null 2>&1; then
  11102. as_test_x='test -x'
  11103. else
  11104. if ls -dL / >/dev/null 2>&1; then
  11105. as_ls_L_option=L
  11106. else
  11107. as_ls_L_option=
  11108. fi
  11109. as_test_x='
  11110. eval sh -c '\''
  11111. if test -d "$1"; then
  11112. test -d "$1/.";
  11113. else
  11114. case $1 in #(
  11115. -*)set "./$1";;
  11116. esac;
  11117. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11118. ???[sx]*):;;*)false;;esac;fi
  11119. '\'' sh
  11120. '
  11121. fi
  11122. as_executable_p=$as_test_x
  11123. # Sed expression to map a string onto a valid CPP name.
  11124. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11125. # Sed expression to map a string onto a valid variable name.
  11126. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11127. exec 6>&1
  11128. ## ----------------------------------- ##
  11129. ## Main body of $CONFIG_STATUS script. ##
  11130. ## ----------------------------------- ##
  11131. _ASEOF
  11132. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11134. # Save the log message, to keep $0 and so on meaningful, and to
  11135. # report actual input values of CONFIG_FILES etc. instead of their
  11136. # values after options handling.
  11137. ac_log="
  11138. This file was extended by package-unused $as_me version-unused, which was
  11139. generated by GNU Autoconf 2.64. Invocation command line was
  11140. CONFIG_FILES = $CONFIG_FILES
  11141. CONFIG_HEADERS = $CONFIG_HEADERS
  11142. CONFIG_LINKS = $CONFIG_LINKS
  11143. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11144. $ $0 $@
  11145. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11146. "
  11147. _ACEOF
  11148. case $ac_config_files in *"
  11149. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11150. esac
  11151. case $ac_config_headers in *"
  11152. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11153. esac
  11154. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11155. # Files that config.status was made for.
  11156. config_files="$ac_config_files"
  11157. config_headers="$ac_config_headers"
  11158. config_commands="$ac_config_commands"
  11159. _ACEOF
  11160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11161. ac_cs_usage="\
  11162. \`$as_me' instantiates files and other configuration actions
  11163. from templates according to the current configuration. Unless the files
  11164. and actions are specified as TAGs, all are instantiated by default.
  11165. Usage: $0 [OPTION]... [TAG]...
  11166. -h, --help print this help, then exit
  11167. -V, --version print version number and configuration settings, then exit
  11168. -q, --quiet, --silent
  11169. do not print progress messages
  11170. -d, --debug don't remove temporary files
  11171. --recheck update $as_me by reconfiguring in the same conditions
  11172. --file=FILE[:TEMPLATE]
  11173. instantiate the configuration file FILE
  11174. --header=FILE[:TEMPLATE]
  11175. instantiate the configuration header FILE
  11176. Configuration files:
  11177. $config_files
  11178. Configuration headers:
  11179. $config_headers
  11180. Configuration commands:
  11181. $config_commands
  11182. Report bugs to the package provider."
  11183. _ACEOF
  11184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11185. ac_cs_version="\\
  11186. package-unused config.status version-unused
  11187. configured by $0, generated by GNU Autoconf 2.64,
  11188. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11189. Copyright (C) 2009 Free Software Foundation, Inc.
  11190. This config.status script is free software; the Free Software Foundation
  11191. gives unlimited permission to copy, distribute and modify it."
  11192. ac_pwd='$ac_pwd'
  11193. srcdir='$srcdir'
  11194. INSTALL='$INSTALL'
  11195. MKDIR_P='$MKDIR_P'
  11196. AWK='$AWK'
  11197. test -n "\$AWK" || AWK=awk
  11198. _ACEOF
  11199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11200. # The default lists apply if the user does not specify any file.
  11201. ac_need_defaults=:
  11202. while test $# != 0
  11203. do
  11204. case $1 in
  11205. --*=*)
  11206. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11207. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11208. ac_shift=:
  11209. ;;
  11210. *)
  11211. ac_option=$1
  11212. ac_optarg=$2
  11213. ac_shift=shift
  11214. ;;
  11215. esac
  11216. case $ac_option in
  11217. # Handling of the options.
  11218. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11219. ac_cs_recheck=: ;;
  11220. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11221. $as_echo "$ac_cs_version"; exit ;;
  11222. --debug | --debu | --deb | --de | --d | -d )
  11223. debug=: ;;
  11224. --file | --fil | --fi | --f )
  11225. $ac_shift
  11226. case $ac_optarg in
  11227. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11228. esac
  11229. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11230. ac_need_defaults=false;;
  11231. --header | --heade | --head | --hea )
  11232. $ac_shift
  11233. case $ac_optarg in
  11234. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11235. esac
  11236. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11237. ac_need_defaults=false;;
  11238. --he | --h)
  11239. # Conflict between --help and --header
  11240. as_fn_error "ambiguous option: \`$1'
  11241. Try \`$0 --help' for more information.";;
  11242. --help | --hel | -h )
  11243. $as_echo "$ac_cs_usage"; exit ;;
  11244. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11245. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11246. ac_cs_silent=: ;;
  11247. # This is an error.
  11248. -*) as_fn_error "unrecognized option: \`$1'
  11249. Try \`$0 --help' for more information." ;;
  11250. *) as_fn_append ac_config_targets " $1"
  11251. ac_need_defaults=false ;;
  11252. esac
  11253. shift
  11254. done
  11255. ac_configure_extra_args=
  11256. if $ac_cs_silent; then
  11257. exec 6>/dev/null
  11258. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11259. fi
  11260. _ACEOF
  11261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11262. if \$ac_cs_recheck; then
  11263. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11264. shift
  11265. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11266. CONFIG_SHELL='$SHELL'
  11267. export CONFIG_SHELL
  11268. exec "\$@"
  11269. fi
  11270. _ACEOF
  11271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11272. exec 5>>config.log
  11273. {
  11274. echo
  11275. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11276. ## Running $as_me. ##
  11277. _ASBOX
  11278. $as_echo "$ac_log"
  11279. } >&5
  11280. _ACEOF
  11281. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11282. #
  11283. # INIT-COMMANDS
  11284. #
  11285. srcdir="$srcdir"
  11286. host="$host"
  11287. target="$target"
  11288. with_multisubdir="$with_multisubdir"
  11289. with_multisrctop="$with_multisrctop"
  11290. with_target_subdir="$with_target_subdir"
  11291. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  11292. multi_basedir="$multi_basedir"
  11293. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  11294. CC="$CC"
  11295. CXX="$CXX"
  11296. GFORTRAN="$GFORTRAN"
  11297. GCJ="$GCJ"
  11298. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11299. # if CDPATH is set.
  11300. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11301. sed_quote_subst='$sed_quote_subst'
  11302. double_quote_subst='$double_quote_subst'
  11303. delay_variable_subst='$delay_variable_subst'
  11304. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11305. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11306. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11307. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11308. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11309. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11310. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11311. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11312. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11313. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11314. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11315. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11316. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11317. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11318. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11319. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11320. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11321. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11322. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11323. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11324. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11325. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11326. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11327. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11328. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11329. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11330. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11331. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11332. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11333. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11334. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11335. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11336. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11337. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11338. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11339. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11340. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11341. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11342. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11343. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11344. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11345. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11346. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11347. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11348. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11349. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11350. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11351. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11352. 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"`'
  11353. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11354. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11355. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11356. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11357. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11358. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11359. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11360. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11361. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11362. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11363. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11364. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11365. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11366. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11367. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11368. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11369. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11370. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11371. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11372. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11373. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11374. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11375. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11376. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11377. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11378. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11379. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11380. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11381. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11382. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11383. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11384. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11385. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11386. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11387. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11388. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11389. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11390. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11391. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11392. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11393. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11394. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11395. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11396. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11397. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11398. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11399. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11400. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11401. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11402. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11403. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11404. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11405. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11406. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11407. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11408. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11409. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11410. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11411. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11412. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11413. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11414. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11415. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11416. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11417. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11418. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11419. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11420. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11421. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11422. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11423. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11424. LTCC='$LTCC'
  11425. LTCFLAGS='$LTCFLAGS'
  11426. compiler='$compiler_DEFAULT'
  11427. # A function that is used when there is no print builtin or printf.
  11428. func_fallback_echo ()
  11429. {
  11430. eval 'cat <<_LTECHO_EOF
  11431. \$1
  11432. _LTECHO_EOF'
  11433. }
  11434. # Quote evaled strings.
  11435. for var in SHELL \
  11436. ECHO \
  11437. SED \
  11438. GREP \
  11439. EGREP \
  11440. FGREP \
  11441. LD \
  11442. NM \
  11443. LN_S \
  11444. lt_SP2NL \
  11445. lt_NL2SP \
  11446. reload_flag \
  11447. OBJDUMP \
  11448. deplibs_check_method \
  11449. file_magic_cmd \
  11450. AR \
  11451. AR_FLAGS \
  11452. STRIP \
  11453. RANLIB \
  11454. CC \
  11455. CFLAGS \
  11456. compiler \
  11457. lt_cv_sys_global_symbol_pipe \
  11458. lt_cv_sys_global_symbol_to_cdecl \
  11459. lt_cv_sys_global_symbol_to_c_name_address \
  11460. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11461. lt_prog_compiler_no_builtin_flag \
  11462. lt_prog_compiler_wl \
  11463. lt_prog_compiler_pic \
  11464. lt_prog_compiler_static \
  11465. lt_cv_prog_compiler_c_o \
  11466. need_locks \
  11467. DSYMUTIL \
  11468. NMEDIT \
  11469. LIPO \
  11470. OTOOL \
  11471. OTOOL64 \
  11472. shrext_cmds \
  11473. export_dynamic_flag_spec \
  11474. whole_archive_flag_spec \
  11475. compiler_needs_object \
  11476. with_gnu_ld \
  11477. allow_undefined_flag \
  11478. no_undefined_flag \
  11479. hardcode_libdir_flag_spec \
  11480. hardcode_libdir_flag_spec_ld \
  11481. hardcode_libdir_separator \
  11482. fix_srcfile_path \
  11483. exclude_expsyms \
  11484. include_expsyms \
  11485. file_list_spec \
  11486. variables_saved_for_relink \
  11487. libname_spec \
  11488. library_names_spec \
  11489. soname_spec \
  11490. install_override_mode \
  11491. finish_eval \
  11492. old_striplib \
  11493. striplib; do
  11494. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11495. *[\\\\\\\`\\"\\\$]*)
  11496. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11497. ;;
  11498. *)
  11499. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11500. ;;
  11501. esac
  11502. done
  11503. # Double-quote double-evaled strings.
  11504. for var in reload_cmds \
  11505. old_postinstall_cmds \
  11506. old_postuninstall_cmds \
  11507. old_archive_cmds \
  11508. extract_expsyms_cmds \
  11509. old_archive_from_new_cmds \
  11510. old_archive_from_expsyms_cmds \
  11511. archive_cmds \
  11512. archive_expsym_cmds \
  11513. module_cmds \
  11514. module_expsym_cmds \
  11515. export_symbols_cmds \
  11516. prelink_cmds \
  11517. postinstall_cmds \
  11518. postuninstall_cmds \
  11519. finish_cmds \
  11520. sys_lib_search_path_spec \
  11521. sys_lib_dlsearch_path_spec; do
  11522. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11523. *[\\\\\\\`\\"\\\$]*)
  11524. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11525. ;;
  11526. *)
  11527. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11528. ;;
  11529. esac
  11530. done
  11531. ac_aux_dir='$ac_aux_dir'
  11532. xsi_shell='$xsi_shell'
  11533. lt_shell_append='$lt_shell_append'
  11534. # See if we are running on zsh, and set the options which allow our
  11535. # commands through without removal of \ escapes INIT.
  11536. if test -n "\${ZSH_VERSION+set}" ; then
  11537. setopt NO_GLOB_SUBST
  11538. fi
  11539. PACKAGE='$PACKAGE'
  11540. VERSION='$VERSION'
  11541. TIMESTAMP='$TIMESTAMP'
  11542. RM='$RM'
  11543. ofile='$ofile'
  11544. GCC="$GCC"
  11545. CC="$CC"
  11546. acx_cv_header_stdint="$acx_cv_header_stdint"
  11547. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  11548. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  11549. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  11550. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  11551. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  11552. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  11553. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  11554. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  11555. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  11556. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  11557. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  11558. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  11559. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  11560. # Variables needed in config.status (file generation) which aren't already
  11561. # passed by autoconf.
  11562. SUBDIRS="$SUBDIRS"
  11563. _ACEOF
  11564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11565. # Handling of arguments.
  11566. for ac_config_target in $ac_config_targets
  11567. do
  11568. case $ac_config_target in
  11569. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11570. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11571. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11572. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  11573. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11574. "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
  11575. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  11576. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11577. esac
  11578. done
  11579. # If the user did not use the arguments to specify the items to instantiate,
  11580. # then the envvar interface is used. Set only those that are not.
  11581. # We use the long form for the default assignment because of an extremely
  11582. # bizarre bug on SunOS 4.1.3.
  11583. if $ac_need_defaults; then
  11584. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11585. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11586. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11587. fi
  11588. # Have a temporary directory for convenience. Make it in the build tree
  11589. # simply because there is no reason against having it here, and in addition,
  11590. # creating and moving files from /tmp can sometimes cause problems.
  11591. # Hook for its removal unless debugging.
  11592. # Note that there is a small window in which the directory will not be cleaned:
  11593. # after its creation but before its name has been assigned to `$tmp'.
  11594. $debug ||
  11595. {
  11596. tmp=
  11597. trap 'exit_status=$?
  11598. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11599. ' 0
  11600. trap 'as_fn_exit 1' 1 2 13 15
  11601. }
  11602. # Create a (secure) tmp directory for tmp files.
  11603. {
  11604. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11605. test -n "$tmp" && test -d "$tmp"
  11606. } ||
  11607. {
  11608. tmp=./conf$$-$RANDOM
  11609. (umask 077 && mkdir "$tmp")
  11610. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11611. # Set up the scripts for CONFIG_FILES section.
  11612. # No need to generate them if there are no CONFIG_FILES.
  11613. # This happens for instance with `./config.status config.h'.
  11614. if test -n "$CONFIG_FILES"; then
  11615. ac_cr=`echo X | tr X '\015'`
  11616. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11617. # But we know of no other shell where ac_cr would be empty at this
  11618. # point, so we can use a bashism as a fallback.
  11619. if test "x$ac_cr" = x; then
  11620. eval ac_cr=\$\'\\r\'
  11621. fi
  11622. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11623. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11624. ac_cs_awk_cr='\r'
  11625. else
  11626. ac_cs_awk_cr=$ac_cr
  11627. fi
  11628. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11629. _ACEOF
  11630. {
  11631. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11632. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11633. echo "_ACEOF"
  11634. } >conf$$subs.sh ||
  11635. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11636. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11637. ac_delim='%!_!# '
  11638. for ac_last_try in false false false false false :; do
  11639. . ./conf$$subs.sh ||
  11640. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11641. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11642. if test $ac_delim_n = $ac_delim_num; then
  11643. break
  11644. elif $ac_last_try; then
  11645. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11646. else
  11647. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11648. fi
  11649. done
  11650. rm -f conf$$subs.sh
  11651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11652. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11653. _ACEOF
  11654. sed -n '
  11655. h
  11656. s/^/S["/; s/!.*/"]=/
  11657. p
  11658. g
  11659. s/^[^!]*!//
  11660. :repl
  11661. t repl
  11662. s/'"$ac_delim"'$//
  11663. t delim
  11664. :nl
  11665. h
  11666. s/\(.\{148\}\).*/\1/
  11667. t more1
  11668. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11669. p
  11670. n
  11671. b repl
  11672. :more1
  11673. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11674. p
  11675. g
  11676. s/.\{148\}//
  11677. t nl
  11678. :delim
  11679. h
  11680. s/\(.\{148\}\).*/\1/
  11681. t more2
  11682. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11683. p
  11684. b
  11685. :more2
  11686. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11687. p
  11688. g
  11689. s/.\{148\}//
  11690. t delim
  11691. ' <conf$$subs.awk | sed '
  11692. /^[^""]/{
  11693. N
  11694. s/\n//
  11695. }
  11696. ' >>$CONFIG_STATUS || ac_write_fail=1
  11697. rm -f conf$$subs.awk
  11698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11699. _ACAWK
  11700. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11701. for (key in S) S_is_set[key] = 1
  11702. FS = ""
  11703. }
  11704. {
  11705. line = $ 0
  11706. nfields = split(line, field, "@")
  11707. substed = 0
  11708. len = length(field[1])
  11709. for (i = 2; i < nfields; i++) {
  11710. key = field[i]
  11711. keylen = length(key)
  11712. if (S_is_set[key]) {
  11713. value = S[key]
  11714. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11715. len += length(value) + length(field[++i])
  11716. substed = 1
  11717. } else
  11718. len += 1 + keylen
  11719. }
  11720. print line
  11721. }
  11722. _ACAWK
  11723. _ACEOF
  11724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11725. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11726. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11727. else
  11728. cat
  11729. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11730. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11731. _ACEOF
  11732. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11733. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11734. # trailing colons and then remove the whole line if VPATH becomes empty
  11735. # (actually we leave an empty line to preserve line numbers).
  11736. if test "x$srcdir" = x.; then
  11737. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11738. s/:*\$(srcdir):*/:/
  11739. s/:*\${srcdir}:*/:/
  11740. s/:*@srcdir@:*/:/
  11741. s/^\([^=]*=[ ]*\):*/\1/
  11742. s/:*$//
  11743. s/^[^=]*=[ ]*$//
  11744. }'
  11745. fi
  11746. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11747. fi # test -n "$CONFIG_FILES"
  11748. # Set up the scripts for CONFIG_HEADERS section.
  11749. # No need to generate them if there are no CONFIG_HEADERS.
  11750. # This happens for instance with `./config.status Makefile'.
  11751. if test -n "$CONFIG_HEADERS"; then
  11752. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11753. BEGIN {
  11754. _ACEOF
  11755. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11756. # here-document in config.status, that substitutes the proper values into
  11757. # config.h.in to produce config.h.
  11758. # Create a delimiter string that does not exist in confdefs.h, to ease
  11759. # handling of long lines.
  11760. ac_delim='%!_!# '
  11761. for ac_last_try in false false :; do
  11762. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11763. if test -z "$ac_t"; then
  11764. break
  11765. elif $ac_last_try; then
  11766. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11767. else
  11768. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11769. fi
  11770. done
  11771. # For the awk script, D is an array of macro values keyed by name,
  11772. # likewise P contains macro parameters if any. Preserve backslash
  11773. # newline sequences.
  11774. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11775. sed -n '
  11776. s/.\{148\}/&'"$ac_delim"'/g
  11777. t rset
  11778. :rset
  11779. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11780. t def
  11781. d
  11782. :def
  11783. s/\\$//
  11784. t bsnl
  11785. s/["\\]/\\&/g
  11786. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11787. D["\1"]=" \3"/p
  11788. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11789. d
  11790. :bsnl
  11791. s/["\\]/\\&/g
  11792. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11793. D["\1"]=" \3\\\\\\n"\\/p
  11794. t cont
  11795. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11796. t cont
  11797. d
  11798. :cont
  11799. n
  11800. s/.\{148\}/&'"$ac_delim"'/g
  11801. t clear
  11802. :clear
  11803. s/\\$//
  11804. t bsnlc
  11805. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11806. d
  11807. :bsnlc
  11808. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11809. b cont
  11810. ' <confdefs.h | sed '
  11811. s/'"$ac_delim"'/"\\\
  11812. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11814. for (key in D) D_is_set[key] = 1
  11815. FS = ""
  11816. }
  11817. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11818. line = \$ 0
  11819. split(line, arg, " ")
  11820. if (arg[1] == "#") {
  11821. defundef = arg[2]
  11822. mac1 = arg[3]
  11823. } else {
  11824. defundef = substr(arg[1], 2)
  11825. mac1 = arg[2]
  11826. }
  11827. split(mac1, mac2, "(") #)
  11828. macro = mac2[1]
  11829. prefix = substr(line, 1, index(line, defundef) - 1)
  11830. if (D_is_set[macro]) {
  11831. # Preserve the white space surrounding the "#".
  11832. print prefix "define", macro P[macro] D[macro]
  11833. next
  11834. } else {
  11835. # Replace #undef with comments. This is necessary, for example,
  11836. # in the case of _POSIX_SOURCE, which is predefined and required
  11837. # on some systems where configure will not decide to define it.
  11838. if (defundef == "undef") {
  11839. print "/*", prefix defundef, macro, "*/"
  11840. next
  11841. }
  11842. }
  11843. }
  11844. { print }
  11845. _ACAWK
  11846. _ACEOF
  11847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11848. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11849. fi # test -n "$CONFIG_HEADERS"
  11850. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11851. shift
  11852. for ac_tag
  11853. do
  11854. case $ac_tag in
  11855. :[FHLC]) ac_mode=$ac_tag; continue;;
  11856. esac
  11857. case $ac_mode$ac_tag in
  11858. :[FHL]*:*);;
  11859. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11860. :[FH]-) ac_tag=-:-;;
  11861. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11862. esac
  11863. ac_save_IFS=$IFS
  11864. IFS=:
  11865. set x $ac_tag
  11866. IFS=$ac_save_IFS
  11867. shift
  11868. ac_file=$1
  11869. shift
  11870. case $ac_mode in
  11871. :L) ac_source=$1;;
  11872. :[FH])
  11873. ac_file_inputs=
  11874. for ac_f
  11875. do
  11876. case $ac_f in
  11877. -) ac_f="$tmp/stdin";;
  11878. *) # Look for the file first in the build tree, then in the source tree
  11879. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11880. # because $ac_f cannot contain `:'.
  11881. test -f "$ac_f" ||
  11882. case $ac_f in
  11883. [\\/$]*) false;;
  11884. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11885. esac ||
  11886. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11887. esac
  11888. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11889. as_fn_append ac_file_inputs " '$ac_f'"
  11890. done
  11891. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11892. # use $as_me), people would be surprised to read:
  11893. # /* config.h. Generated by config.status. */
  11894. configure_input='Generated from '`
  11895. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11896. `' by configure.'
  11897. if test x"$ac_file" != x-; then
  11898. configure_input="$ac_file. $configure_input"
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11900. $as_echo "$as_me: creating $ac_file" >&6;}
  11901. fi
  11902. # Neutralize special characters interpreted by sed in replacement strings.
  11903. case $configure_input in #(
  11904. *\&* | *\|* | *\\* )
  11905. ac_sed_conf_input=`$as_echo "$configure_input" |
  11906. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11907. *) ac_sed_conf_input=$configure_input;;
  11908. esac
  11909. case $ac_tag in
  11910. *:-:* | *:-) cat >"$tmp/stdin" \
  11911. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  11912. esac
  11913. ;;
  11914. esac
  11915. ac_dir=`$as_dirname -- "$ac_file" ||
  11916. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11917. X"$ac_file" : 'X\(//\)[^/]' \| \
  11918. X"$ac_file" : 'X\(//\)$' \| \
  11919. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11920. $as_echo X"$ac_file" |
  11921. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11922. s//\1/
  11923. q
  11924. }
  11925. /^X\(\/\/\)[^/].*/{
  11926. s//\1/
  11927. q
  11928. }
  11929. /^X\(\/\/\)$/{
  11930. s//\1/
  11931. q
  11932. }
  11933. /^X\(\/\).*/{
  11934. s//\1/
  11935. q
  11936. }
  11937. s/.*/./; q'`
  11938. as_dir="$ac_dir"; as_fn_mkdir_p
  11939. ac_builddir=.
  11940. case "$ac_dir" in
  11941. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11942. *)
  11943. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11944. # A ".." for each directory in $ac_dir_suffix.
  11945. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11946. case $ac_top_builddir_sub in
  11947. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11948. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11949. esac ;;
  11950. esac
  11951. ac_abs_top_builddir=$ac_pwd
  11952. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11953. # for backward compatibility:
  11954. ac_top_builddir=$ac_top_build_prefix
  11955. case $srcdir in
  11956. .) # We are building in place.
  11957. ac_srcdir=.
  11958. ac_top_srcdir=$ac_top_builddir_sub
  11959. ac_abs_top_srcdir=$ac_pwd ;;
  11960. [\\/]* | ?:[\\/]* ) # Absolute name.
  11961. ac_srcdir=$srcdir$ac_dir_suffix;
  11962. ac_top_srcdir=$srcdir
  11963. ac_abs_top_srcdir=$srcdir ;;
  11964. *) # Relative name.
  11965. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11966. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11967. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11968. esac
  11969. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11970. case $ac_mode in
  11971. :F)
  11972. #
  11973. # CONFIG_FILE
  11974. #
  11975. case $INSTALL in
  11976. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11977. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11978. esac
  11979. ac_MKDIR_P=$MKDIR_P
  11980. case $MKDIR_P in
  11981. [\\/$]* | ?:[\\/]* ) ;;
  11982. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11983. esac
  11984. _ACEOF
  11985. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11986. # If the template does not know about datarootdir, expand it.
  11987. # FIXME: This hack should be removed a few years after 2.60.
  11988. ac_datarootdir_hack=; ac_datarootdir_seen=
  11989. ac_sed_dataroot='
  11990. /datarootdir/ {
  11991. p
  11992. q
  11993. }
  11994. /@datadir@/p
  11995. /@docdir@/p
  11996. /@infodir@/p
  11997. /@localedir@/p
  11998. /@mandir@/p'
  11999. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12000. *datarootdir*) ac_datarootdir_seen=yes;;
  12001. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12003. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12004. _ACEOF
  12005. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12006. ac_datarootdir_hack='
  12007. s&@datadir@&$datadir&g
  12008. s&@docdir@&$docdir&g
  12009. s&@infodir@&$infodir&g
  12010. s&@localedir@&$localedir&g
  12011. s&@mandir@&$mandir&g
  12012. s&\\\${datarootdir}&$datarootdir&g' ;;
  12013. esac
  12014. _ACEOF
  12015. # Neutralize VPATH when `$srcdir' = `.'.
  12016. # Shell code in configure.ac might set extrasub.
  12017. # FIXME: do we really want to maintain this feature?
  12018. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12019. ac_sed_extra="$ac_vpsub
  12020. $extrasub
  12021. _ACEOF
  12022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12023. :t
  12024. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12025. s|@configure_input@|$ac_sed_conf_input|;t t
  12026. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12027. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12028. s&@srcdir@&$ac_srcdir&;t t
  12029. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12030. s&@top_srcdir@&$ac_top_srcdir&;t t
  12031. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12032. s&@builddir@&$ac_builddir&;t t
  12033. s&@abs_builddir@&$ac_abs_builddir&;t t
  12034. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12035. s&@INSTALL@&$ac_INSTALL&;t t
  12036. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12037. $ac_datarootdir_hack
  12038. "
  12039. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12040. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12041. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12042. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12043. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12045. which seems to be undefined. Please make sure it is defined." >&5
  12046. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12047. which seems to be undefined. Please make sure it is defined." >&2;}
  12048. rm -f "$tmp/stdin"
  12049. case $ac_file in
  12050. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12051. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12052. esac \
  12053. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12054. ;;
  12055. :H)
  12056. #
  12057. # CONFIG_HEADER
  12058. #
  12059. if test x"$ac_file" != x-; then
  12060. {
  12061. $as_echo "/* $configure_input */" \
  12062. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12063. } >"$tmp/config.h" \
  12064. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12065. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12067. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12068. else
  12069. rm -f "$ac_file"
  12070. mv "$tmp/config.h" "$ac_file" \
  12071. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12072. fi
  12073. else
  12074. $as_echo "/* $configure_input */" \
  12075. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12076. || as_fn_error "could not create -" "$LINENO" 5
  12077. fi
  12078. # Compute "$ac_file"'s index in $config_headers.
  12079. _am_arg="$ac_file"
  12080. _am_stamp_count=1
  12081. for _am_header in $config_headers :; do
  12082. case $_am_header in
  12083. $_am_arg | $_am_arg:* )
  12084. break ;;
  12085. * )
  12086. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12087. esac
  12088. done
  12089. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12090. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12091. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12092. X"$_am_arg" : 'X\(//\)$' \| \
  12093. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12094. $as_echo X"$_am_arg" |
  12095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12096. s//\1/
  12097. q
  12098. }
  12099. /^X\(\/\/\)[^/].*/{
  12100. s//\1/
  12101. q
  12102. }
  12103. /^X\(\/\/\)$/{
  12104. s//\1/
  12105. q
  12106. }
  12107. /^X\(\/\).*/{
  12108. s//\1/
  12109. q
  12110. }
  12111. s/.*/./; q'`/stamp-h$_am_stamp_count
  12112. ;;
  12113. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12114. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12115. ;;
  12116. esac
  12117. case $ac_file$ac_mode in
  12118. "default-1":C)
  12119. # Only add multilib support code if we just rebuilt the top-level
  12120. # Makefile.
  12121. case " $CONFIG_FILES " in
  12122. *" Makefile "*)
  12123. ac_file=Makefile . ${multi_basedir}/config-ml.in
  12124. ;;
  12125. esac ;;
  12126. "libtool":C)
  12127. # See if we are running on zsh, and set the options which allow our
  12128. # commands through without removal of \ escapes.
  12129. if test -n "${ZSH_VERSION+set}" ; then
  12130. setopt NO_GLOB_SUBST
  12131. fi
  12132. cfgfile="${ofile}T"
  12133. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12134. $RM "$cfgfile"
  12135. cat <<_LT_EOF >> "$cfgfile"
  12136. #! $SHELL
  12137. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12138. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12139. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12140. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12141. #
  12142. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12143. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12144. # Written by Gordon Matzigkeit, 1996
  12145. #
  12146. # This file is part of GNU Libtool.
  12147. #
  12148. # GNU Libtool is free software; you can redistribute it and/or
  12149. # modify it under the terms of the GNU General Public License as
  12150. # published by the Free Software Foundation; either version 2 of
  12151. # the License, or (at your option) any later version.
  12152. #
  12153. # As a special exception to the GNU General Public License,
  12154. # if you distribute this file as part of a program or library that
  12155. # is built using GNU Libtool, you may include this file under the
  12156. # same distribution terms that you use for the rest of that program.
  12157. #
  12158. # GNU Libtool is distributed in the hope that it will be useful,
  12159. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12160. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12161. # GNU General Public License for more details.
  12162. #
  12163. # You should have received a copy of the GNU General Public License
  12164. # along with GNU Libtool; see the file COPYING. If not, a copy
  12165. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12166. # obtained by writing to the Free Software Foundation, Inc.,
  12167. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12168. # The names of the tagged configurations supported by this script.
  12169. available_tags=""
  12170. # ### BEGIN LIBTOOL CONFIG
  12171. # Which release of libtool.m4 was used?
  12172. macro_version=$macro_version
  12173. macro_revision=$macro_revision
  12174. # Whether or not to build shared libraries.
  12175. build_libtool_libs=$enable_shared
  12176. # Whether or not to build static libraries.
  12177. build_old_libs=$enable_static
  12178. # What type of objects to build.
  12179. pic_mode=$pic_mode
  12180. # Whether or not to optimize for fast installation.
  12181. fast_install=$enable_fast_install
  12182. # Shell to use when invoking shell scripts.
  12183. SHELL=$lt_SHELL
  12184. # An echo program that protects backslashes.
  12185. ECHO=$lt_ECHO
  12186. # The host system.
  12187. host_alias=$host_alias
  12188. host=$host
  12189. host_os=$host_os
  12190. # The build system.
  12191. build_alias=$build_alias
  12192. build=$build
  12193. build_os=$build_os
  12194. # A sed program that does not truncate output.
  12195. SED=$lt_SED
  12196. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12197. Xsed="\$SED -e 1s/^X//"
  12198. # A grep program that handles long lines.
  12199. GREP=$lt_GREP
  12200. # An ERE matcher.
  12201. EGREP=$lt_EGREP
  12202. # A literal string matcher.
  12203. FGREP=$lt_FGREP
  12204. # A BSD- or MS-compatible name lister.
  12205. NM=$lt_NM
  12206. # Whether we need soft or hard links.
  12207. LN_S=$lt_LN_S
  12208. # What is the maximum length of a command?
  12209. max_cmd_len=$max_cmd_len
  12210. # Object file suffix (normally "o").
  12211. objext=$ac_objext
  12212. # Executable file suffix (normally "").
  12213. exeext=$exeext
  12214. # whether the shell understands "unset".
  12215. lt_unset=$lt_unset
  12216. # turn spaces into newlines.
  12217. SP2NL=$lt_lt_SP2NL
  12218. # turn newlines into spaces.
  12219. NL2SP=$lt_lt_NL2SP
  12220. # An object symbol dumper.
  12221. OBJDUMP=$lt_OBJDUMP
  12222. # Method to check whether dependent libraries are shared objects.
  12223. deplibs_check_method=$lt_deplibs_check_method
  12224. # Command to use when deplibs_check_method == "file_magic".
  12225. file_magic_cmd=$lt_file_magic_cmd
  12226. # The archiver.
  12227. AR=$lt_AR
  12228. AR_FLAGS=$lt_AR_FLAGS
  12229. # A symbol stripping program.
  12230. STRIP=$lt_STRIP
  12231. # Commands used to install an old-style archive.
  12232. RANLIB=$lt_RANLIB
  12233. old_postinstall_cmds=$lt_old_postinstall_cmds
  12234. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12235. # Whether to use a lock for old archive extraction.
  12236. lock_old_archive_extraction=$lock_old_archive_extraction
  12237. # A C compiler.
  12238. LTCC=$lt_CC
  12239. # LTCC compiler flags.
  12240. LTCFLAGS=$lt_CFLAGS
  12241. # Take the output of nm and produce a listing of raw symbols and C names.
  12242. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12243. # Transform the output of nm in a proper C declaration.
  12244. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12245. # Transform the output of nm in a C name address pair.
  12246. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12247. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12248. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12249. # The name of the directory that contains temporary libtool files.
  12250. objdir=$objdir
  12251. # Used to examine libraries when file_magic_cmd begins with "file".
  12252. MAGIC_CMD=$MAGIC_CMD
  12253. # Must we lock files when doing compilation?
  12254. need_locks=$lt_need_locks
  12255. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12256. DSYMUTIL=$lt_DSYMUTIL
  12257. # Tool to change global to local symbols on Mac OS X.
  12258. NMEDIT=$lt_NMEDIT
  12259. # Tool to manipulate fat objects and archives on Mac OS X.
  12260. LIPO=$lt_LIPO
  12261. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12262. OTOOL=$lt_OTOOL
  12263. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12264. OTOOL64=$lt_OTOOL64
  12265. # Old archive suffix (normally "a").
  12266. libext=$libext
  12267. # Shared library suffix (normally ".so").
  12268. shrext_cmds=$lt_shrext_cmds
  12269. # The commands to extract the exported symbol list from a shared archive.
  12270. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12271. # Variables whose values should be saved in libtool wrapper scripts and
  12272. # restored at link time.
  12273. variables_saved_for_relink=$lt_variables_saved_for_relink
  12274. # Do we need the "lib" prefix for modules?
  12275. need_lib_prefix=$need_lib_prefix
  12276. # Do we need a version for libraries?
  12277. need_version=$need_version
  12278. # Library versioning type.
  12279. version_type=$version_type
  12280. # Shared library runtime path variable.
  12281. runpath_var=$runpath_var
  12282. # Shared library path variable.
  12283. shlibpath_var=$shlibpath_var
  12284. # Is shlibpath searched before the hard-coded library search path?
  12285. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12286. # Format of library name prefix.
  12287. libname_spec=$lt_libname_spec
  12288. # List of archive names. First name is the real one, the rest are links.
  12289. # The last name is the one that the linker finds with -lNAME
  12290. library_names_spec=$lt_library_names_spec
  12291. # The coded name of the library, if different from the real name.
  12292. soname_spec=$lt_soname_spec
  12293. # Permission mode override for installation of shared libraries.
  12294. install_override_mode=$lt_install_override_mode
  12295. # Command to use after installation of a shared archive.
  12296. postinstall_cmds=$lt_postinstall_cmds
  12297. # Command to use after uninstallation of a shared archive.
  12298. postuninstall_cmds=$lt_postuninstall_cmds
  12299. # Commands used to finish a libtool library installation in a directory.
  12300. finish_cmds=$lt_finish_cmds
  12301. # As "finish_cmds", except a single script fragment to be evaled but
  12302. # not shown.
  12303. finish_eval=$lt_finish_eval
  12304. # Whether we should hardcode library paths into libraries.
  12305. hardcode_into_libs=$hardcode_into_libs
  12306. # Compile-time system search path for libraries.
  12307. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12308. # Run-time system search path for libraries.
  12309. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12310. # Whether dlopen is supported.
  12311. dlopen_support=$enable_dlopen
  12312. # Whether dlopen of programs is supported.
  12313. dlopen_self=$enable_dlopen_self
  12314. # Whether dlopen of statically linked programs is supported.
  12315. dlopen_self_static=$enable_dlopen_self_static
  12316. # Commands to strip libraries.
  12317. old_striplib=$lt_old_striplib
  12318. striplib=$lt_striplib
  12319. # The linker used to build libraries.
  12320. LD=$lt_LD
  12321. # How to create reloadable object files.
  12322. reload_flag=$lt_reload_flag
  12323. reload_cmds=$lt_reload_cmds
  12324. # Commands used to build an old-style archive.
  12325. old_archive_cmds=$lt_old_archive_cmds
  12326. # A language specific compiler.
  12327. CC=$lt_compiler
  12328. # Is the compiler the GNU compiler?
  12329. with_gcc=$GCC
  12330. # Compiler flag to turn off builtin functions.
  12331. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12332. # How to pass a linker flag through the compiler.
  12333. wl=$lt_lt_prog_compiler_wl
  12334. # Additional compiler flags for building library objects.
  12335. pic_flag=$lt_lt_prog_compiler_pic
  12336. # Compiler flag to prevent dynamic linking.
  12337. link_static_flag=$lt_lt_prog_compiler_static
  12338. # Does compiler simultaneously support -c and -o options?
  12339. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12340. # Whether or not to add -lc for building shared libraries.
  12341. build_libtool_need_lc=$archive_cmds_need_lc
  12342. # Whether or not to disallow shared libs when runtime libs are static.
  12343. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12344. # Compiler flag to allow reflexive dlopens.
  12345. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12346. # Compiler flag to generate shared objects directly from archives.
  12347. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12348. # Whether the compiler copes with passing no objects directly.
  12349. compiler_needs_object=$lt_compiler_needs_object
  12350. # Create an old-style archive from a shared archive.
  12351. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12352. # Create a temporary old-style archive to link instead of a shared archive.
  12353. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12354. # Commands used to build a shared archive.
  12355. archive_cmds=$lt_archive_cmds
  12356. archive_expsym_cmds=$lt_archive_expsym_cmds
  12357. # Commands used to build a loadable module if different from building
  12358. # a shared archive.
  12359. module_cmds=$lt_module_cmds
  12360. module_expsym_cmds=$lt_module_expsym_cmds
  12361. # Whether we are building with GNU ld or not.
  12362. with_gnu_ld=$lt_with_gnu_ld
  12363. # Flag that allows shared libraries with undefined symbols to be built.
  12364. allow_undefined_flag=$lt_allow_undefined_flag
  12365. # Flag that enforces no undefined symbols.
  12366. no_undefined_flag=$lt_no_undefined_flag
  12367. # Flag to hardcode \$libdir into a binary during linking.
  12368. # This must work even if \$libdir does not exist
  12369. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12370. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12371. # during linking. This must work even if \$libdir does not exist.
  12372. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12373. # Whether we need a single "-rpath" flag with a separated argument.
  12374. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12375. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12376. # DIR into the resulting binary.
  12377. hardcode_direct=$hardcode_direct
  12378. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12379. # DIR into the resulting binary and the resulting library dependency is
  12380. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12381. # library is relocated.
  12382. hardcode_direct_absolute=$hardcode_direct_absolute
  12383. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12384. # into the resulting binary.
  12385. hardcode_minus_L=$hardcode_minus_L
  12386. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12387. # into the resulting binary.
  12388. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12389. # Set to "yes" if building a shared library automatically hardcodes DIR
  12390. # into the library and all subsequent libraries and executables linked
  12391. # against it.
  12392. hardcode_automatic=$hardcode_automatic
  12393. # Set to yes if linker adds runtime paths of dependent libraries
  12394. # to runtime path list.
  12395. inherit_rpath=$inherit_rpath
  12396. # Whether libtool must link a program against all its dependency libraries.
  12397. link_all_deplibs=$link_all_deplibs
  12398. # Fix the shell variable \$srcfile for the compiler.
  12399. fix_srcfile_path=$lt_fix_srcfile_path
  12400. # Set to "yes" if exported symbols are required.
  12401. always_export_symbols=$always_export_symbols
  12402. # The commands to list exported symbols.
  12403. export_symbols_cmds=$lt_export_symbols_cmds
  12404. # Symbols that should not be listed in the preloaded symbols.
  12405. exclude_expsyms=$lt_exclude_expsyms
  12406. # Symbols that must always be exported.
  12407. include_expsyms=$lt_include_expsyms
  12408. # Commands necessary for linking programs (against libraries) with templates.
  12409. prelink_cmds=$lt_prelink_cmds
  12410. # Specify filename containing input files.
  12411. file_list_spec=$lt_file_list_spec
  12412. # How to hardcode a shared library path into an executable.
  12413. hardcode_action=$hardcode_action
  12414. # ### END LIBTOOL CONFIG
  12415. _LT_EOF
  12416. case $host_os in
  12417. aix3*)
  12418. cat <<\_LT_EOF >> "$cfgfile"
  12419. # AIX sometimes has problems with the GCC collect2 program. For some
  12420. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12421. # vanish in a puff of smoke.
  12422. if test "X${COLLECT_NAMES+set}" != Xset; then
  12423. COLLECT_NAMES=
  12424. export COLLECT_NAMES
  12425. fi
  12426. _LT_EOF
  12427. ;;
  12428. esac
  12429. ltmain="$ac_aux_dir/ltmain.sh"
  12430. # We use sed instead of cat because bash on DJGPP gets confused if
  12431. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12432. # text mode, it properly converts lines to CR/LF. This bash problem
  12433. # is reportedly fixed, but why not run on old versions too?
  12434. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12435. || (rm -f "$cfgfile"; exit 1)
  12436. case $xsi_shell in
  12437. yes)
  12438. cat << \_LT_EOF >> "$cfgfile"
  12439. # func_dirname file append nondir_replacement
  12440. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12441. # otherwise set result to NONDIR_REPLACEMENT.
  12442. func_dirname ()
  12443. {
  12444. case ${1} in
  12445. */*) func_dirname_result="${1%/*}${2}" ;;
  12446. * ) func_dirname_result="${3}" ;;
  12447. esac
  12448. }
  12449. # func_basename file
  12450. func_basename ()
  12451. {
  12452. func_basename_result="${1##*/}"
  12453. }
  12454. # func_dirname_and_basename file append nondir_replacement
  12455. # perform func_basename and func_dirname in a single function
  12456. # call:
  12457. # dirname: Compute the dirname of FILE. If nonempty,
  12458. # add APPEND to the result, otherwise set result
  12459. # to NONDIR_REPLACEMENT.
  12460. # value returned in "$func_dirname_result"
  12461. # basename: Compute filename of FILE.
  12462. # value retuned in "$func_basename_result"
  12463. # Implementation must be kept synchronized with func_dirname
  12464. # and func_basename. For efficiency, we do not delegate to
  12465. # those functions but instead duplicate the functionality here.
  12466. func_dirname_and_basename ()
  12467. {
  12468. case ${1} in
  12469. */*) func_dirname_result="${1%/*}${2}" ;;
  12470. * ) func_dirname_result="${3}" ;;
  12471. esac
  12472. func_basename_result="${1##*/}"
  12473. }
  12474. # func_stripname prefix suffix name
  12475. # strip PREFIX and SUFFIX off of NAME.
  12476. # PREFIX and SUFFIX must not contain globbing or regex special
  12477. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12478. # dot (in which case that matches only a dot).
  12479. func_stripname ()
  12480. {
  12481. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12482. # positional parameters, so assign one to ordinary parameter first.
  12483. func_stripname_result=${3}
  12484. func_stripname_result=${func_stripname_result#"${1}"}
  12485. func_stripname_result=${func_stripname_result%"${2}"}
  12486. }
  12487. # func_opt_split
  12488. func_opt_split ()
  12489. {
  12490. func_opt_split_opt=${1%%=*}
  12491. func_opt_split_arg=${1#*=}
  12492. }
  12493. # func_lo2o object
  12494. func_lo2o ()
  12495. {
  12496. case ${1} in
  12497. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12498. *) func_lo2o_result=${1} ;;
  12499. esac
  12500. }
  12501. # func_xform libobj-or-source
  12502. func_xform ()
  12503. {
  12504. func_xform_result=${1%.*}.lo
  12505. }
  12506. # func_arith arithmetic-term...
  12507. func_arith ()
  12508. {
  12509. func_arith_result=$(( $* ))
  12510. }
  12511. # func_len string
  12512. # STRING may not start with a hyphen.
  12513. func_len ()
  12514. {
  12515. func_len_result=${#1}
  12516. }
  12517. _LT_EOF
  12518. ;;
  12519. *) # Bourne compatible functions.
  12520. cat << \_LT_EOF >> "$cfgfile"
  12521. # func_dirname file append nondir_replacement
  12522. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12523. # otherwise set result to NONDIR_REPLACEMENT.
  12524. func_dirname ()
  12525. {
  12526. # Extract subdirectory from the argument.
  12527. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12528. if test "X$func_dirname_result" = "X${1}"; then
  12529. func_dirname_result="${3}"
  12530. else
  12531. func_dirname_result="$func_dirname_result${2}"
  12532. fi
  12533. }
  12534. # func_basename file
  12535. func_basename ()
  12536. {
  12537. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12538. }
  12539. # func_stripname prefix suffix name
  12540. # strip PREFIX and SUFFIX off of NAME.
  12541. # PREFIX and SUFFIX must not contain globbing or regex special
  12542. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12543. # dot (in which case that matches only a dot).
  12544. # func_strip_suffix prefix name
  12545. func_stripname ()
  12546. {
  12547. case ${2} in
  12548. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12549. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12550. esac
  12551. }
  12552. # sed scripts:
  12553. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12554. my_sed_long_arg='1s/^-[^=]*=//'
  12555. # func_opt_split
  12556. func_opt_split ()
  12557. {
  12558. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12559. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12560. }
  12561. # func_lo2o object
  12562. func_lo2o ()
  12563. {
  12564. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12565. }
  12566. # func_xform libobj-or-source
  12567. func_xform ()
  12568. {
  12569. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12570. }
  12571. # func_arith arithmetic-term...
  12572. func_arith ()
  12573. {
  12574. func_arith_result=`expr "$@"`
  12575. }
  12576. # func_len string
  12577. # STRING may not start with a hyphen.
  12578. func_len ()
  12579. {
  12580. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12581. }
  12582. _LT_EOF
  12583. esac
  12584. case $lt_shell_append in
  12585. yes)
  12586. cat << \_LT_EOF >> "$cfgfile"
  12587. # func_append var value
  12588. # Append VALUE to the end of shell variable VAR.
  12589. func_append ()
  12590. {
  12591. eval "$1+=\$2"
  12592. }
  12593. _LT_EOF
  12594. ;;
  12595. *)
  12596. cat << \_LT_EOF >> "$cfgfile"
  12597. # func_append var value
  12598. # Append VALUE to the end of shell variable VAR.
  12599. func_append ()
  12600. {
  12601. eval "$1=\$$1\$2"
  12602. }
  12603. _LT_EOF
  12604. ;;
  12605. esac
  12606. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12607. || (rm -f "$cfgfile"; exit 1)
  12608. mv -f "$cfgfile" "$ofile" ||
  12609. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12610. chmod +x "$ofile"
  12611. ;;
  12612. "gstdint.h":C)
  12613. if test "$GCC" = yes; then
  12614. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  12615. else
  12616. echo "/* generated for $CC */" > tmp-stdint.h
  12617. fi
  12618. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12619. #ifndef GCC_GENERATED_STDINT_H
  12620. #define GCC_GENERATED_STDINT_H 1
  12621. #include <sys/types.h>
  12622. EOF
  12623. if test "$acx_cv_header_stdint" != stdint.h; then
  12624. echo "#include <stddef.h>" >> tmp-stdint.h
  12625. fi
  12626. if test "$acx_cv_header_stdint" != stddef.h; then
  12627. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  12628. fi
  12629. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12630. /* glibc uses these symbols as guards to prevent redefinitions. */
  12631. #ifdef __int8_t_defined
  12632. #define _INT8_T
  12633. #define _INT16_T
  12634. #define _INT32_T
  12635. #endif
  12636. #ifdef __uint32_t_defined
  12637. #define _UINT32_T
  12638. #endif
  12639. EOF
  12640. # ----------------- done header, emit basic int types -------------
  12641. if test "$acx_cv_header_stdint" = stddef.h; then
  12642. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12643. #ifndef _UINT8_T
  12644. #define _UINT8_T
  12645. #ifndef __uint8_t_defined
  12646. #define __uint8_t_defined
  12647. #ifndef uint8_t
  12648. typedef unsigned $acx_cv_type_int8_t uint8_t;
  12649. #endif
  12650. #endif
  12651. #endif
  12652. #ifndef _UINT16_T
  12653. #define _UINT16_T
  12654. #ifndef __uint16_t_defined
  12655. #define __uint16_t_defined
  12656. #ifndef uint16_t
  12657. typedef unsigned $acx_cv_type_int16_t uint16_t;
  12658. #endif
  12659. #endif
  12660. #endif
  12661. #ifndef _UINT32_T
  12662. #define _UINT32_T
  12663. #ifndef __uint32_t_defined
  12664. #define __uint32_t_defined
  12665. #ifndef uint32_t
  12666. typedef unsigned $acx_cv_type_int32_t uint32_t;
  12667. #endif
  12668. #endif
  12669. #endif
  12670. #ifndef _INT8_T
  12671. #define _INT8_T
  12672. #ifndef __int8_t_defined
  12673. #define __int8_t_defined
  12674. #ifndef int8_t
  12675. typedef $acx_cv_type_int8_t int8_t;
  12676. #endif
  12677. #endif
  12678. #endif
  12679. #ifndef _INT16_T
  12680. #define _INT16_T
  12681. #ifndef __int16_t_defined
  12682. #define __int16_t_defined
  12683. #ifndef int16_t
  12684. typedef $acx_cv_type_int16_t int16_t;
  12685. #endif
  12686. #endif
  12687. #endif
  12688. #ifndef _INT32_T
  12689. #define _INT32_T
  12690. #ifndef __int32_t_defined
  12691. #define __int32_t_defined
  12692. #ifndef int32_t
  12693. typedef $acx_cv_type_int32_t int32_t;
  12694. #endif
  12695. #endif
  12696. #endif
  12697. EOF
  12698. elif test "$ac_cv_type_u_int32_t" = yes; then
  12699. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12700. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  12701. #ifndef _INT8_T
  12702. #define _INT8_T
  12703. #endif
  12704. #ifndef _INT16_T
  12705. #define _INT16_T
  12706. #endif
  12707. #ifndef _INT32_T
  12708. #define _INT32_T
  12709. #endif
  12710. #ifndef _UINT8_T
  12711. #define _UINT8_T
  12712. #ifndef __uint8_t_defined
  12713. #define __uint8_t_defined
  12714. #ifndef uint8_t
  12715. typedef u_int8_t uint8_t;
  12716. #endif
  12717. #endif
  12718. #endif
  12719. #ifndef _UINT16_T
  12720. #define _UINT16_T
  12721. #ifndef __uint16_t_defined
  12722. #define __uint16_t_defined
  12723. #ifndef uint16_t
  12724. typedef u_int16_t uint16_t;
  12725. #endif
  12726. #endif
  12727. #endif
  12728. #ifndef _UINT32_T
  12729. #define _UINT32_T
  12730. #ifndef __uint32_t_defined
  12731. #define __uint32_t_defined
  12732. #ifndef uint32_t
  12733. typedef u_int32_t uint32_t;
  12734. #endif
  12735. #endif
  12736. #endif
  12737. EOF
  12738. else
  12739. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12740. /* Some systems have guard macros to prevent redefinitions, define them. */
  12741. #ifndef _INT8_T
  12742. #define _INT8_T
  12743. #endif
  12744. #ifndef _INT16_T
  12745. #define _INT16_T
  12746. #endif
  12747. #ifndef _INT32_T
  12748. #define _INT32_T
  12749. #endif
  12750. #ifndef _UINT8_T
  12751. #define _UINT8_T
  12752. #endif
  12753. #ifndef _UINT16_T
  12754. #define _UINT16_T
  12755. #endif
  12756. #ifndef _UINT32_T
  12757. #define _UINT32_T
  12758. #endif
  12759. EOF
  12760. fi
  12761. # ------------- done basic int types, emit int64_t types ------------
  12762. if test "$ac_cv_type_uint64_t" = yes; then
  12763. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12764. /* system headers have good uint64_t and int64_t */
  12765. #ifndef _INT64_T
  12766. #define _INT64_T
  12767. #endif
  12768. #ifndef _UINT64_T
  12769. #define _UINT64_T
  12770. #endif
  12771. EOF
  12772. elif test "$ac_cv_type_u_int64_t" = yes; then
  12773. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12774. /* system headers have an u_int64_t (and int64_t) */
  12775. #ifndef _INT64_T
  12776. #define _INT64_T
  12777. #endif
  12778. #ifndef _UINT64_T
  12779. #define _UINT64_T
  12780. #ifndef __uint64_t_defined
  12781. #define __uint64_t_defined
  12782. #ifndef uint64_t
  12783. typedef u_int64_t uint64_t;
  12784. #endif
  12785. #endif
  12786. #endif
  12787. EOF
  12788. elif test -n "$acx_cv_type_int64_t"; then
  12789. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12790. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  12791. #ifndef _INT64_T
  12792. #define _INT64_T
  12793. #ifndef int64_t
  12794. typedef $acx_cv_type_int64_t int64_t;
  12795. #endif
  12796. #endif
  12797. #ifndef _UINT64_T
  12798. #define _UINT64_T
  12799. #ifndef __uint64_t_defined
  12800. #define __uint64_t_defined
  12801. #ifndef uint64_t
  12802. typedef unsigned $acx_cv_type_int64_t uint64_t;
  12803. #endif
  12804. #endif
  12805. #endif
  12806. EOF
  12807. else
  12808. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12809. /* some common heuristics for int64_t, using compiler-specific tests */
  12810. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  12811. #ifndef _INT64_T
  12812. #define _INT64_T
  12813. #ifndef __int64_t_defined
  12814. #ifndef int64_t
  12815. typedef long long int64_t;
  12816. #endif
  12817. #endif
  12818. #endif
  12819. #ifndef _UINT64_T
  12820. #define _UINT64_T
  12821. #ifndef uint64_t
  12822. typedef unsigned long long uint64_t;
  12823. #endif
  12824. #endif
  12825. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  12826. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  12827. does not implement __extension__. But that compiler doesn't define
  12828. __GNUC_MINOR__. */
  12829. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  12830. # define __extension__
  12831. # endif
  12832. # ifndef _INT64_T
  12833. # define _INT64_T
  12834. # ifndef int64_t
  12835. __extension__ typedef long long int64_t;
  12836. # endif
  12837. # endif
  12838. # ifndef _UINT64_T
  12839. # define _UINT64_T
  12840. # ifndef uint64_t
  12841. __extension__ typedef unsigned long long uint64_t;
  12842. # endif
  12843. # endif
  12844. #elif !defined __STRICT_ANSI__
  12845. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  12846. # ifndef _INT64_T
  12847. # define _INT64_T
  12848. # ifndef int64_t
  12849. typedef __int64 int64_t;
  12850. # endif
  12851. # endif
  12852. # ifndef _UINT64_T
  12853. # define _UINT64_T
  12854. # ifndef uint64_t
  12855. typedef unsigned __int64 uint64_t;
  12856. # endif
  12857. # endif
  12858. # endif /* compiler */
  12859. #endif /* ANSI version */
  12860. EOF
  12861. fi
  12862. # ------------- done int64_t types, emit intptr types ------------
  12863. if test "$ac_cv_type_uintptr_t" != yes; then
  12864. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12865. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  12866. #ifndef __uintptr_t_defined
  12867. #ifndef uintptr_t
  12868. typedef u$acx_cv_type_intptr_t uintptr_t;
  12869. #endif
  12870. #endif
  12871. #ifndef __intptr_t_defined
  12872. #ifndef intptr_t
  12873. typedef $acx_cv_type_intptr_t intptr_t;
  12874. #endif
  12875. #endif
  12876. EOF
  12877. fi
  12878. # ------------- done intptr types, emit int_least types ------------
  12879. if test "$ac_cv_type_int_least32_t" != yes; then
  12880. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12881. /* Define int_least types */
  12882. typedef int8_t int_least8_t;
  12883. typedef int16_t int_least16_t;
  12884. typedef int32_t int_least32_t;
  12885. #ifdef _INT64_T
  12886. typedef int64_t int_least64_t;
  12887. #endif
  12888. typedef uint8_t uint_least8_t;
  12889. typedef uint16_t uint_least16_t;
  12890. typedef uint32_t uint_least32_t;
  12891. #ifdef _UINT64_T
  12892. typedef uint64_t uint_least64_t;
  12893. #endif
  12894. EOF
  12895. fi
  12896. # ------------- done intptr types, emit int_fast types ------------
  12897. if test "$ac_cv_type_int_fast32_t" != yes; then
  12898. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12899. /* Define int_fast types. short is often slow */
  12900. typedef int8_t int_fast8_t;
  12901. typedef int int_fast16_t;
  12902. typedef int32_t int_fast32_t;
  12903. #ifdef _INT64_T
  12904. typedef int64_t int_fast64_t;
  12905. #endif
  12906. typedef uint8_t uint_fast8_t;
  12907. typedef unsigned int uint_fast16_t;
  12908. typedef uint32_t uint_fast32_t;
  12909. #ifdef _UINT64_T
  12910. typedef uint64_t uint_fast64_t;
  12911. #endif
  12912. EOF
  12913. fi
  12914. if test "$ac_cv_type_uintmax_t" != yes; then
  12915. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12916. /* Define intmax based on what we found */
  12917. #ifndef intmax_t
  12918. #ifdef _INT64_T
  12919. typedef int64_t intmax_t;
  12920. #else
  12921. typedef long intmax_t;
  12922. #endif
  12923. #endif
  12924. #ifndef uintmax_t
  12925. #ifdef _UINT64_T
  12926. typedef uint64_t uintmax_t;
  12927. #else
  12928. typedef unsigned long uintmax_t;
  12929. #endif
  12930. #endif
  12931. EOF
  12932. fi
  12933. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12934. #endif /* GCC_GENERATED_STDINT_H */
  12935. EOF
  12936. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  12937. rm -f tmp-stdint.h
  12938. else
  12939. mv -f tmp-stdint.h gstdint.h
  12940. fi
  12941. ;;
  12942. "default":C) if test -n "$CONFIG_FILES"; then
  12943. if test -n "${with_target_subdir}"; then
  12944. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  12945. # that multilib installs will end up installed in the correct place.
  12946. # The testsuite needs it for multilib-aware ABI baseline files.
  12947. # To work around this not being passed down from config-ml.in ->
  12948. # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
  12949. # append it here. Only modify Makefiles that have just been created.
  12950. #
  12951. # Also, get rid of this simulated-VPATH thing that automake does.
  12952. cat > vpsed << \_EOF
  12953. s!`test -f '$<' || echo '$(srcdir)/'`!!
  12954. _EOF
  12955. for i in $SUBDIRS; do
  12956. case $CONFIG_FILES in
  12957. *${i}/Makefile*)
  12958. #echo "Adding MULTISUBDIR to $i/Makefile"
  12959. sed -f vpsed $i/Makefile > tmp
  12960. grep '^MULTISUBDIR =' Makefile >> tmp
  12961. mv tmp $i/Makefile
  12962. ;;
  12963. esac
  12964. done
  12965. rm vpsed
  12966. fi
  12967. fi
  12968. ;;
  12969. esac
  12970. done # for ac_tag
  12971. as_fn_exit 0
  12972. _ACEOF
  12973. ac_clean_files=$ac_clean_files_save
  12974. test $ac_write_fail = 0 ||
  12975. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12976. # configure is writing to config.log, and then calls config.status.
  12977. # config.status does its own redirection, appending to config.log.
  12978. # Unfortunately, on DOS this fails, as config.log is still kept open
  12979. # by configure, so config.status won't be able to write to it; its
  12980. # output is simply discarded. So we exec the FD to /dev/null,
  12981. # effectively closing config.log, so it can be properly (re)opened and
  12982. # appended to by config.status. When coming back to configure, we
  12983. # need to make the FD available again.
  12984. if test "$no_create" != yes; then
  12985. ac_cs_success=:
  12986. ac_config_status_args=
  12987. test "$silent" = yes &&
  12988. ac_config_status_args="$ac_config_status_args --quiet"
  12989. exec 5>/dev/null
  12990. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12991. exec 5>>config.log
  12992. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12993. # would make configure fail if this is the last instruction.
  12994. $ac_cs_success || as_fn_exit $?
  12995. fi
  12996. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12998. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12999. fi