configure 513 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0.
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || 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='GNU Atomic Library'
  509. PACKAGE_TARNAME='libatomic'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='GNU Atomic Library 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL='http://www.gnu.org/software/libatomic/'
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. ARCH_X86_64_FALSE
  554. ARCH_X86_64_TRUE
  555. ARCH_I386_FALSE
  556. ARCH_I386_TRUE
  557. ARCH_ARM_LINUX_FALSE
  558. ARCH_ARM_LINUX_TRUE
  559. HAVE_IFUNC_FALSE
  560. HAVE_IFUNC_TRUE
  561. SIZES
  562. XLDFLAGS
  563. XCFLAGS
  564. config_path
  565. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
  566. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
  567. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
  568. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
  569. LIBAT_BUILD_VERSIONED_SHLIB_FALSE
  570. LIBAT_BUILD_VERSIONED_SHLIB_TRUE
  571. OPT_LDFLAGS
  572. SECTION_LDFLAGS
  573. libtool_VERSION
  574. MAINT
  575. MAINTAINER_MODE_FALSE
  576. MAINTAINER_MODE_TRUE
  577. enable_static
  578. enable_shared
  579. lt_host_flags
  580. CPP
  581. OTOOL64
  582. OTOOL
  583. LIPO
  584. NMEDIT
  585. DSYMUTIL
  586. OBJDUMP
  587. LN_S
  588. ac_ct_DUMPBIN
  589. DUMPBIN
  590. LD
  591. FGREP
  592. EGREP
  593. GREP
  594. SED
  595. LIBTOOL
  596. PERL
  597. RANLIB
  598. NM
  599. AR
  600. am__fastdepCCAS_FALSE
  601. am__fastdepCCAS_TRUE
  602. CCASDEPMODE
  603. CCASFLAGS
  604. CCAS
  605. am__fastdepCC_FALSE
  606. am__fastdepCC_TRUE
  607. CCDEPMODE
  608. am__nodep
  609. AMDEPBACKSLASH
  610. AMDEP_FALSE
  611. AMDEP_TRUE
  612. am__quote
  613. am__include
  614. DEPDIR
  615. OBJEXT
  616. EXEEXT
  617. ac_ct_CC
  618. CPPFLAGS
  619. LDFLAGS
  620. CFLAGS
  621. CC
  622. toolexeclibdir
  623. toolexecdir
  624. multi_basedir
  625. am__untar
  626. am__tar
  627. AMTAR
  628. am__leading_dot
  629. SET_MAKE
  630. AWK
  631. mkdir_p
  632. MKDIR_P
  633. INSTALL_STRIP_PROGRAM
  634. STRIP
  635. install_sh
  636. MAKEINFO
  637. AUTOHEADER
  638. AUTOMAKE
  639. AUTOCONF
  640. ACLOCAL
  641. VERSION
  642. PACKAGE
  643. CYGPATH_W
  644. am__isrc
  645. INSTALL_DATA
  646. INSTALL_SCRIPT
  647. INSTALL_PROGRAM
  648. target_os
  649. target_vendor
  650. target_cpu
  651. target
  652. host_os
  653. host_vendor
  654. host_cpu
  655. host
  656. build_os
  657. build_vendor
  658. build_cpu
  659. build
  660. GENINSRC_FALSE
  661. GENINSRC_TRUE
  662. target_alias
  663. host_alias
  664. build_alias
  665. LIBS
  666. ECHO_T
  667. ECHO_N
  668. ECHO_C
  669. DEFS
  670. mandir
  671. localedir
  672. libdir
  673. psdir
  674. pdfdir
  675. dvidir
  676. htmldir
  677. infodir
  678. docdir
  679. oldincludedir
  680. includedir
  681. localstatedir
  682. sharedstatedir
  683. sysconfdir
  684. datadir
  685. datarootdir
  686. libexecdir
  687. sbindir
  688. bindir
  689. program_transform_name
  690. prefix
  691. exec_prefix
  692. PACKAGE_URL
  693. PACKAGE_BUGREPORT
  694. PACKAGE_STRING
  695. PACKAGE_VERSION
  696. PACKAGE_TARNAME
  697. PACKAGE_NAME
  698. PATH_SEPARATOR
  699. SHELL'
  700. ac_subst_files=''
  701. ac_user_opts='
  702. enable_option_checking
  703. enable_version_specific_runtime_libs
  704. enable_generated_files_in_srcdir
  705. enable_multilib
  706. enable_dependency_tracking
  707. enable_shared
  708. enable_static
  709. with_pic
  710. enable_fast_install
  711. with_gnu_ld
  712. enable_libtool_lock
  713. enable_maintainer_mode
  714. enable_symvers
  715. '
  716. ac_precious_vars='build_alias
  717. host_alias
  718. target_alias
  719. CPP
  720. CPPFLAGS'
  721. # Initialize some variables set by options.
  722. ac_init_help=
  723. ac_init_version=false
  724. ac_unrecognized_opts=
  725. ac_unrecognized_sep=
  726. # The variables have the same names as the options, with
  727. # dashes changed to underlines.
  728. cache_file=/dev/null
  729. exec_prefix=NONE
  730. no_create=
  731. no_recursion=
  732. prefix=NONE
  733. program_prefix=NONE
  734. program_suffix=NONE
  735. program_transform_name=s,x,x,
  736. silent=
  737. site=
  738. srcdir=
  739. verbose=
  740. x_includes=NONE
  741. x_libraries=NONE
  742. # Installation directory options.
  743. # These are left unexpanded so users can "make install exec_prefix=/foo"
  744. # and all the variables that are supposed to be based on exec_prefix
  745. # by default will actually change.
  746. # Use braces instead of parens because sh, perl, etc. also accept them.
  747. # (The list follows the same order as the GNU Coding Standards.)
  748. bindir='${exec_prefix}/bin'
  749. sbindir='${exec_prefix}/sbin'
  750. libexecdir='${exec_prefix}/libexec'
  751. datarootdir='${prefix}/share'
  752. datadir='${datarootdir}'
  753. sysconfdir='${prefix}/etc'
  754. sharedstatedir='${prefix}/com'
  755. localstatedir='${prefix}/var'
  756. includedir='${prefix}/include'
  757. oldincludedir='/usr/include'
  758. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  759. infodir='${datarootdir}/info'
  760. htmldir='${docdir}'
  761. dvidir='${docdir}'
  762. pdfdir='${docdir}'
  763. psdir='${docdir}'
  764. libdir='${exec_prefix}/lib'
  765. localedir='${datarootdir}/locale'
  766. mandir='${datarootdir}/man'
  767. ac_prev=
  768. ac_dashdash=
  769. for ac_option
  770. do
  771. # If the previous option needs an argument, assign it.
  772. if test -n "$ac_prev"; then
  773. eval $ac_prev=\$ac_option
  774. ac_prev=
  775. continue
  776. fi
  777. case $ac_option in
  778. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information."
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1114. If a cross compiler is detected then cross compile mode will be used." >&2
  1115. elif test "x$build_alias" != "x$host_alias"; then
  1116. cross_compiling=yes
  1117. fi
  1118. fi
  1119. ac_tool_prefix=
  1120. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1121. test "$silent" = yes && exec 6>/dev/null
  1122. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1123. ac_ls_di=`ls -di .` &&
  1124. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1125. as_fn_error "working directory cannot be determined"
  1126. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1127. as_fn_error "pwd does not report name of working directory"
  1128. # Find the source files, if location was not specified.
  1129. if test -z "$srcdir"; then
  1130. ac_srcdir_defaulted=yes
  1131. # Try the directory containing this script, then the parent directory.
  1132. ac_confdir=`$as_dirname -- "$as_myself" ||
  1133. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1134. X"$as_myself" : 'X\(//\)[^/]' \| \
  1135. X"$as_myself" : 'X\(//\)$' \| \
  1136. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1137. $as_echo X"$as_myself" |
  1138. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)[^/].*/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\).*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. s/.*/./; q'`
  1155. srcdir=$ac_confdir
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. srcdir=..
  1158. fi
  1159. else
  1160. ac_srcdir_defaulted=no
  1161. fi
  1162. if test ! -r "$srcdir/$ac_unique_file"; then
  1163. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1164. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1165. fi
  1166. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1167. ac_abs_confdir=`(
  1168. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. Program names:
  1241. --program-prefix=PREFIX prepend PREFIX to installed program names
  1242. --program-suffix=SUFFIX append SUFFIX to installed program names
  1243. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1244. System types:
  1245. --build=BUILD configure for building on BUILD [guessed]
  1246. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1247. --target=TARGET configure for building compilers for TARGET [HOST]
  1248. _ACEOF
  1249. fi
  1250. if test -n "$ac_init_help"; then
  1251. case $ac_init_help in
  1252. short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
  1253. esac
  1254. cat <<\_ACEOF
  1255. Optional Features:
  1256. --disable-option-checking ignore unrecognized --enable/--with options
  1257. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1258. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1259. --enable-version-specific-runtime-libs
  1260. Specify that runtime libraries should be installed
  1261. in a compiler-specific directory [default=no]
  1262. --enable-generated-files-in-srcdir
  1263. put copies of generated files in source dir intended
  1264. for creating source tarballs for users without
  1265. texinfo bison or flex. [default=no]
  1266. --enable-multilib build many library versions (default)
  1267. --disable-dependency-tracking speeds up one-time build
  1268. --enable-dependency-tracking do not reject slow dependency extractors
  1269. --enable-shared[=PKGS] build shared libraries [default=yes]
  1270. --enable-static[=PKGS] build static libraries [default=yes]
  1271. --enable-fast-install[=PKGS]
  1272. optimize for fast installation [default=yes]
  1273. --disable-libtool-lock avoid locking (might break parallel builds)
  1274. --enable-maintainer-mode enable make rules and dependencies not useful
  1275. (and sometimes confusing) to the casual installer
  1276. --enable-symvers=STYLE enables symbol versioning of the shared library
  1277. [default=yes]
  1278. Optional Packages:
  1279. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1280. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1281. --with-pic try to use only PIC/non-PIC objects [default=use
  1282. both]
  1283. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1284. Some influential environment variables:
  1285. CC C compiler command
  1286. CFLAGS C compiler flags
  1287. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1288. nonstandard directory <lib dir>
  1289. LIBS libraries to pass to the linker, e.g. -l<library>
  1290. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1291. you have headers in a nonstandard directory <include dir>
  1292. CCAS assembler compiler command (defaults to CC)
  1293. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1294. CPP C preprocessor
  1295. Use these variables to override the choices made by `configure' or to help
  1296. it to find libraries and programs with nonstandard names/locations.
  1297. Report bugs to the package provider.
  1298. GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
  1299. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1300. _ACEOF
  1301. ac_status=$?
  1302. fi
  1303. if test "$ac_init_help" = "recursive"; then
  1304. # If there are subdirs, report their specific --help.
  1305. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1306. test -d "$ac_dir" ||
  1307. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1308. continue
  1309. ac_builddir=.
  1310. case "$ac_dir" in
  1311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1312. *)
  1313. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1314. # A ".." for each directory in $ac_dir_suffix.
  1315. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1316. case $ac_top_builddir_sub in
  1317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1319. esac ;;
  1320. esac
  1321. ac_abs_top_builddir=$ac_pwd
  1322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1323. # for backward compatibility:
  1324. ac_top_builddir=$ac_top_build_prefix
  1325. case $srcdir in
  1326. .) # We are building in place.
  1327. ac_srcdir=.
  1328. ac_top_srcdir=$ac_top_builddir_sub
  1329. ac_abs_top_srcdir=$ac_pwd ;;
  1330. [\\/]* | ?:[\\/]* ) # Absolute name.
  1331. ac_srcdir=$srcdir$ac_dir_suffix;
  1332. ac_top_srcdir=$srcdir
  1333. ac_abs_top_srcdir=$srcdir ;;
  1334. *) # Relative name.
  1335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1338. esac
  1339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1340. cd "$ac_dir" || { ac_status=$?; continue; }
  1341. # Check for guested configure.
  1342. if test -f "$ac_srcdir/configure.gnu"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1345. elif test -f "$ac_srcdir/configure"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure" --help=recursive
  1348. else
  1349. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1350. fi || ac_status=$?
  1351. cd "$ac_pwd" || { ac_status=$?; break; }
  1352. done
  1353. fi
  1354. test -n "$ac_init_help" && exit $ac_status
  1355. if $ac_init_version; then
  1356. cat <<\_ACEOF
  1357. GNU Atomic Library configure 1.0
  1358. generated by GNU Autoconf 2.64
  1359. Copyright (C) 2009 Free Software Foundation, Inc.
  1360. This configure script is free software; the Free Software Foundation
  1361. gives unlimited permission to copy, distribute and modify it.
  1362. _ACEOF
  1363. exit
  1364. fi
  1365. ## ------------------------ ##
  1366. ## Autoconf initialization. ##
  1367. ## ------------------------ ##
  1368. # ac_fn_c_try_compile LINENO
  1369. # --------------------------
  1370. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1371. ac_fn_c_try_compile ()
  1372. {
  1373. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1374. rm -f conftest.$ac_objext
  1375. if { { ac_try="$ac_compile"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_compile") 2>conftest.err
  1383. ac_status=$?
  1384. if test -s conftest.err; then
  1385. grep -v '^ *+' conftest.err >conftest.er1
  1386. cat conftest.er1 >&5
  1387. mv -f conftest.er1 conftest.err
  1388. fi
  1389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1390. test $ac_status = 0; } && {
  1391. test -z "$ac_c_werror_flag" ||
  1392. test ! -s conftest.err
  1393. } && test -s conftest.$ac_objext; then :
  1394. ac_retval=0
  1395. else
  1396. $as_echo "$as_me: failed program was:" >&5
  1397. sed 's/^/| /' conftest.$ac_ext >&5
  1398. ac_retval=1
  1399. fi
  1400. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1401. return $ac_retval
  1402. } # ac_fn_c_try_compile
  1403. # ac_fn_c_try_link LINENO
  1404. # -----------------------
  1405. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1406. ac_fn_c_try_link ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. rm -f conftest.$ac_objext conftest$ac_exeext
  1410. if { { ac_try="$ac_link"
  1411. case "(($ac_try" in
  1412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1413. *) ac_try_echo=$ac_try;;
  1414. esac
  1415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1416. $as_echo "$ac_try_echo"; } >&5
  1417. (eval "$ac_link") 2>conftest.err
  1418. ac_status=$?
  1419. if test -s conftest.err; then
  1420. grep -v '^ *+' conftest.err >conftest.er1
  1421. cat conftest.er1 >&5
  1422. mv -f conftest.er1 conftest.err
  1423. fi
  1424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1425. test $ac_status = 0; } && {
  1426. test -z "$ac_c_werror_flag" ||
  1427. test ! -s conftest.err
  1428. } && test -s conftest$ac_exeext && {
  1429. test "$cross_compiling" = yes ||
  1430. $as_test_x conftest$ac_exeext
  1431. }; then :
  1432. ac_retval=0
  1433. else
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=1
  1437. fi
  1438. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1439. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1440. # interfere with the next link command; also delete a directory that is
  1441. # left behind by Apple's compiler. We do this before executing the actions.
  1442. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1443. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1444. return $ac_retval
  1445. } # ac_fn_c_try_link
  1446. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1447. # -------------------------------------------------------
  1448. # Tests whether HEADER exists and can be compiled using the include files in
  1449. # INCLUDES, setting the cache variable VAR accordingly.
  1450. ac_fn_c_check_header_compile ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1454. $as_echo_n "checking for $2... " >&6; }
  1455. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1456. $as_echo_n "(cached) " >&6
  1457. else
  1458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1459. /* end confdefs.h. */
  1460. $4
  1461. #include <$2>
  1462. _ACEOF
  1463. if ac_fn_c_try_compile "$LINENO"; then :
  1464. eval "$3=yes"
  1465. else
  1466. eval "$3=no"
  1467. fi
  1468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1469. fi
  1470. eval ac_res=\$$3
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1472. $as_echo "$ac_res" >&6; }
  1473. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1474. } # ac_fn_c_check_header_compile
  1475. # ac_fn_c_try_cpp LINENO
  1476. # ----------------------
  1477. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_cpp ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1482. case "(($ac_try" in
  1483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1484. *) ac_try_echo=$ac_try;;
  1485. esac
  1486. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1487. $as_echo "$ac_try_echo"; } >&5
  1488. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1489. ac_status=$?
  1490. if test -s conftest.err; then
  1491. grep -v '^ *+' conftest.err >conftest.er1
  1492. cat conftest.er1 >&5
  1493. mv -f conftest.er1 conftest.err
  1494. fi
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } >/dev/null && {
  1497. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1498. test ! -s conftest.err
  1499. }; then :
  1500. ac_retval=0
  1501. else
  1502. $as_echo "$as_me: failed program was:" >&5
  1503. sed 's/^/| /' conftest.$ac_ext >&5
  1504. ac_retval=1
  1505. fi
  1506. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1507. return $ac_retval
  1508. } # ac_fn_c_try_cpp
  1509. # ac_fn_c_try_run LINENO
  1510. # ----------------------
  1511. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1512. # that executables *can* be run.
  1513. ac_fn_c_try_run ()
  1514. {
  1515. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1516. if { { ac_try="$ac_link"
  1517. case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_link") 2>&5
  1524. ac_status=$?
  1525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1526. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1527. { { case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_try") 2>&5
  1534. ac_status=$?
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; }; }; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: program exited with status $ac_status" >&5
  1540. $as_echo "$as_me: failed program was:" >&5
  1541. sed 's/^/| /' conftest.$ac_ext >&5
  1542. ac_retval=$ac_status
  1543. fi
  1544. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1545. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1546. return $ac_retval
  1547. } # ac_fn_c_try_run
  1548. # ac_fn_c_check_func LINENO FUNC VAR
  1549. # ----------------------------------
  1550. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1551. ac_fn_c_check_func ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1555. $as_echo_n "checking for $2... " >&6; }
  1556. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1557. $as_echo_n "(cached) " >&6
  1558. else
  1559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1560. /* end confdefs.h. */
  1561. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1562. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1563. #define $2 innocuous_$2
  1564. /* System header to define __stub macros and hopefully few prototypes,
  1565. which can conflict with char $2 (); below.
  1566. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1567. <limits.h> exists even on freestanding compilers. */
  1568. #ifdef __STDC__
  1569. # include <limits.h>
  1570. #else
  1571. # include <assert.h>
  1572. #endif
  1573. #undef $2
  1574. /* Override any GCC internal prototype to avoid an error.
  1575. Use char because int might match the return type of a GCC
  1576. builtin and then its argument prototype would still apply. */
  1577. #ifdef __cplusplus
  1578. extern "C"
  1579. #endif
  1580. char $2 ();
  1581. /* The GNU C library defines this for functions which it implements
  1582. to always fail with ENOSYS. Some functions are actually named
  1583. something starting with __ and the normal name is an alias. */
  1584. #if defined __stub_$2 || defined __stub___$2
  1585. choke me
  1586. #endif
  1587. int
  1588. main ()
  1589. {
  1590. return $2 ();
  1591. ;
  1592. return 0;
  1593. }
  1594. _ACEOF
  1595. if ac_fn_c_try_link "$LINENO"; then :
  1596. eval "$3=yes"
  1597. else
  1598. eval "$3=no"
  1599. fi
  1600. rm -f core conftest.err conftest.$ac_objext \
  1601. conftest$ac_exeext conftest.$ac_ext
  1602. fi
  1603. eval ac_res=\$$3
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1605. $as_echo "$ac_res" >&6; }
  1606. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1607. } # ac_fn_c_check_func
  1608. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1609. # -------------------------------------------
  1610. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1611. # variable VAR accordingly.
  1612. ac_fn_c_check_type ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. eval "$3=no"
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. $4
  1624. int
  1625. main ()
  1626. {
  1627. if (sizeof ($2))
  1628. return 0;
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. if ac_fn_c_try_compile "$LINENO"; then :
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. int
  1638. main ()
  1639. {
  1640. if (sizeof (($2)))
  1641. return 0;
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_c_try_compile "$LINENO"; then :
  1647. else
  1648. eval "$3=yes"
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1653. fi
  1654. eval ac_res=\$$3
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1656. $as_echo "$ac_res" >&6; }
  1657. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1658. } # ac_fn_c_check_type
  1659. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1660. # --------------------------------------------
  1661. # Tries to find the compile-time value of EXPR in a program that includes
  1662. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1663. # computed
  1664. ac_fn_c_compute_int ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. if test "$cross_compiling" = yes; then
  1668. # Depending upon the size, compute the lo and hi bounds.
  1669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1670. /* end confdefs.h. */
  1671. $4
  1672. int
  1673. main ()
  1674. {
  1675. static int test_array [1 - 2 * !(($2) >= 0)];
  1676. test_array [0] = 0
  1677. ;
  1678. return 0;
  1679. }
  1680. _ACEOF
  1681. if ac_fn_c_try_compile "$LINENO"; then :
  1682. ac_lo=0 ac_mid=0
  1683. while :; do
  1684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1685. /* end confdefs.h. */
  1686. $4
  1687. int
  1688. main ()
  1689. {
  1690. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1691. test_array [0] = 0
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_compile "$LINENO"; then :
  1697. ac_hi=$ac_mid; break
  1698. else
  1699. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1700. if test $ac_lo -le $ac_mid; then
  1701. ac_lo= ac_hi=
  1702. break
  1703. fi
  1704. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1707. done
  1708. else
  1709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1710. /* end confdefs.h. */
  1711. $4
  1712. int
  1713. main ()
  1714. {
  1715. static int test_array [1 - 2 * !(($2) < 0)];
  1716. test_array [0] = 0
  1717. ;
  1718. return 0;
  1719. }
  1720. _ACEOF
  1721. if ac_fn_c_try_compile "$LINENO"; then :
  1722. ac_hi=-1 ac_mid=-1
  1723. while :; do
  1724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end confdefs.h. */
  1726. $4
  1727. int
  1728. main ()
  1729. {
  1730. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1731. test_array [0] = 0
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. if ac_fn_c_try_compile "$LINENO"; then :
  1737. ac_lo=$ac_mid; break
  1738. else
  1739. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1740. if test $ac_mid -le $ac_hi; then
  1741. ac_lo= ac_hi=
  1742. break
  1743. fi
  1744. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1745. fi
  1746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1747. done
  1748. else
  1749. ac_lo= ac_hi=
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. fi
  1753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. # Binary search between lo and hi bounds.
  1755. while test "x$ac_lo" != "x$ac_hi"; do
  1756. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $4
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1764. test_array [0] = 0
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. if ac_fn_c_try_compile "$LINENO"; then :
  1770. ac_hi=$ac_mid
  1771. else
  1772. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1773. fi
  1774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1775. done
  1776. case $ac_lo in #((
  1777. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1778. '') ac_retval=1 ;;
  1779. esac
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. static long int longval () { return $2; }
  1785. static unsigned long int ulongval () { return $2; }
  1786. #include <stdio.h>
  1787. #include <stdlib.h>
  1788. int
  1789. main ()
  1790. {
  1791. FILE *f = fopen ("conftest.val", "w");
  1792. if (! f)
  1793. return 1;
  1794. if (($2) < 0)
  1795. {
  1796. long int i = longval ();
  1797. if (i != ($2))
  1798. return 1;
  1799. fprintf (f, "%ld", i);
  1800. }
  1801. else
  1802. {
  1803. unsigned long int i = ulongval ();
  1804. if (i != ($2))
  1805. return 1;
  1806. fprintf (f, "%lu", i);
  1807. }
  1808. /* Do not output a trailing newline, as this causes \r\n confusion
  1809. on some platforms. */
  1810. return ferror (f) || fclose (f) != 0;
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_run "$LINENO"; then :
  1816. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1817. else
  1818. ac_retval=1
  1819. fi
  1820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1821. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1822. rm -f conftest.val
  1823. fi
  1824. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1825. return $ac_retval
  1826. } # ac_fn_c_compute_int
  1827. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1828. # -------------------------------------------------------
  1829. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1830. # the include files in INCLUDES and setting the cache variable VAR
  1831. # accordingly.
  1832. ac_fn_c_check_header_mongrel ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1837. $as_echo_n "checking for $2... " >&6; }
  1838. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1839. $as_echo_n "(cached) " >&6
  1840. fi
  1841. eval ac_res=\$$3
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1843. $as_echo "$ac_res" >&6; }
  1844. else
  1845. # Is the header compilable?
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1847. $as_echo_n "checking $2 usability... " >&6; }
  1848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1849. /* end confdefs.h. */
  1850. $4
  1851. #include <$2>
  1852. _ACEOF
  1853. if ac_fn_c_try_compile "$LINENO"; then :
  1854. ac_header_compiler=yes
  1855. else
  1856. ac_header_compiler=no
  1857. fi
  1858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1860. $as_echo "$ac_header_compiler" >&6; }
  1861. # Is the header present?
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1863. $as_echo_n "checking $2 presence... " >&6; }
  1864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1865. /* end confdefs.h. */
  1866. #include <$2>
  1867. _ACEOF
  1868. if ac_fn_c_try_cpp "$LINENO"; then :
  1869. ac_header_preproc=yes
  1870. else
  1871. ac_header_preproc=no
  1872. fi
  1873. rm -f conftest.err conftest.$ac_ext
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1875. $as_echo "$ac_header_preproc" >&6; }
  1876. # So? What about this header?
  1877. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1878. yes:no: )
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1880. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1882. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1883. ;;
  1884. no:yes:* )
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1886. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1888. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1890. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1892. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1894. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1895. ;;
  1896. esac
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1898. $as_echo_n "checking for $2... " >&6; }
  1899. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1900. $as_echo_n "(cached) " >&6
  1901. else
  1902. eval "$3=\$ac_header_compiler"
  1903. fi
  1904. eval ac_res=\$$3
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907. fi
  1908. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1909. } # ac_fn_c_check_header_mongrel
  1910. cat >config.log <<_ACEOF
  1911. This file contains any messages produced by compilers while
  1912. running configure, to aid debugging if configure makes a mistake.
  1913. It was created by GNU Atomic Library $as_me 1.0, which was
  1914. generated by GNU Autoconf 2.64. Invocation command line was
  1915. $ $0 $@
  1916. _ACEOF
  1917. exec 5>>config.log
  1918. {
  1919. cat <<_ASUNAME
  1920. ## --------- ##
  1921. ## Platform. ##
  1922. ## --------- ##
  1923. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1924. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1925. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1926. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1927. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1928. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1929. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1930. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1931. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1932. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1933. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1934. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1935. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1936. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1937. _ASUNAME
  1938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1939. for as_dir in $PATH
  1940. do
  1941. IFS=$as_save_IFS
  1942. test -z "$as_dir" && as_dir=.
  1943. $as_echo "PATH: $as_dir"
  1944. done
  1945. IFS=$as_save_IFS
  1946. } >&5
  1947. cat >&5 <<_ACEOF
  1948. ## ----------- ##
  1949. ## Core tests. ##
  1950. ## ----------- ##
  1951. _ACEOF
  1952. # Keep a trace of the command line.
  1953. # Strip out --no-create and --no-recursion so they do not pile up.
  1954. # Strip out --silent because we don't want to record it for future runs.
  1955. # Also quote any args containing shell meta-characters.
  1956. # Make two passes to allow for proper duplicate-argument suppression.
  1957. ac_configure_args=
  1958. ac_configure_args0=
  1959. ac_configure_args1=
  1960. ac_must_keep_next=false
  1961. for ac_pass in 1 2
  1962. do
  1963. for ac_arg
  1964. do
  1965. case $ac_arg in
  1966. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1967. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1968. | -silent | --silent | --silen | --sile | --sil)
  1969. continue ;;
  1970. *\'*)
  1971. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1972. esac
  1973. case $ac_pass in
  1974. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1975. 2)
  1976. as_fn_append ac_configure_args1 " '$ac_arg'"
  1977. if test $ac_must_keep_next = true; then
  1978. ac_must_keep_next=false # Got value, back to normal.
  1979. else
  1980. case $ac_arg in
  1981. *=* | --config-cache | -C | -disable-* | --disable-* \
  1982. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1983. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1984. | -with-* | --with-* | -without-* | --without-* | --x)
  1985. case "$ac_configure_args0 " in
  1986. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1987. esac
  1988. ;;
  1989. -* ) ac_must_keep_next=true ;;
  1990. esac
  1991. fi
  1992. as_fn_append ac_configure_args " '$ac_arg'"
  1993. ;;
  1994. esac
  1995. done
  1996. done
  1997. { ac_configure_args0=; unset ac_configure_args0;}
  1998. { ac_configure_args1=; unset ac_configure_args1;}
  1999. # When interrupted or exit'd, cleanup temporary files, and complete
  2000. # config.log. We remove comments because anyway the quotes in there
  2001. # would cause problems or look ugly.
  2002. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2003. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2004. trap 'exit_status=$?
  2005. # Save into config.log some information that might help in debugging.
  2006. {
  2007. echo
  2008. cat <<\_ASBOX
  2009. ## ---------------- ##
  2010. ## Cache variables. ##
  2011. ## ---------------- ##
  2012. _ASBOX
  2013. echo
  2014. # The following way of writing the cache mishandles newlines in values,
  2015. (
  2016. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2017. eval ac_val=\$$ac_var
  2018. case $ac_val in #(
  2019. *${as_nl}*)
  2020. case $ac_var in #(
  2021. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2022. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2023. esac
  2024. case $ac_var in #(
  2025. _ | IFS | as_nl) ;; #(
  2026. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2027. *) { eval $ac_var=; unset $ac_var;} ;;
  2028. esac ;;
  2029. esac
  2030. done
  2031. (set) 2>&1 |
  2032. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2033. *${as_nl}ac_space=\ *)
  2034. sed -n \
  2035. "s/'\''/'\''\\\\'\'''\''/g;
  2036. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2037. ;; #(
  2038. *)
  2039. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2040. ;;
  2041. esac |
  2042. sort
  2043. )
  2044. echo
  2045. cat <<\_ASBOX
  2046. ## ----------------- ##
  2047. ## Output variables. ##
  2048. ## ----------------- ##
  2049. _ASBOX
  2050. echo
  2051. for ac_var in $ac_subst_vars
  2052. do
  2053. eval ac_val=\$$ac_var
  2054. case $ac_val in
  2055. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2056. esac
  2057. $as_echo "$ac_var='\''$ac_val'\''"
  2058. done | sort
  2059. echo
  2060. if test -n "$ac_subst_files"; then
  2061. cat <<\_ASBOX
  2062. ## ------------------- ##
  2063. ## File substitutions. ##
  2064. ## ------------------- ##
  2065. _ASBOX
  2066. echo
  2067. for ac_var in $ac_subst_files
  2068. do
  2069. eval ac_val=\$$ac_var
  2070. case $ac_val in
  2071. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2072. esac
  2073. $as_echo "$ac_var='\''$ac_val'\''"
  2074. done | sort
  2075. echo
  2076. fi
  2077. if test -s confdefs.h; then
  2078. cat <<\_ASBOX
  2079. ## ----------- ##
  2080. ## confdefs.h. ##
  2081. ## ----------- ##
  2082. _ASBOX
  2083. echo
  2084. cat confdefs.h
  2085. echo
  2086. fi
  2087. test "$ac_signal" != 0 &&
  2088. $as_echo "$as_me: caught signal $ac_signal"
  2089. $as_echo "$as_me: exit $exit_status"
  2090. } >&5
  2091. rm -f core *.core core.conftest.* &&
  2092. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2093. exit $exit_status
  2094. ' 0
  2095. for ac_signal in 1 2 13 15; do
  2096. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2097. done
  2098. ac_signal=0
  2099. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2100. rm -f -r conftest* confdefs.h
  2101. $as_echo "/* confdefs.h */" > confdefs.h
  2102. # Predefined preprocessor variables.
  2103. cat >>confdefs.h <<_ACEOF
  2104. #define PACKAGE_NAME "$PACKAGE_NAME"
  2105. _ACEOF
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_STRING "$PACKAGE_STRING"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2117. _ACEOF
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE_URL "$PACKAGE_URL"
  2120. _ACEOF
  2121. # Let the site file select an alternate cache file if it wants to.
  2122. # Prefer an explicitly selected file to automatically selected ones.
  2123. ac_site_file1=NONE
  2124. ac_site_file2=NONE
  2125. if test -n "$CONFIG_SITE"; then
  2126. ac_site_file1=$CONFIG_SITE
  2127. elif test "x$prefix" != xNONE; then
  2128. ac_site_file1=$prefix/share/config.site
  2129. ac_site_file2=$prefix/etc/config.site
  2130. else
  2131. ac_site_file1=$ac_default_prefix/share/config.site
  2132. ac_site_file2=$ac_default_prefix/etc/config.site
  2133. fi
  2134. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2135. do
  2136. test "x$ac_site_file" = xNONE && continue
  2137. if test -r "$ac_site_file"; then
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2139. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2140. sed 's/^/| /' "$ac_site_file" >&5
  2141. . "$ac_site_file"
  2142. fi
  2143. done
  2144. if test -r "$cache_file"; then
  2145. # Some versions of bash will fail to source /dev/null (special
  2146. # files actually), so we avoid doing that.
  2147. if test -f "$cache_file"; then
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2149. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2150. case $cache_file in
  2151. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2152. *) . "./$cache_file";;
  2153. esac
  2154. fi
  2155. else
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2157. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2158. >$cache_file
  2159. fi
  2160. # Check that the precious variables saved in the cache have kept the same
  2161. # value.
  2162. ac_cache_corrupted=false
  2163. for ac_var in $ac_precious_vars; do
  2164. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2165. eval ac_new_set=\$ac_env_${ac_var}_set
  2166. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2167. eval ac_new_val=\$ac_env_${ac_var}_value
  2168. case $ac_old_set,$ac_new_set in
  2169. set,)
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2171. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2172. ac_cache_corrupted=: ;;
  2173. ,set)
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2175. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2176. ac_cache_corrupted=: ;;
  2177. ,);;
  2178. *)
  2179. if test "x$ac_old_val" != "x$ac_new_val"; then
  2180. # differences in whitespace do not lead to failure.
  2181. ac_old_val_w=`echo x $ac_old_val`
  2182. ac_new_val_w=`echo x $ac_new_val`
  2183. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2185. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2186. ac_cache_corrupted=:
  2187. else
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2189. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2190. eval $ac_var=\$ac_old_val
  2191. fi
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2193. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2195. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2196. fi;;
  2197. esac
  2198. # Pass precious variables to config.status.
  2199. if test "$ac_new_set" = set; then
  2200. case $ac_new_val in
  2201. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2202. *) ac_arg=$ac_var=$ac_new_val ;;
  2203. esac
  2204. case " $ac_configure_args " in
  2205. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2206. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2207. esac
  2208. fi
  2209. done
  2210. if $ac_cache_corrupted; then
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2214. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2215. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2216. fi
  2217. ## -------------------- ##
  2218. ## Main body of script. ##
  2219. ## -------------------- ##
  2220. ac_ext=c
  2221. ac_cpp='$CPP $CPPFLAGS'
  2222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2225. ac_config_headers="$ac_config_headers auto-config.h"
  2226. # -------
  2227. # Options
  2228. # -------
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2230. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2231. # Check whether --enable-version-specific-runtime-libs was given.
  2232. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2233. enableval=$enable_version_specific_runtime_libs;
  2234. case "$enableval" in
  2235. yes|no) ;;
  2236. *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2237. esac
  2238. else
  2239. enable_version_specific_runtime_libs=no
  2240. fi
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2242. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2243. # We would like our source tree to be readonly. However when releases or
  2244. # pre-releases are generated, the flex/bison generated files as well as the
  2245. # various formats of manuals need to be included along with the rest of the
  2246. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2247. # just that.
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2249. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2250. # Check whether --enable-generated-files-in-srcdir was given.
  2251. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2252. enableval=$enable_generated_files_in_srcdir;
  2253. case "$enableval" in
  2254. yes|no) ;;
  2255. *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2256. esac
  2257. else
  2258. enable_generated_files_in_srcdir=no
  2259. fi
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2261. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2262. if test "$enable_generated_files_in_srcdir" = yes; then
  2263. GENINSRC_TRUE=
  2264. GENINSRC_FALSE='#'
  2265. else
  2266. GENINSRC_TRUE='#'
  2267. GENINSRC_FALSE=
  2268. fi
  2269. # -------
  2270. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2271. #
  2272. # You will slowly go insane if you do not grok the following fact: when
  2273. # building this library, the top-level /target/ becomes the library's /host/.
  2274. #
  2275. # configure then causes --target to default to --host, exactly like any
  2276. # other package using autoconf. Therefore, 'target' and 'host' will
  2277. # always be the same. This makes sense both for native and cross compilers
  2278. # just think about it for a little while. :-)
  2279. #
  2280. # Also, if this library is being configured as part of a cross compiler, the
  2281. # top-level configure script will pass the "real" host as $with_cross_host.
  2282. #
  2283. # Do not delete or change the following two lines. For why, see
  2284. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2285. ac_aux_dir=
  2286. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2287. for ac_t in install-sh install.sh shtool; do
  2288. if test -f "$ac_dir/$ac_t"; then
  2289. ac_aux_dir=$ac_dir
  2290. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2291. break 2
  2292. fi
  2293. done
  2294. done
  2295. if test -z "$ac_aux_dir"; then
  2296. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2297. fi
  2298. # These three variables are undocumented and unsupported,
  2299. # and are intended to be withdrawn in a future Autoconf release.
  2300. # They can cause serious problems if a builder's source tree is in a directory
  2301. # whose full name contains unusual characters.
  2302. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2303. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2304. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2305. # Make sure we can run config.sub.
  2306. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2307. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2309. $as_echo_n "checking build system type... " >&6; }
  2310. if test "${ac_cv_build+set}" = set; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. ac_build_alias=$build_alias
  2314. test "x$ac_build_alias" = x &&
  2315. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2316. test "x$ac_build_alias" = x &&
  2317. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2318. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2319. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2320. fi
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2322. $as_echo "$ac_cv_build" >&6; }
  2323. case $ac_cv_build in
  2324. *-*-*) ;;
  2325. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2326. esac
  2327. build=$ac_cv_build
  2328. ac_save_IFS=$IFS; IFS='-'
  2329. set x $ac_cv_build
  2330. shift
  2331. build_cpu=$1
  2332. build_vendor=$2
  2333. shift; shift
  2334. # Remember, the first character of IFS is used to create $*,
  2335. # except with old shells:
  2336. build_os=$*
  2337. IFS=$ac_save_IFS
  2338. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2340. $as_echo_n "checking host system type... " >&6; }
  2341. if test "${ac_cv_host+set}" = set; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. if test "x$host_alias" = x; then
  2345. ac_cv_host=$ac_cv_build
  2346. else
  2347. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2348. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2349. fi
  2350. fi
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2352. $as_echo "$ac_cv_host" >&6; }
  2353. case $ac_cv_host in
  2354. *-*-*) ;;
  2355. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2356. esac
  2357. host=$ac_cv_host
  2358. ac_save_IFS=$IFS; IFS='-'
  2359. set x $ac_cv_host
  2360. shift
  2361. host_cpu=$1
  2362. host_vendor=$2
  2363. shift; shift
  2364. # Remember, the first character of IFS is used to create $*,
  2365. # except with old shells:
  2366. host_os=$*
  2367. IFS=$ac_save_IFS
  2368. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2370. $as_echo_n "checking target system type... " >&6; }
  2371. if test "${ac_cv_target+set}" = set; then :
  2372. $as_echo_n "(cached) " >&6
  2373. else
  2374. if test "x$target_alias" = x; then
  2375. ac_cv_target=$ac_cv_host
  2376. else
  2377. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2378. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2379. fi
  2380. fi
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2382. $as_echo "$ac_cv_target" >&6; }
  2383. case $ac_cv_target in
  2384. *-*-*) ;;
  2385. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2386. esac
  2387. target=$ac_cv_target
  2388. ac_save_IFS=$IFS; IFS='-'
  2389. set x $ac_cv_target
  2390. shift
  2391. target_cpu=$1
  2392. target_vendor=$2
  2393. shift; shift
  2394. # Remember, the first character of IFS is used to create $*,
  2395. # except with old shells:
  2396. target_os=$*
  2397. IFS=$ac_save_IFS
  2398. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2399. # The aliases save the names the user supplied, while $host etc.
  2400. # will get canonicalized.
  2401. test -n "$target_alias" &&
  2402. test "$program_prefix$program_suffix$program_transform_name" = \
  2403. NONENONEs,x,x, &&
  2404. program_prefix=${target_alias}-
  2405. target_alias=${target_alias-$host_alias}
  2406. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2407. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2408. # 1.9.0: minimum required version
  2409. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2410. # of other PACKAGE_* variables will, however, and there's nothing
  2411. # we can do about that; they come from AC_INIT).
  2412. # no-dist: we don't want 'dist' and related rules.
  2413. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2414. # file in the top srcdir, etc, etc), so stop complaining.
  2415. # -Wall: turns on all automake warnings...
  2416. # -Wno-portability: ...except this one, since GNU make is required.
  2417. # -Wno-override: ... and this one, since we do want this in testsuite.
  2418. am__api_version='1.11'
  2419. # Find a good install program. We prefer a C program (faster),
  2420. # so one script is as good as another. But avoid the broken or
  2421. # incompatible versions:
  2422. # SysV /etc/install, /usr/sbin/install
  2423. # SunOS /usr/etc/install
  2424. # IRIX /sbin/install
  2425. # AIX /bin/install
  2426. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2427. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2428. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2429. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2430. # OS/2's system install, which has a completely different semantic
  2431. # ./install, which can be erroneously created by make from ./install.sh.
  2432. # Reject install programs that cannot install multiple files.
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2434. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2435. if test -z "$INSTALL"; then
  2436. if test "${ac_cv_path_install+set}" = set; then :
  2437. $as_echo_n "(cached) " >&6
  2438. else
  2439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2440. for as_dir in $PATH
  2441. do
  2442. IFS=$as_save_IFS
  2443. test -z "$as_dir" && as_dir=.
  2444. # Account for people who put trailing slashes in PATH elements.
  2445. case $as_dir/ in #((
  2446. ./ | .// | /[cC]/* | \
  2447. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2448. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2449. /usr/ucb/* ) ;;
  2450. *)
  2451. # OSF1 and SCO ODT 3.0 have their own names for install.
  2452. # Don't use installbsd from OSF since it installs stuff as root
  2453. # by default.
  2454. for ac_prog in ginstall scoinst install; do
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2457. if test $ac_prog = install &&
  2458. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2459. # AIX install. It has an incompatible calling convention.
  2460. :
  2461. elif test $ac_prog = install &&
  2462. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2463. # program-specific install script used by HP pwplus--don't use.
  2464. :
  2465. else
  2466. rm -rf conftest.one conftest.two conftest.dir
  2467. echo one > conftest.one
  2468. echo two > conftest.two
  2469. mkdir conftest.dir
  2470. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2471. test -s conftest.one && test -s conftest.two &&
  2472. test -s conftest.dir/conftest.one &&
  2473. test -s conftest.dir/conftest.two
  2474. then
  2475. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2476. break 3
  2477. fi
  2478. fi
  2479. fi
  2480. done
  2481. done
  2482. ;;
  2483. esac
  2484. done
  2485. IFS=$as_save_IFS
  2486. rm -rf conftest.one conftest.two conftest.dir
  2487. fi
  2488. if test "${ac_cv_path_install+set}" = set; then
  2489. INSTALL=$ac_cv_path_install
  2490. else
  2491. # As a last resort, use the slow shell script. Don't cache a
  2492. # value for INSTALL within a source directory, because that will
  2493. # break other packages using the cache if that directory is
  2494. # removed, or if the value is a relative name.
  2495. INSTALL=$ac_install_sh
  2496. fi
  2497. fi
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2499. $as_echo "$INSTALL" >&6; }
  2500. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2501. # It thinks the first close brace ends the variable substitution.
  2502. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2503. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2504. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2506. $as_echo_n "checking whether build environment is sane... " >&6; }
  2507. # Just in case
  2508. sleep 1
  2509. echo timestamp > conftest.file
  2510. # Reject unsafe characters in $srcdir or the absolute working directory
  2511. # name. Accept space and tab only in the latter.
  2512. am_lf='
  2513. '
  2514. case `pwd` in
  2515. *[\\\"\#\$\&\'\`$am_lf]*)
  2516. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2517. esac
  2518. case $srcdir in
  2519. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2520. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2521. esac
  2522. # Do `set' in a subshell so we don't clobber the current shell's
  2523. # arguments. Must try -L first in case configure is actually a
  2524. # symlink; some systems play weird games with the mod time of symlinks
  2525. # (eg FreeBSD returns the mod time of the symlink's containing
  2526. # directory).
  2527. if (
  2528. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2529. if test "$*" = "X"; then
  2530. # -L didn't work.
  2531. set X `ls -t "$srcdir/configure" conftest.file`
  2532. fi
  2533. rm -f conftest.file
  2534. if test "$*" != "X $srcdir/configure conftest.file" \
  2535. && test "$*" != "X conftest.file $srcdir/configure"; then
  2536. # If neither matched, then we have a broken ls. This can happen
  2537. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2538. # broken ls alias from the environment. This has actually
  2539. # happened. Such a system could not be considered "sane".
  2540. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2541. alias in your environment" "$LINENO" 5
  2542. fi
  2543. test "$2" = conftest.file
  2544. )
  2545. then
  2546. # Ok.
  2547. :
  2548. else
  2549. as_fn_error "newly created file is older than distributed files!
  2550. Check your system clock" "$LINENO" 5
  2551. fi
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2553. $as_echo "yes" >&6; }
  2554. test "$program_prefix" != NONE &&
  2555. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2556. # Use a double $ so make ignores it.
  2557. test "$program_suffix" != NONE &&
  2558. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2559. # Double any \ or $.
  2560. # By default was `s,x,x', remove it if useless.
  2561. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2562. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2563. # expand $ac_aux_dir to an absolute path
  2564. am_aux_dir=`cd $ac_aux_dir && pwd`
  2565. if test x"${MISSING+set}" != xset; then
  2566. case $am_aux_dir in
  2567. *\ * | *\ *)
  2568. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2569. *)
  2570. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2571. esac
  2572. fi
  2573. # Use eval to expand $SHELL
  2574. if eval "$MISSING --run true"; then
  2575. am_missing_run="$MISSING --run "
  2576. else
  2577. am_missing_run=
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2579. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2580. fi
  2581. if test x"${install_sh}" != xset; then
  2582. case $am_aux_dir in
  2583. *\ * | *\ *)
  2584. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2585. *)
  2586. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2587. esac
  2588. fi
  2589. # Installed binaries are usually stripped using `strip' when the user
  2590. # run `make install-strip'. However `strip' might not be the right
  2591. # tool to use in cross-compilation environments, therefore Automake
  2592. # will honor the `STRIP' environment variable to overrule this program.
  2593. if test "$cross_compiling" != no; then
  2594. if test -n "$ac_tool_prefix"; then
  2595. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2596. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2598. $as_echo_n "checking for $ac_word... " >&6; }
  2599. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2600. $as_echo_n "(cached) " >&6
  2601. else
  2602. if test -n "$STRIP"; then
  2603. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_exec_ext in '' $ac_executable_extensions; do
  2611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2612. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2614. break 2
  2615. fi
  2616. done
  2617. done
  2618. IFS=$as_save_IFS
  2619. fi
  2620. fi
  2621. STRIP=$ac_cv_prog_STRIP
  2622. if test -n "$STRIP"; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2624. $as_echo "$STRIP" >&6; }
  2625. else
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2627. $as_echo "no" >&6; }
  2628. fi
  2629. fi
  2630. if test -z "$ac_cv_prog_STRIP"; then
  2631. ac_ct_STRIP=$STRIP
  2632. # Extract the first word of "strip", so it can be a program name with args.
  2633. set dummy strip; ac_word=$2
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2635. $as_echo_n "checking for $ac_word... " >&6; }
  2636. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. if test -n "$ac_ct_STRIP"; then
  2640. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2641. else
  2642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2643. for as_dir in $PATH
  2644. do
  2645. IFS=$as_save_IFS
  2646. test -z "$as_dir" && as_dir=.
  2647. for ac_exec_ext in '' $ac_executable_extensions; do
  2648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2649. ac_cv_prog_ac_ct_STRIP="strip"
  2650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2651. break 2
  2652. fi
  2653. done
  2654. done
  2655. IFS=$as_save_IFS
  2656. fi
  2657. fi
  2658. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2659. if test -n "$ac_ct_STRIP"; then
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2661. $as_echo "$ac_ct_STRIP" >&6; }
  2662. else
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2664. $as_echo "no" >&6; }
  2665. fi
  2666. if test "x$ac_ct_STRIP" = x; then
  2667. STRIP=":"
  2668. else
  2669. case $cross_compiling:$ac_tool_warned in
  2670. yes:)
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2673. ac_tool_warned=yes ;;
  2674. esac
  2675. STRIP=$ac_ct_STRIP
  2676. fi
  2677. else
  2678. STRIP="$ac_cv_prog_STRIP"
  2679. fi
  2680. fi
  2681. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2683. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2684. if test -z "$MKDIR_P"; then
  2685. if test "${ac_cv_path_mkdir+set}" = set; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2690. do
  2691. IFS=$as_save_IFS
  2692. test -z "$as_dir" && as_dir=.
  2693. for ac_prog in mkdir gmkdir; do
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2696. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2697. 'mkdir (GNU coreutils) '* | \
  2698. 'mkdir (coreutils) '* | \
  2699. 'mkdir (fileutils) '4.1*)
  2700. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2701. break 3;;
  2702. esac
  2703. done
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi
  2708. if test "${ac_cv_path_mkdir+set}" = set; then
  2709. MKDIR_P="$ac_cv_path_mkdir -p"
  2710. else
  2711. # As a last resort, use the slow shell script. Don't cache a
  2712. # value for MKDIR_P within a source directory, because that will
  2713. # break other packages using the cache if that directory is
  2714. # removed, or if the value is a relative name.
  2715. test -d ./--version && rmdir ./--version
  2716. MKDIR_P="$ac_install_sh -d"
  2717. fi
  2718. fi
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2720. $as_echo "$MKDIR_P" >&6; }
  2721. mkdir_p="$MKDIR_P"
  2722. case $mkdir_p in
  2723. [\\/$]* | ?:[\\/]*) ;;
  2724. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2725. esac
  2726. for ac_prog in gawk mawk nawk awk
  2727. do
  2728. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2729. set dummy $ac_prog; ac_word=$2
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2731. $as_echo_n "checking for $ac_word... " >&6; }
  2732. if test "${ac_cv_prog_AWK+set}" = set; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. if test -n "$AWK"; then
  2736. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2737. else
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. for ac_exec_ext in '' $ac_executable_extensions; do
  2744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2745. ac_cv_prog_AWK="$ac_prog"
  2746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2747. break 2
  2748. fi
  2749. done
  2750. done
  2751. IFS=$as_save_IFS
  2752. fi
  2753. fi
  2754. AWK=$ac_cv_prog_AWK
  2755. if test -n "$AWK"; then
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2757. $as_echo "$AWK" >&6; }
  2758. else
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2760. $as_echo "no" >&6; }
  2761. fi
  2762. test -n "$AWK" && break
  2763. done
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2765. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2766. set x ${MAKE-make}
  2767. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2768. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2769. $as_echo_n "(cached) " >&6
  2770. else
  2771. cat >conftest.make <<\_ACEOF
  2772. SHELL = /bin/sh
  2773. all:
  2774. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2775. _ACEOF
  2776. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2777. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2778. *@@@%%%=?*=@@@%%%*)
  2779. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2780. *)
  2781. eval ac_cv_prog_make_${ac_make}_set=no;;
  2782. esac
  2783. rm -f conftest.make
  2784. fi
  2785. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2787. $as_echo "yes" >&6; }
  2788. SET_MAKE=
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. SET_MAKE="MAKE=${MAKE-make}"
  2793. fi
  2794. rm -rf .tst 2>/dev/null
  2795. mkdir .tst 2>/dev/null
  2796. if test -d .tst; then
  2797. am__leading_dot=.
  2798. else
  2799. am__leading_dot=_
  2800. fi
  2801. rmdir .tst 2>/dev/null
  2802. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2803. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2804. # is not polluted with repeated "-I."
  2805. am__isrc=' -I$(srcdir)'
  2806. # test to see if srcdir already configured
  2807. if test -f $srcdir/config.status; then
  2808. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2809. fi
  2810. fi
  2811. # test whether we have cygpath
  2812. if test -z "$CYGPATH_W"; then
  2813. if (cygpath --version) >/dev/null 2>/dev/null; then
  2814. CYGPATH_W='cygpath -w'
  2815. else
  2816. CYGPATH_W=echo
  2817. fi
  2818. fi
  2819. # Define the identity of the package.
  2820. PACKAGE='libatomic'
  2821. VERSION='1.0'
  2822. cat >>confdefs.h <<_ACEOF
  2823. #define PACKAGE "$PACKAGE"
  2824. _ACEOF
  2825. cat >>confdefs.h <<_ACEOF
  2826. #define VERSION "$VERSION"
  2827. _ACEOF
  2828. # Some tools Automake needs.
  2829. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2830. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2831. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2832. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2833. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2834. # We need awk for the "check" target. The system "awk" is bad on
  2835. # some platforms.
  2836. # Always define AMTAR for backward compatibility. Yes, it's still used
  2837. # in the wild :-( We should find a proper way to deprecate it ...
  2838. AMTAR='$${TAR-tar}'
  2839. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2840. # Default to --enable-multilib
  2841. # Check whether --enable-multilib was given.
  2842. if test "${enable_multilib+set}" = set; then :
  2843. enableval=$enable_multilib; case "$enableval" in
  2844. yes) multilib=yes ;;
  2845. no) multilib=no ;;
  2846. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2847. esac
  2848. else
  2849. multilib=yes
  2850. fi
  2851. # We may get other options which we leave undocumented:
  2852. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2853. # See config-ml.in if you want the gory details.
  2854. if test "$srcdir" = "."; then
  2855. if test "$with_target_subdir" != "."; then
  2856. multi_basedir="$srcdir/$with_multisrctop../.."
  2857. else
  2858. multi_basedir="$srcdir/$with_multisrctop.."
  2859. fi
  2860. else
  2861. multi_basedir="$srcdir/.."
  2862. fi
  2863. # Even if the default multilib is not a cross compilation,
  2864. # it may be that some of the other multilibs are.
  2865. if test $cross_compiling = no && test $multilib = yes \
  2866. && test "x${with_multisubdir}" != x ; then
  2867. cross_compiling=maybe
  2868. fi
  2869. ac_config_commands="$ac_config_commands default-1"
  2870. # Calculate toolexeclibdir
  2871. # Also toolexecdir, though it's only used in toolexeclibdir
  2872. case ${enable_version_specific_runtime_libs} in
  2873. yes)
  2874. # Need the gcc compiler version to know where to install libraries
  2875. # and header files if --enable-version-specific-runtime-libs option
  2876. # is selected.
  2877. toolexecdir='$(libdir)/gcc/$(target_alias)'
  2878. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2879. ;;
  2880. no)
  2881. if test -n "$with_cross_host" &&
  2882. test x"$with_cross_host" != x"no"; then
  2883. # Install a library built with a cross compiler in tooldir, not libdir.
  2884. toolexecdir='$(exec_prefix)/$(target_alias)'
  2885. toolexeclibdir='$(toolexecdir)/lib'
  2886. else
  2887. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  2888. toolexeclibdir='$(libdir)'
  2889. fi
  2890. multi_os_directory=`$CC -print-multi-os-directory`
  2891. case $multi_os_directory in
  2892. .) ;; # Avoid trailing /.
  2893. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  2894. esac
  2895. ;;
  2896. esac
  2897. # Check the compiler.
  2898. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2899. # We must force CC to /not/ be precious variables; otherwise
  2900. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2901. # As a side effect, we have to subst CFLAGS ourselves.
  2902. ac_ext=c
  2903. ac_cpp='$CPP $CPPFLAGS'
  2904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2907. if test -n "$ac_tool_prefix"; then
  2908. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2909. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2911. $as_echo_n "checking for $ac_word... " >&6; }
  2912. if test "${ac_cv_prog_CC+set}" = set; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. if test -n "$CC"; then
  2916. ac_cv_prog_CC="$CC" # Let the user override the test.
  2917. else
  2918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2919. for as_dir in $PATH
  2920. do
  2921. IFS=$as_save_IFS
  2922. test -z "$as_dir" && as_dir=.
  2923. for ac_exec_ext in '' $ac_executable_extensions; do
  2924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2925. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2927. break 2
  2928. fi
  2929. done
  2930. done
  2931. IFS=$as_save_IFS
  2932. fi
  2933. fi
  2934. CC=$ac_cv_prog_CC
  2935. if test -n "$CC"; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2937. $as_echo "$CC" >&6; }
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. fi
  2942. fi
  2943. if test -z "$ac_cv_prog_CC"; then
  2944. ac_ct_CC=$CC
  2945. # Extract the first word of "gcc", so it can be a program name with args.
  2946. set dummy gcc; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$ac_ct_CC"; then
  2953. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2962. ac_cv_prog_ac_ct_CC="gcc"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2972. if test -n "$ac_ct_CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2974. $as_echo "$ac_ct_CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. if test "x$ac_ct_CC" = x; then
  2980. CC=""
  2981. else
  2982. case $cross_compiling:$ac_tool_warned in
  2983. yes:)
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2986. ac_tool_warned=yes ;;
  2987. esac
  2988. CC=$ac_ct_CC
  2989. fi
  2990. else
  2991. CC="$ac_cv_prog_CC"
  2992. fi
  2993. if test -z "$CC"; then
  2994. if test -n "$ac_tool_prefix"; then
  2995. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2996. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2998. $as_echo_n "checking for $ac_word... " >&6; }
  2999. if test "${ac_cv_prog_CC+set}" = set; then :
  3000. $as_echo_n "(cached) " >&6
  3001. else
  3002. if test -n "$CC"; then
  3003. ac_cv_prog_CC="$CC" # Let the user override the test.
  3004. else
  3005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3006. for as_dir in $PATH
  3007. do
  3008. IFS=$as_save_IFS
  3009. test -z "$as_dir" && as_dir=.
  3010. for ac_exec_ext in '' $ac_executable_extensions; do
  3011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3012. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3014. break 2
  3015. fi
  3016. done
  3017. done
  3018. IFS=$as_save_IFS
  3019. fi
  3020. fi
  3021. CC=$ac_cv_prog_CC
  3022. if test -n "$CC"; then
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3024. $as_echo "$CC" >&6; }
  3025. else
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3027. $as_echo "no" >&6; }
  3028. fi
  3029. fi
  3030. fi
  3031. if test -z "$CC"; then
  3032. # Extract the first word of "cc", so it can be a program name with args.
  3033. set dummy cc; ac_word=$2
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3035. $as_echo_n "checking for $ac_word... " >&6; }
  3036. if test "${ac_cv_prog_CC+set}" = set; then :
  3037. $as_echo_n "(cached) " >&6
  3038. else
  3039. if test -n "$CC"; then
  3040. ac_cv_prog_CC="$CC" # Let the user override the test.
  3041. else
  3042. ac_prog_rejected=no
  3043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3044. for as_dir in $PATH
  3045. do
  3046. IFS=$as_save_IFS
  3047. test -z "$as_dir" && as_dir=.
  3048. for ac_exec_ext in '' $ac_executable_extensions; do
  3049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3050. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3051. ac_prog_rejected=yes
  3052. continue
  3053. fi
  3054. ac_cv_prog_CC="cc"
  3055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. IFS=$as_save_IFS
  3061. if test $ac_prog_rejected = yes; then
  3062. # We found a bogon in the path, so make sure we never use it.
  3063. set dummy $ac_cv_prog_CC
  3064. shift
  3065. if test $# != 0; then
  3066. # We chose a different compiler from the bogus one.
  3067. # However, it has the same basename, so the bogon will be chosen
  3068. # first if we set CC to just the basename; use the full file name.
  3069. shift
  3070. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3071. fi
  3072. fi
  3073. fi
  3074. fi
  3075. CC=$ac_cv_prog_CC
  3076. if test -n "$CC"; then
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3078. $as_echo "$CC" >&6; }
  3079. else
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3081. $as_echo "no" >&6; }
  3082. fi
  3083. fi
  3084. if test -z "$CC"; then
  3085. if test -n "$ac_tool_prefix"; then
  3086. for ac_prog in cl.exe
  3087. do
  3088. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3089. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3091. $as_echo_n "checking for $ac_word... " >&6; }
  3092. if test "${ac_cv_prog_CC+set}" = set; then :
  3093. $as_echo_n "(cached) " >&6
  3094. else
  3095. if test -n "$CC"; then
  3096. ac_cv_prog_CC="$CC" # Let the user override the test.
  3097. else
  3098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3099. for as_dir in $PATH
  3100. do
  3101. IFS=$as_save_IFS
  3102. test -z "$as_dir" && as_dir=.
  3103. for ac_exec_ext in '' $ac_executable_extensions; do
  3104. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3105. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3107. break 2
  3108. fi
  3109. done
  3110. done
  3111. IFS=$as_save_IFS
  3112. fi
  3113. fi
  3114. CC=$ac_cv_prog_CC
  3115. if test -n "$CC"; then
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3117. $as_echo "$CC" >&6; }
  3118. else
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3120. $as_echo "no" >&6; }
  3121. fi
  3122. test -n "$CC" && break
  3123. done
  3124. fi
  3125. if test -z "$CC"; then
  3126. ac_ct_CC=$CC
  3127. for ac_prog in cl.exe
  3128. do
  3129. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3130. set dummy $ac_prog; ac_word=$2
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3132. $as_echo_n "checking for $ac_word... " >&6; }
  3133. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. if test -n "$ac_ct_CC"; then
  3137. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3138. else
  3139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3140. for as_dir in $PATH
  3141. do
  3142. IFS=$as_save_IFS
  3143. test -z "$as_dir" && as_dir=.
  3144. for ac_exec_ext in '' $ac_executable_extensions; do
  3145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3146. ac_cv_prog_ac_ct_CC="$ac_prog"
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3148. break 2
  3149. fi
  3150. done
  3151. done
  3152. IFS=$as_save_IFS
  3153. fi
  3154. fi
  3155. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3156. if test -n "$ac_ct_CC"; then
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3158. $as_echo "$ac_ct_CC" >&6; }
  3159. else
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3161. $as_echo "no" >&6; }
  3162. fi
  3163. test -n "$ac_ct_CC" && break
  3164. done
  3165. if test "x$ac_ct_CC" = x; then
  3166. CC=""
  3167. else
  3168. case $cross_compiling:$ac_tool_warned in
  3169. yes:)
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3172. ac_tool_warned=yes ;;
  3173. esac
  3174. CC=$ac_ct_CC
  3175. fi
  3176. fi
  3177. fi
  3178. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3180. as_fn_error "no acceptable C compiler found in \$PATH
  3181. See \`config.log' for more details." "$LINENO" 5; }
  3182. # Provide some information about the compiler.
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3184. set X $ac_compile
  3185. ac_compiler=$2
  3186. for ac_option in --version -v -V -qversion; do
  3187. { { ac_try="$ac_compiler $ac_option >&5"
  3188. case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3195. ac_status=$?
  3196. if test -s conftest.err; then
  3197. sed '10a\
  3198. ... rest of stderr output deleted ...
  3199. 10q' conftest.err >conftest.er1
  3200. cat conftest.er1 >&5
  3201. rm -f conftest.er1 conftest.err
  3202. fi
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3204. test $ac_status = 0; }
  3205. done
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. ac_clean_files_save=$ac_clean_files
  3216. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3217. # Try to create an executable without -o first, disregard a.out.
  3218. # It will help us diagnose broken compilers, and finding out an intuition
  3219. # of exeext.
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3221. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3222. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3223. # The possible output files:
  3224. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3225. ac_rmfiles=
  3226. for ac_file in $ac_files
  3227. do
  3228. case $ac_file in
  3229. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3230. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3231. esac
  3232. done
  3233. rm -f $ac_rmfiles
  3234. if { { ac_try="$ac_link_default"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_link_default") 2>&5
  3242. ac_status=$?
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3244. test $ac_status = 0; }; then :
  3245. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3246. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3247. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3248. # so that the user can short-circuit this test for compilers unknown to
  3249. # Autoconf.
  3250. for ac_file in $ac_files ''
  3251. do
  3252. test -f "$ac_file" || continue
  3253. case $ac_file in
  3254. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3255. ;;
  3256. [ab].out )
  3257. # We found the default executable, but exeext='' is most
  3258. # certainly right.
  3259. break;;
  3260. *.* )
  3261. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3262. then :; else
  3263. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3264. fi
  3265. # We set ac_cv_exeext here because the later test for it is not
  3266. # safe: cross compilers may not add the suffix if given an `-o'
  3267. # argument, so we may need to know it at that point already.
  3268. # Even if this section looks crufty: it has the advantage of
  3269. # actually working.
  3270. break;;
  3271. * )
  3272. break;;
  3273. esac
  3274. done
  3275. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3276. else
  3277. ac_file=''
  3278. fi
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3280. $as_echo "$ac_file" >&6; }
  3281. if test -z "$ac_file"; then :
  3282. $as_echo "$as_me: failed program was:" >&5
  3283. sed 's/^/| /' conftest.$ac_ext >&5
  3284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3286. { as_fn_set_status 77
  3287. as_fn_error "C compiler cannot create executables
  3288. See \`config.log' for more details." "$LINENO" 5; }; }
  3289. fi
  3290. ac_exeext=$ac_cv_exeext
  3291. # Check that the compiler produces executables we can run. If not, either
  3292. # the compiler is broken, or we cross compile.
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3294. $as_echo_n "checking whether the C compiler works... " >&6; }
  3295. # If not cross compiling, check that we can run a simple program.
  3296. if test "$cross_compiling" != yes; then
  3297. if { ac_try='./$ac_file'
  3298. { { case "(($ac_try" in
  3299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3300. *) ac_try_echo=$ac_try;;
  3301. esac
  3302. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3303. $as_echo "$ac_try_echo"; } >&5
  3304. (eval "$ac_try") 2>&5
  3305. ac_status=$?
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3307. test $ac_status = 0; }; }; then
  3308. cross_compiling=no
  3309. else
  3310. if test "$cross_compiling" = maybe; then
  3311. cross_compiling=yes
  3312. else
  3313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3315. as_fn_error "cannot run C compiled programs.
  3316. If you meant to cross compile, use \`--host'.
  3317. See \`config.log' for more details." "$LINENO" 5; }
  3318. fi
  3319. fi
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3322. $as_echo "yes" >&6; }
  3323. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3324. ac_clean_files=$ac_clean_files_save
  3325. # Check that the compiler produces executables we can run. If not, either
  3326. # the compiler is broken, or we cross compile.
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3328. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3330. $as_echo "$cross_compiling" >&6; }
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3332. $as_echo_n "checking for suffix of executables... " >&6; }
  3333. if { { ac_try="$ac_link"
  3334. case "(($ac_try" in
  3335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3336. *) ac_try_echo=$ac_try;;
  3337. esac
  3338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3339. $as_echo "$ac_try_echo"; } >&5
  3340. (eval "$ac_link") 2>&5
  3341. ac_status=$?
  3342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3343. test $ac_status = 0; }; then :
  3344. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3345. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3346. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3347. # `rm'.
  3348. for ac_file in conftest.exe conftest conftest.*; do
  3349. test -f "$ac_file" || continue
  3350. case $ac_file in
  3351. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3352. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3353. break;;
  3354. * ) break;;
  3355. esac
  3356. done
  3357. else
  3358. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3359. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3360. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3361. See \`config.log' for more details." "$LINENO" 5; }
  3362. fi
  3363. rm -f conftest$ac_cv_exeext
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3365. $as_echo "$ac_cv_exeext" >&6; }
  3366. rm -f conftest.$ac_ext
  3367. EXEEXT=$ac_cv_exeext
  3368. ac_exeext=$EXEEXT
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3370. $as_echo_n "checking for suffix of object files... " >&6; }
  3371. if test "${ac_cv_objext+set}" = set; then :
  3372. $as_echo_n "(cached) " >&6
  3373. else
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. rm -f conftest.o conftest.obj
  3384. if { { ac_try="$ac_compile"
  3385. case "(($ac_try" in
  3386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3387. *) ac_try_echo=$ac_try;;
  3388. esac
  3389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3390. $as_echo "$ac_try_echo"; } >&5
  3391. (eval "$ac_compile") 2>&5
  3392. ac_status=$?
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3394. test $ac_status = 0; }; then :
  3395. for ac_file in conftest.o conftest.obj conftest.*; do
  3396. test -f "$ac_file" || continue;
  3397. case $ac_file in
  3398. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3399. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3400. break;;
  3401. esac
  3402. done
  3403. else
  3404. $as_echo "$as_me: failed program was:" >&5
  3405. sed 's/^/| /' conftest.$ac_ext >&5
  3406. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3407. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3408. as_fn_error "cannot compute suffix of object files: cannot compile
  3409. See \`config.log' for more details." "$LINENO" 5; }
  3410. fi
  3411. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3412. fi
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3414. $as_echo "$ac_cv_objext" >&6; }
  3415. OBJEXT=$ac_cv_objext
  3416. ac_objext=$OBJEXT
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3418. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3419. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3420. $as_echo_n "(cached) " >&6
  3421. else
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. #ifndef __GNUC__
  3428. choke me
  3429. #endif
  3430. ;
  3431. return 0;
  3432. }
  3433. _ACEOF
  3434. if ac_fn_c_try_compile "$LINENO"; then :
  3435. ac_compiler_gnu=yes
  3436. else
  3437. ac_compiler_gnu=no
  3438. fi
  3439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3440. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3441. fi
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3443. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3444. if test $ac_compiler_gnu = yes; then
  3445. GCC=yes
  3446. else
  3447. GCC=
  3448. fi
  3449. ac_test_CFLAGS=${CFLAGS+set}
  3450. ac_save_CFLAGS=$CFLAGS
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3452. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3453. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3454. $as_echo_n "(cached) " >&6
  3455. else
  3456. ac_save_c_werror_flag=$ac_c_werror_flag
  3457. ac_c_werror_flag=yes
  3458. ac_cv_prog_cc_g=no
  3459. CFLAGS="-g"
  3460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3461. /* end confdefs.h. */
  3462. int
  3463. main ()
  3464. {
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. if ac_fn_c_try_compile "$LINENO"; then :
  3470. ac_cv_prog_cc_g=yes
  3471. else
  3472. CFLAGS=""
  3473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3474. /* end confdefs.h. */
  3475. int
  3476. main ()
  3477. {
  3478. ;
  3479. return 0;
  3480. }
  3481. _ACEOF
  3482. if ac_fn_c_try_compile "$LINENO"; then :
  3483. else
  3484. ac_c_werror_flag=$ac_save_c_werror_flag
  3485. CFLAGS="-g"
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. int
  3489. main ()
  3490. {
  3491. ;
  3492. return 0;
  3493. }
  3494. _ACEOF
  3495. if ac_fn_c_try_compile "$LINENO"; then :
  3496. ac_cv_prog_cc_g=yes
  3497. fi
  3498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3499. fi
  3500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3501. fi
  3502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3503. ac_c_werror_flag=$ac_save_c_werror_flag
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3506. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3507. if test "$ac_test_CFLAGS" = set; then
  3508. CFLAGS=$ac_save_CFLAGS
  3509. elif test $ac_cv_prog_cc_g = yes; then
  3510. if test "$GCC" = yes; then
  3511. CFLAGS="-g -O2"
  3512. else
  3513. CFLAGS="-g"
  3514. fi
  3515. else
  3516. if test "$GCC" = yes; then
  3517. CFLAGS="-O2"
  3518. else
  3519. CFLAGS=
  3520. fi
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3523. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3524. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. ac_cv_prog_cc_c89=no
  3528. ac_save_CC=$CC
  3529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end confdefs.h. */
  3531. #include <stdarg.h>
  3532. #include <stdio.h>
  3533. #include <sys/types.h>
  3534. #include <sys/stat.h>
  3535. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3536. struct buf { int x; };
  3537. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3538. static char *e (p, i)
  3539. char **p;
  3540. int i;
  3541. {
  3542. return p[i];
  3543. }
  3544. static char *f (char * (*g) (char **, int), char **p, ...)
  3545. {
  3546. char *s;
  3547. va_list v;
  3548. va_start (v,p);
  3549. s = g (p, va_arg (v,int));
  3550. va_end (v);
  3551. return s;
  3552. }
  3553. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3554. function prototypes and stuff, but not '\xHH' hex character constants.
  3555. These don't provoke an error unfortunately, instead are silently treated
  3556. as 'x'. The following induces an error, until -std is added to get
  3557. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3558. array size at least. It's necessary to write '\x00'==0 to get something
  3559. that's true only with -std. */
  3560. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3561. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3562. inside strings and character constants. */
  3563. #define FOO(x) 'x'
  3564. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3565. int test (int i, double x);
  3566. struct s1 {int (*f) (int a);};
  3567. struct s2 {int (*f) (double a);};
  3568. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3569. int argc;
  3570. char **argv;
  3571. int
  3572. main ()
  3573. {
  3574. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3575. ;
  3576. return 0;
  3577. }
  3578. _ACEOF
  3579. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3580. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3581. do
  3582. CC="$ac_save_CC $ac_arg"
  3583. if ac_fn_c_try_compile "$LINENO"; then :
  3584. ac_cv_prog_cc_c89=$ac_arg
  3585. fi
  3586. rm -f core conftest.err conftest.$ac_objext
  3587. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3588. done
  3589. rm -f conftest.$ac_ext
  3590. CC=$ac_save_CC
  3591. fi
  3592. # AC_CACHE_VAL
  3593. case "x$ac_cv_prog_cc_c89" in
  3594. x)
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3596. $as_echo "none needed" >&6; } ;;
  3597. xno)
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3599. $as_echo "unsupported" >&6; } ;;
  3600. *)
  3601. CC="$CC $ac_cv_prog_cc_c89"
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3603. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3604. esac
  3605. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3606. fi
  3607. ac_ext=c
  3608. ac_cpp='$CPP $CPPFLAGS'
  3609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3612. DEPDIR="${am__leading_dot}deps"
  3613. ac_config_commands="$ac_config_commands depfiles"
  3614. am_make=${MAKE-make}
  3615. cat > confinc << 'END'
  3616. am__doit:
  3617. @echo this is the am__doit target
  3618. .PHONY: am__doit
  3619. END
  3620. # If we don't find an include directive, just comment out the code.
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3622. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3623. am__include="#"
  3624. am__quote=
  3625. _am_result=none
  3626. # First try GNU make style include.
  3627. echo "include confinc" > confmf
  3628. # Ignore all kinds of additional output from `make'.
  3629. case `$am_make -s -f confmf 2> /dev/null` in #(
  3630. *the\ am__doit\ target*)
  3631. am__include=include
  3632. am__quote=
  3633. _am_result=GNU
  3634. ;;
  3635. esac
  3636. # Now try BSD make style include.
  3637. if test "$am__include" = "#"; then
  3638. echo '.include "confinc"' > confmf
  3639. case `$am_make -s -f confmf 2> /dev/null` in #(
  3640. *the\ am__doit\ target*)
  3641. am__include=.include
  3642. am__quote="\""
  3643. _am_result=BSD
  3644. ;;
  3645. esac
  3646. fi
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3648. $as_echo "$_am_result" >&6; }
  3649. rm -f confinc confmf
  3650. # Check whether --enable-dependency-tracking was given.
  3651. if test "${enable_dependency_tracking+set}" = set; then :
  3652. enableval=$enable_dependency_tracking;
  3653. fi
  3654. if test "x$enable_dependency_tracking" != xno; then
  3655. am_depcomp="$ac_aux_dir/depcomp"
  3656. AMDEPBACKSLASH='\'
  3657. am__nodep='_no'
  3658. fi
  3659. if test "x$enable_dependency_tracking" != xno; then
  3660. AMDEP_TRUE=
  3661. AMDEP_FALSE='#'
  3662. else
  3663. AMDEP_TRUE='#'
  3664. AMDEP_FALSE=
  3665. fi
  3666. depcc="$CC" am_compiler_list=
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3668. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3669. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3673. # We make a subdir and do the tests there. Otherwise we can end up
  3674. # making bogus files that we don't know about and never remove. For
  3675. # instance it was reported that on HP-UX the gcc test will end up
  3676. # making a dummy file named `D' -- because `-MD' means `put the output
  3677. # in D'.
  3678. rm -rf conftest.dir
  3679. mkdir conftest.dir
  3680. # Copy depcomp to subdir because otherwise we won't find it if we're
  3681. # using a relative directory.
  3682. cp "$am_depcomp" conftest.dir
  3683. cd conftest.dir
  3684. # We will build objects and dependencies in a subdirectory because
  3685. # it helps to detect inapplicable dependency modes. For instance
  3686. # both Tru64's cc and ICC support -MD to output dependencies as a
  3687. # side effect of compilation, but ICC will put the dependencies in
  3688. # the current directory while Tru64 will put them in the object
  3689. # directory.
  3690. mkdir sub
  3691. am_cv_CC_dependencies_compiler_type=none
  3692. if test "$am_compiler_list" = ""; then
  3693. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3694. fi
  3695. am__universal=false
  3696. case " $depcc " in #(
  3697. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3698. esac
  3699. for depmode in $am_compiler_list; do
  3700. # Setup a source with many dependencies, because some compilers
  3701. # like to wrap large dependency lists on column 80 (with \), and
  3702. # we should not choose a depcomp mode which is confused by this.
  3703. #
  3704. # We need to recreate these files for each test, as the compiler may
  3705. # overwrite some of them when testing with obscure command lines.
  3706. # This happens at least with the AIX C compiler.
  3707. : > sub/conftest.c
  3708. for i in 1 2 3 4 5 6; do
  3709. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3710. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3711. # Solaris 8's {/usr,}/bin/sh.
  3712. touch sub/conftst$i.h
  3713. done
  3714. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3715. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3716. # mode. It turns out that the SunPro C++ compiler does not properly
  3717. # handle `-M -o', and we need to detect this. Also, some Intel
  3718. # versions had trouble with output in subdirs
  3719. am__obj=sub/conftest.${OBJEXT-o}
  3720. am__minus_obj="-o $am__obj"
  3721. case $depmode in
  3722. gcc)
  3723. # This depmode causes a compiler race in universal mode.
  3724. test "$am__universal" = false || continue
  3725. ;;
  3726. nosideeffect)
  3727. # after this tag, mechanisms are not by side-effect, so they'll
  3728. # only be used when explicitly requested
  3729. if test "x$enable_dependency_tracking" = xyes; then
  3730. continue
  3731. else
  3732. break
  3733. fi
  3734. ;;
  3735. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3736. # This compiler won't grok `-c -o', but also, the minuso test has
  3737. # not run yet. These depmodes are late enough in the game, and
  3738. # so weak that their functioning should not be impacted.
  3739. am__obj=conftest.${OBJEXT-o}
  3740. am__minus_obj=
  3741. ;;
  3742. none) break ;;
  3743. esac
  3744. if depmode=$depmode \
  3745. source=sub/conftest.c object=$am__obj \
  3746. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3747. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3748. >/dev/null 2>conftest.err &&
  3749. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3750. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3751. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3752. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3753. # icc doesn't choke on unknown options, it will just issue warnings
  3754. # or remarks (even with -Werror). So we grep stderr for any message
  3755. # that says an option was ignored or not supported.
  3756. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3757. # icc: Command line warning: ignoring option '-M'; no argument required
  3758. # The diagnosis changed in icc 8.0:
  3759. # icc: Command line remark: option '-MP' not supported
  3760. if (grep 'ignoring option' conftest.err ||
  3761. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3762. am_cv_CC_dependencies_compiler_type=$depmode
  3763. break
  3764. fi
  3765. fi
  3766. done
  3767. cd ..
  3768. rm -rf conftest.dir
  3769. else
  3770. am_cv_CC_dependencies_compiler_type=none
  3771. fi
  3772. fi
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3774. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3775. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3776. if
  3777. test "x$enable_dependency_tracking" != xno \
  3778. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3779. am__fastdepCC_TRUE=
  3780. am__fastdepCC_FALSE='#'
  3781. else
  3782. am__fastdepCC_TRUE='#'
  3783. am__fastdepCC_FALSE=
  3784. fi
  3785. # By default we simply use the C compiler to build assembly code.
  3786. test "${CCAS+set}" = set || CCAS=$CC
  3787. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3788. depcc="$CCAS" am_compiler_list=
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3790. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3791. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3795. # We make a subdir and do the tests there. Otherwise we can end up
  3796. # making bogus files that we don't know about and never remove. For
  3797. # instance it was reported that on HP-UX the gcc test will end up
  3798. # making a dummy file named `D' -- because `-MD' means `put the output
  3799. # in D'.
  3800. rm -rf conftest.dir
  3801. mkdir conftest.dir
  3802. # Copy depcomp to subdir because otherwise we won't find it if we're
  3803. # using a relative directory.
  3804. cp "$am_depcomp" conftest.dir
  3805. cd conftest.dir
  3806. # We will build objects and dependencies in a subdirectory because
  3807. # it helps to detect inapplicable dependency modes. For instance
  3808. # both Tru64's cc and ICC support -MD to output dependencies as a
  3809. # side effect of compilation, but ICC will put the dependencies in
  3810. # the current directory while Tru64 will put them in the object
  3811. # directory.
  3812. mkdir sub
  3813. am_cv_CCAS_dependencies_compiler_type=none
  3814. if test "$am_compiler_list" = ""; then
  3815. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3816. fi
  3817. am__universal=false
  3818. for depmode in $am_compiler_list; do
  3819. # Setup a source with many dependencies, because some compilers
  3820. # like to wrap large dependency lists on column 80 (with \), and
  3821. # we should not choose a depcomp mode which is confused by this.
  3822. #
  3823. # We need to recreate these files for each test, as the compiler may
  3824. # overwrite some of them when testing with obscure command lines.
  3825. # This happens at least with the AIX C compiler.
  3826. : > sub/conftest.c
  3827. for i in 1 2 3 4 5 6; do
  3828. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3829. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3830. # Solaris 8's {/usr,}/bin/sh.
  3831. touch sub/conftst$i.h
  3832. done
  3833. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3834. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3835. # mode. It turns out that the SunPro C++ compiler does not properly
  3836. # handle `-M -o', and we need to detect this. Also, some Intel
  3837. # versions had trouble with output in subdirs
  3838. am__obj=sub/conftest.${OBJEXT-o}
  3839. am__minus_obj="-o $am__obj"
  3840. case $depmode in
  3841. gcc)
  3842. # This depmode causes a compiler race in universal mode.
  3843. test "$am__universal" = false || continue
  3844. ;;
  3845. nosideeffect)
  3846. # after this tag, mechanisms are not by side-effect, so they'll
  3847. # only be used when explicitly requested
  3848. if test "x$enable_dependency_tracking" = xyes; then
  3849. continue
  3850. else
  3851. break
  3852. fi
  3853. ;;
  3854. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3855. # This compiler won't grok `-c -o', but also, the minuso test has
  3856. # not run yet. These depmodes are late enough in the game, and
  3857. # so weak that their functioning should not be impacted.
  3858. am__obj=conftest.${OBJEXT-o}
  3859. am__minus_obj=
  3860. ;;
  3861. none) break ;;
  3862. esac
  3863. if depmode=$depmode \
  3864. source=sub/conftest.c object=$am__obj \
  3865. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3866. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3867. >/dev/null 2>conftest.err &&
  3868. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3869. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3870. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3871. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3872. # icc doesn't choke on unknown options, it will just issue warnings
  3873. # or remarks (even with -Werror). So we grep stderr for any message
  3874. # that says an option was ignored or not supported.
  3875. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3876. # icc: Command line warning: ignoring option '-M'; no argument required
  3877. # The diagnosis changed in icc 8.0:
  3878. # icc: Command line remark: option '-MP' not supported
  3879. if (grep 'ignoring option' conftest.err ||
  3880. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3881. am_cv_CCAS_dependencies_compiler_type=$depmode
  3882. break
  3883. fi
  3884. fi
  3885. done
  3886. cd ..
  3887. rm -rf conftest.dir
  3888. else
  3889. am_cv_CCAS_dependencies_compiler_type=none
  3890. fi
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3893. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3894. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3895. if
  3896. test "x$enable_dependency_tracking" != xno \
  3897. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3898. am__fastdepCCAS_TRUE=
  3899. am__fastdepCCAS_FALSE='#'
  3900. else
  3901. am__fastdepCCAS_TRUE='#'
  3902. am__fastdepCCAS_FALSE=
  3903. fi
  3904. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  3905. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  3906. # in both places for now and restore CFLAGS at the end of config.
  3907. save_CFLAGS="$CFLAGS"
  3908. # Find other programs we need.
  3909. if test -n "$ac_tool_prefix"; then
  3910. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3911. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3913. $as_echo_n "checking for $ac_word... " >&6; }
  3914. if test "${ac_cv_prog_AR+set}" = set; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if test -n "$AR"; then
  3918. ac_cv_prog_AR="$AR" # Let the user override the test.
  3919. else
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH
  3922. do
  3923. IFS=$as_save_IFS
  3924. test -z "$as_dir" && as_dir=.
  3925. for ac_exec_ext in '' $ac_executable_extensions; do
  3926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3927. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929. break 2
  3930. fi
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. fi
  3935. fi
  3936. AR=$ac_cv_prog_AR
  3937. if test -n "$AR"; then
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3939. $as_echo "$AR" >&6; }
  3940. else
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3942. $as_echo "no" >&6; }
  3943. fi
  3944. fi
  3945. if test -z "$ac_cv_prog_AR"; then
  3946. ac_ct_AR=$AR
  3947. # Extract the first word of "ar", so it can be a program name with args.
  3948. set dummy ar; 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_ac_ct_AR+set}" = set; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$ac_ct_AR"; then
  3955. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
  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. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3974. if test -n "$ac_ct_AR"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3976. $as_echo "$ac_ct_AR" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. if test "x$ac_ct_AR" = x; then
  3982. AR=""
  3983. else
  3984. case $cross_compiling:$ac_tool_warned in
  3985. yes:)
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3988. ac_tool_warned=yes ;;
  3989. esac
  3990. AR=$ac_ct_AR
  3991. fi
  3992. else
  3993. AR="$ac_cv_prog_AR"
  3994. fi
  3995. if test -n "$ac_tool_prefix"; then
  3996. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  3997. set dummy ${ac_tool_prefix}nm; ac_word=$2
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3999. $as_echo_n "checking for $ac_word... " >&6; }
  4000. if test "${ac_cv_prog_NM+set}" = set; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. if test -n "$NM"; then
  4004. ac_cv_prog_NM="$NM" # Let the user override the test.
  4005. else
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4013. ac_cv_prog_NM="${ac_tool_prefix}nm"
  4014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. NM=$ac_cv_prog_NM
  4023. if test -n "$NM"; then
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  4025. $as_echo "$NM" >&6; }
  4026. else
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4028. $as_echo "no" >&6; }
  4029. fi
  4030. fi
  4031. if test -z "$ac_cv_prog_NM"; then
  4032. ac_ct_NM=$NM
  4033. # Extract the first word of "nm", so it can be a program name with args.
  4034. set dummy nm; ac_word=$2
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4036. $as_echo_n "checking for $ac_word... " >&6; }
  4037. if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if test -n "$ac_ct_NM"; then
  4041. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4050. ac_cv_prog_ac_ct_NM="nm"
  4051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  4060. if test -n "$ac_ct_NM"; then
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  4062. $as_echo "$ac_ct_NM" >&6; }
  4063. else
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. $as_echo "no" >&6; }
  4066. fi
  4067. if test "x$ac_ct_NM" = x; then
  4068. NM=""
  4069. else
  4070. case $cross_compiling:$ac_tool_warned in
  4071. yes:)
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4073. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4074. ac_tool_warned=yes ;;
  4075. esac
  4076. NM=$ac_ct_NM
  4077. fi
  4078. else
  4079. NM="$ac_cv_prog_NM"
  4080. fi
  4081. if test -n "$ac_tool_prefix"; then
  4082. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4083. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4085. $as_echo_n "checking for $ac_word... " >&6; }
  4086. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. if test -n "$RANLIB"; then
  4090. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4091. else
  4092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4093. for as_dir in $PATH
  4094. do
  4095. IFS=$as_save_IFS
  4096. test -z "$as_dir" && as_dir=.
  4097. for ac_exec_ext in '' $ac_executable_extensions; do
  4098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4099. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4101. break 2
  4102. fi
  4103. done
  4104. done
  4105. IFS=$as_save_IFS
  4106. fi
  4107. fi
  4108. RANLIB=$ac_cv_prog_RANLIB
  4109. if test -n "$RANLIB"; then
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4111. $as_echo "$RANLIB" >&6; }
  4112. else
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4114. $as_echo "no" >&6; }
  4115. fi
  4116. fi
  4117. if test -z "$ac_cv_prog_RANLIB"; then
  4118. ac_ct_RANLIB=$RANLIB
  4119. # Extract the first word of "ranlib", so it can be a program name with args.
  4120. set dummy ranlib; ac_word=$2
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4122. $as_echo_n "checking for $ac_word... " >&6; }
  4123. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. if test -n "$ac_ct_RANLIB"; then
  4127. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4128. else
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH
  4131. do
  4132. IFS=$as_save_IFS
  4133. test -z "$as_dir" && as_dir=.
  4134. for ac_exec_ext in '' $ac_executable_extensions; do
  4135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4136. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4138. break 2
  4139. fi
  4140. done
  4141. done
  4142. IFS=$as_save_IFS
  4143. fi
  4144. fi
  4145. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4146. if test -n "$ac_ct_RANLIB"; then
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4148. $as_echo "$ac_ct_RANLIB" >&6; }
  4149. else
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4151. $as_echo "no" >&6; }
  4152. fi
  4153. if test "x$ac_ct_RANLIB" = x; then
  4154. RANLIB="ranlib-not-found-in-path-error"
  4155. else
  4156. case $cross_compiling:$ac_tool_warned in
  4157. yes:)
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4160. ac_tool_warned=yes ;;
  4161. esac
  4162. RANLIB=$ac_ct_RANLIB
  4163. fi
  4164. else
  4165. RANLIB="$ac_cv_prog_RANLIB"
  4166. fi
  4167. # Extract the first word of "perl", so it can be a program name with args.
  4168. set dummy perl; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_path_PERL+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. case $PERL in
  4175. [\\/]* | ?:[\\/]*)
  4176. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4177. ;;
  4178. *)
  4179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4180. for as_dir in $PATH
  4181. do
  4182. IFS=$as_save_IFS
  4183. test -z "$as_dir" && as_dir=.
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4186. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4188. break 2
  4189. fi
  4190. done
  4191. done
  4192. IFS=$as_save_IFS
  4193. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4194. ;;
  4195. esac
  4196. fi
  4197. PERL=$ac_cv_path_PERL
  4198. if test -n "$PERL"; then
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4200. $as_echo "$PERL" >&6; }
  4201. else
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4203. $as_echo "no" >&6; }
  4204. fi
  4205. # Configure libtool
  4206. case `pwd` in
  4207. *\ * | *\ *)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4209. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4210. esac
  4211. macro_version='2.2.7a'
  4212. macro_revision='1.3134'
  4213. ltmain="$ac_aux_dir/ltmain.sh"
  4214. # Backslashify metacharacters that are still active within
  4215. # double-quoted strings.
  4216. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4217. # Same as above, but do not quote variable references.
  4218. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4219. # Sed substitution to delay expansion of an escaped shell variable in a
  4220. # double_quote_subst'ed string.
  4221. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4222. # Sed substitution to delay expansion of an escaped single quote.
  4223. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4224. # Sed substitution to avoid accidental globbing in evaled expressions
  4225. no_glob_subst='s/\*/\\\*/g'
  4226. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4227. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4228. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4230. $as_echo_n "checking how to print strings... " >&6; }
  4231. # Test print first, because it will be a builtin if present.
  4232. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4233. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4234. ECHO='print -r --'
  4235. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4236. ECHO='printf %s\n'
  4237. else
  4238. # Use this function as a fallback that always works.
  4239. func_fallback_echo ()
  4240. {
  4241. eval 'cat <<_LTECHO_EOF
  4242. $1
  4243. _LTECHO_EOF'
  4244. }
  4245. ECHO='func_fallback_echo'
  4246. fi
  4247. # func_echo_all arg...
  4248. # Invoke $ECHO with all args, space-separated.
  4249. func_echo_all ()
  4250. {
  4251. $ECHO ""
  4252. }
  4253. case "$ECHO" in
  4254. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4255. $as_echo "printf" >&6; } ;;
  4256. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4257. $as_echo "print -r" >&6; } ;;
  4258. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4259. $as_echo "cat" >&6; } ;;
  4260. esac
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4262. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4263. if test "${ac_cv_path_SED+set}" = set; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4267. for ac_i in 1 2 3 4 5 6 7; do
  4268. ac_script="$ac_script$as_nl$ac_script"
  4269. done
  4270. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4271. { ac_script=; unset ac_script;}
  4272. if test -z "$SED"; then
  4273. ac_path_SED_found=false
  4274. # Loop through the user's path and test for each of PROGNAME-LIST
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_prog in sed gsed; do
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4283. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4284. # Check for GNU ac_path_SED and select it if it is found.
  4285. # Check for GNU $ac_path_SED
  4286. case `"$ac_path_SED" --version 2>&1` in
  4287. *GNU*)
  4288. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4289. *)
  4290. ac_count=0
  4291. $as_echo_n 0123456789 >"conftest.in"
  4292. while :
  4293. do
  4294. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4295. mv "conftest.tmp" "conftest.in"
  4296. cp "conftest.in" "conftest.nl"
  4297. $as_echo '' >> "conftest.nl"
  4298. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4299. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4300. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4301. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4302. # Best one so far, save it but keep looking for a better one
  4303. ac_cv_path_SED="$ac_path_SED"
  4304. ac_path_SED_max=$ac_count
  4305. fi
  4306. # 10*(2^10) chars as input seems more than enough
  4307. test $ac_count -gt 10 && break
  4308. done
  4309. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4310. esac
  4311. $ac_path_SED_found && break 3
  4312. done
  4313. done
  4314. done
  4315. IFS=$as_save_IFS
  4316. if test -z "$ac_cv_path_SED"; then
  4317. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4318. fi
  4319. else
  4320. ac_cv_path_SED=$SED
  4321. fi
  4322. fi
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4324. $as_echo "$ac_cv_path_SED" >&6; }
  4325. SED="$ac_cv_path_SED"
  4326. rm -f conftest.sed
  4327. test -z "$SED" && SED=sed
  4328. Xsed="$SED -e 1s/^X//"
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4330. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4331. if test "${ac_cv_path_GREP+set}" = set; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. if test -z "$GREP"; then
  4335. ac_path_GREP_found=false
  4336. # Loop through the user's path and test for each of PROGNAME-LIST
  4337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4338. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4339. do
  4340. IFS=$as_save_IFS
  4341. test -z "$as_dir" && as_dir=.
  4342. for ac_prog in grep ggrep; do
  4343. for ac_exec_ext in '' $ac_executable_extensions; do
  4344. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4345. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4346. # Check for GNU ac_path_GREP and select it if it is found.
  4347. # Check for GNU $ac_path_GREP
  4348. case `"$ac_path_GREP" --version 2>&1` in
  4349. *GNU*)
  4350. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4351. *)
  4352. ac_count=0
  4353. $as_echo_n 0123456789 >"conftest.in"
  4354. while :
  4355. do
  4356. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4357. mv "conftest.tmp" "conftest.in"
  4358. cp "conftest.in" "conftest.nl"
  4359. $as_echo 'GREP' >> "conftest.nl"
  4360. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4361. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4362. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4363. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4364. # Best one so far, save it but keep looking for a better one
  4365. ac_cv_path_GREP="$ac_path_GREP"
  4366. ac_path_GREP_max=$ac_count
  4367. fi
  4368. # 10*(2^10) chars as input seems more than enough
  4369. test $ac_count -gt 10 && break
  4370. done
  4371. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4372. esac
  4373. $ac_path_GREP_found && break 3
  4374. done
  4375. done
  4376. done
  4377. IFS=$as_save_IFS
  4378. if test -z "$ac_cv_path_GREP"; then
  4379. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4380. fi
  4381. else
  4382. ac_cv_path_GREP=$GREP
  4383. fi
  4384. fi
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4386. $as_echo "$ac_cv_path_GREP" >&6; }
  4387. GREP="$ac_cv_path_GREP"
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4389. $as_echo_n "checking for egrep... " >&6; }
  4390. if test "${ac_cv_path_EGREP+set}" = set; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4394. then ac_cv_path_EGREP="$GREP -E"
  4395. else
  4396. if test -z "$EGREP"; then
  4397. ac_path_EGREP_found=false
  4398. # Loop through the user's path and test for each of PROGNAME-LIST
  4399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4400. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4401. do
  4402. IFS=$as_save_IFS
  4403. test -z "$as_dir" && as_dir=.
  4404. for ac_prog in egrep; do
  4405. for ac_exec_ext in '' $ac_executable_extensions; do
  4406. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4407. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4408. # Check for GNU ac_path_EGREP and select it if it is found.
  4409. # Check for GNU $ac_path_EGREP
  4410. case `"$ac_path_EGREP" --version 2>&1` in
  4411. *GNU*)
  4412. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4413. *)
  4414. ac_count=0
  4415. $as_echo_n 0123456789 >"conftest.in"
  4416. while :
  4417. do
  4418. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4419. mv "conftest.tmp" "conftest.in"
  4420. cp "conftest.in" "conftest.nl"
  4421. $as_echo 'EGREP' >> "conftest.nl"
  4422. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4423. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4424. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4425. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4426. # Best one so far, save it but keep looking for a better one
  4427. ac_cv_path_EGREP="$ac_path_EGREP"
  4428. ac_path_EGREP_max=$ac_count
  4429. fi
  4430. # 10*(2^10) chars as input seems more than enough
  4431. test $ac_count -gt 10 && break
  4432. done
  4433. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4434. esac
  4435. $ac_path_EGREP_found && break 3
  4436. done
  4437. done
  4438. done
  4439. IFS=$as_save_IFS
  4440. if test -z "$ac_cv_path_EGREP"; then
  4441. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4442. fi
  4443. else
  4444. ac_cv_path_EGREP=$EGREP
  4445. fi
  4446. fi
  4447. fi
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4449. $as_echo "$ac_cv_path_EGREP" >&6; }
  4450. EGREP="$ac_cv_path_EGREP"
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4452. $as_echo_n "checking for fgrep... " >&6; }
  4453. if test "${ac_cv_path_FGREP+set}" = set; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4457. then ac_cv_path_FGREP="$GREP -F"
  4458. else
  4459. if test -z "$FGREP"; then
  4460. ac_path_FGREP_found=false
  4461. # Loop through the user's path and test for each of PROGNAME-LIST
  4462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4464. do
  4465. IFS=$as_save_IFS
  4466. test -z "$as_dir" && as_dir=.
  4467. for ac_prog in fgrep; do
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4470. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4471. # Check for GNU ac_path_FGREP and select it if it is found.
  4472. # Check for GNU $ac_path_FGREP
  4473. case `"$ac_path_FGREP" --version 2>&1` in
  4474. *GNU*)
  4475. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4476. *)
  4477. ac_count=0
  4478. $as_echo_n 0123456789 >"conftest.in"
  4479. while :
  4480. do
  4481. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4482. mv "conftest.tmp" "conftest.in"
  4483. cp "conftest.in" "conftest.nl"
  4484. $as_echo 'FGREP' >> "conftest.nl"
  4485. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4486. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4487. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4488. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4489. # Best one so far, save it but keep looking for a better one
  4490. ac_cv_path_FGREP="$ac_path_FGREP"
  4491. ac_path_FGREP_max=$ac_count
  4492. fi
  4493. # 10*(2^10) chars as input seems more than enough
  4494. test $ac_count -gt 10 && break
  4495. done
  4496. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4497. esac
  4498. $ac_path_FGREP_found && break 3
  4499. done
  4500. done
  4501. done
  4502. IFS=$as_save_IFS
  4503. if test -z "$ac_cv_path_FGREP"; then
  4504. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4505. fi
  4506. else
  4507. ac_cv_path_FGREP=$FGREP
  4508. fi
  4509. fi
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4512. $as_echo "$ac_cv_path_FGREP" >&6; }
  4513. FGREP="$ac_cv_path_FGREP"
  4514. test -z "$GREP" && GREP=grep
  4515. # Check whether --with-gnu-ld was given.
  4516. if test "${with_gnu_ld+set}" = set; then :
  4517. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4518. else
  4519. with_gnu_ld=no
  4520. fi
  4521. ac_prog=ld
  4522. if test "$GCC" = yes; then
  4523. # Check if gcc -print-prog-name=ld gives a path.
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4525. $as_echo_n "checking for ld used by $CC... " >&6; }
  4526. case $host in
  4527. *-*-mingw*)
  4528. # gcc leaves a trailing carriage return which upsets mingw
  4529. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4530. *)
  4531. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4532. esac
  4533. case $ac_prog in
  4534. # Accept absolute paths.
  4535. [\\/]* | ?:[\\/]*)
  4536. re_direlt='/[^/][^/]*/\.\./'
  4537. # Canonicalize the pathname of ld
  4538. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4539. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4540. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4541. done
  4542. test -z "$LD" && LD="$ac_prog"
  4543. ;;
  4544. "")
  4545. # If it fails, then pretend we aren't using GCC.
  4546. ac_prog=ld
  4547. ;;
  4548. *)
  4549. # If it is relative, then search for the first ld in PATH.
  4550. with_gnu_ld=unknown
  4551. ;;
  4552. esac
  4553. elif test "$with_gnu_ld" = yes; then
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4555. $as_echo_n "checking for GNU ld... " >&6; }
  4556. else
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4558. $as_echo_n "checking for non-GNU ld... " >&6; }
  4559. fi
  4560. if test "${lt_cv_path_LD+set}" = set; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if test -z "$LD"; then
  4564. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4565. for ac_dir in $PATH; do
  4566. IFS="$lt_save_ifs"
  4567. test -z "$ac_dir" && ac_dir=.
  4568. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4569. lt_cv_path_LD="$ac_dir/$ac_prog"
  4570. # Check to see if the program is GNU ld. I'd rather use --version,
  4571. # but apparently some variants of GNU ld only accept -v.
  4572. # Break only if it was the GNU/non-GNU ld that we prefer.
  4573. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4574. *GNU* | *'with BFD'*)
  4575. test "$with_gnu_ld" != no && break
  4576. ;;
  4577. *)
  4578. test "$with_gnu_ld" != yes && break
  4579. ;;
  4580. esac
  4581. fi
  4582. done
  4583. IFS="$lt_save_ifs"
  4584. else
  4585. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4586. fi
  4587. fi
  4588. LD="$lt_cv_path_LD"
  4589. if test -n "$LD"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4591. $as_echo "$LD" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4598. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4599. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4603. case `$LD -v 2>&1 </dev/null` in
  4604. *GNU* | *'with BFD'*)
  4605. lt_cv_prog_gnu_ld=yes
  4606. ;;
  4607. *)
  4608. lt_cv_prog_gnu_ld=no
  4609. ;;
  4610. esac
  4611. fi
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4613. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4614. with_gnu_ld=$lt_cv_prog_gnu_ld
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4616. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4617. if test "${lt_cv_path_NM+set}" = set; then :
  4618. $as_echo_n "(cached) " >&6
  4619. else
  4620. if test -n "$NM"; then
  4621. # Let the user override the test.
  4622. lt_cv_path_NM="$NM"
  4623. else
  4624. lt_nm_to_check="${ac_tool_prefix}nm"
  4625. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4626. lt_nm_to_check="$lt_nm_to_check nm"
  4627. fi
  4628. for lt_tmp_nm in $lt_nm_to_check; do
  4629. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4630. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4631. IFS="$lt_save_ifs"
  4632. test -z "$ac_dir" && ac_dir=.
  4633. tmp_nm="$ac_dir/$lt_tmp_nm"
  4634. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4635. # Check to see if the nm accepts a BSD-compat flag.
  4636. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4637. # nm: unknown option "B" ignored
  4638. # Tru64's nm complains that /dev/null is an invalid object file
  4639. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4640. */dev/null* | *'Invalid file or object type'*)
  4641. lt_cv_path_NM="$tmp_nm -B"
  4642. break
  4643. ;;
  4644. *)
  4645. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4646. */dev/null*)
  4647. lt_cv_path_NM="$tmp_nm -p"
  4648. break
  4649. ;;
  4650. *)
  4651. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4652. continue # so that we can try to find one that supports BSD flags
  4653. ;;
  4654. esac
  4655. ;;
  4656. esac
  4657. fi
  4658. done
  4659. IFS="$lt_save_ifs"
  4660. done
  4661. : ${lt_cv_path_NM=no}
  4662. fi
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4665. $as_echo "$lt_cv_path_NM" >&6; }
  4666. if test "$lt_cv_path_NM" != "no"; then
  4667. NM="$lt_cv_path_NM"
  4668. else
  4669. # Didn't find any BSD compatible name lister, look for dumpbin.
  4670. if test -n "$DUMPBIN"; then :
  4671. # Let the user override the test.
  4672. else
  4673. if test -n "$ac_tool_prefix"; then
  4674. for ac_prog in dumpbin "link -dump"
  4675. do
  4676. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4677. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4679. $as_echo_n "checking for $ac_word... " >&6; }
  4680. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -n "$DUMPBIN"; then
  4684. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4685. else
  4686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4687. for as_dir in $PATH
  4688. do
  4689. IFS=$as_save_IFS
  4690. test -z "$as_dir" && as_dir=.
  4691. for ac_exec_ext in '' $ac_executable_extensions; do
  4692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4693. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4695. break 2
  4696. fi
  4697. done
  4698. done
  4699. IFS=$as_save_IFS
  4700. fi
  4701. fi
  4702. DUMPBIN=$ac_cv_prog_DUMPBIN
  4703. if test -n "$DUMPBIN"; then
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4705. $as_echo "$DUMPBIN" >&6; }
  4706. else
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4708. $as_echo "no" >&6; }
  4709. fi
  4710. test -n "$DUMPBIN" && break
  4711. done
  4712. fi
  4713. if test -z "$DUMPBIN"; then
  4714. ac_ct_DUMPBIN=$DUMPBIN
  4715. for ac_prog in dumpbin "link -dump"
  4716. do
  4717. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4718. set dummy $ac_prog; ac_word=$2
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4720. $as_echo_n "checking for $ac_word... " >&6; }
  4721. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. if test -n "$ac_ct_DUMPBIN"; then
  4725. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4726. else
  4727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4728. for as_dir in $PATH
  4729. do
  4730. IFS=$as_save_IFS
  4731. test -z "$as_dir" && as_dir=.
  4732. for ac_exec_ext in '' $ac_executable_extensions; do
  4733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4734. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4736. break 2
  4737. fi
  4738. done
  4739. done
  4740. IFS=$as_save_IFS
  4741. fi
  4742. fi
  4743. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4744. if test -n "$ac_ct_DUMPBIN"; then
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4746. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4747. else
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4749. $as_echo "no" >&6; }
  4750. fi
  4751. test -n "$ac_ct_DUMPBIN" && break
  4752. done
  4753. if test "x$ac_ct_DUMPBIN" = x; then
  4754. DUMPBIN=":"
  4755. else
  4756. case $cross_compiling:$ac_tool_warned in
  4757. yes:)
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4760. ac_tool_warned=yes ;;
  4761. esac
  4762. DUMPBIN=$ac_ct_DUMPBIN
  4763. fi
  4764. fi
  4765. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4766. *COFF*)
  4767. DUMPBIN="$DUMPBIN -symbols"
  4768. ;;
  4769. *)
  4770. DUMPBIN=:
  4771. ;;
  4772. esac
  4773. fi
  4774. if test "$DUMPBIN" != ":"; then
  4775. NM="$DUMPBIN"
  4776. fi
  4777. fi
  4778. test -z "$NM" && NM=nm
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4780. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4781. if test "${lt_cv_nm_interface+set}" = set; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. lt_cv_nm_interface="BSD nm"
  4785. echo "int some_variable = 0;" > conftest.$ac_ext
  4786. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4787. (eval "$ac_compile" 2>conftest.err)
  4788. cat conftest.err >&5
  4789. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4790. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4791. cat conftest.err >&5
  4792. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4793. cat conftest.out >&5
  4794. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4795. lt_cv_nm_interface="MS dumpbin"
  4796. fi
  4797. rm -f conftest*
  4798. fi
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4800. $as_echo "$lt_cv_nm_interface" >&6; }
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4802. $as_echo_n "checking whether ln -s works... " >&6; }
  4803. LN_S=$as_ln_s
  4804. if test "$LN_S" = "ln -s"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4806. $as_echo "yes" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4809. $as_echo "no, using $LN_S" >&6; }
  4810. fi
  4811. # find the maximum length of command line arguments
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4813. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4814. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. i=0
  4818. teststring="ABCD"
  4819. case $build_os in
  4820. msdosdjgpp*)
  4821. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4822. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4823. # during glob expansion). Even if it were fixed, the result of this
  4824. # check would be larger than it should be.
  4825. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4826. ;;
  4827. gnu*)
  4828. # Under GNU Hurd, this test is not required because there is
  4829. # no limit to the length of command line arguments.
  4830. # Libtool will interpret -1 as no limit whatsoever
  4831. lt_cv_sys_max_cmd_len=-1;
  4832. ;;
  4833. cygwin* | mingw* | cegcc*)
  4834. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4835. # about 5 minutes as the teststring grows exponentially.
  4836. # Worse, since 9x/ME are not pre-emptively multitasking,
  4837. # you end up with a "frozen" computer, even though with patience
  4838. # the test eventually succeeds (with a max line length of 256k).
  4839. # Instead, let's just punt: use the minimum linelength reported by
  4840. # all of the supported platforms: 8192 (on NT/2K/XP).
  4841. lt_cv_sys_max_cmd_len=8192;
  4842. ;;
  4843. mint*)
  4844. # On MiNT this can take a long time and run out of memory.
  4845. lt_cv_sys_max_cmd_len=8192;
  4846. ;;
  4847. amigaos*)
  4848. # On AmigaOS with pdksh, this test takes hours, literally.
  4849. # So we just punt and use a minimum line length of 8192.
  4850. lt_cv_sys_max_cmd_len=8192;
  4851. ;;
  4852. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4853. # This has been around since 386BSD, at least. Likely further.
  4854. if test -x /sbin/sysctl; then
  4855. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4856. elif test -x /usr/sbin/sysctl; then
  4857. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4858. else
  4859. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4860. fi
  4861. # And add a safety zone
  4862. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4863. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4864. ;;
  4865. interix*)
  4866. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4867. lt_cv_sys_max_cmd_len=196608
  4868. ;;
  4869. osf*)
  4870. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4871. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4872. # nice to cause kernel panics so lets avoid the loop below.
  4873. # First set a reasonable default.
  4874. lt_cv_sys_max_cmd_len=16384
  4875. #
  4876. if test -x /sbin/sysconfig; then
  4877. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4878. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4879. esac
  4880. fi
  4881. ;;
  4882. sco3.2v5*)
  4883. lt_cv_sys_max_cmd_len=102400
  4884. ;;
  4885. sysv5* | sco5v6* | sysv4.2uw2*)
  4886. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4887. if test -n "$kargmax"; then
  4888. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4889. else
  4890. lt_cv_sys_max_cmd_len=32768
  4891. fi
  4892. ;;
  4893. *)
  4894. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4895. if test -n "$lt_cv_sys_max_cmd_len"; then
  4896. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4897. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4898. else
  4899. # Make teststring a little bigger before we do anything with it.
  4900. # a 1K string should be a reasonable start.
  4901. for i in 1 2 3 4 5 6 7 8 ; do
  4902. teststring=$teststring$teststring
  4903. done
  4904. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4905. # If test is not a shell built-in, we'll probably end up computing a
  4906. # maximum length that is only half of the actual maximum length, but
  4907. # we can't tell.
  4908. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4909. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4910. test $i != 17 # 1/2 MB should be enough
  4911. do
  4912. i=`expr $i + 1`
  4913. teststring=$teststring$teststring
  4914. done
  4915. # Only check the string length outside the loop.
  4916. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4917. teststring=
  4918. # Add a significant safety factor because C++ compilers can tack on
  4919. # massive amounts of additional arguments before passing them to the
  4920. # linker. It appears as though 1/2 is a usable value.
  4921. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4922. fi
  4923. ;;
  4924. esac
  4925. fi
  4926. if test -n $lt_cv_sys_max_cmd_len ; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4928. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4931. $as_echo "none" >&6; }
  4932. fi
  4933. max_cmd_len=$lt_cv_sys_max_cmd_len
  4934. : ${CP="cp -f"}
  4935. : ${MV="mv -f"}
  4936. : ${RM="rm -f"}
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4938. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4939. # Try some XSI features
  4940. xsi_shell=no
  4941. ( _lt_dummy="a/b/c"
  4942. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4943. = c,a/b,, \
  4944. && eval 'test $(( 1 + 1 )) -eq 2 \
  4945. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4946. && xsi_shell=yes
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4948. $as_echo "$xsi_shell" >&6; }
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4950. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4951. lt_shell_append=no
  4952. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4953. >/dev/null 2>&1 \
  4954. && lt_shell_append=yes
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4956. $as_echo "$lt_shell_append" >&6; }
  4957. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4958. lt_unset=unset
  4959. else
  4960. lt_unset=false
  4961. fi
  4962. # test EBCDIC or ASCII
  4963. case `echo X|tr X '\101'` in
  4964. A) # ASCII based system
  4965. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4966. lt_SP2NL='tr \040 \012'
  4967. lt_NL2SP='tr \015\012 \040\040'
  4968. ;;
  4969. *) # EBCDIC based system
  4970. lt_SP2NL='tr \100 \n'
  4971. lt_NL2SP='tr \r\n \100\100'
  4972. ;;
  4973. esac
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4975. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4976. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. lt_cv_ld_reload_flag='-r'
  4980. fi
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4982. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4983. reload_flag=$lt_cv_ld_reload_flag
  4984. case $reload_flag in
  4985. "" | " "*) ;;
  4986. *) reload_flag=" $reload_flag" ;;
  4987. esac
  4988. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4989. case $host_os in
  4990. darwin*)
  4991. if test "$GCC" = yes; then
  4992. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4993. else
  4994. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4995. fi
  4996. ;;
  4997. esac
  4998. if test -n "$ac_tool_prefix"; then
  4999. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5000. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5002. $as_echo_n "checking for $ac_word... " >&6; }
  5003. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. if test -n "$OBJDUMP"; then
  5007. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5008. else
  5009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5010. for as_dir in $PATH
  5011. do
  5012. IFS=$as_save_IFS
  5013. test -z "$as_dir" && as_dir=.
  5014. for ac_exec_ext in '' $ac_executable_extensions; do
  5015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5016. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5018. break 2
  5019. fi
  5020. done
  5021. done
  5022. IFS=$as_save_IFS
  5023. fi
  5024. fi
  5025. OBJDUMP=$ac_cv_prog_OBJDUMP
  5026. if test -n "$OBJDUMP"; then
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5028. $as_echo "$OBJDUMP" >&6; }
  5029. else
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5031. $as_echo "no" >&6; }
  5032. fi
  5033. fi
  5034. if test -z "$ac_cv_prog_OBJDUMP"; then
  5035. ac_ct_OBJDUMP=$OBJDUMP
  5036. # Extract the first word of "objdump", so it can be a program name with args.
  5037. set dummy objdump; ac_word=$2
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5039. $as_echo_n "checking for $ac_word... " >&6; }
  5040. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5041. $as_echo_n "(cached) " >&6
  5042. else
  5043. if test -n "$ac_ct_OBJDUMP"; then
  5044. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5045. else
  5046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5047. for as_dir in $PATH
  5048. do
  5049. IFS=$as_save_IFS
  5050. test -z "$as_dir" && as_dir=.
  5051. for ac_exec_ext in '' $ac_executable_extensions; do
  5052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5053. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5055. break 2
  5056. fi
  5057. done
  5058. done
  5059. IFS=$as_save_IFS
  5060. fi
  5061. fi
  5062. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5063. if test -n "$ac_ct_OBJDUMP"; then
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5065. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5066. else
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5068. $as_echo "no" >&6; }
  5069. fi
  5070. if test "x$ac_ct_OBJDUMP" = x; then
  5071. OBJDUMP="false"
  5072. else
  5073. case $cross_compiling:$ac_tool_warned in
  5074. yes:)
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5077. ac_tool_warned=yes ;;
  5078. esac
  5079. OBJDUMP=$ac_ct_OBJDUMP
  5080. fi
  5081. else
  5082. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5083. fi
  5084. test -z "$OBJDUMP" && OBJDUMP=objdump
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5086. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5087. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5088. $as_echo_n "(cached) " >&6
  5089. else
  5090. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5091. lt_cv_file_magic_test_file=
  5092. lt_cv_deplibs_check_method='unknown'
  5093. # Need to set the preceding variable on all platforms that support
  5094. # interlibrary dependencies.
  5095. # 'none' -- dependencies not supported.
  5096. # `unknown' -- same as none, but documents that we really don't know.
  5097. # 'pass_all' -- all dependencies passed with no checks.
  5098. # 'test_compile' -- check by making test program.
  5099. # 'file_magic [[regex]]' -- check by looking for files in library path
  5100. # which responds to the $file_magic_cmd with a given extended regex.
  5101. # If you have `file' or equivalent on your system and you're not sure
  5102. # whether `pass_all' will *always* work, you probably want this one.
  5103. case $host_os in
  5104. aix[4-9]*)
  5105. lt_cv_deplibs_check_method=pass_all
  5106. ;;
  5107. beos*)
  5108. lt_cv_deplibs_check_method=pass_all
  5109. ;;
  5110. bsdi[45]*)
  5111. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5112. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5113. lt_cv_file_magic_test_file=/shlib/libc.so
  5114. ;;
  5115. cygwin*)
  5116. # func_win32_libid is a shell function defined in ltmain.sh
  5117. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5118. lt_cv_file_magic_cmd='func_win32_libid'
  5119. ;;
  5120. mingw* | pw32*)
  5121. # Base MSYS/MinGW do not provide the 'file' command needed by
  5122. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5123. # unless we find 'file', for example because we are cross-compiling.
  5124. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5125. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5126. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5127. lt_cv_file_magic_cmd='func_win32_libid'
  5128. else
  5129. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5130. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5131. fi
  5132. ;;
  5133. cegcc*)
  5134. # use the weaker test based on 'objdump'. See mingw*.
  5135. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5136. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5137. ;;
  5138. darwin* | rhapsody*)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. freebsd* | dragonfly*)
  5142. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5143. case $host_cpu in
  5144. i*86 )
  5145. # Not sure whether the presence of OpenBSD here was a mistake.
  5146. # Let's accept both of them until this is cleared up.
  5147. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5148. lt_cv_file_magic_cmd=/usr/bin/file
  5149. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5150. ;;
  5151. esac
  5152. else
  5153. lt_cv_deplibs_check_method=pass_all
  5154. fi
  5155. ;;
  5156. gnu*)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. haiku*)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. hpux10.20* | hpux11*)
  5163. lt_cv_file_magic_cmd=/usr/bin/file
  5164. case $host_cpu in
  5165. ia64*)
  5166. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5167. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5168. ;;
  5169. hppa*64*)
  5170. 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]'
  5171. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5172. ;;
  5173. *)
  5174. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5175. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5176. ;;
  5177. esac
  5178. ;;
  5179. interix[3-9]*)
  5180. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5181. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5182. ;;
  5183. irix5* | irix6* | nonstopux*)
  5184. case $LD in
  5185. *-32|*"-32 ") libmagic=32-bit;;
  5186. *-n32|*"-n32 ") libmagic=N32;;
  5187. *-64|*"-64 ") libmagic=64-bit;;
  5188. *) libmagic=never-match;;
  5189. esac
  5190. lt_cv_deplibs_check_method=pass_all
  5191. ;;
  5192. # This must be Linux ELF.
  5193. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5194. lt_cv_deplibs_check_method=pass_all
  5195. ;;
  5196. netbsd*)
  5197. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5198. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5199. else
  5200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5201. fi
  5202. ;;
  5203. newos6*)
  5204. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5205. lt_cv_file_magic_cmd=/usr/bin/file
  5206. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5207. ;;
  5208. *nto* | *qnx*)
  5209. lt_cv_deplibs_check_method=pass_all
  5210. ;;
  5211. openbsd*)
  5212. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5213. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5214. else
  5215. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5216. fi
  5217. ;;
  5218. osf3* | osf4* | osf5*)
  5219. lt_cv_deplibs_check_method=pass_all
  5220. ;;
  5221. rdos*)
  5222. lt_cv_deplibs_check_method=pass_all
  5223. ;;
  5224. solaris*)
  5225. lt_cv_deplibs_check_method=pass_all
  5226. ;;
  5227. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5228. lt_cv_deplibs_check_method=pass_all
  5229. ;;
  5230. sysv4 | sysv4.3*)
  5231. case $host_vendor in
  5232. motorola)
  5233. 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]'
  5234. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5235. ;;
  5236. ncr)
  5237. lt_cv_deplibs_check_method=pass_all
  5238. ;;
  5239. sequent)
  5240. lt_cv_file_magic_cmd='/bin/file'
  5241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5242. ;;
  5243. sni)
  5244. lt_cv_file_magic_cmd='/bin/file'
  5245. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5246. lt_cv_file_magic_test_file=/lib/libc.so
  5247. ;;
  5248. siemens)
  5249. lt_cv_deplibs_check_method=pass_all
  5250. ;;
  5251. pc)
  5252. lt_cv_deplibs_check_method=pass_all
  5253. ;;
  5254. esac
  5255. ;;
  5256. tpf*)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. esac
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5262. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5263. file_magic_cmd=$lt_cv_file_magic_cmd
  5264. deplibs_check_method=$lt_cv_deplibs_check_method
  5265. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5266. if test -n "$ac_tool_prefix"; then
  5267. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5268. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5270. $as_echo_n "checking for $ac_word... " >&6; }
  5271. if test "${ac_cv_prog_AR+set}" = set; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. if test -n "$AR"; then
  5275. ac_cv_prog_AR="$AR" # Let the user override the test.
  5276. else
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_exec_ext in '' $ac_executable_extensions; do
  5283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5284. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5286. break 2
  5287. fi
  5288. done
  5289. done
  5290. IFS=$as_save_IFS
  5291. fi
  5292. fi
  5293. AR=$ac_cv_prog_AR
  5294. if test -n "$AR"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5296. $as_echo "$AR" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. fi
  5302. if test -z "$ac_cv_prog_AR"; then
  5303. ac_ct_AR=$AR
  5304. # Extract the first word of "ar", so it can be a program name with args.
  5305. set dummy ar; ac_word=$2
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5307. $as_echo_n "checking for $ac_word... " >&6; }
  5308. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. if test -n "$ac_ct_AR"; then
  5312. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5313. else
  5314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5315. for as_dir in $PATH
  5316. do
  5317. IFS=$as_save_IFS
  5318. test -z "$as_dir" && as_dir=.
  5319. for ac_exec_ext in '' $ac_executable_extensions; do
  5320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5321. ac_cv_prog_ac_ct_AR="ar"
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5323. break 2
  5324. fi
  5325. done
  5326. done
  5327. IFS=$as_save_IFS
  5328. fi
  5329. fi
  5330. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5331. if test -n "$ac_ct_AR"; then
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5333. $as_echo "$ac_ct_AR" >&6; }
  5334. else
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5336. $as_echo "no" >&6; }
  5337. fi
  5338. if test "x$ac_ct_AR" = x; then
  5339. AR="false"
  5340. else
  5341. case $cross_compiling:$ac_tool_warned in
  5342. yes:)
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5345. ac_tool_warned=yes ;;
  5346. esac
  5347. AR=$ac_ct_AR
  5348. fi
  5349. else
  5350. AR="$ac_cv_prog_AR"
  5351. fi
  5352. test -z "$AR" && AR=ar
  5353. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5354. if test -n "$ac_tool_prefix"; then
  5355. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5356. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5358. $as_echo_n "checking for $ac_word... " >&6; }
  5359. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. if test -n "$STRIP"; then
  5363. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5364. else
  5365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5366. for as_dir in $PATH
  5367. do
  5368. IFS=$as_save_IFS
  5369. test -z "$as_dir" && as_dir=.
  5370. for ac_exec_ext in '' $ac_executable_extensions; do
  5371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5372. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5374. break 2
  5375. fi
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. fi
  5380. fi
  5381. STRIP=$ac_cv_prog_STRIP
  5382. if test -n "$STRIP"; then
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5384. $as_echo "$STRIP" >&6; }
  5385. else
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5387. $as_echo "no" >&6; }
  5388. fi
  5389. fi
  5390. if test -z "$ac_cv_prog_STRIP"; then
  5391. ac_ct_STRIP=$STRIP
  5392. # Extract the first word of "strip", so it can be a program name with args.
  5393. set dummy strip; ac_word=$2
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5395. $as_echo_n "checking for $ac_word... " >&6; }
  5396. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. if test -n "$ac_ct_STRIP"; then
  5400. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. test -z "$as_dir" && as_dir=.
  5407. for ac_exec_ext in '' $ac_executable_extensions; do
  5408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5409. ac_cv_prog_ac_ct_STRIP="strip"
  5410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5411. break 2
  5412. fi
  5413. done
  5414. done
  5415. IFS=$as_save_IFS
  5416. fi
  5417. fi
  5418. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5419. if test -n "$ac_ct_STRIP"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5421. $as_echo "$ac_ct_STRIP" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5424. $as_echo "no" >&6; }
  5425. fi
  5426. if test "x$ac_ct_STRIP" = x; then
  5427. STRIP=":"
  5428. else
  5429. case $cross_compiling:$ac_tool_warned in
  5430. yes:)
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5433. ac_tool_warned=yes ;;
  5434. esac
  5435. STRIP=$ac_ct_STRIP
  5436. fi
  5437. else
  5438. STRIP="$ac_cv_prog_STRIP"
  5439. fi
  5440. test -z "$STRIP" && STRIP=:
  5441. if test -n "$ac_tool_prefix"; then
  5442. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5443. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$RANLIB"; then
  5450. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. RANLIB=$ac_cv_prog_RANLIB
  5469. if test -n "$RANLIB"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5471. $as_echo "$RANLIB" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. fi
  5477. if test -z "$ac_cv_prog_RANLIB"; then
  5478. ac_ct_RANLIB=$RANLIB
  5479. # Extract the first word of "ranlib", so it can be a program name with args.
  5480. set dummy ranlib; ac_word=$2
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5482. $as_echo_n "checking for $ac_word... " >&6; }
  5483. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -n "$ac_ct_RANLIB"; then
  5487. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5488. else
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5496. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. fi
  5504. fi
  5505. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5506. if test -n "$ac_ct_RANLIB"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5508. $as_echo "$ac_ct_RANLIB" >&6; }
  5509. else
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. $as_echo "no" >&6; }
  5512. fi
  5513. if test "x$ac_ct_RANLIB" = x; then
  5514. RANLIB=":"
  5515. else
  5516. case $cross_compiling:$ac_tool_warned in
  5517. yes:)
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5520. ac_tool_warned=yes ;;
  5521. esac
  5522. RANLIB=$ac_ct_RANLIB
  5523. fi
  5524. else
  5525. RANLIB="$ac_cv_prog_RANLIB"
  5526. fi
  5527. test -z "$RANLIB" && RANLIB=:
  5528. # Determine commands to create old-style static archives.
  5529. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5530. old_postinstall_cmds='chmod 644 $oldlib'
  5531. old_postuninstall_cmds=
  5532. if test -n "$RANLIB"; then
  5533. case $host_os in
  5534. openbsd*)
  5535. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5536. ;;
  5537. *)
  5538. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5539. ;;
  5540. esac
  5541. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5542. fi
  5543. case $host_os in
  5544. darwin*)
  5545. lock_old_archive_extraction=yes ;;
  5546. *)
  5547. lock_old_archive_extraction=no ;;
  5548. esac
  5549. # If no C compiler was specified, use CC.
  5550. LTCC=${LTCC-"$CC"}
  5551. # If no C compiler flags were specified, use CFLAGS.
  5552. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5553. # Allow CC to be a program name with arguments.
  5554. compiler=$CC
  5555. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5557. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5558. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. # These are sane defaults that work on at least a few old systems.
  5562. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5563. # Character class describing NM global symbol codes.
  5564. symcode='[BCDEGRST]'
  5565. # Regexp to match symbols that can be accessed directly from C.
  5566. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5567. # Define system-specific variables.
  5568. case $host_os in
  5569. aix*)
  5570. symcode='[BCDT]'
  5571. ;;
  5572. cygwin* | mingw* | pw32* | cegcc*)
  5573. symcode='[ABCDGISTW]'
  5574. ;;
  5575. hpux*)
  5576. if test "$host_cpu" = ia64; then
  5577. symcode='[ABCDEGRST]'
  5578. fi
  5579. ;;
  5580. irix* | nonstopux*)
  5581. symcode='[BCDEGRST]'
  5582. ;;
  5583. osf*)
  5584. symcode='[BCDEGQRST]'
  5585. ;;
  5586. solaris*)
  5587. symcode='[BDRT]'
  5588. ;;
  5589. sco3.2v5*)
  5590. symcode='[DT]'
  5591. ;;
  5592. sysv4.2uw2*)
  5593. symcode='[DT]'
  5594. ;;
  5595. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5596. symcode='[ABDT]'
  5597. ;;
  5598. sysv4)
  5599. symcode='[DFNSTU]'
  5600. ;;
  5601. esac
  5602. # If we're using GNU nm, then use its standard symbol codes.
  5603. case `$NM -V 2>&1` in
  5604. *GNU* | *'with BFD'*)
  5605. symcode='[ABCDGIRSTW]' ;;
  5606. esac
  5607. # Transform an extracted symbol line into a proper C declaration.
  5608. # Some systems (esp. on ia64) link data and code symbols differently,
  5609. # so use this general approach.
  5610. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5611. # Transform an extracted symbol line into symbol name and symbol address
  5612. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5613. 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'"
  5614. # Handle CRLF in mingw tool chain
  5615. opt_cr=
  5616. case $build_os in
  5617. mingw*)
  5618. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5619. ;;
  5620. esac
  5621. # Try without a prefix underscore, then with it.
  5622. for ac_symprfx in "" "_"; do
  5623. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5624. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5625. # Write the raw and C identifiers.
  5626. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5627. # Fake it for dumpbin and say T for any non-static function
  5628. # and D for any global variable.
  5629. # Also find C++ and __fastcall symbols from MSVC++,
  5630. # which start with @ or ?.
  5631. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5632. " {last_section=section; section=\$ 3};"\
  5633. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5634. " \$ 0!~/External *\|/{next};"\
  5635. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5636. " {if(hide[section]) next};"\
  5637. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5638. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5639. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5640. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5641. " ' prfx=^$ac_symprfx"
  5642. else
  5643. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5644. fi
  5645. # Check to see that the pipe works correctly.
  5646. pipe_works=no
  5647. rm -f conftest*
  5648. cat > conftest.$ac_ext <<_LT_EOF
  5649. #ifdef __cplusplus
  5650. extern "C" {
  5651. #endif
  5652. char nm_test_var;
  5653. void nm_test_func(void);
  5654. void nm_test_func(void){}
  5655. #ifdef __cplusplus
  5656. }
  5657. #endif
  5658. int main(){nm_test_var='a';nm_test_func();return(0);}
  5659. _LT_EOF
  5660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5661. (eval $ac_compile) 2>&5
  5662. ac_status=$?
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5664. test $ac_status = 0; }; then
  5665. # Now try to grab the symbols.
  5666. nlist=conftest.nm
  5667. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5668. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5669. ac_status=$?
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5671. test $ac_status = 0; } && test -s "$nlist"; then
  5672. # Try sorting and uniquifying the output.
  5673. if sort "$nlist" | uniq > "$nlist"T; then
  5674. mv -f "$nlist"T "$nlist"
  5675. else
  5676. rm -f "$nlist"T
  5677. fi
  5678. # Make sure that we snagged all the symbols we need.
  5679. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5680. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5681. cat <<_LT_EOF > conftest.$ac_ext
  5682. #ifdef __cplusplus
  5683. extern "C" {
  5684. #endif
  5685. _LT_EOF
  5686. # Now generate the symbol file.
  5687. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5688. cat <<_LT_EOF >> conftest.$ac_ext
  5689. /* The mapping between symbol names and symbols. */
  5690. const struct {
  5691. const char *name;
  5692. void *address;
  5693. }
  5694. lt__PROGRAM__LTX_preloaded_symbols[] =
  5695. {
  5696. { "@PROGRAM@", (void *) 0 },
  5697. _LT_EOF
  5698. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5699. cat <<\_LT_EOF >> conftest.$ac_ext
  5700. {0, (void *) 0}
  5701. };
  5702. /* This works around a problem in FreeBSD linker */
  5703. #ifdef FREEBSD_WORKAROUND
  5704. static const void *lt_preloaded_setup() {
  5705. return lt__PROGRAM__LTX_preloaded_symbols;
  5706. }
  5707. #endif
  5708. #ifdef __cplusplus
  5709. }
  5710. #endif
  5711. _LT_EOF
  5712. # Now try linking the two files.
  5713. mv conftest.$ac_objext conftstm.$ac_objext
  5714. lt_save_LIBS="$LIBS"
  5715. lt_save_CFLAGS="$CFLAGS"
  5716. LIBS="conftstm.$ac_objext"
  5717. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5719. (eval $ac_link) 2>&5
  5720. ac_status=$?
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5722. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5723. pipe_works=yes
  5724. fi
  5725. LIBS="$lt_save_LIBS"
  5726. CFLAGS="$lt_save_CFLAGS"
  5727. else
  5728. echo "cannot find nm_test_func in $nlist" >&5
  5729. fi
  5730. else
  5731. echo "cannot find nm_test_var in $nlist" >&5
  5732. fi
  5733. else
  5734. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5735. fi
  5736. else
  5737. echo "$progname: failed program was:" >&5
  5738. cat conftest.$ac_ext >&5
  5739. fi
  5740. rm -rf conftest* conftst*
  5741. # Do not use the global_symbol_pipe unless it works.
  5742. if test "$pipe_works" = yes; then
  5743. break
  5744. else
  5745. lt_cv_sys_global_symbol_pipe=
  5746. fi
  5747. done
  5748. fi
  5749. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5750. lt_cv_sys_global_symbol_to_cdecl=
  5751. fi
  5752. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5754. $as_echo "failed" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5757. $as_echo "ok" >&6; }
  5758. fi
  5759. # Check whether --enable-libtool-lock was given.
  5760. if test "${enable_libtool_lock+set}" = set; then :
  5761. enableval=$enable_libtool_lock;
  5762. fi
  5763. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5764. # Some flags need to be propagated to the compiler or linker for good
  5765. # libtool support.
  5766. case $host in
  5767. ia64-*-hpux*)
  5768. # Find out which ABI we are using.
  5769. echo 'int i;' > conftest.$ac_ext
  5770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5771. (eval $ac_compile) 2>&5
  5772. ac_status=$?
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5774. test $ac_status = 0; }; then
  5775. case `/usr/bin/file conftest.$ac_objext` in
  5776. *ELF-32*)
  5777. HPUX_IA64_MODE="32"
  5778. ;;
  5779. *ELF-64*)
  5780. HPUX_IA64_MODE="64"
  5781. ;;
  5782. esac
  5783. fi
  5784. rm -rf conftest*
  5785. ;;
  5786. *-*-irix6*)
  5787. # Find out which ABI we are using.
  5788. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5789. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5790. (eval $ac_compile) 2>&5
  5791. ac_status=$?
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5793. test $ac_status = 0; }; then
  5794. if test "$lt_cv_prog_gnu_ld" = yes; then
  5795. case `/usr/bin/file conftest.$ac_objext` in
  5796. *32-bit*)
  5797. LD="${LD-ld} -melf32bsmip"
  5798. ;;
  5799. *N32*)
  5800. LD="${LD-ld} -melf32bmipn32"
  5801. ;;
  5802. *64-bit*)
  5803. LD="${LD-ld} -melf64bmip"
  5804. ;;
  5805. esac
  5806. else
  5807. case `/usr/bin/file conftest.$ac_objext` in
  5808. *32-bit*)
  5809. LD="${LD-ld} -32"
  5810. ;;
  5811. *N32*)
  5812. LD="${LD-ld} -n32"
  5813. ;;
  5814. *64-bit*)
  5815. LD="${LD-ld} -64"
  5816. ;;
  5817. esac
  5818. fi
  5819. fi
  5820. rm -rf conftest*
  5821. ;;
  5822. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5823. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5824. # Find out which ABI we are using.
  5825. echo 'int i;' > conftest.$ac_ext
  5826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5827. (eval $ac_compile) 2>&5
  5828. ac_status=$?
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5830. test $ac_status = 0; }; then
  5831. case `/usr/bin/file conftest.o` in
  5832. *32-bit*)
  5833. case $host in
  5834. x86_64-*kfreebsd*-gnu)
  5835. LD="${LD-ld} -m elf_i386_fbsd"
  5836. ;;
  5837. x86_64-*linux*)
  5838. case `/usr/bin/file conftest.o` in
  5839. *x86-64*)
  5840. LD="${LD-ld} -m elf32_x86_64"
  5841. ;;
  5842. *)
  5843. LD="${LD-ld} -m elf_i386"
  5844. ;;
  5845. esac
  5846. ;;
  5847. powerpc64le-*linux*)
  5848. LD="${LD-ld} -m elf32lppclinux"
  5849. ;;
  5850. powerpc64-*linux*)
  5851. LD="${LD-ld} -m elf32ppclinux"
  5852. ;;
  5853. s390x-*linux*)
  5854. LD="${LD-ld} -m elf_s390"
  5855. ;;
  5856. sparc64-*linux*)
  5857. LD="${LD-ld} -m elf32_sparc"
  5858. ;;
  5859. esac
  5860. ;;
  5861. *64-bit*)
  5862. case $host in
  5863. x86_64-*kfreebsd*-gnu)
  5864. LD="${LD-ld} -m elf_x86_64_fbsd"
  5865. ;;
  5866. x86_64-*linux*)
  5867. LD="${LD-ld} -m elf_x86_64"
  5868. ;;
  5869. powerpcle-*linux*)
  5870. LD="${LD-ld} -m elf64lppc"
  5871. ;;
  5872. powerpc-*linux*)
  5873. LD="${LD-ld} -m elf64ppc"
  5874. ;;
  5875. s390*-*linux*|s390*-*tpf*)
  5876. LD="${LD-ld} -m elf64_s390"
  5877. ;;
  5878. sparc*-*linux*)
  5879. LD="${LD-ld} -m elf64_sparc"
  5880. ;;
  5881. esac
  5882. ;;
  5883. esac
  5884. fi
  5885. rm -rf conftest*
  5886. ;;
  5887. *-*-sco3.2v5*)
  5888. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5889. SAVE_CFLAGS="$CFLAGS"
  5890. CFLAGS="$CFLAGS -belf"
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5892. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5893. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. ac_ext=c
  5897. ac_cpp='$CPP $CPPFLAGS'
  5898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5902. /* end confdefs.h. */
  5903. int
  5904. main ()
  5905. {
  5906. ;
  5907. return 0;
  5908. }
  5909. _ACEOF
  5910. if ac_fn_c_try_link "$LINENO"; then :
  5911. lt_cv_cc_needs_belf=yes
  5912. else
  5913. lt_cv_cc_needs_belf=no
  5914. fi
  5915. rm -f core conftest.err conftest.$ac_objext \
  5916. conftest$ac_exeext conftest.$ac_ext
  5917. ac_ext=c
  5918. ac_cpp='$CPP $CPPFLAGS'
  5919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5922. fi
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5924. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5925. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5926. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5927. CFLAGS="$SAVE_CFLAGS"
  5928. fi
  5929. ;;
  5930. sparc*-*solaris*)
  5931. # Find out which ABI we are using.
  5932. echo 'int i;' > conftest.$ac_ext
  5933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5934. (eval $ac_compile) 2>&5
  5935. ac_status=$?
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5937. test $ac_status = 0; }; then
  5938. case `/usr/bin/file conftest.o` in
  5939. *64-bit*)
  5940. case $lt_cv_prog_gnu_ld in
  5941. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5942. *)
  5943. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5944. LD="${LD-ld} -64"
  5945. fi
  5946. ;;
  5947. esac
  5948. ;;
  5949. esac
  5950. fi
  5951. rm -rf conftest*
  5952. ;;
  5953. esac
  5954. need_locks="$enable_libtool_lock"
  5955. case $host_os in
  5956. rhapsody* | darwin*)
  5957. if test -n "$ac_tool_prefix"; then
  5958. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5959. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5961. $as_echo_n "checking for $ac_word... " >&6; }
  5962. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. if test -n "$DSYMUTIL"; then
  5966. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5967. else
  5968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5969. for as_dir in $PATH
  5970. do
  5971. IFS=$as_save_IFS
  5972. test -z "$as_dir" && as_dir=.
  5973. for ac_exec_ext in '' $ac_executable_extensions; do
  5974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5975. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5977. break 2
  5978. fi
  5979. done
  5980. done
  5981. IFS=$as_save_IFS
  5982. fi
  5983. fi
  5984. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5985. if test -n "$DSYMUTIL"; then
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5987. $as_echo "$DSYMUTIL" >&6; }
  5988. else
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5990. $as_echo "no" >&6; }
  5991. fi
  5992. fi
  5993. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5994. ac_ct_DSYMUTIL=$DSYMUTIL
  5995. # Extract the first word of "dsymutil", so it can be a program name with args.
  5996. set dummy dsymutil; ac_word=$2
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5998. $as_echo_n "checking for $ac_word... " >&6; }
  5999. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. if test -n "$ac_ct_DSYMUTIL"; then
  6003. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6004. else
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_exec_ext in '' $ac_executable_extensions; do
  6011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6012. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6014. break 2
  6015. fi
  6016. done
  6017. done
  6018. IFS=$as_save_IFS
  6019. fi
  6020. fi
  6021. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6022. if test -n "$ac_ct_DSYMUTIL"; then
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6024. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. if test "x$ac_ct_DSYMUTIL" = x; then
  6030. DSYMUTIL=":"
  6031. else
  6032. case $cross_compiling:$ac_tool_warned in
  6033. yes:)
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6036. ac_tool_warned=yes ;;
  6037. esac
  6038. DSYMUTIL=$ac_ct_DSYMUTIL
  6039. fi
  6040. else
  6041. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6042. fi
  6043. if test -n "$ac_tool_prefix"; then
  6044. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6045. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6047. $as_echo_n "checking for $ac_word... " >&6; }
  6048. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6049. $as_echo_n "(cached) " >&6
  6050. else
  6051. if test -n "$NMEDIT"; then
  6052. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6053. else
  6054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6055. for as_dir in $PATH
  6056. do
  6057. IFS=$as_save_IFS
  6058. test -z "$as_dir" && as_dir=.
  6059. for ac_exec_ext in '' $ac_executable_extensions; do
  6060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6061. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6063. break 2
  6064. fi
  6065. done
  6066. done
  6067. IFS=$as_save_IFS
  6068. fi
  6069. fi
  6070. NMEDIT=$ac_cv_prog_NMEDIT
  6071. if test -n "$NMEDIT"; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6073. $as_echo "$NMEDIT" >&6; }
  6074. else
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6076. $as_echo "no" >&6; }
  6077. fi
  6078. fi
  6079. if test -z "$ac_cv_prog_NMEDIT"; then
  6080. ac_ct_NMEDIT=$NMEDIT
  6081. # Extract the first word of "nmedit", so it can be a program name with args.
  6082. set dummy nmedit; ac_word=$2
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6084. $as_echo_n "checking for $ac_word... " >&6; }
  6085. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. if test -n "$ac_ct_NMEDIT"; then
  6089. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6090. else
  6091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6092. for as_dir in $PATH
  6093. do
  6094. IFS=$as_save_IFS
  6095. test -z "$as_dir" && as_dir=.
  6096. for ac_exec_ext in '' $ac_executable_extensions; do
  6097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6098. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6100. break 2
  6101. fi
  6102. done
  6103. done
  6104. IFS=$as_save_IFS
  6105. fi
  6106. fi
  6107. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6108. if test -n "$ac_ct_NMEDIT"; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6110. $as_echo "$ac_ct_NMEDIT" >&6; }
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6113. $as_echo "no" >&6; }
  6114. fi
  6115. if test "x$ac_ct_NMEDIT" = x; then
  6116. NMEDIT=":"
  6117. else
  6118. case $cross_compiling:$ac_tool_warned in
  6119. yes:)
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6121. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6122. ac_tool_warned=yes ;;
  6123. esac
  6124. NMEDIT=$ac_ct_NMEDIT
  6125. fi
  6126. else
  6127. NMEDIT="$ac_cv_prog_NMEDIT"
  6128. fi
  6129. if test -n "$ac_tool_prefix"; then
  6130. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6131. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6133. $as_echo_n "checking for $ac_word... " >&6; }
  6134. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. if test -n "$LIPO"; then
  6138. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6139. else
  6140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6141. for as_dir in $PATH
  6142. do
  6143. IFS=$as_save_IFS
  6144. test -z "$as_dir" && as_dir=.
  6145. for ac_exec_ext in '' $ac_executable_extensions; do
  6146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6147. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6149. break 2
  6150. fi
  6151. done
  6152. done
  6153. IFS=$as_save_IFS
  6154. fi
  6155. fi
  6156. LIPO=$ac_cv_prog_LIPO
  6157. if test -n "$LIPO"; then
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6159. $as_echo "$LIPO" >&6; }
  6160. else
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6162. $as_echo "no" >&6; }
  6163. fi
  6164. fi
  6165. if test -z "$ac_cv_prog_LIPO"; then
  6166. ac_ct_LIPO=$LIPO
  6167. # Extract the first word of "lipo", so it can be a program name with args.
  6168. set dummy lipo; ac_word=$2
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6170. $as_echo_n "checking for $ac_word... " >&6; }
  6171. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6172. $as_echo_n "(cached) " >&6
  6173. else
  6174. if test -n "$ac_ct_LIPO"; then
  6175. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6176. else
  6177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6178. for as_dir in $PATH
  6179. do
  6180. IFS=$as_save_IFS
  6181. test -z "$as_dir" && as_dir=.
  6182. for ac_exec_ext in '' $ac_executable_extensions; do
  6183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6184. ac_cv_prog_ac_ct_LIPO="lipo"
  6185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6186. break 2
  6187. fi
  6188. done
  6189. done
  6190. IFS=$as_save_IFS
  6191. fi
  6192. fi
  6193. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6194. if test -n "$ac_ct_LIPO"; then
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6196. $as_echo "$ac_ct_LIPO" >&6; }
  6197. else
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6199. $as_echo "no" >&6; }
  6200. fi
  6201. if test "x$ac_ct_LIPO" = x; then
  6202. LIPO=":"
  6203. else
  6204. case $cross_compiling:$ac_tool_warned in
  6205. yes:)
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6207. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6208. ac_tool_warned=yes ;;
  6209. esac
  6210. LIPO=$ac_ct_LIPO
  6211. fi
  6212. else
  6213. LIPO="$ac_cv_prog_LIPO"
  6214. fi
  6215. if test -n "$ac_tool_prefix"; then
  6216. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6217. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6219. $as_echo_n "checking for $ac_word... " >&6; }
  6220. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6221. $as_echo_n "(cached) " >&6
  6222. else
  6223. if test -n "$OTOOL"; then
  6224. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6225. else
  6226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6227. for as_dir in $PATH
  6228. do
  6229. IFS=$as_save_IFS
  6230. test -z "$as_dir" && as_dir=.
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6233. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6235. break 2
  6236. fi
  6237. done
  6238. done
  6239. IFS=$as_save_IFS
  6240. fi
  6241. fi
  6242. OTOOL=$ac_cv_prog_OTOOL
  6243. if test -n "$OTOOL"; then
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6245. $as_echo "$OTOOL" >&6; }
  6246. else
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6248. $as_echo "no" >&6; }
  6249. fi
  6250. fi
  6251. if test -z "$ac_cv_prog_OTOOL"; then
  6252. ac_ct_OTOOL=$OTOOL
  6253. # Extract the first word of "otool", so it can be a program name with args.
  6254. set dummy otool; ac_word=$2
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6256. $as_echo_n "checking for $ac_word... " >&6; }
  6257. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. if test -n "$ac_ct_OTOOL"; then
  6261. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6262. else
  6263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6264. for as_dir in $PATH
  6265. do
  6266. IFS=$as_save_IFS
  6267. test -z "$as_dir" && as_dir=.
  6268. for ac_exec_ext in '' $ac_executable_extensions; do
  6269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6270. ac_cv_prog_ac_ct_OTOOL="otool"
  6271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6272. break 2
  6273. fi
  6274. done
  6275. done
  6276. IFS=$as_save_IFS
  6277. fi
  6278. fi
  6279. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6280. if test -n "$ac_ct_OTOOL"; then
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6282. $as_echo "$ac_ct_OTOOL" >&6; }
  6283. else
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6285. $as_echo "no" >&6; }
  6286. fi
  6287. if test "x$ac_ct_OTOOL" = x; then
  6288. OTOOL=":"
  6289. else
  6290. case $cross_compiling:$ac_tool_warned in
  6291. yes:)
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6293. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6294. ac_tool_warned=yes ;;
  6295. esac
  6296. OTOOL=$ac_ct_OTOOL
  6297. fi
  6298. else
  6299. OTOOL="$ac_cv_prog_OTOOL"
  6300. fi
  6301. if test -n "$ac_tool_prefix"; then
  6302. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6303. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6305. $as_echo_n "checking for $ac_word... " >&6; }
  6306. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. if test -n "$OTOOL64"; then
  6310. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6311. else
  6312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6313. for as_dir in $PATH
  6314. do
  6315. IFS=$as_save_IFS
  6316. test -z "$as_dir" && as_dir=.
  6317. for ac_exec_ext in '' $ac_executable_extensions; do
  6318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6319. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6321. break 2
  6322. fi
  6323. done
  6324. done
  6325. IFS=$as_save_IFS
  6326. fi
  6327. fi
  6328. OTOOL64=$ac_cv_prog_OTOOL64
  6329. if test -n "$OTOOL64"; then
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6331. $as_echo "$OTOOL64" >&6; }
  6332. else
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6334. $as_echo "no" >&6; }
  6335. fi
  6336. fi
  6337. if test -z "$ac_cv_prog_OTOOL64"; then
  6338. ac_ct_OTOOL64=$OTOOL64
  6339. # Extract the first word of "otool64", so it can be a program name with args.
  6340. set dummy otool64; ac_word=$2
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$ac_ct_OTOOL64"; then
  6347. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6356. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6366. if test -n "$ac_ct_OTOOL64"; then
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6368. $as_echo "$ac_ct_OTOOL64" >&6; }
  6369. else
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. if test "x$ac_ct_OTOOL64" = x; then
  6374. OTOOL64=":"
  6375. else
  6376. case $cross_compiling:$ac_tool_warned in
  6377. yes:)
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6380. ac_tool_warned=yes ;;
  6381. esac
  6382. OTOOL64=$ac_ct_OTOOL64
  6383. fi
  6384. else
  6385. OTOOL64="$ac_cv_prog_OTOOL64"
  6386. fi
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6388. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6389. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6390. $as_echo_n "(cached) " >&6
  6391. else
  6392. lt_cv_apple_cc_single_mod=no
  6393. if test -z "${LT_MULTI_MODULE}"; then
  6394. # By default we will add the -single_module flag. You can override
  6395. # by either setting the environment variable LT_MULTI_MODULE
  6396. # non-empty at configure time, or by adding -multi_module to the
  6397. # link flags.
  6398. rm -rf libconftest.dylib*
  6399. echo "int foo(void){return 1;}" > conftest.c
  6400. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6401. -dynamiclib -Wl,-single_module conftest.c" >&5
  6402. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6403. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6404. _lt_result=$?
  6405. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6406. lt_cv_apple_cc_single_mod=yes
  6407. else
  6408. cat conftest.err >&5
  6409. fi
  6410. rm -rf libconftest.dylib*
  6411. rm -f conftest.*
  6412. fi
  6413. fi
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6415. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6417. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6418. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. lt_cv_ld_exported_symbols_list=no
  6422. save_LDFLAGS=$LDFLAGS
  6423. echo "_main" > conftest.sym
  6424. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h. */
  6427. int
  6428. main ()
  6429. {
  6430. ;
  6431. return 0;
  6432. }
  6433. _ACEOF
  6434. if ac_fn_c_try_link "$LINENO"; then :
  6435. lt_cv_ld_exported_symbols_list=yes
  6436. else
  6437. lt_cv_ld_exported_symbols_list=no
  6438. fi
  6439. rm -f core conftest.err conftest.$ac_objext \
  6440. conftest$ac_exeext conftest.$ac_ext
  6441. LDFLAGS="$save_LDFLAGS"
  6442. fi
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6444. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6446. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6447. if test "${lt_cv_ld_force_load+set}" = set; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. lt_cv_ld_force_load=no
  6451. cat > conftest.c << _LT_EOF
  6452. int forced_loaded() { return 2;}
  6453. _LT_EOF
  6454. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6455. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6456. echo "$AR cru libconftest.a conftest.o" >&5
  6457. $AR cru libconftest.a conftest.o 2>&5
  6458. cat > conftest.c << _LT_EOF
  6459. int main() { return 0;}
  6460. _LT_EOF
  6461. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6462. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6463. _lt_result=$?
  6464. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6465. lt_cv_ld_force_load=yes
  6466. else
  6467. cat conftest.err >&5
  6468. fi
  6469. rm -f conftest.err libconftest.a conftest conftest.c
  6470. rm -rf conftest.dSYM
  6471. fi
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6473. $as_echo "$lt_cv_ld_force_load" >&6; }
  6474. case $host_os in
  6475. rhapsody* | darwin1.[012])
  6476. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6477. darwin1.*)
  6478. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6479. darwin*) # darwin 5.x on
  6480. # if running on 10.5 or later, the deployment target defaults
  6481. # to the OS version, if on x86, and 10.4, the deployment
  6482. # target defaults to 10.4. Don't you love it?
  6483. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6484. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6485. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6486. 10.[012][,.]*)
  6487. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6488. 10.*)
  6489. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6490. esac
  6491. ;;
  6492. esac
  6493. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6494. _lt_dar_single_mod='$single_module'
  6495. fi
  6496. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6497. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6498. else
  6499. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6500. fi
  6501. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6502. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6503. else
  6504. _lt_dsymutil=
  6505. fi
  6506. ;;
  6507. esac
  6508. ac_ext=c
  6509. ac_cpp='$CPP $CPPFLAGS'
  6510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6514. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6515. # On Suns, sometimes $CPP names a directory.
  6516. if test -n "$CPP" && test -d "$CPP"; then
  6517. CPP=
  6518. fi
  6519. if test -z "$CPP"; then
  6520. if test "${ac_cv_prog_CPP+set}" = set; then :
  6521. $as_echo_n "(cached) " >&6
  6522. else
  6523. # Double quotes because CPP needs to be expanded
  6524. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6525. do
  6526. ac_preproc_ok=false
  6527. for ac_c_preproc_warn_flag in '' yes
  6528. do
  6529. # Use a header file that comes with gcc, so configuring glibc
  6530. # with a fresh cross-compiler works.
  6531. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6532. # <limits.h> exists even on freestanding compilers.
  6533. # On the NeXT, cc -E runs the code through the compiler's parser,
  6534. # not just through cpp. "Syntax error" is here to catch this case.
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. #ifdef __STDC__
  6538. # include <limits.h>
  6539. #else
  6540. # include <assert.h>
  6541. #endif
  6542. Syntax error
  6543. _ACEOF
  6544. if ac_fn_c_try_cpp "$LINENO"; then :
  6545. else
  6546. # Broken: fails on valid input.
  6547. continue
  6548. fi
  6549. rm -f conftest.err conftest.$ac_ext
  6550. # OK, works on sane cases. Now check whether nonexistent headers
  6551. # can be detected and how.
  6552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6553. /* end confdefs.h. */
  6554. #include <ac_nonexistent.h>
  6555. _ACEOF
  6556. if ac_fn_c_try_cpp "$LINENO"; then :
  6557. # Broken: success on invalid input.
  6558. continue
  6559. else
  6560. # Passes both tests.
  6561. ac_preproc_ok=:
  6562. break
  6563. fi
  6564. rm -f conftest.err conftest.$ac_ext
  6565. done
  6566. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6567. rm -f conftest.err conftest.$ac_ext
  6568. if $ac_preproc_ok; then :
  6569. break
  6570. fi
  6571. done
  6572. ac_cv_prog_CPP=$CPP
  6573. fi
  6574. CPP=$ac_cv_prog_CPP
  6575. else
  6576. ac_cv_prog_CPP=$CPP
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6579. $as_echo "$CPP" >&6; }
  6580. ac_preproc_ok=false
  6581. for ac_c_preproc_warn_flag in '' yes
  6582. do
  6583. # Use a header file that comes with gcc, so configuring glibc
  6584. # with a fresh cross-compiler works.
  6585. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6586. # <limits.h> exists even on freestanding compilers.
  6587. # On the NeXT, cc -E runs the code through the compiler's parser,
  6588. # not just through cpp. "Syntax error" is here to catch this case.
  6589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6590. /* end confdefs.h. */
  6591. #ifdef __STDC__
  6592. # include <limits.h>
  6593. #else
  6594. # include <assert.h>
  6595. #endif
  6596. Syntax error
  6597. _ACEOF
  6598. if ac_fn_c_try_cpp "$LINENO"; then :
  6599. else
  6600. # Broken: fails on valid input.
  6601. continue
  6602. fi
  6603. rm -f conftest.err conftest.$ac_ext
  6604. # OK, works on sane cases. Now check whether nonexistent headers
  6605. # can be detected and how.
  6606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6607. /* end confdefs.h. */
  6608. #include <ac_nonexistent.h>
  6609. _ACEOF
  6610. if ac_fn_c_try_cpp "$LINENO"; then :
  6611. # Broken: success on invalid input.
  6612. continue
  6613. else
  6614. # Passes both tests.
  6615. ac_preproc_ok=:
  6616. break
  6617. fi
  6618. rm -f conftest.err conftest.$ac_ext
  6619. done
  6620. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6621. rm -f conftest.err conftest.$ac_ext
  6622. if $ac_preproc_ok; then :
  6623. else
  6624. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6625. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6626. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6627. See \`config.log' for more details." "$LINENO" 5; }
  6628. fi
  6629. ac_ext=c
  6630. ac_cpp='$CPP $CPPFLAGS'
  6631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6635. $as_echo_n "checking for ANSI C header files... " >&6; }
  6636. if test "${ac_cv_header_stdc+set}" = set; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6640. /* end confdefs.h. */
  6641. #include <stdlib.h>
  6642. #include <stdarg.h>
  6643. #include <string.h>
  6644. #include <float.h>
  6645. int
  6646. main ()
  6647. {
  6648. ;
  6649. return 0;
  6650. }
  6651. _ACEOF
  6652. if ac_fn_c_try_compile "$LINENO"; then :
  6653. ac_cv_header_stdc=yes
  6654. else
  6655. ac_cv_header_stdc=no
  6656. fi
  6657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6658. if test $ac_cv_header_stdc = yes; then
  6659. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. #include <string.h>
  6663. _ACEOF
  6664. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6665. $EGREP "memchr" >/dev/null 2>&1; then :
  6666. else
  6667. ac_cv_header_stdc=no
  6668. fi
  6669. rm -f conftest*
  6670. fi
  6671. if test $ac_cv_header_stdc = yes; then
  6672. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6674. /* end confdefs.h. */
  6675. #include <stdlib.h>
  6676. _ACEOF
  6677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6678. $EGREP "free" >/dev/null 2>&1; then :
  6679. else
  6680. ac_cv_header_stdc=no
  6681. fi
  6682. rm -f conftest*
  6683. fi
  6684. if test $ac_cv_header_stdc = yes; then
  6685. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6686. if test "$cross_compiling" = yes; then :
  6687. :
  6688. else
  6689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6690. /* end confdefs.h. */
  6691. #include <ctype.h>
  6692. #include <stdlib.h>
  6693. #if ((' ' & 0x0FF) == 0x020)
  6694. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6695. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6696. #else
  6697. # define ISLOWER(c) \
  6698. (('a' <= (c) && (c) <= 'i') \
  6699. || ('j' <= (c) && (c) <= 'r') \
  6700. || ('s' <= (c) && (c) <= 'z'))
  6701. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6702. #endif
  6703. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6704. int
  6705. main ()
  6706. {
  6707. int i;
  6708. for (i = 0; i < 256; i++)
  6709. if (XOR (islower (i), ISLOWER (i))
  6710. || toupper (i) != TOUPPER (i))
  6711. return 2;
  6712. return 0;
  6713. }
  6714. _ACEOF
  6715. if ac_fn_c_try_run "$LINENO"; then :
  6716. else
  6717. ac_cv_header_stdc=no
  6718. fi
  6719. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6720. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6721. fi
  6722. fi
  6723. fi
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6725. $as_echo "$ac_cv_header_stdc" >&6; }
  6726. if test $ac_cv_header_stdc = yes; then
  6727. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6728. fi
  6729. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6730. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6731. inttypes.h stdint.h unistd.h
  6732. do :
  6733. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6734. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6735. "
  6736. eval as_val=\$$as_ac_Header
  6737. if test "x$as_val" = x""yes; then :
  6738. cat >>confdefs.h <<_ACEOF
  6739. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6740. _ACEOF
  6741. fi
  6742. done
  6743. for ac_header in dlfcn.h
  6744. do :
  6745. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6746. "
  6747. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6748. cat >>confdefs.h <<_ACEOF
  6749. #define HAVE_DLFCN_H 1
  6750. _ACEOF
  6751. fi
  6752. done
  6753. # Set options
  6754. enable_dlopen=no
  6755. enable_win32_dll=no
  6756. # Check whether --enable-shared was given.
  6757. if test "${enable_shared+set}" = set; then :
  6758. enableval=$enable_shared; p=${PACKAGE-default}
  6759. case $enableval in
  6760. yes) enable_shared=yes ;;
  6761. no) enable_shared=no ;;
  6762. *)
  6763. enable_shared=no
  6764. # Look at the argument we got. We use all the common list separators.
  6765. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6766. for pkg in $enableval; do
  6767. IFS="$lt_save_ifs"
  6768. if test "X$pkg" = "X$p"; then
  6769. enable_shared=yes
  6770. fi
  6771. done
  6772. IFS="$lt_save_ifs"
  6773. ;;
  6774. esac
  6775. else
  6776. enable_shared=yes
  6777. fi
  6778. # Check whether --enable-static was given.
  6779. if test "${enable_static+set}" = set; then :
  6780. enableval=$enable_static; p=${PACKAGE-default}
  6781. case $enableval in
  6782. yes) enable_static=yes ;;
  6783. no) enable_static=no ;;
  6784. *)
  6785. enable_static=no
  6786. # Look at the argument we got. We use all the common list separators.
  6787. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6788. for pkg in $enableval; do
  6789. IFS="$lt_save_ifs"
  6790. if test "X$pkg" = "X$p"; then
  6791. enable_static=yes
  6792. fi
  6793. done
  6794. IFS="$lt_save_ifs"
  6795. ;;
  6796. esac
  6797. else
  6798. enable_static=yes
  6799. fi
  6800. # Check whether --with-pic was given.
  6801. if test "${with_pic+set}" = set; then :
  6802. withval=$with_pic; pic_mode="$withval"
  6803. else
  6804. pic_mode=default
  6805. fi
  6806. test -z "$pic_mode" && pic_mode=default
  6807. # Check whether --enable-fast-install was given.
  6808. if test "${enable_fast_install+set}" = set; then :
  6809. enableval=$enable_fast_install; p=${PACKAGE-default}
  6810. case $enableval in
  6811. yes) enable_fast_install=yes ;;
  6812. no) enable_fast_install=no ;;
  6813. *)
  6814. enable_fast_install=no
  6815. # Look at the argument we got. We use all the common list separators.
  6816. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6817. for pkg in $enableval; do
  6818. IFS="$lt_save_ifs"
  6819. if test "X$pkg" = "X$p"; then
  6820. enable_fast_install=yes
  6821. fi
  6822. done
  6823. IFS="$lt_save_ifs"
  6824. ;;
  6825. esac
  6826. else
  6827. enable_fast_install=yes
  6828. fi
  6829. # This can be used to rebuild libtool when needed
  6830. LIBTOOL_DEPS="$ltmain"
  6831. # Always use our own libtool.
  6832. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6833. test -z "$LN_S" && LN_S="ln -s"
  6834. if test -n "${ZSH_VERSION+set}" ; then
  6835. setopt NO_GLOB_SUBST
  6836. fi
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6838. $as_echo_n "checking for objdir... " >&6; }
  6839. if test "${lt_cv_objdir+set}" = set; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. rm -f .libs 2>/dev/null
  6843. mkdir .libs 2>/dev/null
  6844. if test -d .libs; then
  6845. lt_cv_objdir=.libs
  6846. else
  6847. # MS-DOS does not allow filenames that begin with a dot.
  6848. lt_cv_objdir=_libs
  6849. fi
  6850. rmdir .libs 2>/dev/null
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6853. $as_echo "$lt_cv_objdir" >&6; }
  6854. objdir=$lt_cv_objdir
  6855. cat >>confdefs.h <<_ACEOF
  6856. #define LT_OBJDIR "$lt_cv_objdir/"
  6857. _ACEOF
  6858. case $host_os in
  6859. aix3*)
  6860. # AIX sometimes has problems with the GCC collect2 program. For some
  6861. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6862. # vanish in a puff of smoke.
  6863. if test "X${COLLECT_NAMES+set}" != Xset; then
  6864. COLLECT_NAMES=
  6865. export COLLECT_NAMES
  6866. fi
  6867. ;;
  6868. esac
  6869. # Global variables:
  6870. ofile=libtool
  6871. can_build_shared=yes
  6872. # All known linkers require a `.a' archive for static linking (except MSVC,
  6873. # which needs '.lib').
  6874. libext=a
  6875. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6876. old_CC="$CC"
  6877. old_CFLAGS="$CFLAGS"
  6878. # Set sane defaults for various variables
  6879. test -z "$CC" && CC=cc
  6880. test -z "$LTCC" && LTCC=$CC
  6881. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6882. test -z "$LD" && LD=ld
  6883. test -z "$ac_objext" && ac_objext=o
  6884. for cc_temp in $compiler""; do
  6885. case $cc_temp in
  6886. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6887. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6888. \-*) ;;
  6889. *) break;;
  6890. esac
  6891. done
  6892. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6893. # Only perform the check for file, if the check method requires it
  6894. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6895. case $deplibs_check_method in
  6896. file_magic*)
  6897. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6899. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6900. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. case $MAGIC_CMD in
  6904. [\\/*] | ?:[\\/]*)
  6905. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6906. ;;
  6907. *)
  6908. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6909. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6910. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6911. for ac_dir in $ac_dummy; do
  6912. IFS="$lt_save_ifs"
  6913. test -z "$ac_dir" && ac_dir=.
  6914. if test -f $ac_dir/${ac_tool_prefix}file; then
  6915. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6916. if test -n "$file_magic_test_file"; then
  6917. case $deplibs_check_method in
  6918. "file_magic "*)
  6919. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6920. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6921. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6922. $EGREP "$file_magic_regex" > /dev/null; then
  6923. :
  6924. else
  6925. cat <<_LT_EOF 1>&2
  6926. *** Warning: the command libtool uses to detect shared libraries,
  6927. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6928. *** The result is that libtool may fail to recognize shared libraries
  6929. *** as such. This will affect the creation of libtool libraries that
  6930. *** depend on shared libraries, but programs linked with such libtool
  6931. *** libraries will work regardless of this problem. Nevertheless, you
  6932. *** may want to report the problem to your system manager and/or to
  6933. *** bug-libtool@gnu.org
  6934. _LT_EOF
  6935. fi ;;
  6936. esac
  6937. fi
  6938. break
  6939. fi
  6940. done
  6941. IFS="$lt_save_ifs"
  6942. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6943. ;;
  6944. esac
  6945. fi
  6946. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6947. if test -n "$MAGIC_CMD"; then
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6949. $as_echo "$MAGIC_CMD" >&6; }
  6950. else
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6952. $as_echo "no" >&6; }
  6953. fi
  6954. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6955. if test -n "$ac_tool_prefix"; then
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6957. $as_echo_n "checking for file... " >&6; }
  6958. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6959. $as_echo_n "(cached) " >&6
  6960. else
  6961. case $MAGIC_CMD in
  6962. [\\/*] | ?:[\\/]*)
  6963. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6964. ;;
  6965. *)
  6966. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6967. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6968. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6969. for ac_dir in $ac_dummy; do
  6970. IFS="$lt_save_ifs"
  6971. test -z "$ac_dir" && ac_dir=.
  6972. if test -f $ac_dir/file; then
  6973. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6974. if test -n "$file_magic_test_file"; then
  6975. case $deplibs_check_method in
  6976. "file_magic "*)
  6977. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6978. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6979. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6980. $EGREP "$file_magic_regex" > /dev/null; then
  6981. :
  6982. else
  6983. cat <<_LT_EOF 1>&2
  6984. *** Warning: the command libtool uses to detect shared libraries,
  6985. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6986. *** The result is that libtool may fail to recognize shared libraries
  6987. *** as such. This will affect the creation of libtool libraries that
  6988. *** depend on shared libraries, but programs linked with such libtool
  6989. *** libraries will work regardless of this problem. Nevertheless, you
  6990. *** may want to report the problem to your system manager and/or to
  6991. *** bug-libtool@gnu.org
  6992. _LT_EOF
  6993. fi ;;
  6994. esac
  6995. fi
  6996. break
  6997. fi
  6998. done
  6999. IFS="$lt_save_ifs"
  7000. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7001. ;;
  7002. esac
  7003. fi
  7004. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7005. if test -n "$MAGIC_CMD"; then
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7007. $as_echo "$MAGIC_CMD" >&6; }
  7008. else
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7010. $as_echo "no" >&6; }
  7011. fi
  7012. else
  7013. MAGIC_CMD=:
  7014. fi
  7015. fi
  7016. fi
  7017. ;;
  7018. esac
  7019. # Use C for the default configuration in the libtool script
  7020. lt_save_CC="$CC"
  7021. ac_ext=c
  7022. ac_cpp='$CPP $CPPFLAGS'
  7023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7026. # Source file extension for C test sources.
  7027. ac_ext=c
  7028. # Object file extension for compiled C test sources.
  7029. objext=o
  7030. objext=$objext
  7031. # Code to be used in simple compile tests
  7032. lt_simple_compile_test_code="int some_variable = 0;"
  7033. # Code to be used in simple link tests
  7034. lt_simple_link_test_code='int main(){return(0);}'
  7035. # If no C compiler was specified, use CC.
  7036. LTCC=${LTCC-"$CC"}
  7037. # If no C compiler flags were specified, use CFLAGS.
  7038. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7039. # Allow CC to be a program name with arguments.
  7040. compiler=$CC
  7041. # Save the default compiler, since it gets overwritten when the other
  7042. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7043. compiler_DEFAULT=$CC
  7044. # save warnings/boilerplate of simple test code
  7045. ac_outfile=conftest.$ac_objext
  7046. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7047. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7048. _lt_compiler_boilerplate=`cat conftest.err`
  7049. $RM conftest*
  7050. ac_outfile=conftest.$ac_objext
  7051. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7052. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7053. _lt_linker_boilerplate=`cat conftest.err`
  7054. $RM -r conftest*
  7055. ## CAVEAT EMPTOR:
  7056. ## There is no encapsulation within the following macros, do not change
  7057. ## the running order or otherwise move them around unless you know exactly
  7058. ## what you are doing...
  7059. if test -n "$compiler"; then
  7060. lt_prog_compiler_no_builtin_flag=
  7061. if test "$GCC" = yes; then
  7062. case $cc_basename in
  7063. nvcc*)
  7064. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7065. *)
  7066. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7067. esac
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7069. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7070. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7071. $as_echo_n "(cached) " >&6
  7072. else
  7073. lt_cv_prog_compiler_rtti_exceptions=no
  7074. ac_outfile=conftest.$ac_objext
  7075. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7076. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7077. # Insert the option either (1) after the last *FLAGS variable, or
  7078. # (2) before a word containing "conftest.", or (3) at the end.
  7079. # Note that $ac_compile itself does not contain backslashes and begins
  7080. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7081. # The option is referenced via a variable to avoid confusing sed.
  7082. lt_compile=`echo "$ac_compile" | $SED \
  7083. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7084. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7085. -e 's:$: $lt_compiler_flag:'`
  7086. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7087. (eval "$lt_compile" 2>conftest.err)
  7088. ac_status=$?
  7089. cat conftest.err >&5
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. if (exit $ac_status) && test -s "$ac_outfile"; then
  7092. # The compiler can only warn and ignore the option if not recognized
  7093. # So say no if there are warnings other than the usual output.
  7094. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7095. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7096. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7097. lt_cv_prog_compiler_rtti_exceptions=yes
  7098. fi
  7099. fi
  7100. $RM conftest*
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7103. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7104. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7105. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7106. else
  7107. :
  7108. fi
  7109. fi
  7110. lt_prog_compiler_wl=
  7111. lt_prog_compiler_pic=
  7112. lt_prog_compiler_static=
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7114. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7115. if test "$GCC" = yes; then
  7116. lt_prog_compiler_wl='-Wl,'
  7117. lt_prog_compiler_static='-static'
  7118. case $host_os in
  7119. aix*)
  7120. # All AIX code is PIC.
  7121. if test "$host_cpu" = ia64; then
  7122. # AIX 5 now supports IA64 processor
  7123. lt_prog_compiler_static='-Bstatic'
  7124. fi
  7125. lt_prog_compiler_pic='-fPIC'
  7126. ;;
  7127. amigaos*)
  7128. case $host_cpu in
  7129. powerpc)
  7130. # see comment about AmigaOS4 .so support
  7131. lt_prog_compiler_pic='-fPIC'
  7132. ;;
  7133. m68k)
  7134. # FIXME: we need at least 68020 code to build shared libraries, but
  7135. # adding the `-m68020' flag to GCC prevents building anything better,
  7136. # like `-m68040'.
  7137. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7138. ;;
  7139. esac
  7140. ;;
  7141. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7142. # PIC is the default for these OSes.
  7143. ;;
  7144. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7145. # This hack is so that the source file can tell whether it is being
  7146. # built for inclusion in a dll (and should export symbols for example).
  7147. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7148. # (--disable-auto-import) libraries
  7149. lt_prog_compiler_pic='-DDLL_EXPORT'
  7150. ;;
  7151. darwin* | rhapsody*)
  7152. # PIC is the default on this platform
  7153. # Common symbols not allowed in MH_DYLIB files
  7154. lt_prog_compiler_pic='-fno-common'
  7155. ;;
  7156. haiku*)
  7157. # PIC is the default for Haiku.
  7158. # The "-static" flag exists, but is broken.
  7159. lt_prog_compiler_static=
  7160. ;;
  7161. hpux*)
  7162. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7163. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7164. # sets the default TLS model and affects inlining.
  7165. case $host_cpu in
  7166. hppa*64*)
  7167. # +Z the default
  7168. ;;
  7169. *)
  7170. lt_prog_compiler_pic='-fPIC'
  7171. ;;
  7172. esac
  7173. ;;
  7174. interix[3-9]*)
  7175. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7176. # Instead, we relocate shared libraries at runtime.
  7177. ;;
  7178. msdosdjgpp*)
  7179. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7180. # on systems that don't support them.
  7181. lt_prog_compiler_can_build_shared=no
  7182. enable_shared=no
  7183. ;;
  7184. *nto* | *qnx*)
  7185. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7186. # it will coredump.
  7187. lt_prog_compiler_pic='-fPIC -shared'
  7188. ;;
  7189. sysv4*MP*)
  7190. if test -d /usr/nec; then
  7191. lt_prog_compiler_pic=-Kconform_pic
  7192. fi
  7193. ;;
  7194. *)
  7195. lt_prog_compiler_pic='-fPIC'
  7196. ;;
  7197. esac
  7198. case $cc_basename in
  7199. nvcc*) # Cuda Compiler Driver 2.2
  7200. lt_prog_compiler_wl='-Xlinker '
  7201. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7202. ;;
  7203. esac
  7204. else
  7205. # PORTME Check for flag to pass linker flags through the system compiler.
  7206. case $host_os in
  7207. aix*)
  7208. lt_prog_compiler_wl='-Wl,'
  7209. if test "$host_cpu" = ia64; then
  7210. # AIX 5 now supports IA64 processor
  7211. lt_prog_compiler_static='-Bstatic'
  7212. else
  7213. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7214. fi
  7215. ;;
  7216. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7217. # This hack is so that the source file can tell whether it is being
  7218. # built for inclusion in a dll (and should export symbols for example).
  7219. lt_prog_compiler_pic='-DDLL_EXPORT'
  7220. ;;
  7221. hpux9* | hpux10* | hpux11*)
  7222. lt_prog_compiler_wl='-Wl,'
  7223. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7224. # not for PA HP-UX.
  7225. case $host_cpu in
  7226. hppa*64*|ia64*)
  7227. # +Z the default
  7228. ;;
  7229. *)
  7230. lt_prog_compiler_pic='+Z'
  7231. ;;
  7232. esac
  7233. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7234. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7235. ;;
  7236. irix5* | irix6* | nonstopux*)
  7237. lt_prog_compiler_wl='-Wl,'
  7238. # PIC (with -KPIC) is the default.
  7239. lt_prog_compiler_static='-non_shared'
  7240. ;;
  7241. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7242. case $cc_basename in
  7243. # old Intel for x86_64 which still supported -KPIC.
  7244. ecc*)
  7245. lt_prog_compiler_wl='-Wl,'
  7246. lt_prog_compiler_pic='-KPIC'
  7247. lt_prog_compiler_static='-static'
  7248. ;;
  7249. # icc used to be incompatible with GCC.
  7250. # ICC 10 doesn't accept -KPIC any more.
  7251. icc* | ifort*)
  7252. lt_prog_compiler_wl='-Wl,'
  7253. lt_prog_compiler_pic='-fPIC'
  7254. lt_prog_compiler_static='-static'
  7255. ;;
  7256. # Lahey Fortran 8.1.
  7257. lf95*)
  7258. lt_prog_compiler_wl='-Wl,'
  7259. lt_prog_compiler_pic='--shared'
  7260. lt_prog_compiler_static='--static'
  7261. ;;
  7262. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7263. # Portland Group compilers (*not* the Pentium gcc compiler,
  7264. # which looks to be a dead project)
  7265. lt_prog_compiler_wl='-Wl,'
  7266. lt_prog_compiler_pic='-fpic'
  7267. lt_prog_compiler_static='-Bstatic'
  7268. ;;
  7269. ccc*)
  7270. lt_prog_compiler_wl='-Wl,'
  7271. # All Alpha code is PIC.
  7272. lt_prog_compiler_static='-non_shared'
  7273. ;;
  7274. xl* | bgxl* | bgf* | mpixl*)
  7275. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7276. lt_prog_compiler_wl='-Wl,'
  7277. lt_prog_compiler_pic='-qpic'
  7278. lt_prog_compiler_static='-qstaticlink'
  7279. ;;
  7280. *)
  7281. case `$CC -V 2>&1 | sed 5q` in
  7282. *Sun\ F* | *Sun*Fortran*)
  7283. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7284. lt_prog_compiler_pic='-KPIC'
  7285. lt_prog_compiler_static='-Bstatic'
  7286. lt_prog_compiler_wl=''
  7287. ;;
  7288. *Sun\ C*)
  7289. # Sun C 5.9
  7290. lt_prog_compiler_pic='-KPIC'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. lt_prog_compiler_wl='-Wl,'
  7293. ;;
  7294. esac
  7295. ;;
  7296. esac
  7297. ;;
  7298. newsos6)
  7299. lt_prog_compiler_pic='-KPIC'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. *nto* | *qnx*)
  7303. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7304. # it will coredump.
  7305. lt_prog_compiler_pic='-fPIC -shared'
  7306. ;;
  7307. osf3* | osf4* | osf5*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. # All OSF/1 code is PIC.
  7310. lt_prog_compiler_static='-non_shared'
  7311. ;;
  7312. rdos*)
  7313. lt_prog_compiler_static='-non_shared'
  7314. ;;
  7315. solaris*)
  7316. lt_prog_compiler_pic='-KPIC'
  7317. lt_prog_compiler_static='-Bstatic'
  7318. case $cc_basename in
  7319. f77* | f90* | f95*)
  7320. lt_prog_compiler_wl='-Qoption ld ';;
  7321. *)
  7322. lt_prog_compiler_wl='-Wl,';;
  7323. esac
  7324. ;;
  7325. sunos4*)
  7326. lt_prog_compiler_wl='-Qoption ld '
  7327. lt_prog_compiler_pic='-PIC'
  7328. lt_prog_compiler_static='-Bstatic'
  7329. ;;
  7330. sysv4 | sysv4.2uw2* | sysv4.3*)
  7331. lt_prog_compiler_wl='-Wl,'
  7332. lt_prog_compiler_pic='-KPIC'
  7333. lt_prog_compiler_static='-Bstatic'
  7334. ;;
  7335. sysv4*MP*)
  7336. if test -d /usr/nec ;then
  7337. lt_prog_compiler_pic='-Kconform_pic'
  7338. lt_prog_compiler_static='-Bstatic'
  7339. fi
  7340. ;;
  7341. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7342. lt_prog_compiler_wl='-Wl,'
  7343. lt_prog_compiler_pic='-KPIC'
  7344. lt_prog_compiler_static='-Bstatic'
  7345. ;;
  7346. unicos*)
  7347. lt_prog_compiler_wl='-Wl,'
  7348. lt_prog_compiler_can_build_shared=no
  7349. ;;
  7350. uts4*)
  7351. lt_prog_compiler_pic='-pic'
  7352. lt_prog_compiler_static='-Bstatic'
  7353. ;;
  7354. *)
  7355. lt_prog_compiler_can_build_shared=no
  7356. ;;
  7357. esac
  7358. fi
  7359. case $host_os in
  7360. # For platforms which do not support PIC, -DPIC is meaningless:
  7361. *djgpp*)
  7362. lt_prog_compiler_pic=
  7363. ;;
  7364. *)
  7365. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7366. ;;
  7367. esac
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7369. $as_echo "$lt_prog_compiler_pic" >&6; }
  7370. #
  7371. # Check to make sure the PIC flag actually works.
  7372. #
  7373. if test -n "$lt_prog_compiler_pic"; then
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7375. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7376. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7377. $as_echo_n "(cached) " >&6
  7378. else
  7379. lt_cv_prog_compiler_pic_works=no
  7380. ac_outfile=conftest.$ac_objext
  7381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7382. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7383. # Insert the option either (1) after the last *FLAGS variable, or
  7384. # (2) before a word containing "conftest.", or (3) at the end.
  7385. # Note that $ac_compile itself does not contain backslashes and begins
  7386. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7387. # The option is referenced via a variable to avoid confusing sed.
  7388. lt_compile=`echo "$ac_compile" | $SED \
  7389. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7390. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7391. -e 's:$: $lt_compiler_flag:'`
  7392. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7393. (eval "$lt_compile" 2>conftest.err)
  7394. ac_status=$?
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. if (exit $ac_status) && test -s "$ac_outfile"; then
  7398. # The compiler can only warn and ignore the option if not recognized
  7399. # So say no if there are warnings other than the usual output.
  7400. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7402. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7403. lt_cv_prog_compiler_pic_works=yes
  7404. fi
  7405. fi
  7406. $RM conftest*
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7409. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7410. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7411. case $lt_prog_compiler_pic in
  7412. "" | " "*) ;;
  7413. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7414. esac
  7415. else
  7416. lt_prog_compiler_pic=
  7417. lt_prog_compiler_can_build_shared=no
  7418. fi
  7419. fi
  7420. #
  7421. # Check to make sure the static flag actually works.
  7422. #
  7423. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7425. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7426. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7427. $as_echo_n "(cached) " >&6
  7428. else
  7429. lt_cv_prog_compiler_static_works=no
  7430. save_LDFLAGS="$LDFLAGS"
  7431. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7432. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7433. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7434. # The linker can only warn and ignore the option if not recognized
  7435. # So say no if there are warnings
  7436. if test -s conftest.err; then
  7437. # Append any errors to the config.log.
  7438. cat conftest.err 1>&5
  7439. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7440. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7441. if diff conftest.exp conftest.er2 >/dev/null; then
  7442. lt_cv_prog_compiler_static_works=yes
  7443. fi
  7444. else
  7445. lt_cv_prog_compiler_static_works=yes
  7446. fi
  7447. fi
  7448. $RM -r conftest*
  7449. LDFLAGS="$save_LDFLAGS"
  7450. fi
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7452. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7453. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7454. :
  7455. else
  7456. lt_prog_compiler_static=
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7459. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7460. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. lt_cv_prog_compiler_c_o=no
  7464. $RM -r conftest 2>/dev/null
  7465. mkdir conftest
  7466. cd conftest
  7467. mkdir out
  7468. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7469. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7470. # Insert the option either (1) after the last *FLAGS variable, or
  7471. # (2) before a word containing "conftest.", or (3) at the end.
  7472. # Note that $ac_compile itself does not contain backslashes and begins
  7473. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7474. lt_compile=`echo "$ac_compile" | $SED \
  7475. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7476. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7477. -e 's:$: $lt_compiler_flag:'`
  7478. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7479. (eval "$lt_compile" 2>out/conftest.err)
  7480. ac_status=$?
  7481. cat out/conftest.err >&5
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7484. then
  7485. # The compiler can only warn and ignore the option if not recognized
  7486. # So say no if there are warnings
  7487. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7488. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7489. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7490. lt_cv_prog_compiler_c_o=yes
  7491. fi
  7492. fi
  7493. chmod u+w . 2>&5
  7494. $RM conftest*
  7495. # SGI C++ compiler will create directory out/ii_files/ for
  7496. # template instantiation
  7497. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7498. $RM out/* && rmdir out
  7499. cd ..
  7500. $RM -r conftest
  7501. $RM conftest*
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7504. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7506. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7507. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7508. $as_echo_n "(cached) " >&6
  7509. else
  7510. lt_cv_prog_compiler_c_o=no
  7511. $RM -r conftest 2>/dev/null
  7512. mkdir conftest
  7513. cd conftest
  7514. mkdir out
  7515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7516. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7517. # Insert the option either (1) after the last *FLAGS variable, or
  7518. # (2) before a word containing "conftest.", or (3) at the end.
  7519. # Note that $ac_compile itself does not contain backslashes and begins
  7520. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7521. lt_compile=`echo "$ac_compile" | $SED \
  7522. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7523. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7524. -e 's:$: $lt_compiler_flag:'`
  7525. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7526. (eval "$lt_compile" 2>out/conftest.err)
  7527. ac_status=$?
  7528. cat out/conftest.err >&5
  7529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7530. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7531. then
  7532. # The compiler can only warn and ignore the option if not recognized
  7533. # So say no if there are warnings
  7534. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7535. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7536. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7537. lt_cv_prog_compiler_c_o=yes
  7538. fi
  7539. fi
  7540. chmod u+w . 2>&5
  7541. $RM conftest*
  7542. # SGI C++ compiler will create directory out/ii_files/ for
  7543. # template instantiation
  7544. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7545. $RM out/* && rmdir out
  7546. cd ..
  7547. $RM -r conftest
  7548. $RM conftest*
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7551. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7552. hard_links="nottested"
  7553. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7554. # do not overwrite the value of need_locks provided by the user
  7555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7556. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7557. hard_links=yes
  7558. $RM conftest*
  7559. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7560. touch conftest.a
  7561. ln conftest.a conftest.b 2>&5 || hard_links=no
  7562. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7564. $as_echo "$hard_links" >&6; }
  7565. if test "$hard_links" = no; then
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7567. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7568. need_locks=warn
  7569. fi
  7570. else
  7571. need_locks=no
  7572. fi
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7574. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7575. runpath_var=
  7576. allow_undefined_flag=
  7577. always_export_symbols=no
  7578. archive_cmds=
  7579. archive_expsym_cmds=
  7580. compiler_needs_object=no
  7581. enable_shared_with_static_runtimes=no
  7582. export_dynamic_flag_spec=
  7583. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7584. hardcode_automatic=no
  7585. hardcode_direct=no
  7586. hardcode_direct_absolute=no
  7587. hardcode_libdir_flag_spec=
  7588. hardcode_libdir_flag_spec_ld=
  7589. hardcode_libdir_separator=
  7590. hardcode_minus_L=no
  7591. hardcode_shlibpath_var=unsupported
  7592. inherit_rpath=no
  7593. link_all_deplibs=unknown
  7594. module_cmds=
  7595. module_expsym_cmds=
  7596. old_archive_from_new_cmds=
  7597. old_archive_from_expsyms_cmds=
  7598. thread_safe_flag_spec=
  7599. whole_archive_flag_spec=
  7600. # include_expsyms should be a list of space-separated symbols to be *always*
  7601. # included in the symbol list
  7602. include_expsyms=
  7603. # exclude_expsyms can be an extended regexp of symbols to exclude
  7604. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7605. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7606. # as well as any symbol that contains `d'.
  7607. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7608. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7609. # platforms (ab)use it in PIC code, but their linkers get confused if
  7610. # the symbol is explicitly referenced. Since portable code cannot
  7611. # rely on this symbol name, it's probably fine to never include it in
  7612. # preloaded symbol tables.
  7613. # Exclude shared library initialization/finalization symbols.
  7614. extract_expsyms_cmds=
  7615. case $host_os in
  7616. cygwin* | mingw* | pw32* | cegcc*)
  7617. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7618. # When not using gcc, we currently assume that we are using
  7619. # Microsoft Visual C++.
  7620. if test "$GCC" != yes; then
  7621. with_gnu_ld=no
  7622. fi
  7623. ;;
  7624. interix*)
  7625. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7626. with_gnu_ld=yes
  7627. ;;
  7628. openbsd*)
  7629. with_gnu_ld=no
  7630. ;;
  7631. esac
  7632. ld_shlibs=yes
  7633. # On some targets, GNU ld is compatible enough with the native linker
  7634. # that we're better off using the native interface for both.
  7635. lt_use_gnu_ld_interface=no
  7636. if test "$with_gnu_ld" = yes; then
  7637. case $host_os in
  7638. aix*)
  7639. # The AIX port of GNU ld has always aspired to compatibility
  7640. # with the native linker. However, as the warning in the GNU ld
  7641. # block says, versions before 2.19.5* couldn't really create working
  7642. # shared libraries, regardless of the interface used.
  7643. case `$LD -v 2>&1` in
  7644. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7645. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7646. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7647. *)
  7648. lt_use_gnu_ld_interface=yes
  7649. ;;
  7650. esac
  7651. ;;
  7652. *)
  7653. lt_use_gnu_ld_interface=yes
  7654. ;;
  7655. esac
  7656. fi
  7657. if test "$lt_use_gnu_ld_interface" = yes; then
  7658. # If archive_cmds runs LD, not CC, wlarc should be empty
  7659. wlarc='${wl}'
  7660. # Set some defaults for GNU ld with shared library support. These
  7661. # are reset later if shared libraries are not supported. Putting them
  7662. # here allows them to be overridden if necessary.
  7663. runpath_var=LD_RUN_PATH
  7664. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7665. export_dynamic_flag_spec='${wl}--export-dynamic'
  7666. # ancient GNU ld didn't support --whole-archive et. al.
  7667. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7668. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7669. else
  7670. whole_archive_flag_spec=
  7671. fi
  7672. supports_anon_versioning=no
  7673. case `$LD -v 2>&1` in
  7674. *GNU\ gold*) supports_anon_versioning=yes ;;
  7675. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7676. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7677. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7678. *\ 2.11.*) ;; # other 2.11 versions
  7679. *) supports_anon_versioning=yes ;;
  7680. esac
  7681. # See if GNU ld supports shared libraries.
  7682. case $host_os in
  7683. aix[3-9]*)
  7684. # On AIX/PPC, the GNU linker is very broken
  7685. if test "$host_cpu" != ia64; then
  7686. ld_shlibs=no
  7687. cat <<_LT_EOF 1>&2
  7688. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7689. *** to be unable to reliably create shared libraries on AIX.
  7690. *** Therefore, libtool is disabling shared libraries support. If you
  7691. *** really care for shared libraries, you may want to install binutils
  7692. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7693. *** You will then need to restart the configuration process.
  7694. _LT_EOF
  7695. fi
  7696. ;;
  7697. amigaos*)
  7698. case $host_cpu in
  7699. powerpc)
  7700. # see comment about AmigaOS4 .so support
  7701. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. archive_expsym_cmds=''
  7703. ;;
  7704. m68k)
  7705. 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)'
  7706. hardcode_libdir_flag_spec='-L$libdir'
  7707. hardcode_minus_L=yes
  7708. ;;
  7709. esac
  7710. ;;
  7711. beos*)
  7712. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7713. allow_undefined_flag=unsupported
  7714. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7715. # support --undefined. This deserves some investigation. FIXME
  7716. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7717. else
  7718. ld_shlibs=no
  7719. fi
  7720. ;;
  7721. cygwin* | mingw* | pw32* | cegcc*)
  7722. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7723. # as there is no search path for DLLs.
  7724. hardcode_libdir_flag_spec='-L$libdir'
  7725. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7726. allow_undefined_flag=unsupported
  7727. always_export_symbols=no
  7728. enable_shared_with_static_runtimes=yes
  7729. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7730. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7731. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7732. # If the export-symbols file already is a .def file (1st line
  7733. # is EXPORTS), use it as is; otherwise, prepend...
  7734. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7735. cp $export_symbols $output_objdir/$soname.def;
  7736. else
  7737. echo EXPORTS > $output_objdir/$soname.def;
  7738. cat $export_symbols >> $output_objdir/$soname.def;
  7739. fi~
  7740. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7741. else
  7742. ld_shlibs=no
  7743. fi
  7744. ;;
  7745. haiku*)
  7746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7747. link_all_deplibs=yes
  7748. ;;
  7749. interix[3-9]*)
  7750. hardcode_direct=no
  7751. hardcode_shlibpath_var=no
  7752. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7753. export_dynamic_flag_spec='${wl}-E'
  7754. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7755. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7756. # default) and relocated if they conflict, which is a slow very memory
  7757. # consuming and fragmenting process. To avoid this, we pick a random,
  7758. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7759. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7760. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7761. 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'
  7762. ;;
  7763. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7764. tmp_diet=no
  7765. if test "$host_os" = linux-dietlibc; then
  7766. case $cc_basename in
  7767. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7768. esac
  7769. fi
  7770. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7771. && test "$tmp_diet" = no
  7772. then
  7773. tmp_addflag=' $pic_flag'
  7774. tmp_sharedflag='-shared'
  7775. case $cc_basename,$host_cpu in
  7776. pgcc*) # Portland Group C compiler
  7777. 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'
  7778. tmp_addflag=' $pic_flag'
  7779. ;;
  7780. pgf77* | pgf90* | pgf95* | pgfortran*)
  7781. # Portland Group f77 and f90 compilers
  7782. 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'
  7783. tmp_addflag=' $pic_flag -Mnomain' ;;
  7784. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7785. tmp_addflag=' -i_dynamic' ;;
  7786. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7787. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7788. ifc* | ifort*) # Intel Fortran compiler
  7789. tmp_addflag=' -nofor_main' ;;
  7790. lf95*) # Lahey Fortran 8.1
  7791. whole_archive_flag_spec=
  7792. tmp_sharedflag='--shared' ;;
  7793. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7794. tmp_sharedflag='-qmkshrobj'
  7795. tmp_addflag= ;;
  7796. nvcc*) # Cuda Compiler Driver 2.2
  7797. 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'
  7798. compiler_needs_object=yes
  7799. ;;
  7800. esac
  7801. case `$CC -V 2>&1 | sed 5q` in
  7802. *Sun\ C*) # Sun C 5.9
  7803. 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'
  7804. compiler_needs_object=yes
  7805. tmp_sharedflag='-G' ;;
  7806. *Sun\ F*) # Sun Fortran 8.3
  7807. tmp_sharedflag='-G' ;;
  7808. esac
  7809. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7810. if test "x$supports_anon_versioning" = xyes; then
  7811. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7812. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7813. echo "local: *; };" >> $output_objdir/$libname.ver~
  7814. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7815. fi
  7816. case $cc_basename in
  7817. xlf* | bgf* | bgxlf* | mpixlf*)
  7818. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7819. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7820. hardcode_libdir_flag_spec=
  7821. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7822. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7823. if test "x$supports_anon_versioning" = xyes; then
  7824. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7825. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7826. echo "local: *; };" >> $output_objdir/$libname.ver~
  7827. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7828. fi
  7829. ;;
  7830. esac
  7831. else
  7832. ld_shlibs=no
  7833. fi
  7834. ;;
  7835. netbsd*)
  7836. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7837. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7838. wlarc=
  7839. else
  7840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7841. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7842. fi
  7843. ;;
  7844. solaris*)
  7845. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7846. ld_shlibs=no
  7847. cat <<_LT_EOF 1>&2
  7848. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7849. *** create shared libraries on Solaris systems. Therefore, libtool
  7850. *** is disabling shared libraries support. We urge you to upgrade GNU
  7851. *** binutils to release 2.9.1 or newer. Another option is to modify
  7852. *** your PATH or compiler configuration so that the native linker is
  7853. *** used, and then restart.
  7854. _LT_EOF
  7855. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7856. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7857. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7858. else
  7859. ld_shlibs=no
  7860. fi
  7861. ;;
  7862. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7863. case `$LD -v 2>&1` in
  7864. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7865. ld_shlibs=no
  7866. cat <<_LT_EOF 1>&2
  7867. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7868. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7869. *** is disabling shared libraries support. We urge you to upgrade GNU
  7870. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7871. *** your PATH or compiler configuration so that the native linker is
  7872. *** used, and then restart.
  7873. _LT_EOF
  7874. ;;
  7875. *)
  7876. # For security reasons, it is highly recommended that you always
  7877. # use absolute paths for naming shared libraries, and exclude the
  7878. # DT_RUNPATH tag from executables and libraries. But doing so
  7879. # requires that you compile everything twice, which is a pain.
  7880. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7881. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7882. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7883. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7884. else
  7885. ld_shlibs=no
  7886. fi
  7887. ;;
  7888. esac
  7889. ;;
  7890. sunos4*)
  7891. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7892. wlarc=
  7893. hardcode_direct=yes
  7894. hardcode_shlibpath_var=no
  7895. ;;
  7896. *)
  7897. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7898. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7899. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7900. else
  7901. ld_shlibs=no
  7902. fi
  7903. ;;
  7904. esac
  7905. if test "$ld_shlibs" = no; then
  7906. runpath_var=
  7907. hardcode_libdir_flag_spec=
  7908. export_dynamic_flag_spec=
  7909. whole_archive_flag_spec=
  7910. fi
  7911. else
  7912. # PORTME fill in a description of your system's linker (not GNU ld)
  7913. case $host_os in
  7914. aix3*)
  7915. allow_undefined_flag=unsupported
  7916. always_export_symbols=yes
  7917. 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'
  7918. # Note: this linker hardcodes the directories in LIBPATH if there
  7919. # are no directories specified by -L.
  7920. hardcode_minus_L=yes
  7921. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7922. # Neither direct hardcoding nor static linking is supported with a
  7923. # broken collect2.
  7924. hardcode_direct=unsupported
  7925. fi
  7926. ;;
  7927. aix[4-9]*)
  7928. if test "$host_cpu" = ia64; then
  7929. # On IA64, the linker does run time linking by default, so we don't
  7930. # have to do anything special.
  7931. aix_use_runtimelinking=no
  7932. exp_sym_flag='-Bexport'
  7933. no_entry_flag=""
  7934. else
  7935. # If we're using GNU nm, then we don't want the "-C" option.
  7936. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7937. # Also, AIX nm treats weak defined symbols like other global
  7938. # defined symbols, whereas GNU nm marks them as "W".
  7939. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7940. 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'
  7941. else
  7942. 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'
  7943. fi
  7944. aix_use_runtimelinking=no
  7945. # Test if we are trying to use run time linking or normal
  7946. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7947. # need to do runtime linking.
  7948. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7949. for ld_flag in $LDFLAGS; do
  7950. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7951. aix_use_runtimelinking=yes
  7952. break
  7953. fi
  7954. done
  7955. ;;
  7956. esac
  7957. exp_sym_flag='-bexport'
  7958. no_entry_flag='-bnoentry'
  7959. fi
  7960. # When large executables or shared objects are built, AIX ld can
  7961. # have problems creating the table of contents. If linking a library
  7962. # or program results in "error TOC overflow" add -mminimal-toc to
  7963. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7964. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7965. archive_cmds=''
  7966. hardcode_direct=yes
  7967. hardcode_direct_absolute=yes
  7968. hardcode_libdir_separator=':'
  7969. link_all_deplibs=yes
  7970. file_list_spec='${wl}-f,'
  7971. if test "$GCC" = yes; then
  7972. case $host_os in aix4.[012]|aix4.[012].*)
  7973. # We only want to do this on AIX 4.2 and lower, the check
  7974. # below for broken collect2 doesn't work under 4.3+
  7975. collect2name=`${CC} -print-prog-name=collect2`
  7976. if test -f "$collect2name" &&
  7977. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7978. then
  7979. # We have reworked collect2
  7980. :
  7981. else
  7982. # We have old collect2
  7983. hardcode_direct=unsupported
  7984. # It fails to find uninstalled libraries when the uninstalled
  7985. # path is not listed in the libpath. Setting hardcode_minus_L
  7986. # to unsupported forces relinking
  7987. hardcode_minus_L=yes
  7988. hardcode_libdir_flag_spec='-L$libdir'
  7989. hardcode_libdir_separator=
  7990. fi
  7991. ;;
  7992. esac
  7993. shared_flag='-shared'
  7994. if test "$aix_use_runtimelinking" = yes; then
  7995. shared_flag="$shared_flag "'${wl}-G'
  7996. fi
  7997. else
  7998. # not using gcc
  7999. if test "$host_cpu" = ia64; then
  8000. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8001. # chokes on -Wl,-G. The following line is correct:
  8002. shared_flag='-G'
  8003. else
  8004. if test "$aix_use_runtimelinking" = yes; then
  8005. shared_flag='${wl}-G'
  8006. else
  8007. shared_flag='${wl}-bM:SRE'
  8008. fi
  8009. fi
  8010. fi
  8011. export_dynamic_flag_spec='${wl}-bexpall'
  8012. # It seems that -bexpall does not export symbols beginning with
  8013. # underscore (_), so it is better to generate a list of symbols to export.
  8014. always_export_symbols=yes
  8015. if test "$aix_use_runtimelinking" = yes; then
  8016. # Warning - without using the other runtime loading flags (-brtl),
  8017. # -berok will link without error, but may produce a broken library.
  8018. allow_undefined_flag='-berok'
  8019. # Determine the default libpath from the value encoded in an
  8020. # empty executable.
  8021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8022. /* end confdefs.h. */
  8023. int
  8024. main ()
  8025. {
  8026. ;
  8027. return 0;
  8028. }
  8029. _ACEOF
  8030. if ac_fn_c_try_link "$LINENO"; then :
  8031. lt_aix_libpath_sed='
  8032. /Import File Strings/,/^$/ {
  8033. /^0/ {
  8034. s/^0 *\(.*\)$/\1/
  8035. p
  8036. }
  8037. }'
  8038. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8039. # Check for a 64-bit object if we didn't find anything.
  8040. if test -z "$aix_libpath"; then
  8041. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8042. fi
  8043. fi
  8044. rm -f core conftest.err conftest.$ac_objext \
  8045. conftest$ac_exeext conftest.$ac_ext
  8046. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8047. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8048. 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"
  8049. else
  8050. if test "$host_cpu" = ia64; then
  8051. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8052. allow_undefined_flag="-z nodefs"
  8053. 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"
  8054. else
  8055. # Determine the default libpath from the value encoded in an
  8056. # empty executable.
  8057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8058. /* end confdefs.h. */
  8059. int
  8060. main ()
  8061. {
  8062. ;
  8063. return 0;
  8064. }
  8065. _ACEOF
  8066. if ac_fn_c_try_link "$LINENO"; then :
  8067. lt_aix_libpath_sed='
  8068. /Import File Strings/,/^$/ {
  8069. /^0/ {
  8070. s/^0 *\(.*\)$/\1/
  8071. p
  8072. }
  8073. }'
  8074. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8075. # Check for a 64-bit object if we didn't find anything.
  8076. if test -z "$aix_libpath"; then
  8077. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8078. fi
  8079. fi
  8080. rm -f core conftest.err conftest.$ac_objext \
  8081. conftest$ac_exeext conftest.$ac_ext
  8082. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8083. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8084. # Warning - without using the other run time loading flags,
  8085. # -berok will link without error, but may produce a broken library.
  8086. no_undefined_flag=' ${wl}-bernotok'
  8087. allow_undefined_flag=' ${wl}-berok'
  8088. if test "$with_gnu_ld" = yes; then
  8089. # We only use this code for GNU lds that support --whole-archive.
  8090. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8091. else
  8092. # Exported symbols can be pulled into shared objects from archives
  8093. whole_archive_flag_spec='$convenience'
  8094. fi
  8095. archive_cmds_need_lc=yes
  8096. # This is similar to how AIX traditionally builds its shared libraries.
  8097. 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'
  8098. fi
  8099. fi
  8100. ;;
  8101. amigaos*)
  8102. case $host_cpu in
  8103. powerpc)
  8104. # see comment about AmigaOS4 .so support
  8105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds=''
  8107. ;;
  8108. m68k)
  8109. 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)'
  8110. hardcode_libdir_flag_spec='-L$libdir'
  8111. hardcode_minus_L=yes
  8112. ;;
  8113. esac
  8114. ;;
  8115. bsdi[45]*)
  8116. export_dynamic_flag_spec=-rdynamic
  8117. ;;
  8118. cygwin* | mingw* | pw32* | cegcc*)
  8119. # When not using gcc, we currently assume that we are using
  8120. # Microsoft Visual C++.
  8121. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8122. # no search path for DLLs.
  8123. hardcode_libdir_flag_spec=' '
  8124. allow_undefined_flag=unsupported
  8125. # Tell ltmain to make .lib files, not .a files.
  8126. libext=lib
  8127. # Tell ltmain to make .dll files, not .so files.
  8128. shrext_cmds=".dll"
  8129. # FIXME: Setting linknames here is a bad hack.
  8130. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8131. # The linker will automatically build a .lib file if we build a DLL.
  8132. old_archive_from_new_cmds='true'
  8133. # FIXME: Should let the user specify the lib program.
  8134. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8135. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8136. enable_shared_with_static_runtimes=yes
  8137. ;;
  8138. darwin* | rhapsody*)
  8139. archive_cmds_need_lc=no
  8140. hardcode_direct=no
  8141. hardcode_automatic=yes
  8142. hardcode_shlibpath_var=unsupported
  8143. if test "$lt_cv_ld_force_load" = "yes"; then
  8144. 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\"`'
  8145. else
  8146. whole_archive_flag_spec=''
  8147. fi
  8148. link_all_deplibs=yes
  8149. allow_undefined_flag="$_lt_dar_allow_undefined"
  8150. case $cc_basename in
  8151. ifort*) _lt_dar_can_shared=yes ;;
  8152. *) _lt_dar_can_shared=$GCC ;;
  8153. esac
  8154. if test "$_lt_dar_can_shared" = "yes"; then
  8155. output_verbose_link_cmd=func_echo_all
  8156. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8157. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8158. 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}"
  8159. 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}"
  8160. else
  8161. ld_shlibs=no
  8162. fi
  8163. ;;
  8164. dgux*)
  8165. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8166. hardcode_libdir_flag_spec='-L$libdir'
  8167. hardcode_shlibpath_var=no
  8168. ;;
  8169. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8170. # support. Future versions do this automatically, but an explicit c++rt0.o
  8171. # does not break anything, and helps significantly (at the cost of a little
  8172. # extra space).
  8173. freebsd2.2*)
  8174. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8175. hardcode_libdir_flag_spec='-R$libdir'
  8176. hardcode_direct=yes
  8177. hardcode_shlibpath_var=no
  8178. ;;
  8179. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8180. freebsd2.*)
  8181. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8182. hardcode_direct=yes
  8183. hardcode_minus_L=yes
  8184. hardcode_shlibpath_var=no
  8185. ;;
  8186. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8187. freebsd* | dragonfly*)
  8188. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8189. hardcode_libdir_flag_spec='-R$libdir'
  8190. hardcode_direct=yes
  8191. hardcode_shlibpath_var=no
  8192. ;;
  8193. hpux9*)
  8194. if test "$GCC" = yes; then
  8195. 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'
  8196. else
  8197. 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'
  8198. fi
  8199. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8200. hardcode_libdir_separator=:
  8201. hardcode_direct=yes
  8202. # hardcode_minus_L: Not really in the search PATH,
  8203. # but as the default location of the library.
  8204. hardcode_minus_L=yes
  8205. export_dynamic_flag_spec='${wl}-E'
  8206. ;;
  8207. hpux10*)
  8208. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8209. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8210. else
  8211. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8212. fi
  8213. if test "$with_gnu_ld" = no; then
  8214. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8215. hardcode_libdir_flag_spec_ld='+b $libdir'
  8216. hardcode_libdir_separator=:
  8217. hardcode_direct=yes
  8218. hardcode_direct_absolute=yes
  8219. export_dynamic_flag_spec='${wl}-E'
  8220. # hardcode_minus_L: Not really in the search PATH,
  8221. # but as the default location of the library.
  8222. hardcode_minus_L=yes
  8223. fi
  8224. ;;
  8225. hpux11*)
  8226. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8227. case $host_cpu in
  8228. hppa*64*)
  8229. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8230. ;;
  8231. ia64*)
  8232. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8233. ;;
  8234. *)
  8235. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8236. ;;
  8237. esac
  8238. else
  8239. case $host_cpu in
  8240. hppa*64*)
  8241. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8242. ;;
  8243. ia64*)
  8244. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8245. ;;
  8246. *)
  8247. # Older versions of the 11.00 compiler do not understand -b yet
  8248. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8250. $as_echo_n "checking if $CC understands -b... " >&6; }
  8251. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8252. $as_echo_n "(cached) " >&6
  8253. else
  8254. lt_cv_prog_compiler__b=no
  8255. save_LDFLAGS="$LDFLAGS"
  8256. LDFLAGS="$LDFLAGS -b"
  8257. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8258. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8259. # The linker can only warn and ignore the option if not recognized
  8260. # So say no if there are warnings
  8261. if test -s conftest.err; then
  8262. # Append any errors to the config.log.
  8263. cat conftest.err 1>&5
  8264. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8265. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8266. if diff conftest.exp conftest.er2 >/dev/null; then
  8267. lt_cv_prog_compiler__b=yes
  8268. fi
  8269. else
  8270. lt_cv_prog_compiler__b=yes
  8271. fi
  8272. fi
  8273. $RM -r conftest*
  8274. LDFLAGS="$save_LDFLAGS"
  8275. fi
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8277. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8278. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8279. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8280. else
  8281. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8282. fi
  8283. ;;
  8284. esac
  8285. fi
  8286. if test "$with_gnu_ld" = no; then
  8287. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8288. hardcode_libdir_separator=:
  8289. case $host_cpu in
  8290. hppa*64*|ia64*)
  8291. hardcode_direct=no
  8292. hardcode_shlibpath_var=no
  8293. ;;
  8294. *)
  8295. hardcode_direct=yes
  8296. hardcode_direct_absolute=yes
  8297. export_dynamic_flag_spec='${wl}-E'
  8298. # hardcode_minus_L: Not really in the search PATH,
  8299. # but as the default location of the library.
  8300. hardcode_minus_L=yes
  8301. ;;
  8302. esac
  8303. fi
  8304. ;;
  8305. irix5* | irix6* | nonstopux*)
  8306. if test "$GCC" = yes; then
  8307. 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'
  8308. # Try to use the -exported_symbol ld option, if it does not
  8309. # work, assume that -exports_file does not work either and
  8310. # implicitly export all symbols.
  8311. save_LDFLAGS="$LDFLAGS"
  8312. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8314. /* end confdefs.h. */
  8315. int foo(void) {}
  8316. _ACEOF
  8317. if ac_fn_c_try_link "$LINENO"; then :
  8318. 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'
  8319. fi
  8320. rm -f core conftest.err conftest.$ac_objext \
  8321. conftest$ac_exeext conftest.$ac_ext
  8322. LDFLAGS="$save_LDFLAGS"
  8323. else
  8324. 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'
  8325. 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'
  8326. fi
  8327. archive_cmds_need_lc='no'
  8328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8329. hardcode_libdir_separator=:
  8330. inherit_rpath=yes
  8331. link_all_deplibs=yes
  8332. ;;
  8333. netbsd*)
  8334. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8335. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8336. else
  8337. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8338. fi
  8339. hardcode_libdir_flag_spec='-R$libdir'
  8340. hardcode_direct=yes
  8341. hardcode_shlibpath_var=no
  8342. ;;
  8343. newsos6)
  8344. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8345. hardcode_direct=yes
  8346. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8347. hardcode_libdir_separator=:
  8348. hardcode_shlibpath_var=no
  8349. ;;
  8350. *nto* | *qnx*)
  8351. ;;
  8352. openbsd*)
  8353. if test -f /usr/libexec/ld.so; then
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. hardcode_direct_absolute=yes
  8357. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8358. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8359. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8360. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8361. export_dynamic_flag_spec='${wl}-E'
  8362. else
  8363. case $host_os in
  8364. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8365. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8366. hardcode_libdir_flag_spec='-R$libdir'
  8367. ;;
  8368. *)
  8369. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8370. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8371. ;;
  8372. esac
  8373. fi
  8374. else
  8375. ld_shlibs=no
  8376. fi
  8377. ;;
  8378. os2*)
  8379. hardcode_libdir_flag_spec='-L$libdir'
  8380. hardcode_minus_L=yes
  8381. allow_undefined_flag=unsupported
  8382. 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'
  8383. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8384. ;;
  8385. osf3*)
  8386. if test "$GCC" = yes; then
  8387. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8388. 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'
  8389. else
  8390. allow_undefined_flag=' -expect_unresolved \*'
  8391. 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'
  8392. fi
  8393. archive_cmds_need_lc='no'
  8394. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8395. hardcode_libdir_separator=:
  8396. ;;
  8397. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8398. if test "$GCC" = yes; then
  8399. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8400. 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'
  8401. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8402. else
  8403. allow_undefined_flag=' -expect_unresolved \*'
  8404. 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'
  8405. 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~
  8406. $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'
  8407. # Both c and cxx compiler support -rpath directly
  8408. hardcode_libdir_flag_spec='-rpath $libdir'
  8409. fi
  8410. archive_cmds_need_lc='no'
  8411. hardcode_libdir_separator=:
  8412. ;;
  8413. solaris*)
  8414. no_undefined_flag=' -z defs'
  8415. if test "$GCC" = yes; then
  8416. wlarc='${wl}'
  8417. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8419. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8420. else
  8421. case `$CC -V 2>&1` in
  8422. *"Compilers 5.0"*)
  8423. wlarc=''
  8424. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8426. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8427. ;;
  8428. *)
  8429. wlarc='${wl}'
  8430. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8432. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8433. ;;
  8434. esac
  8435. fi
  8436. hardcode_libdir_flag_spec='-R$libdir'
  8437. hardcode_shlibpath_var=no
  8438. case $host_os in
  8439. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8440. *)
  8441. # The compiler driver will combine and reorder linker options,
  8442. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8443. # but is careful enough not to reorder.
  8444. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8445. if test "$GCC" = yes; then
  8446. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8447. else
  8448. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8449. fi
  8450. ;;
  8451. esac
  8452. link_all_deplibs=yes
  8453. ;;
  8454. sunos4*)
  8455. if test "x$host_vendor" = xsequent; then
  8456. # Use $CC to link under sequent, because it throws in some extra .o
  8457. # files that make .init and .fini sections work.
  8458. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. else
  8460. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8461. fi
  8462. hardcode_libdir_flag_spec='-L$libdir'
  8463. hardcode_direct=yes
  8464. hardcode_minus_L=yes
  8465. hardcode_shlibpath_var=no
  8466. ;;
  8467. sysv4)
  8468. case $host_vendor in
  8469. sni)
  8470. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8471. hardcode_direct=yes # is this really true???
  8472. ;;
  8473. siemens)
  8474. ## LD is ld it makes a PLAMLIB
  8475. ## CC just makes a GrossModule.
  8476. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8477. reload_cmds='$CC -r -o $output$reload_objs'
  8478. hardcode_direct=no
  8479. ;;
  8480. motorola)
  8481. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8482. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8483. ;;
  8484. esac
  8485. runpath_var='LD_RUN_PATH'
  8486. hardcode_shlibpath_var=no
  8487. ;;
  8488. sysv4.3*)
  8489. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8490. hardcode_shlibpath_var=no
  8491. export_dynamic_flag_spec='-Bexport'
  8492. ;;
  8493. sysv4*MP*)
  8494. if test -d /usr/nec; then
  8495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. hardcode_shlibpath_var=no
  8497. runpath_var=LD_RUN_PATH
  8498. hardcode_runpath_var=yes
  8499. ld_shlibs=yes
  8500. fi
  8501. ;;
  8502. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8503. no_undefined_flag='${wl}-z,text'
  8504. archive_cmds_need_lc=no
  8505. hardcode_shlibpath_var=no
  8506. runpath_var='LD_RUN_PATH'
  8507. if test "$GCC" = yes; then
  8508. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8509. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8510. else
  8511. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8512. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513. fi
  8514. ;;
  8515. sysv5* | sco3.2v5* | sco5v6*)
  8516. # Note: We can NOT use -z defs as we might desire, because we do not
  8517. # link with -lc, and that would cause any symbols used from libc to
  8518. # always be unresolved, which means just about no library would
  8519. # ever link correctly. If we're not using GNU ld we use -z text
  8520. # though, which does catch some bad symbols but isn't as heavy-handed
  8521. # as -z defs.
  8522. no_undefined_flag='${wl}-z,text'
  8523. allow_undefined_flag='${wl}-z,nodefs'
  8524. archive_cmds_need_lc=no
  8525. hardcode_shlibpath_var=no
  8526. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8527. hardcode_libdir_separator=':'
  8528. link_all_deplibs=yes
  8529. export_dynamic_flag_spec='${wl}-Bexport'
  8530. runpath_var='LD_RUN_PATH'
  8531. if test "$GCC" = yes; then
  8532. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8533. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. else
  8535. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8536. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. fi
  8538. ;;
  8539. uts4*)
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_libdir_flag_spec='-L$libdir'
  8542. hardcode_shlibpath_var=no
  8543. ;;
  8544. *)
  8545. ld_shlibs=no
  8546. ;;
  8547. esac
  8548. if test x$host_vendor = xsni; then
  8549. case $host in
  8550. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8551. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8552. ;;
  8553. esac
  8554. fi
  8555. fi
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8557. $as_echo "$ld_shlibs" >&6; }
  8558. test "$ld_shlibs" = no && can_build_shared=no
  8559. with_gnu_ld=$with_gnu_ld
  8560. #
  8561. # Do we need to explicitly link libc?
  8562. #
  8563. case "x$archive_cmds_need_lc" in
  8564. x|xyes)
  8565. # Assume -lc should be added
  8566. archive_cmds_need_lc=yes
  8567. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8568. case $archive_cmds in
  8569. *'~'*)
  8570. # FIXME: we may have to deal with multi-command sequences.
  8571. ;;
  8572. '$CC '*)
  8573. # Test whether the compiler implicitly links with -lc since on some
  8574. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8575. # to ld, don't add -lc before -lgcc.
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8577. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8578. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8579. $as_echo_n "(cached) " >&6
  8580. else
  8581. $RM conftest*
  8582. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8584. (eval $ac_compile) 2>&5
  8585. ac_status=$?
  8586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8587. test $ac_status = 0; } 2>conftest.err; then
  8588. soname=conftest
  8589. lib=conftest
  8590. libobjs=conftest.$ac_objext
  8591. deplibs=
  8592. wl=$lt_prog_compiler_wl
  8593. pic_flag=$lt_prog_compiler_pic
  8594. compiler_flags=-v
  8595. linker_flags=-v
  8596. verstring=
  8597. output_objdir=.
  8598. libname=conftest
  8599. lt_save_allow_undefined_flag=$allow_undefined_flag
  8600. allow_undefined_flag=
  8601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8602. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8603. ac_status=$?
  8604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8605. test $ac_status = 0; }
  8606. then
  8607. lt_cv_archive_cmds_need_lc=no
  8608. else
  8609. lt_cv_archive_cmds_need_lc=yes
  8610. fi
  8611. allow_undefined_flag=$lt_save_allow_undefined_flag
  8612. else
  8613. cat conftest.err 1>&5
  8614. fi
  8615. $RM conftest*
  8616. fi
  8617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8618. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8619. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8620. ;;
  8621. esac
  8622. fi
  8623. ;;
  8624. esac
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8626. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8627. if test "$GCC" = yes; then
  8628. case $host_os in
  8629. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8630. *) lt_awk_arg="/^libraries:/" ;;
  8631. esac
  8632. case $host_os in
  8633. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8634. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8635. esac
  8636. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8637. case $lt_search_path_spec in
  8638. *\;*)
  8639. # if the path contains ";" then we assume it to be the separator
  8640. # otherwise default to the standard path separator (i.e. ":") - it is
  8641. # assumed that no part of a normal pathname contains ";" but that should
  8642. # okay in the real world where ";" in dirpaths is itself problematic.
  8643. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8644. ;;
  8645. *)
  8646. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8647. ;;
  8648. esac
  8649. # Ok, now we have the path, separated by spaces, we can step through it
  8650. # and add multilib dir if necessary.
  8651. lt_tmp_lt_search_path_spec=
  8652. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8653. for lt_sys_path in $lt_search_path_spec; do
  8654. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8655. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8656. else
  8657. test -d "$lt_sys_path" && \
  8658. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8659. fi
  8660. done
  8661. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8662. BEGIN {RS=" "; FS="/|\n";} {
  8663. lt_foo="";
  8664. lt_count=0;
  8665. for (lt_i = NF; lt_i > 0; lt_i--) {
  8666. if ($lt_i != "" && $lt_i != ".") {
  8667. if ($lt_i == "..") {
  8668. lt_count++;
  8669. } else {
  8670. if (lt_count == 0) {
  8671. lt_foo="/" $lt_i lt_foo;
  8672. } else {
  8673. lt_count--;
  8674. }
  8675. }
  8676. }
  8677. }
  8678. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8679. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8680. }'`
  8681. # AWK program above erroneously prepends '/' to C:/dos/paths
  8682. # for these hosts.
  8683. case $host_os in
  8684. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8685. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8686. esac
  8687. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8688. else
  8689. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8690. fi
  8691. library_names_spec=
  8692. libname_spec='lib$name'
  8693. soname_spec=
  8694. shrext_cmds=".so"
  8695. postinstall_cmds=
  8696. postuninstall_cmds=
  8697. finish_cmds=
  8698. finish_eval=
  8699. shlibpath_var=
  8700. shlibpath_overrides_runpath=unknown
  8701. version_type=none
  8702. dynamic_linker="$host_os ld.so"
  8703. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8704. need_lib_prefix=unknown
  8705. hardcode_into_libs=no
  8706. # when you set need_version to no, make sure it does not cause -set_version
  8707. # flags to be left without arguments
  8708. need_version=unknown
  8709. case $host_os in
  8710. aix3*)
  8711. version_type=linux
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8713. shlibpath_var=LIBPATH
  8714. # AIX 3 has no versioning support, so we append a major version to the name.
  8715. soname_spec='${libname}${release}${shared_ext}$major'
  8716. ;;
  8717. aix[4-9]*)
  8718. version_type=linux
  8719. need_lib_prefix=no
  8720. need_version=no
  8721. hardcode_into_libs=yes
  8722. if test "$host_cpu" = ia64; then
  8723. # AIX 5 supports IA64
  8724. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8725. shlibpath_var=LD_LIBRARY_PATH
  8726. else
  8727. # With GCC up to 2.95.x, collect2 would create an import file
  8728. # for dependence libraries. The import file would start with
  8729. # the line `#! .'. This would cause the generated library to
  8730. # depend on `.', always an invalid library. This was fixed in
  8731. # development snapshots of GCC prior to 3.0.
  8732. case $host_os in
  8733. aix4 | aix4.[01] | aix4.[01].*)
  8734. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8735. echo ' yes '
  8736. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8737. :
  8738. else
  8739. can_build_shared=no
  8740. fi
  8741. ;;
  8742. esac
  8743. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8744. # soname into executable. Probably we can add versioning support to
  8745. # collect2, so additional links can be useful in future.
  8746. if test "$aix_use_runtimelinking" = yes; then
  8747. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8748. # instead of lib<name>.a to let people know that these are not
  8749. # typical AIX shared libraries.
  8750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8751. else
  8752. # We preserve .a as extension for shared libraries through AIX4.2
  8753. # and later when we are not doing run time linking.
  8754. library_names_spec='${libname}${release}.a $libname.a'
  8755. soname_spec='${libname}${release}${shared_ext}$major'
  8756. fi
  8757. shlibpath_var=LIBPATH
  8758. fi
  8759. ;;
  8760. amigaos*)
  8761. case $host_cpu in
  8762. powerpc)
  8763. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8764. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. ;;
  8767. m68k)
  8768. library_names_spec='$libname.ixlibrary $libname.a'
  8769. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8770. 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'
  8771. ;;
  8772. esac
  8773. ;;
  8774. beos*)
  8775. library_names_spec='${libname}${shared_ext}'
  8776. dynamic_linker="$host_os ld.so"
  8777. shlibpath_var=LIBRARY_PATH
  8778. ;;
  8779. bsdi[45]*)
  8780. version_type=linux
  8781. need_version=no
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. soname_spec='${libname}${release}${shared_ext}$major'
  8784. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8785. shlibpath_var=LD_LIBRARY_PATH
  8786. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8787. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8788. # the default ld.so.conf also contains /usr/contrib/lib and
  8789. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8790. # libtool to hard-code these into programs
  8791. ;;
  8792. cygwin* | mingw* | pw32* | cegcc*)
  8793. version_type=windows
  8794. shrext_cmds=".dll"
  8795. need_version=no
  8796. need_lib_prefix=no
  8797. case $GCC,$host_os in
  8798. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8799. library_names_spec='$libname.dll.a'
  8800. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8801. postinstall_cmds='base_file=`basename \${file}`~
  8802. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8803. dldir=$destdir/`dirname \$dlpath`~
  8804. test -d \$dldir || mkdir -p \$dldir~
  8805. $install_prog $dir/$dlname \$dldir/$dlname~
  8806. chmod a+x \$dldir/$dlname~
  8807. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8808. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8809. fi'
  8810. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8811. dlpath=$dir/\$dldll~
  8812. $RM \$dlpath'
  8813. shlibpath_overrides_runpath=yes
  8814. case $host_os in
  8815. cygwin*)
  8816. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8817. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8818. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8819. ;;
  8820. mingw* | cegcc*)
  8821. # MinGW DLLs use traditional 'lib' prefix
  8822. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8823. ;;
  8824. pw32*)
  8825. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8826. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8827. ;;
  8828. esac
  8829. ;;
  8830. *)
  8831. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8832. ;;
  8833. esac
  8834. dynamic_linker='Win32 ld.exe'
  8835. # FIXME: first we should search . and the directory the executable is in
  8836. shlibpath_var=PATH
  8837. ;;
  8838. darwin* | rhapsody*)
  8839. dynamic_linker="$host_os dyld"
  8840. version_type=darwin
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8844. soname_spec='${libname}${release}${major}$shared_ext'
  8845. shlibpath_overrides_runpath=yes
  8846. shlibpath_var=DYLD_LIBRARY_PATH
  8847. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8848. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8849. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8850. ;;
  8851. dgux*)
  8852. version_type=linux
  8853. need_lib_prefix=no
  8854. need_version=no
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8856. soname_spec='${libname}${release}${shared_ext}$major'
  8857. shlibpath_var=LD_LIBRARY_PATH
  8858. ;;
  8859. freebsd* | dragonfly*)
  8860. # DragonFly does not have aout. When/if they implement a new
  8861. # versioning mechanism, adjust this.
  8862. if test -x /usr/bin/objformat; then
  8863. objformat=`/usr/bin/objformat`
  8864. else
  8865. case $host_os in
  8866. freebsd[23].*) objformat=aout ;;
  8867. *) objformat=elf ;;
  8868. esac
  8869. fi
  8870. version_type=freebsd-$objformat
  8871. case $version_type in
  8872. freebsd-elf*)
  8873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8874. need_version=no
  8875. need_lib_prefix=no
  8876. ;;
  8877. freebsd-*)
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8879. need_version=yes
  8880. ;;
  8881. esac
  8882. shlibpath_var=LD_LIBRARY_PATH
  8883. case $host_os in
  8884. freebsd2.*)
  8885. shlibpath_overrides_runpath=yes
  8886. ;;
  8887. freebsd3.[01]* | freebsdelf3.[01]*)
  8888. shlibpath_overrides_runpath=yes
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8892. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8893. shlibpath_overrides_runpath=no
  8894. hardcode_into_libs=yes
  8895. ;;
  8896. *) # from 4.6 on, and DragonFly
  8897. shlibpath_overrides_runpath=yes
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. esac
  8901. ;;
  8902. gnu*)
  8903. version_type=linux
  8904. need_lib_prefix=no
  8905. need_version=no
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. shlibpath_var=LD_LIBRARY_PATH
  8909. hardcode_into_libs=yes
  8910. ;;
  8911. haiku*)
  8912. version_type=linux
  8913. need_lib_prefix=no
  8914. need_version=no
  8915. dynamic_linker="$host_os runtime_loader"
  8916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8917. soname_spec='${libname}${release}${shared_ext}$major'
  8918. shlibpath_var=LIBRARY_PATH
  8919. shlibpath_overrides_runpath=yes
  8920. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8921. hardcode_into_libs=yes
  8922. ;;
  8923. hpux9* | hpux10* | hpux11*)
  8924. # Give a soname corresponding to the major version so that dld.sl refuses to
  8925. # link against other versions.
  8926. version_type=sunos
  8927. need_lib_prefix=no
  8928. need_version=no
  8929. case $host_cpu in
  8930. ia64*)
  8931. shrext_cmds='.so'
  8932. hardcode_into_libs=yes
  8933. dynamic_linker="$host_os dld.so"
  8934. shlibpath_var=LD_LIBRARY_PATH
  8935. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8937. soname_spec='${libname}${release}${shared_ext}$major'
  8938. if test "X$HPUX_IA64_MODE" = X32; then
  8939. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8940. else
  8941. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8942. fi
  8943. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8944. ;;
  8945. hppa*64*)
  8946. shrext_cmds='.sl'
  8947. hardcode_into_libs=yes
  8948. dynamic_linker="$host_os dld.sl"
  8949. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8950. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8954. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8955. ;;
  8956. *)
  8957. shrext_cmds='.sl'
  8958. dynamic_linker="$host_os dld.sl"
  8959. shlibpath_var=SHLIB_PATH
  8960. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8962. soname_spec='${libname}${release}${shared_ext}$major'
  8963. ;;
  8964. esac
  8965. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8966. postinstall_cmds='chmod 555 $lib'
  8967. # or fails outright, so override atomically:
  8968. install_override_mode=555
  8969. ;;
  8970. interix[3-9]*)
  8971. version_type=linux
  8972. need_lib_prefix=no
  8973. need_version=no
  8974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8975. soname_spec='${libname}${release}${shared_ext}$major'
  8976. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8977. shlibpath_var=LD_LIBRARY_PATH
  8978. shlibpath_overrides_runpath=no
  8979. hardcode_into_libs=yes
  8980. ;;
  8981. irix5* | irix6* | nonstopux*)
  8982. case $host_os in
  8983. nonstopux*) version_type=nonstopux ;;
  8984. *)
  8985. if test "$lt_cv_prog_gnu_ld" = yes; then
  8986. version_type=linux
  8987. else
  8988. version_type=irix
  8989. fi ;;
  8990. esac
  8991. need_lib_prefix=no
  8992. need_version=no
  8993. soname_spec='${libname}${release}${shared_ext}$major'
  8994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8995. case $host_os in
  8996. irix5* | nonstopux*)
  8997. libsuff= shlibsuff=
  8998. ;;
  8999. *)
  9000. case $LD in # libtool.m4 will add one of these switches to LD
  9001. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9002. libsuff= shlibsuff= libmagic=32-bit;;
  9003. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9004. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9005. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9006. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9007. *) libsuff= shlibsuff= libmagic=never-match;;
  9008. esac
  9009. ;;
  9010. esac
  9011. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9012. shlibpath_overrides_runpath=no
  9013. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9014. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9015. hardcode_into_libs=yes
  9016. ;;
  9017. # No shared lib support for Linux oldld, aout, or coff.
  9018. linux*oldld* | linux*aout* | linux*coff*)
  9019. dynamic_linker=no
  9020. ;;
  9021. # This must be Linux ELF.
  9022. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9023. version_type=linux
  9024. need_lib_prefix=no
  9025. need_version=no
  9026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9027. soname_spec='${libname}${release}${shared_ext}$major'
  9028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9029. shlibpath_var=LD_LIBRARY_PATH
  9030. shlibpath_overrides_runpath=no
  9031. # Some binutils ld are patched to set DT_RUNPATH
  9032. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. lt_cv_shlibpath_overrides_runpath=no
  9036. save_LDFLAGS=$LDFLAGS
  9037. save_libdir=$libdir
  9038. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9039. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9041. /* end confdefs.h. */
  9042. int
  9043. main ()
  9044. {
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. if ac_fn_c_try_link "$LINENO"; then :
  9050. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9051. lt_cv_shlibpath_overrides_runpath=yes
  9052. fi
  9053. fi
  9054. rm -f core conftest.err conftest.$ac_objext \
  9055. conftest$ac_exeext conftest.$ac_ext
  9056. LDFLAGS=$save_LDFLAGS
  9057. libdir=$save_libdir
  9058. fi
  9059. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9060. # This implies no fast_install, which is unacceptable.
  9061. # Some rework will be needed to allow for fast_install
  9062. # before this can be enabled.
  9063. hardcode_into_libs=yes
  9064. # Append ld.so.conf contents to the search path
  9065. if test -f /etc/ld.so.conf; then
  9066. 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' ' '`
  9067. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9068. fi
  9069. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9070. # powerpc, because MkLinux only supported shared libraries with the
  9071. # GNU dynamic linker. Since this was broken with cross compilers,
  9072. # most powerpc-linux boxes support dynamic linking these days and
  9073. # people can always --disable-shared, the test was removed, and we
  9074. # assume the GNU/Linux dynamic linker is in use.
  9075. dynamic_linker='GNU/Linux ld.so'
  9076. ;;
  9077. netbsd*)
  9078. version_type=sunos
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9083. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9084. dynamic_linker='NetBSD (a.out) ld.so'
  9085. else
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. dynamic_linker='NetBSD ld.elf_so'
  9089. fi
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=yes
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. newsos6)
  9095. version_type=linux
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9097. shlibpath_var=LD_LIBRARY_PATH
  9098. shlibpath_overrides_runpath=yes
  9099. ;;
  9100. *nto* | *qnx*)
  9101. version_type=qnx
  9102. need_lib_prefix=no
  9103. need_version=no
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9105. soname_spec='${libname}${release}${shared_ext}$major'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. shlibpath_overrides_runpath=no
  9108. hardcode_into_libs=yes
  9109. dynamic_linker='ldqnx.so'
  9110. ;;
  9111. openbsd*)
  9112. version_type=sunos
  9113. sys_lib_dlsearch_path_spec="/usr/lib"
  9114. need_lib_prefix=no
  9115. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9116. case $host_os in
  9117. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9118. *) need_version=no ;;
  9119. esac
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9122. shlibpath_var=LD_LIBRARY_PATH
  9123. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9124. case $host_os in
  9125. openbsd2.[89] | openbsd2.[89].*)
  9126. shlibpath_overrides_runpath=no
  9127. ;;
  9128. *)
  9129. shlibpath_overrides_runpath=yes
  9130. ;;
  9131. esac
  9132. else
  9133. shlibpath_overrides_runpath=yes
  9134. fi
  9135. ;;
  9136. os2*)
  9137. libname_spec='$name'
  9138. shrext_cmds=".dll"
  9139. need_lib_prefix=no
  9140. library_names_spec='$libname${shared_ext} $libname.a'
  9141. dynamic_linker='OS/2 ld.exe'
  9142. shlibpath_var=LIBPATH
  9143. ;;
  9144. osf3* | osf4* | osf5*)
  9145. version_type=osf
  9146. need_lib_prefix=no
  9147. need_version=no
  9148. soname_spec='${libname}${release}${shared_ext}$major'
  9149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9152. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9153. ;;
  9154. rdos*)
  9155. dynamic_linker=no
  9156. ;;
  9157. solaris*)
  9158. version_type=linux
  9159. need_lib_prefix=no
  9160. need_version=no
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9162. soname_spec='${libname}${release}${shared_ext}$major'
  9163. shlibpath_var=LD_LIBRARY_PATH
  9164. shlibpath_overrides_runpath=yes
  9165. hardcode_into_libs=yes
  9166. # ldd complains unless libraries are executable
  9167. postinstall_cmds='chmod +x $lib'
  9168. ;;
  9169. sunos4*)
  9170. version_type=sunos
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9172. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=yes
  9175. if test "$with_gnu_ld" = yes; then
  9176. need_lib_prefix=no
  9177. fi
  9178. need_version=yes
  9179. ;;
  9180. sysv4 | sysv4.3*)
  9181. version_type=linux
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9183. soname_spec='${libname}${release}${shared_ext}$major'
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. case $host_vendor in
  9186. sni)
  9187. shlibpath_overrides_runpath=no
  9188. need_lib_prefix=no
  9189. runpath_var=LD_RUN_PATH
  9190. ;;
  9191. siemens)
  9192. need_lib_prefix=no
  9193. ;;
  9194. motorola)
  9195. need_lib_prefix=no
  9196. need_version=no
  9197. shlibpath_overrides_runpath=no
  9198. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9199. ;;
  9200. esac
  9201. ;;
  9202. sysv4*MP*)
  9203. if test -d /usr/nec ;then
  9204. version_type=linux
  9205. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9206. soname_spec='$libname${shared_ext}.$major'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. fi
  9209. ;;
  9210. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9211. version_type=freebsd-elf
  9212. need_lib_prefix=no
  9213. need_version=no
  9214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9215. soname_spec='${libname}${release}${shared_ext}$major'
  9216. shlibpath_var=LD_LIBRARY_PATH
  9217. shlibpath_overrides_runpath=yes
  9218. hardcode_into_libs=yes
  9219. if test "$with_gnu_ld" = yes; then
  9220. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9221. else
  9222. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9223. case $host_os in
  9224. sco3.2v5*)
  9225. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9226. ;;
  9227. esac
  9228. fi
  9229. sys_lib_dlsearch_path_spec='/usr/lib'
  9230. ;;
  9231. tpf*)
  9232. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9233. version_type=linux
  9234. need_lib_prefix=no
  9235. need_version=no
  9236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. shlibpath_overrides_runpath=no
  9239. hardcode_into_libs=yes
  9240. ;;
  9241. uts4*)
  9242. version_type=linux
  9243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9244. soname_spec='${libname}${release}${shared_ext}$major'
  9245. shlibpath_var=LD_LIBRARY_PATH
  9246. ;;
  9247. *)
  9248. dynamic_linker=no
  9249. ;;
  9250. esac
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9252. $as_echo "$dynamic_linker" >&6; }
  9253. test "$dynamic_linker" = no && can_build_shared=no
  9254. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9255. if test "$GCC" = yes; then
  9256. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9257. fi
  9258. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9259. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9260. fi
  9261. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9262. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9263. fi
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9265. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9266. hardcode_action=
  9267. if test -n "$hardcode_libdir_flag_spec" ||
  9268. test -n "$runpath_var" ||
  9269. test "X$hardcode_automatic" = "Xyes" ; then
  9270. # We can hardcode non-existent directories.
  9271. if test "$hardcode_direct" != no &&
  9272. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9273. # have to relink, otherwise we might link with an installed library
  9274. # when we should be linking with a yet-to-be-installed one
  9275. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9276. test "$hardcode_minus_L" != no; then
  9277. # Linking always hardcodes the temporary library directory.
  9278. hardcode_action=relink
  9279. else
  9280. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9281. hardcode_action=immediate
  9282. fi
  9283. else
  9284. # We cannot hardcode anything, or else we can only hardcode existing
  9285. # directories.
  9286. hardcode_action=unsupported
  9287. fi
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9289. $as_echo "$hardcode_action" >&6; }
  9290. if test "$hardcode_action" = relink ||
  9291. test "$inherit_rpath" = yes; then
  9292. # Fast installation is not supported
  9293. enable_fast_install=no
  9294. elif test "$shlibpath_overrides_runpath" = yes ||
  9295. test "$enable_shared" = no; then
  9296. # Fast installation is not necessary
  9297. enable_fast_install=needless
  9298. fi
  9299. if test "x$enable_dlopen" != xyes; then
  9300. enable_dlopen=unknown
  9301. enable_dlopen_self=unknown
  9302. enable_dlopen_self_static=unknown
  9303. else
  9304. lt_cv_dlopen=no
  9305. lt_cv_dlopen_libs=
  9306. case $host_os in
  9307. beos*)
  9308. lt_cv_dlopen="load_add_on"
  9309. lt_cv_dlopen_libs=
  9310. lt_cv_dlopen_self=yes
  9311. ;;
  9312. mingw* | pw32* | cegcc*)
  9313. lt_cv_dlopen="LoadLibrary"
  9314. lt_cv_dlopen_libs=
  9315. ;;
  9316. cygwin*)
  9317. lt_cv_dlopen="dlopen"
  9318. lt_cv_dlopen_libs=
  9319. ;;
  9320. darwin*)
  9321. # if libdl is installed we need to link against it
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9323. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9324. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9325. $as_echo_n "(cached) " >&6
  9326. else
  9327. ac_check_lib_save_LIBS=$LIBS
  9328. LIBS="-ldl $LIBS"
  9329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9330. /* end confdefs.h. */
  9331. /* Override any GCC internal prototype to avoid an error.
  9332. Use char because int might match the return type of a GCC
  9333. builtin and then its argument prototype would still apply. */
  9334. #ifdef __cplusplus
  9335. extern "C"
  9336. #endif
  9337. char dlopen ();
  9338. int
  9339. main ()
  9340. {
  9341. return dlopen ();
  9342. ;
  9343. return 0;
  9344. }
  9345. _ACEOF
  9346. if ac_fn_c_try_link "$LINENO"; then :
  9347. ac_cv_lib_dl_dlopen=yes
  9348. else
  9349. ac_cv_lib_dl_dlopen=no
  9350. fi
  9351. rm -f core conftest.err conftest.$ac_objext \
  9352. conftest$ac_exeext conftest.$ac_ext
  9353. LIBS=$ac_check_lib_save_LIBS
  9354. fi
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9356. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9357. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9359. else
  9360. lt_cv_dlopen="dyld"
  9361. lt_cv_dlopen_libs=
  9362. lt_cv_dlopen_self=yes
  9363. fi
  9364. ;;
  9365. *)
  9366. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9367. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9368. lt_cv_dlopen="shl_load"
  9369. else
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9371. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9372. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9373. $as_echo_n "(cached) " >&6
  9374. else
  9375. ac_check_lib_save_LIBS=$LIBS
  9376. LIBS="-ldld $LIBS"
  9377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9378. /* end confdefs.h. */
  9379. /* Override any GCC internal prototype to avoid an error.
  9380. Use char because int might match the return type of a GCC
  9381. builtin and then its argument prototype would still apply. */
  9382. #ifdef __cplusplus
  9383. extern "C"
  9384. #endif
  9385. char shl_load ();
  9386. int
  9387. main ()
  9388. {
  9389. return shl_load ();
  9390. ;
  9391. return 0;
  9392. }
  9393. _ACEOF
  9394. if ac_fn_c_try_link "$LINENO"; then :
  9395. ac_cv_lib_dld_shl_load=yes
  9396. else
  9397. ac_cv_lib_dld_shl_load=no
  9398. fi
  9399. rm -f core conftest.err conftest.$ac_objext \
  9400. conftest$ac_exeext conftest.$ac_ext
  9401. LIBS=$ac_check_lib_save_LIBS
  9402. fi
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9404. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9405. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9406. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9407. else
  9408. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9409. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9410. lt_cv_dlopen="dlopen"
  9411. else
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9413. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9414. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9415. $as_echo_n "(cached) " >&6
  9416. else
  9417. ac_check_lib_save_LIBS=$LIBS
  9418. LIBS="-ldl $LIBS"
  9419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9420. /* end confdefs.h. */
  9421. /* Override any GCC internal prototype to avoid an error.
  9422. Use char because int might match the return type of a GCC
  9423. builtin and then its argument prototype would still apply. */
  9424. #ifdef __cplusplus
  9425. extern "C"
  9426. #endif
  9427. char dlopen ();
  9428. int
  9429. main ()
  9430. {
  9431. return dlopen ();
  9432. ;
  9433. return 0;
  9434. }
  9435. _ACEOF
  9436. if ac_fn_c_try_link "$LINENO"; then :
  9437. ac_cv_lib_dl_dlopen=yes
  9438. else
  9439. ac_cv_lib_dl_dlopen=no
  9440. fi
  9441. rm -f core conftest.err conftest.$ac_objext \
  9442. conftest$ac_exeext conftest.$ac_ext
  9443. LIBS=$ac_check_lib_save_LIBS
  9444. fi
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9446. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9447. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9448. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9449. else
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9451. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9452. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9453. $as_echo_n "(cached) " >&6
  9454. else
  9455. ac_check_lib_save_LIBS=$LIBS
  9456. LIBS="-lsvld $LIBS"
  9457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9458. /* end confdefs.h. */
  9459. /* Override any GCC internal prototype to avoid an error.
  9460. Use char because int might match the return type of a GCC
  9461. builtin and then its argument prototype would still apply. */
  9462. #ifdef __cplusplus
  9463. extern "C"
  9464. #endif
  9465. char dlopen ();
  9466. int
  9467. main ()
  9468. {
  9469. return dlopen ();
  9470. ;
  9471. return 0;
  9472. }
  9473. _ACEOF
  9474. if ac_fn_c_try_link "$LINENO"; then :
  9475. ac_cv_lib_svld_dlopen=yes
  9476. else
  9477. ac_cv_lib_svld_dlopen=no
  9478. fi
  9479. rm -f core conftest.err conftest.$ac_objext \
  9480. conftest$ac_exeext conftest.$ac_ext
  9481. LIBS=$ac_check_lib_save_LIBS
  9482. fi
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9484. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9485. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9486. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9487. else
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9489. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9490. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9491. $as_echo_n "(cached) " >&6
  9492. else
  9493. ac_check_lib_save_LIBS=$LIBS
  9494. LIBS="-ldld $LIBS"
  9495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9496. /* end confdefs.h. */
  9497. /* Override any GCC internal prototype to avoid an error.
  9498. Use char because int might match the return type of a GCC
  9499. builtin and then its argument prototype would still apply. */
  9500. #ifdef __cplusplus
  9501. extern "C"
  9502. #endif
  9503. char dld_link ();
  9504. int
  9505. main ()
  9506. {
  9507. return dld_link ();
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. ac_cv_lib_dld_dld_link=yes
  9514. else
  9515. ac_cv_lib_dld_dld_link=no
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext \
  9518. conftest$ac_exeext conftest.$ac_ext
  9519. LIBS=$ac_check_lib_save_LIBS
  9520. fi
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9522. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9523. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9524. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9525. fi
  9526. fi
  9527. fi
  9528. fi
  9529. fi
  9530. fi
  9531. ;;
  9532. esac
  9533. if test "x$lt_cv_dlopen" != xno; then
  9534. enable_dlopen=yes
  9535. else
  9536. enable_dlopen=no
  9537. fi
  9538. case $lt_cv_dlopen in
  9539. dlopen)
  9540. save_CPPFLAGS="$CPPFLAGS"
  9541. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9542. save_LDFLAGS="$LDFLAGS"
  9543. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9544. save_LIBS="$LIBS"
  9545. LIBS="$lt_cv_dlopen_libs $LIBS"
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9547. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9548. if test "${lt_cv_dlopen_self+set}" = set; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. if test "$cross_compiling" = yes; then :
  9552. lt_cv_dlopen_self=cross
  9553. else
  9554. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9555. lt_status=$lt_dlunknown
  9556. cat > conftest.$ac_ext <<_LT_EOF
  9557. #line 11114 "configure"
  9558. #include "confdefs.h"
  9559. #if HAVE_DLFCN_H
  9560. #include <dlfcn.h>
  9561. #endif
  9562. #include <stdio.h>
  9563. #ifdef RTLD_GLOBAL
  9564. # define LT_DLGLOBAL RTLD_GLOBAL
  9565. #else
  9566. # ifdef DL_GLOBAL
  9567. # define LT_DLGLOBAL DL_GLOBAL
  9568. # else
  9569. # define LT_DLGLOBAL 0
  9570. # endif
  9571. #endif
  9572. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9573. find out it does not work in some platform. */
  9574. #ifndef LT_DLLAZY_OR_NOW
  9575. # ifdef RTLD_LAZY
  9576. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9577. # else
  9578. # ifdef DL_LAZY
  9579. # define LT_DLLAZY_OR_NOW DL_LAZY
  9580. # else
  9581. # ifdef RTLD_NOW
  9582. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9583. # else
  9584. # ifdef DL_NOW
  9585. # define LT_DLLAZY_OR_NOW DL_NOW
  9586. # else
  9587. # define LT_DLLAZY_OR_NOW 0
  9588. # endif
  9589. # endif
  9590. # endif
  9591. # endif
  9592. #endif
  9593. /* When -fvisbility=hidden is used, assume the code has been annotated
  9594. correspondingly for the symbols needed. */
  9595. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9596. void fnord () __attribute__((visibility("default")));
  9597. #endif
  9598. void fnord () { int i=42; }
  9599. int main ()
  9600. {
  9601. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9602. int status = $lt_dlunknown;
  9603. if (self)
  9604. {
  9605. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9606. else
  9607. {
  9608. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9609. else puts (dlerror ());
  9610. }
  9611. /* dlclose (self); */
  9612. }
  9613. else
  9614. puts (dlerror ());
  9615. return status;
  9616. }
  9617. _LT_EOF
  9618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9619. (eval $ac_link) 2>&5
  9620. ac_status=$?
  9621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9622. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9623. (./conftest; exit; ) >&5 2>/dev/null
  9624. lt_status=$?
  9625. case x$lt_status in
  9626. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9627. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9628. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9629. esac
  9630. else :
  9631. # compilation failed
  9632. lt_cv_dlopen_self=no
  9633. fi
  9634. fi
  9635. rm -fr conftest*
  9636. fi
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9638. $as_echo "$lt_cv_dlopen_self" >&6; }
  9639. if test "x$lt_cv_dlopen_self" = xyes; then
  9640. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9642. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9643. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9644. $as_echo_n "(cached) " >&6
  9645. else
  9646. if test "$cross_compiling" = yes; then :
  9647. lt_cv_dlopen_self_static=cross
  9648. else
  9649. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9650. lt_status=$lt_dlunknown
  9651. cat > conftest.$ac_ext <<_LT_EOF
  9652. #line 11220 "configure"
  9653. #include "confdefs.h"
  9654. #if HAVE_DLFCN_H
  9655. #include <dlfcn.h>
  9656. #endif
  9657. #include <stdio.h>
  9658. #ifdef RTLD_GLOBAL
  9659. # define LT_DLGLOBAL RTLD_GLOBAL
  9660. #else
  9661. # ifdef DL_GLOBAL
  9662. # define LT_DLGLOBAL DL_GLOBAL
  9663. # else
  9664. # define LT_DLGLOBAL 0
  9665. # endif
  9666. #endif
  9667. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9668. find out it does not work in some platform. */
  9669. #ifndef LT_DLLAZY_OR_NOW
  9670. # ifdef RTLD_LAZY
  9671. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9672. # else
  9673. # ifdef DL_LAZY
  9674. # define LT_DLLAZY_OR_NOW DL_LAZY
  9675. # else
  9676. # ifdef RTLD_NOW
  9677. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9678. # else
  9679. # ifdef DL_NOW
  9680. # define LT_DLLAZY_OR_NOW DL_NOW
  9681. # else
  9682. # define LT_DLLAZY_OR_NOW 0
  9683. # endif
  9684. # endif
  9685. # endif
  9686. # endif
  9687. #endif
  9688. /* When -fvisbility=hidden is used, assume the code has been annotated
  9689. correspondingly for the symbols needed. */
  9690. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9691. void fnord () __attribute__((visibility("default")));
  9692. #endif
  9693. void fnord () { int i=42; }
  9694. int main ()
  9695. {
  9696. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9697. int status = $lt_dlunknown;
  9698. if (self)
  9699. {
  9700. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9701. else
  9702. {
  9703. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9704. else puts (dlerror ());
  9705. }
  9706. /* dlclose (self); */
  9707. }
  9708. else
  9709. puts (dlerror ());
  9710. return status;
  9711. }
  9712. _LT_EOF
  9713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9714. (eval $ac_link) 2>&5
  9715. ac_status=$?
  9716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9717. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9718. (./conftest; exit; ) >&5 2>/dev/null
  9719. lt_status=$?
  9720. case x$lt_status in
  9721. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9722. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9723. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9724. esac
  9725. else :
  9726. # compilation failed
  9727. lt_cv_dlopen_self_static=no
  9728. fi
  9729. fi
  9730. rm -fr conftest*
  9731. fi
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9733. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9734. fi
  9735. CPPFLAGS="$save_CPPFLAGS"
  9736. LDFLAGS="$save_LDFLAGS"
  9737. LIBS="$save_LIBS"
  9738. ;;
  9739. esac
  9740. case $lt_cv_dlopen_self in
  9741. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9742. *) enable_dlopen_self=unknown ;;
  9743. esac
  9744. case $lt_cv_dlopen_self_static in
  9745. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9746. *) enable_dlopen_self_static=unknown ;;
  9747. esac
  9748. fi
  9749. striplib=
  9750. old_striplib=
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9752. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9753. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9754. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9755. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9757. $as_echo "yes" >&6; }
  9758. else
  9759. # FIXME - insert some real tests, host_os isn't really good enough
  9760. case $host_os in
  9761. darwin*)
  9762. if test -n "$STRIP" ; then
  9763. striplib="$STRIP -x"
  9764. old_striplib="$STRIP -S"
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9766. $as_echo "yes" >&6; }
  9767. else
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9769. $as_echo "no" >&6; }
  9770. fi
  9771. ;;
  9772. *)
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9774. $as_echo "no" >&6; }
  9775. ;;
  9776. esac
  9777. fi
  9778. # Report which library types will actually be built
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9780. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9782. $as_echo "$can_build_shared" >&6; }
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9784. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9785. test "$can_build_shared" = "no" && enable_shared=no
  9786. # On AIX, shared libraries and static libraries use the same namespace, and
  9787. # are all built from PIC.
  9788. case $host_os in
  9789. aix3*)
  9790. test "$enable_shared" = yes && enable_static=no
  9791. if test -n "$RANLIB"; then
  9792. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9793. postinstall_cmds='$RANLIB $lib'
  9794. fi
  9795. ;;
  9796. aix[4-9]*)
  9797. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9798. test "$enable_shared" = yes && enable_static=no
  9799. fi
  9800. ;;
  9801. esac
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9803. $as_echo "$enable_shared" >&6; }
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9805. $as_echo_n "checking whether to build static libraries... " >&6; }
  9806. # Make sure either enable_shared or enable_static is yes.
  9807. test "$enable_shared" = yes || enable_static=yes
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9809. $as_echo "$enable_static" >&6; }
  9810. fi
  9811. ac_ext=c
  9812. ac_cpp='$CPP $CPPFLAGS'
  9813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9816. CC="$lt_save_CC"
  9817. ac_config_commands="$ac_config_commands libtool"
  9818. # Only expand once:
  9819. case $host in
  9820. *-cygwin* | *-mingw*)
  9821. # 'host' will be top-level target in the case of a target lib,
  9822. # we must compare to with_cross_host to decide if this is a native
  9823. # or cross-compiler and select where to install dlls appropriately.
  9824. if test -n "$with_cross_host" &&
  9825. test x"$with_cross_host" != x"no"; then
  9826. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9827. else
  9828. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9829. fi
  9830. ;;
  9831. *)
  9832. lt_host_flags=
  9833. ;;
  9834. esac
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9836. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9837. # Check whether --enable-maintainer-mode was given.
  9838. if test "${enable_maintainer_mode+set}" = set; then :
  9839. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9840. else
  9841. USE_MAINTAINER_MODE=no
  9842. fi
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9844. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9845. if test $USE_MAINTAINER_MODE = yes; then
  9846. MAINTAINER_MODE_TRUE=
  9847. MAINTAINER_MODE_FALSE='#'
  9848. else
  9849. MAINTAINER_MODE_TRUE='#'
  9850. MAINTAINER_MODE_FALSE=
  9851. fi
  9852. MAINT=$MAINTAINER_MODE_TRUE
  9853. # For libtool versioning info, format is CURRENT:REVISION:AGE
  9854. libtool_VERSION=2:0:1
  9855. # Check for used threading-model
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  9857. $as_echo_n "checking for thread model used by GCC... " >&6; }
  9858. target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
  9860. $as_echo "$target_thread_file" >&6; }
  9861. # Get target configury.
  9862. . ${srcdir}/configure.tgt
  9863. if test -n "$UNSUPPORTED"; then
  9864. as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
  9865. fi
  9866. # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
  9867. # make silly decisions about what the cpu can do.
  9868. CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
  9869. # Check header files.
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9871. $as_echo_n "checking for ANSI C header files... " >&6; }
  9872. if test "${ac_cv_header_stdc+set}" = set; then :
  9873. $as_echo_n "(cached) " >&6
  9874. else
  9875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9876. /* end confdefs.h. */
  9877. #include <stdlib.h>
  9878. #include <stdarg.h>
  9879. #include <string.h>
  9880. #include <float.h>
  9881. int
  9882. main ()
  9883. {
  9884. ;
  9885. return 0;
  9886. }
  9887. _ACEOF
  9888. if ac_fn_c_try_compile "$LINENO"; then :
  9889. ac_cv_header_stdc=yes
  9890. else
  9891. ac_cv_header_stdc=no
  9892. fi
  9893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9894. if test $ac_cv_header_stdc = yes; then
  9895. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9897. /* end confdefs.h. */
  9898. #include <string.h>
  9899. _ACEOF
  9900. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9901. $EGREP "memchr" >/dev/null 2>&1; then :
  9902. else
  9903. ac_cv_header_stdc=no
  9904. fi
  9905. rm -f conftest*
  9906. fi
  9907. if test $ac_cv_header_stdc = yes; then
  9908. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9910. /* end confdefs.h. */
  9911. #include <stdlib.h>
  9912. _ACEOF
  9913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9914. $EGREP "free" >/dev/null 2>&1; then :
  9915. else
  9916. ac_cv_header_stdc=no
  9917. fi
  9918. rm -f conftest*
  9919. fi
  9920. if test $ac_cv_header_stdc = yes; then
  9921. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9922. if test "$cross_compiling" = yes; then :
  9923. :
  9924. else
  9925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9926. /* end confdefs.h. */
  9927. #include <ctype.h>
  9928. #include <stdlib.h>
  9929. #if ((' ' & 0x0FF) == 0x020)
  9930. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9931. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9932. #else
  9933. # define ISLOWER(c) \
  9934. (('a' <= (c) && (c) <= 'i') \
  9935. || ('j' <= (c) && (c) <= 'r') \
  9936. || ('s' <= (c) && (c) <= 'z'))
  9937. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9938. #endif
  9939. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9940. int
  9941. main ()
  9942. {
  9943. int i;
  9944. for (i = 0; i < 256; i++)
  9945. if (XOR (islower (i), ISLOWER (i))
  9946. || toupper (i) != TOUPPER (i))
  9947. return 2;
  9948. return 0;
  9949. }
  9950. _ACEOF
  9951. if ac_fn_c_try_run "$LINENO"; then :
  9952. else
  9953. ac_cv_header_stdc=no
  9954. fi
  9955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9956. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9957. fi
  9958. fi
  9959. fi
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9961. $as_echo "$ac_cv_header_stdc" >&6; }
  9962. if test $ac_cv_header_stdc = yes; then
  9963. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9964. fi
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  9966. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  9967. if test "${gcc_cv_header_string+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9971. /* end confdefs.h. */
  9972. #include <string.h>
  9973. #include <strings.h>
  9974. int
  9975. main ()
  9976. {
  9977. ;
  9978. return 0;
  9979. }
  9980. _ACEOF
  9981. if ac_fn_c_try_compile "$LINENO"; then :
  9982. gcc_cv_header_string=yes
  9983. else
  9984. gcc_cv_header_string=no
  9985. fi
  9986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9987. fi
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  9989. $as_echo "$gcc_cv_header_string" >&6; }
  9990. if test $gcc_cv_header_string = yes; then
  9991. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  9992. fi
  9993. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  9994. acx_cv_header_stdint=stddef.h
  9995. acx_cv_header_stdint_kind="(already complete)"
  9996. for i in stdint.h $inttype_headers; do
  9997. unset ac_cv_type_uintptr_t
  9998. unset ac_cv_type_uintmax_t
  9999. unset ac_cv_type_int_least32_t
  10000. unset ac_cv_type_int_fast32_t
  10001. unset ac_cv_type_uint64_t
  10002. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  10003. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  10004. #include <$i>
  10005. "
  10006. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  10007. acx_cv_header_stdint=$i
  10008. else
  10009. continue
  10010. fi
  10011. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10012. #include <$i>
  10013. "
  10014. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  10015. else
  10016. acx_cv_header_stdint_kind="(mostly complete)"
  10017. fi
  10018. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  10019. #include <$i>
  10020. "
  10021. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  10022. else
  10023. acx_cv_header_stdint_kind="(mostly complete)"
  10024. fi
  10025. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  10026. #include <$i>
  10027. "
  10028. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  10029. else
  10030. acx_cv_header_stdint_kind="(mostly complete)"
  10031. fi
  10032. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10033. #include <$i>
  10034. "
  10035. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  10036. else
  10037. acx_cv_header_stdint_kind="(lacks uint64_t)"
  10038. fi
  10039. break
  10040. done
  10041. if test "$acx_cv_header_stdint" = stddef.h; then
  10042. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  10043. for i in stdint.h $inttype_headers; do
  10044. unset ac_cv_type_uintptr_t
  10045. unset ac_cv_type_uint32_t
  10046. unset ac_cv_type_uint64_t
  10047. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  10048. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  10049. #include <$i>
  10050. "
  10051. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  10052. acx_cv_header_stdint=$i
  10053. else
  10054. continue
  10055. fi
  10056. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10057. #include <$i>
  10058. "
  10059. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  10060. fi
  10061. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10062. #include <$i>
  10063. "
  10064. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  10065. fi
  10066. break
  10067. done
  10068. fi
  10069. if test "$acx_cv_header_stdint" = stddef.h; then
  10070. acx_cv_header_stdint_kind="(u_intXX_t style)"
  10071. for i in sys/types.h $inttype_headers; do
  10072. unset ac_cv_type_u_int32_t
  10073. unset ac_cv_type_u_int64_t
  10074. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  10075. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  10076. #include <$i>
  10077. "
  10078. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  10079. acx_cv_header_stdint=$i
  10080. else
  10081. continue
  10082. fi
  10083. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  10084. #include <$i>
  10085. "
  10086. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  10087. fi
  10088. break
  10089. done
  10090. fi
  10091. if test "$acx_cv_header_stdint" = stddef.h; then
  10092. acx_cv_header_stdint_kind="(using manual detection)"
  10093. fi
  10094. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  10095. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  10096. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  10097. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  10098. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  10099. # ----------------- Summarize what we found so far
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  10101. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  10102. case `$as_basename -- gstdint.h ||
  10103. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  10104. Xgstdint.h : 'X\(//\)$' \| \
  10105. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  10106. $as_echo X/gstdint.h |
  10107. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10108. s//\1/
  10109. q
  10110. }
  10111. /^X\/\(\/\/\)$/{
  10112. s//\1/
  10113. q
  10114. }
  10115. /^X\/\(\/\).*/{
  10116. s//\1/
  10117. q
  10118. }
  10119. s/.*/./; q'` in
  10120. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10121. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10122. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10123. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10124. *) ;;
  10125. esac
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  10127. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  10128. # ----------------- done included file, check C basic types --------
  10129. # Lacking an uintptr_t? Test size of void *
  10130. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  10131. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  10132. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10133. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10134. # This bug is HP SR number 8606223364.
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10136. $as_echo_n "checking size of void *... " >&6; }
  10137. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  10138. $as_echo_n "(cached) " >&6
  10139. else
  10140. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  10141. else
  10142. if test "$ac_cv_type_void_p" = yes; then
  10143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10145. { as_fn_set_status 77
  10146. as_fn_error "cannot compute sizeof (void *)
  10147. See \`config.log' for more details." "$LINENO" 5; }; }
  10148. else
  10149. ac_cv_sizeof_void_p=0
  10150. fi
  10151. fi
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10154. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10155. cat >>confdefs.h <<_ACEOF
  10156. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10157. _ACEOF
  10158. ;;
  10159. esac
  10160. # Lacking an uint64_t? Test size of long
  10161. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  10162. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  10163. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10164. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10165. # This bug is HP SR number 8606223364.
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10167. $as_echo_n "checking size of long... " >&6; }
  10168. if test "${ac_cv_sizeof_long+set}" = set; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10172. else
  10173. if test "$ac_cv_type_long" = yes; then
  10174. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10175. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10176. { as_fn_set_status 77
  10177. as_fn_error "cannot compute sizeof (long)
  10178. See \`config.log' for more details." "$LINENO" 5; }; }
  10179. else
  10180. ac_cv_sizeof_long=0
  10181. fi
  10182. fi
  10183. fi
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10185. $as_echo "$ac_cv_sizeof_long" >&6; }
  10186. cat >>confdefs.h <<_ACEOF
  10187. #define SIZEOF_LONG $ac_cv_sizeof_long
  10188. _ACEOF
  10189. ;;
  10190. esac
  10191. if test $acx_cv_header_stdint = stddef.h; then
  10192. # Lacking a good header? Test size of everything and deduce all types.
  10193. # The cast to long int works around a bug in the HP C Compiler
  10194. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10195. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10196. # This bug is HP SR number 8606223364.
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10198. $as_echo_n "checking size of int... " >&6; }
  10199. if test "${ac_cv_sizeof_int+set}" = set; then :
  10200. $as_echo_n "(cached) " >&6
  10201. else
  10202. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10203. else
  10204. if test "$ac_cv_type_int" = yes; then
  10205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10207. { as_fn_set_status 77
  10208. as_fn_error "cannot compute sizeof (int)
  10209. See \`config.log' for more details." "$LINENO" 5; }; }
  10210. else
  10211. ac_cv_sizeof_int=0
  10212. fi
  10213. fi
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10216. $as_echo "$ac_cv_sizeof_int" >&6; }
  10217. cat >>confdefs.h <<_ACEOF
  10218. #define SIZEOF_INT $ac_cv_sizeof_int
  10219. _ACEOF
  10220. # The cast to long int works around a bug in the HP C Compiler
  10221. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10222. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10223. # This bug is HP SR number 8606223364.
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10225. $as_echo_n "checking size of short... " >&6; }
  10226. if test "${ac_cv_sizeof_short+set}" = set; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10230. else
  10231. if test "$ac_cv_type_short" = yes; then
  10232. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10233. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10234. { as_fn_set_status 77
  10235. as_fn_error "cannot compute sizeof (short)
  10236. See \`config.log' for more details." "$LINENO" 5; }; }
  10237. else
  10238. ac_cv_sizeof_short=0
  10239. fi
  10240. fi
  10241. fi
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10243. $as_echo "$ac_cv_sizeof_short" >&6; }
  10244. cat >>confdefs.h <<_ACEOF
  10245. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10246. _ACEOF
  10247. # The cast to long int works around a bug in the HP C Compiler
  10248. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10249. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10250. # This bug is HP SR number 8606223364.
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  10252. $as_echo_n "checking size of char... " >&6; }
  10253. if test "${ac_cv_sizeof_char+set}" = set; then :
  10254. $as_echo_n "(cached) " >&6
  10255. else
  10256. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  10257. else
  10258. if test "$ac_cv_type_char" = yes; then
  10259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10261. { as_fn_set_status 77
  10262. as_fn_error "cannot compute sizeof (char)
  10263. See \`config.log' for more details." "$LINENO" 5; }; }
  10264. else
  10265. ac_cv_sizeof_char=0
  10266. fi
  10267. fi
  10268. fi
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  10270. $as_echo "$ac_cv_sizeof_char" >&6; }
  10271. cat >>confdefs.h <<_ACEOF
  10272. #define SIZEOF_CHAR $ac_cv_sizeof_char
  10273. _ACEOF
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  10275. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  10276. case "$ac_cv_sizeof_char" in
  10277. 1) acx_cv_type_int8_t=char ;;
  10278. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  10279. esac
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  10281. $as_echo "$acx_cv_type_int8_t" >&6; }
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  10283. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  10284. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  10285. 2:*) acx_cv_type_int16_t=int ;;
  10286. *:2) acx_cv_type_int16_t=short ;;
  10287. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  10288. esac
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  10290. $as_echo "$acx_cv_type_int16_t" >&6; }
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  10292. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  10293. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  10294. 4:*) acx_cv_type_int32_t=int ;;
  10295. *:4) acx_cv_type_int32_t=long ;;
  10296. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  10297. esac
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  10299. $as_echo "$acx_cv_type_int32_t" >&6; }
  10300. fi
  10301. # These tests are here to make the output prettier
  10302. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  10303. case "$ac_cv_sizeof_long" in
  10304. 8) acx_cv_type_int64_t=long ;;
  10305. esac
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  10307. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  10309. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  10310. fi
  10311. # Now we can use the above types
  10312. if test "$ac_cv_type_uintptr_t" != yes; then
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  10314. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  10315. case $ac_cv_sizeof_void_p in
  10316. 2) acx_cv_type_intptr_t=int16_t ;;
  10317. 4) acx_cv_type_intptr_t=int32_t ;;
  10318. 8) acx_cv_type_intptr_t=int64_t ;;
  10319. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  10320. esac
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  10322. $as_echo "$acx_cv_type_intptr_t" >&6; }
  10323. fi
  10324. # ----------------- done all checks, emit header -------------
  10325. ac_config_commands="$ac_config_commands gstdint.h"
  10326. for ac_header in fenv.h
  10327. do :
  10328. ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
  10329. if test "x$ac_cv_header_fenv_h" = x""yes; then :
  10330. cat >>confdefs.h <<_ACEOF
  10331. #define HAVE_FENV_H 1
  10332. _ACEOF
  10333. fi
  10334. done
  10335. # Check for common type sizes
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
  10337. $as_echo_n "checking for 1 byte integer... " >&6; }
  10338. if test "${libat_cv_have_mode_QI+set}" = set; then :
  10339. $as_echo_n "(cached) " >&6
  10340. else
  10341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10342. /* end confdefs.h. */
  10343. int x __attribute__((mode(QI)));
  10344. _ACEOF
  10345. if ac_fn_c_try_compile "$LINENO"; then :
  10346. libat_cv_have_mode_QI=yes
  10347. else
  10348. libat_cv_have_mode_QI=no
  10349. fi
  10350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10351. fi
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
  10353. $as_echo "$libat_cv_have_mode_QI" >&6; }
  10354. yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
  10355. cat >>confdefs.h <<_ACEOF
  10356. #define HAVE_INT1 $yesno
  10357. _ACEOF
  10358. if test x$libat_cv_have_mode_QI = xyes; then
  10359. SIZES="$SIZES 1"
  10360. fi
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
  10362. $as_echo_n "checking for 2 byte integer... " >&6; }
  10363. if test "${libat_cv_have_mode_HI+set}" = set; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10367. /* end confdefs.h. */
  10368. int x __attribute__((mode(HI)));
  10369. _ACEOF
  10370. if ac_fn_c_try_compile "$LINENO"; then :
  10371. libat_cv_have_mode_HI=yes
  10372. else
  10373. libat_cv_have_mode_HI=no
  10374. fi
  10375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10376. fi
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
  10378. $as_echo "$libat_cv_have_mode_HI" >&6; }
  10379. yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
  10380. cat >>confdefs.h <<_ACEOF
  10381. #define HAVE_INT2 $yesno
  10382. _ACEOF
  10383. if test x$libat_cv_have_mode_HI = xyes; then
  10384. SIZES="$SIZES 2"
  10385. fi
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
  10387. $as_echo_n "checking for 4 byte integer... " >&6; }
  10388. if test "${libat_cv_have_mode_SI+set}" = set; then :
  10389. $as_echo_n "(cached) " >&6
  10390. else
  10391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10392. /* end confdefs.h. */
  10393. int x __attribute__((mode(SI)));
  10394. _ACEOF
  10395. if ac_fn_c_try_compile "$LINENO"; then :
  10396. libat_cv_have_mode_SI=yes
  10397. else
  10398. libat_cv_have_mode_SI=no
  10399. fi
  10400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10401. fi
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
  10403. $as_echo "$libat_cv_have_mode_SI" >&6; }
  10404. yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
  10405. cat >>confdefs.h <<_ACEOF
  10406. #define HAVE_INT4 $yesno
  10407. _ACEOF
  10408. if test x$libat_cv_have_mode_SI = xyes; then
  10409. SIZES="$SIZES 4"
  10410. fi
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
  10412. $as_echo_n "checking for 8 byte integer... " >&6; }
  10413. if test "${libat_cv_have_mode_DI+set}" = set; then :
  10414. $as_echo_n "(cached) " >&6
  10415. else
  10416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10417. /* end confdefs.h. */
  10418. int x __attribute__((mode(DI)));
  10419. _ACEOF
  10420. if ac_fn_c_try_compile "$LINENO"; then :
  10421. libat_cv_have_mode_DI=yes
  10422. else
  10423. libat_cv_have_mode_DI=no
  10424. fi
  10425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10426. fi
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
  10428. $as_echo "$libat_cv_have_mode_DI" >&6; }
  10429. yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
  10430. cat >>confdefs.h <<_ACEOF
  10431. #define HAVE_INT8 $yesno
  10432. _ACEOF
  10433. if test x$libat_cv_have_mode_DI = xyes; then
  10434. SIZES="$SIZES 8"
  10435. fi
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
  10437. $as_echo_n "checking for 16 byte integer... " >&6; }
  10438. if test "${libat_cv_have_mode_TI+set}" = set; then :
  10439. $as_echo_n "(cached) " >&6
  10440. else
  10441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10442. /* end confdefs.h. */
  10443. int x __attribute__((mode(TI)));
  10444. _ACEOF
  10445. if ac_fn_c_try_compile "$LINENO"; then :
  10446. libat_cv_have_mode_TI=yes
  10447. else
  10448. libat_cv_have_mode_TI=no
  10449. fi
  10450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
  10453. $as_echo "$libat_cv_have_mode_TI" >&6; }
  10454. yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
  10455. cat >>confdefs.h <<_ACEOF
  10456. #define HAVE_INT16 $yesno
  10457. _ACEOF
  10458. if test x$libat_cv_have_mode_TI = xyes; then
  10459. SIZES="$SIZES 16"
  10460. fi
  10461. # Check for compiler builtins of atomic operations.
  10462. # Do link tests if possible, instead asm tests, limited to some platforms
  10463. # see discussion in PR target/40134, PR libstdc++/40133 and the thread
  10464. # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
  10465. atomic_builtins_link_tests=no
  10466. if test x$gcc_no_link != xyes; then
  10467. # Can do link tests. Limit to some tested platforms
  10468. case "$host" in
  10469. *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
  10470. atomic_builtins_link_tests=yes
  10471. ;;
  10472. esac
  10473. fi
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
  10475. $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
  10476. if test "${libat_cv_have_at_ldst_1+set}" = set; then :
  10477. $as_echo_n "(cached) " >&6
  10478. else
  10479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h. */
  10481. int
  10482. main ()
  10483. {
  10484. typedef int T __attribute__((mode(QI)));
  10485. T *x; volatile T sink; asm("" : "=g"(x));
  10486. sink = __atomic_load_n(x, 0);
  10487. __atomic_store_n(x, sink, 0);
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. if test x$atomic_builtins_link_tests = xyes; then
  10493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10494. (eval $ac_link) 2>&5
  10495. ac_status=$?
  10496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10497. test $ac_status = 0; }; then
  10498. eval libat_cv_have_at_ldst_1=yes
  10499. else
  10500. eval libat_cv_have_at_ldst_1=no
  10501. fi
  10502. else
  10503. old_CFLAGS="$CFLAGS"
  10504. # Compile unoptimized.
  10505. CFLAGS="$CFLAGS -O0 -S"
  10506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10507. (eval $ac_compile) 2>&5
  10508. ac_status=$?
  10509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10510. test $ac_status = 0; }; then
  10511. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10512. eval libat_cv_have_at_ldst_1=no
  10513. else
  10514. eval libat_cv_have_at_ldst_1=yes
  10515. fi
  10516. else
  10517. eval libat_cv_have_at_ldst_1=no
  10518. fi
  10519. CFLAGS="$old_CFLAGS"
  10520. fi
  10521. rm -f conftest*
  10522. fi
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
  10524. $as_echo "$libat_cv_have_at_ldst_1" >&6; }
  10525. yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
  10526. cat >>confdefs.h <<_ACEOF
  10527. #define HAVE_ATOMIC_LDST_1 $yesno
  10528. _ACEOF
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
  10530. $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
  10531. if test "${libat_cv_have_at_ldst_2+set}" = set; then :
  10532. $as_echo_n "(cached) " >&6
  10533. else
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. int
  10537. main ()
  10538. {
  10539. typedef int T __attribute__((mode(HI)));
  10540. T *x; volatile T sink; asm("" : "=g"(x));
  10541. sink = __atomic_load_n(x, 0);
  10542. __atomic_store_n(x, sink, 0);
  10543. ;
  10544. return 0;
  10545. }
  10546. _ACEOF
  10547. if test x$atomic_builtins_link_tests = xyes; then
  10548. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10549. (eval $ac_link) 2>&5
  10550. ac_status=$?
  10551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10552. test $ac_status = 0; }; then
  10553. eval libat_cv_have_at_ldst_2=yes
  10554. else
  10555. eval libat_cv_have_at_ldst_2=no
  10556. fi
  10557. else
  10558. old_CFLAGS="$CFLAGS"
  10559. # Compile unoptimized.
  10560. CFLAGS="$CFLAGS -O0 -S"
  10561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10562. (eval $ac_compile) 2>&5
  10563. ac_status=$?
  10564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10565. test $ac_status = 0; }; then
  10566. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10567. eval libat_cv_have_at_ldst_2=no
  10568. else
  10569. eval libat_cv_have_at_ldst_2=yes
  10570. fi
  10571. else
  10572. eval libat_cv_have_at_ldst_2=no
  10573. fi
  10574. CFLAGS="$old_CFLAGS"
  10575. fi
  10576. rm -f conftest*
  10577. fi
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
  10579. $as_echo "$libat_cv_have_at_ldst_2" >&6; }
  10580. yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
  10581. cat >>confdefs.h <<_ACEOF
  10582. #define HAVE_ATOMIC_LDST_2 $yesno
  10583. _ACEOF
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
  10585. $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
  10586. if test "${libat_cv_have_at_ldst_4+set}" = set; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10590. /* end confdefs.h. */
  10591. int
  10592. main ()
  10593. {
  10594. typedef int T __attribute__((mode(SI)));
  10595. T *x; volatile T sink; asm("" : "=g"(x));
  10596. sink = __atomic_load_n(x, 0);
  10597. __atomic_store_n(x, sink, 0);
  10598. ;
  10599. return 0;
  10600. }
  10601. _ACEOF
  10602. if test x$atomic_builtins_link_tests = xyes; then
  10603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10604. (eval $ac_link) 2>&5
  10605. ac_status=$?
  10606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10607. test $ac_status = 0; }; then
  10608. eval libat_cv_have_at_ldst_4=yes
  10609. else
  10610. eval libat_cv_have_at_ldst_4=no
  10611. fi
  10612. else
  10613. old_CFLAGS="$CFLAGS"
  10614. # Compile unoptimized.
  10615. CFLAGS="$CFLAGS -O0 -S"
  10616. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10617. (eval $ac_compile) 2>&5
  10618. ac_status=$?
  10619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10620. test $ac_status = 0; }; then
  10621. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10622. eval libat_cv_have_at_ldst_4=no
  10623. else
  10624. eval libat_cv_have_at_ldst_4=yes
  10625. fi
  10626. else
  10627. eval libat_cv_have_at_ldst_4=no
  10628. fi
  10629. CFLAGS="$old_CFLAGS"
  10630. fi
  10631. rm -f conftest*
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
  10634. $as_echo "$libat_cv_have_at_ldst_4" >&6; }
  10635. yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
  10636. cat >>confdefs.h <<_ACEOF
  10637. #define HAVE_ATOMIC_LDST_4 $yesno
  10638. _ACEOF
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
  10640. $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
  10641. if test "${libat_cv_have_at_ldst_8+set}" = set; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. int
  10647. main ()
  10648. {
  10649. typedef int T __attribute__((mode(DI)));
  10650. T *x; volatile T sink; asm("" : "=g"(x));
  10651. sink = __atomic_load_n(x, 0);
  10652. __atomic_store_n(x, sink, 0);
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. if test x$atomic_builtins_link_tests = xyes; then
  10658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10659. (eval $ac_link) 2>&5
  10660. ac_status=$?
  10661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10662. test $ac_status = 0; }; then
  10663. eval libat_cv_have_at_ldst_8=yes
  10664. else
  10665. eval libat_cv_have_at_ldst_8=no
  10666. fi
  10667. else
  10668. old_CFLAGS="$CFLAGS"
  10669. # Compile unoptimized.
  10670. CFLAGS="$CFLAGS -O0 -S"
  10671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10672. (eval $ac_compile) 2>&5
  10673. ac_status=$?
  10674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10675. test $ac_status = 0; }; then
  10676. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10677. eval libat_cv_have_at_ldst_8=no
  10678. else
  10679. eval libat_cv_have_at_ldst_8=yes
  10680. fi
  10681. else
  10682. eval libat_cv_have_at_ldst_8=no
  10683. fi
  10684. CFLAGS="$old_CFLAGS"
  10685. fi
  10686. rm -f conftest*
  10687. fi
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
  10689. $as_echo "$libat_cv_have_at_ldst_8" >&6; }
  10690. yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
  10691. cat >>confdefs.h <<_ACEOF
  10692. #define HAVE_ATOMIC_LDST_8 $yesno
  10693. _ACEOF
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
  10695. $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
  10696. if test "${libat_cv_have_at_ldst_16+set}" = set; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. int
  10702. main ()
  10703. {
  10704. typedef int T __attribute__((mode(TI)));
  10705. T *x; volatile T sink; asm("" : "=g"(x));
  10706. sink = __atomic_load_n(x, 0);
  10707. __atomic_store_n(x, sink, 0);
  10708. ;
  10709. return 0;
  10710. }
  10711. _ACEOF
  10712. if test x$atomic_builtins_link_tests = xyes; then
  10713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10714. (eval $ac_link) 2>&5
  10715. ac_status=$?
  10716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10717. test $ac_status = 0; }; then
  10718. eval libat_cv_have_at_ldst_16=yes
  10719. else
  10720. eval libat_cv_have_at_ldst_16=no
  10721. fi
  10722. else
  10723. old_CFLAGS="$CFLAGS"
  10724. # Compile unoptimized.
  10725. CFLAGS="$CFLAGS -O0 -S"
  10726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10727. (eval $ac_compile) 2>&5
  10728. ac_status=$?
  10729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10730. test $ac_status = 0; }; then
  10731. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10732. eval libat_cv_have_at_ldst_16=no
  10733. else
  10734. eval libat_cv_have_at_ldst_16=yes
  10735. fi
  10736. else
  10737. eval libat_cv_have_at_ldst_16=no
  10738. fi
  10739. CFLAGS="$old_CFLAGS"
  10740. fi
  10741. rm -f conftest*
  10742. fi
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
  10744. $as_echo "$libat_cv_have_at_ldst_16" >&6; }
  10745. yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
  10746. cat >>confdefs.h <<_ACEOF
  10747. #define HAVE_ATOMIC_LDST_16 $yesno
  10748. _ACEOF
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
  10750. $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
  10751. if test "${libat_cv_have_at_tas_1+set}" = set; then :
  10752. $as_echo_n "(cached) " >&6
  10753. else
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. int
  10757. main ()
  10758. {
  10759. typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
  10760. __atomic_test_and_set(x, 0);
  10761. ;
  10762. return 0;
  10763. }
  10764. _ACEOF
  10765. if test x$atomic_builtins_link_tests = xyes; then
  10766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10767. (eval $ac_link) 2>&5
  10768. ac_status=$?
  10769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10770. test $ac_status = 0; }; then
  10771. eval libat_cv_have_at_tas_1=yes
  10772. else
  10773. eval libat_cv_have_at_tas_1=no
  10774. fi
  10775. else
  10776. old_CFLAGS="$CFLAGS"
  10777. # Compile unoptimized.
  10778. CFLAGS="$CFLAGS -O0 -S"
  10779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10780. (eval $ac_compile) 2>&5
  10781. ac_status=$?
  10782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10783. test $ac_status = 0; }; then
  10784. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10785. eval libat_cv_have_at_tas_1=no
  10786. else
  10787. eval libat_cv_have_at_tas_1=yes
  10788. fi
  10789. else
  10790. eval libat_cv_have_at_tas_1=no
  10791. fi
  10792. CFLAGS="$old_CFLAGS"
  10793. fi
  10794. rm -f conftest*
  10795. fi
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
  10797. $as_echo "$libat_cv_have_at_tas_1" >&6; }
  10798. yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
  10799. cat >>confdefs.h <<_ACEOF
  10800. #define HAVE_ATOMIC_TAS_1 $yesno
  10801. _ACEOF
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
  10803. $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
  10804. if test "${libat_cv_have_at_tas_2+set}" = set; then :
  10805. $as_echo_n "(cached) " >&6
  10806. else
  10807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10808. /* end confdefs.h. */
  10809. int
  10810. main ()
  10811. {
  10812. typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
  10813. __atomic_test_and_set(x, 0);
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if test x$atomic_builtins_link_tests = xyes; then
  10819. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10820. (eval $ac_link) 2>&5
  10821. ac_status=$?
  10822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10823. test $ac_status = 0; }; then
  10824. eval libat_cv_have_at_tas_2=yes
  10825. else
  10826. eval libat_cv_have_at_tas_2=no
  10827. fi
  10828. else
  10829. old_CFLAGS="$CFLAGS"
  10830. # Compile unoptimized.
  10831. CFLAGS="$CFLAGS -O0 -S"
  10832. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10833. (eval $ac_compile) 2>&5
  10834. ac_status=$?
  10835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10836. test $ac_status = 0; }; then
  10837. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10838. eval libat_cv_have_at_tas_2=no
  10839. else
  10840. eval libat_cv_have_at_tas_2=yes
  10841. fi
  10842. else
  10843. eval libat_cv_have_at_tas_2=no
  10844. fi
  10845. CFLAGS="$old_CFLAGS"
  10846. fi
  10847. rm -f conftest*
  10848. fi
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
  10850. $as_echo "$libat_cv_have_at_tas_2" >&6; }
  10851. yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
  10852. cat >>confdefs.h <<_ACEOF
  10853. #define HAVE_ATOMIC_TAS_2 $yesno
  10854. _ACEOF
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
  10856. $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
  10857. if test "${libat_cv_have_at_tas_4+set}" = set; then :
  10858. $as_echo_n "(cached) " >&6
  10859. else
  10860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10861. /* end confdefs.h. */
  10862. int
  10863. main ()
  10864. {
  10865. typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
  10866. __atomic_test_and_set(x, 0);
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. if test x$atomic_builtins_link_tests = xyes; then
  10872. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10873. (eval $ac_link) 2>&5
  10874. ac_status=$?
  10875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10876. test $ac_status = 0; }; then
  10877. eval libat_cv_have_at_tas_4=yes
  10878. else
  10879. eval libat_cv_have_at_tas_4=no
  10880. fi
  10881. else
  10882. old_CFLAGS="$CFLAGS"
  10883. # Compile unoptimized.
  10884. CFLAGS="$CFLAGS -O0 -S"
  10885. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10886. (eval $ac_compile) 2>&5
  10887. ac_status=$?
  10888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10889. test $ac_status = 0; }; then
  10890. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10891. eval libat_cv_have_at_tas_4=no
  10892. else
  10893. eval libat_cv_have_at_tas_4=yes
  10894. fi
  10895. else
  10896. eval libat_cv_have_at_tas_4=no
  10897. fi
  10898. CFLAGS="$old_CFLAGS"
  10899. fi
  10900. rm -f conftest*
  10901. fi
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
  10903. $as_echo "$libat_cv_have_at_tas_4" >&6; }
  10904. yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
  10905. cat >>confdefs.h <<_ACEOF
  10906. #define HAVE_ATOMIC_TAS_4 $yesno
  10907. _ACEOF
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
  10909. $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
  10910. if test "${libat_cv_have_at_tas_8+set}" = set; then :
  10911. $as_echo_n "(cached) " >&6
  10912. else
  10913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10914. /* end confdefs.h. */
  10915. int
  10916. main ()
  10917. {
  10918. typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
  10919. __atomic_test_and_set(x, 0);
  10920. ;
  10921. return 0;
  10922. }
  10923. _ACEOF
  10924. if test x$atomic_builtins_link_tests = xyes; then
  10925. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10926. (eval $ac_link) 2>&5
  10927. ac_status=$?
  10928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10929. test $ac_status = 0; }; then
  10930. eval libat_cv_have_at_tas_8=yes
  10931. else
  10932. eval libat_cv_have_at_tas_8=no
  10933. fi
  10934. else
  10935. old_CFLAGS="$CFLAGS"
  10936. # Compile unoptimized.
  10937. CFLAGS="$CFLAGS -O0 -S"
  10938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10939. (eval $ac_compile) 2>&5
  10940. ac_status=$?
  10941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10942. test $ac_status = 0; }; then
  10943. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10944. eval libat_cv_have_at_tas_8=no
  10945. else
  10946. eval libat_cv_have_at_tas_8=yes
  10947. fi
  10948. else
  10949. eval libat_cv_have_at_tas_8=no
  10950. fi
  10951. CFLAGS="$old_CFLAGS"
  10952. fi
  10953. rm -f conftest*
  10954. fi
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
  10956. $as_echo "$libat_cv_have_at_tas_8" >&6; }
  10957. yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
  10958. cat >>confdefs.h <<_ACEOF
  10959. #define HAVE_ATOMIC_TAS_8 $yesno
  10960. _ACEOF
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
  10962. $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
  10963. if test "${libat_cv_have_at_tas_16+set}" = set; then :
  10964. $as_echo_n "(cached) " >&6
  10965. else
  10966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10967. /* end confdefs.h. */
  10968. int
  10969. main ()
  10970. {
  10971. typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
  10972. __atomic_test_and_set(x, 0);
  10973. ;
  10974. return 0;
  10975. }
  10976. _ACEOF
  10977. if test x$atomic_builtins_link_tests = xyes; then
  10978. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10979. (eval $ac_link) 2>&5
  10980. ac_status=$?
  10981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10982. test $ac_status = 0; }; then
  10983. eval libat_cv_have_at_tas_16=yes
  10984. else
  10985. eval libat_cv_have_at_tas_16=no
  10986. fi
  10987. else
  10988. old_CFLAGS="$CFLAGS"
  10989. # Compile unoptimized.
  10990. CFLAGS="$CFLAGS -O0 -S"
  10991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10992. (eval $ac_compile) 2>&5
  10993. ac_status=$?
  10994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10995. test $ac_status = 0; }; then
  10996. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10997. eval libat_cv_have_at_tas_16=no
  10998. else
  10999. eval libat_cv_have_at_tas_16=yes
  11000. fi
  11001. else
  11002. eval libat_cv_have_at_tas_16=no
  11003. fi
  11004. CFLAGS="$old_CFLAGS"
  11005. fi
  11006. rm -f conftest*
  11007. fi
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
  11009. $as_echo "$libat_cv_have_at_tas_16" >&6; }
  11010. yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
  11011. cat >>confdefs.h <<_ACEOF
  11012. #define HAVE_ATOMIC_TAS_16 $yesno
  11013. _ACEOF
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
  11015. $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
  11016. if test "${libat_cv_have_at_exch_1+set}" = set; then :
  11017. $as_echo_n "(cached) " >&6
  11018. else
  11019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11020. /* end confdefs.h. */
  11021. int
  11022. main ()
  11023. {
  11024. typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
  11025. __atomic_exchange_n(x, 0, 0);
  11026. ;
  11027. return 0;
  11028. }
  11029. _ACEOF
  11030. if test x$atomic_builtins_link_tests = xyes; then
  11031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11032. (eval $ac_link) 2>&5
  11033. ac_status=$?
  11034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11035. test $ac_status = 0; }; then
  11036. eval libat_cv_have_at_exch_1=yes
  11037. else
  11038. eval libat_cv_have_at_exch_1=no
  11039. fi
  11040. else
  11041. old_CFLAGS="$CFLAGS"
  11042. # Compile unoptimized.
  11043. CFLAGS="$CFLAGS -O0 -S"
  11044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11045. (eval $ac_compile) 2>&5
  11046. ac_status=$?
  11047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11048. test $ac_status = 0; }; then
  11049. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11050. eval libat_cv_have_at_exch_1=no
  11051. else
  11052. eval libat_cv_have_at_exch_1=yes
  11053. fi
  11054. else
  11055. eval libat_cv_have_at_exch_1=no
  11056. fi
  11057. CFLAGS="$old_CFLAGS"
  11058. fi
  11059. rm -f conftest*
  11060. fi
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
  11062. $as_echo "$libat_cv_have_at_exch_1" >&6; }
  11063. yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
  11064. cat >>confdefs.h <<_ACEOF
  11065. #define HAVE_ATOMIC_EXCHANGE_1 $yesno
  11066. _ACEOF
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
  11068. $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
  11069. if test "${libat_cv_have_at_exch_2+set}" = set; then :
  11070. $as_echo_n "(cached) " >&6
  11071. else
  11072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11073. /* end confdefs.h. */
  11074. int
  11075. main ()
  11076. {
  11077. typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
  11078. __atomic_exchange_n(x, 0, 0);
  11079. ;
  11080. return 0;
  11081. }
  11082. _ACEOF
  11083. if test x$atomic_builtins_link_tests = xyes; then
  11084. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11085. (eval $ac_link) 2>&5
  11086. ac_status=$?
  11087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11088. test $ac_status = 0; }; then
  11089. eval libat_cv_have_at_exch_2=yes
  11090. else
  11091. eval libat_cv_have_at_exch_2=no
  11092. fi
  11093. else
  11094. old_CFLAGS="$CFLAGS"
  11095. # Compile unoptimized.
  11096. CFLAGS="$CFLAGS -O0 -S"
  11097. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11098. (eval $ac_compile) 2>&5
  11099. ac_status=$?
  11100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11101. test $ac_status = 0; }; then
  11102. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11103. eval libat_cv_have_at_exch_2=no
  11104. else
  11105. eval libat_cv_have_at_exch_2=yes
  11106. fi
  11107. else
  11108. eval libat_cv_have_at_exch_2=no
  11109. fi
  11110. CFLAGS="$old_CFLAGS"
  11111. fi
  11112. rm -f conftest*
  11113. fi
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
  11115. $as_echo "$libat_cv_have_at_exch_2" >&6; }
  11116. yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
  11117. cat >>confdefs.h <<_ACEOF
  11118. #define HAVE_ATOMIC_EXCHANGE_2 $yesno
  11119. _ACEOF
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
  11121. $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
  11122. if test "${libat_cv_have_at_exch_4+set}" = set; then :
  11123. $as_echo_n "(cached) " >&6
  11124. else
  11125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11126. /* end confdefs.h. */
  11127. int
  11128. main ()
  11129. {
  11130. typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
  11131. __atomic_exchange_n(x, 0, 0);
  11132. ;
  11133. return 0;
  11134. }
  11135. _ACEOF
  11136. if test x$atomic_builtins_link_tests = xyes; then
  11137. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11138. (eval $ac_link) 2>&5
  11139. ac_status=$?
  11140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11141. test $ac_status = 0; }; then
  11142. eval libat_cv_have_at_exch_4=yes
  11143. else
  11144. eval libat_cv_have_at_exch_4=no
  11145. fi
  11146. else
  11147. old_CFLAGS="$CFLAGS"
  11148. # Compile unoptimized.
  11149. CFLAGS="$CFLAGS -O0 -S"
  11150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11151. (eval $ac_compile) 2>&5
  11152. ac_status=$?
  11153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11154. test $ac_status = 0; }; then
  11155. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11156. eval libat_cv_have_at_exch_4=no
  11157. else
  11158. eval libat_cv_have_at_exch_4=yes
  11159. fi
  11160. else
  11161. eval libat_cv_have_at_exch_4=no
  11162. fi
  11163. CFLAGS="$old_CFLAGS"
  11164. fi
  11165. rm -f conftest*
  11166. fi
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
  11168. $as_echo "$libat_cv_have_at_exch_4" >&6; }
  11169. yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
  11170. cat >>confdefs.h <<_ACEOF
  11171. #define HAVE_ATOMIC_EXCHANGE_4 $yesno
  11172. _ACEOF
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
  11174. $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
  11175. if test "${libat_cv_have_at_exch_8+set}" = set; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11179. /* end confdefs.h. */
  11180. int
  11181. main ()
  11182. {
  11183. typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
  11184. __atomic_exchange_n(x, 0, 0);
  11185. ;
  11186. return 0;
  11187. }
  11188. _ACEOF
  11189. if test x$atomic_builtins_link_tests = xyes; then
  11190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11191. (eval $ac_link) 2>&5
  11192. ac_status=$?
  11193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11194. test $ac_status = 0; }; then
  11195. eval libat_cv_have_at_exch_8=yes
  11196. else
  11197. eval libat_cv_have_at_exch_8=no
  11198. fi
  11199. else
  11200. old_CFLAGS="$CFLAGS"
  11201. # Compile unoptimized.
  11202. CFLAGS="$CFLAGS -O0 -S"
  11203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11204. (eval $ac_compile) 2>&5
  11205. ac_status=$?
  11206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11207. test $ac_status = 0; }; then
  11208. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11209. eval libat_cv_have_at_exch_8=no
  11210. else
  11211. eval libat_cv_have_at_exch_8=yes
  11212. fi
  11213. else
  11214. eval libat_cv_have_at_exch_8=no
  11215. fi
  11216. CFLAGS="$old_CFLAGS"
  11217. fi
  11218. rm -f conftest*
  11219. fi
  11220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
  11221. $as_echo "$libat_cv_have_at_exch_8" >&6; }
  11222. yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
  11223. cat >>confdefs.h <<_ACEOF
  11224. #define HAVE_ATOMIC_EXCHANGE_8 $yesno
  11225. _ACEOF
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
  11227. $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
  11228. if test "${libat_cv_have_at_exch_16+set}" = set; then :
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11232. /* end confdefs.h. */
  11233. int
  11234. main ()
  11235. {
  11236. typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
  11237. __atomic_exchange_n(x, 0, 0);
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if test x$atomic_builtins_link_tests = xyes; then
  11243. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11244. (eval $ac_link) 2>&5
  11245. ac_status=$?
  11246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11247. test $ac_status = 0; }; then
  11248. eval libat_cv_have_at_exch_16=yes
  11249. else
  11250. eval libat_cv_have_at_exch_16=no
  11251. fi
  11252. else
  11253. old_CFLAGS="$CFLAGS"
  11254. # Compile unoptimized.
  11255. CFLAGS="$CFLAGS -O0 -S"
  11256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11257. (eval $ac_compile) 2>&5
  11258. ac_status=$?
  11259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11260. test $ac_status = 0; }; then
  11261. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11262. eval libat_cv_have_at_exch_16=no
  11263. else
  11264. eval libat_cv_have_at_exch_16=yes
  11265. fi
  11266. else
  11267. eval libat_cv_have_at_exch_16=no
  11268. fi
  11269. CFLAGS="$old_CFLAGS"
  11270. fi
  11271. rm -f conftest*
  11272. fi
  11273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
  11274. $as_echo "$libat_cv_have_at_exch_16" >&6; }
  11275. yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
  11276. cat >>confdefs.h <<_ACEOF
  11277. #define HAVE_ATOMIC_EXCHANGE_16 $yesno
  11278. _ACEOF
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
  11280. $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
  11281. if test "${libat_cv_have_at_cas_1+set}" = set; then :
  11282. $as_echo_n "(cached) " >&6
  11283. else
  11284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11285. /* end confdefs.h. */
  11286. int
  11287. main ()
  11288. {
  11289. typedef int T __attribute__((mode(QI))); T *x, *y;
  11290. asm("" : "=g"(x), "=g"(y));
  11291. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11292. ;
  11293. return 0;
  11294. }
  11295. _ACEOF
  11296. if test x$atomic_builtins_link_tests = xyes; then
  11297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11298. (eval $ac_link) 2>&5
  11299. ac_status=$?
  11300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11301. test $ac_status = 0; }; then
  11302. eval libat_cv_have_at_cas_1=yes
  11303. else
  11304. eval libat_cv_have_at_cas_1=no
  11305. fi
  11306. else
  11307. old_CFLAGS="$CFLAGS"
  11308. # Compile unoptimized.
  11309. CFLAGS="$CFLAGS -O0 -S"
  11310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11311. (eval $ac_compile) 2>&5
  11312. ac_status=$?
  11313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11314. test $ac_status = 0; }; then
  11315. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11316. eval libat_cv_have_at_cas_1=no
  11317. else
  11318. eval libat_cv_have_at_cas_1=yes
  11319. fi
  11320. else
  11321. eval libat_cv_have_at_cas_1=no
  11322. fi
  11323. CFLAGS="$old_CFLAGS"
  11324. fi
  11325. rm -f conftest*
  11326. fi
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
  11328. $as_echo "$libat_cv_have_at_cas_1" >&6; }
  11329. yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
  11330. cat >>confdefs.h <<_ACEOF
  11331. #define HAVE_ATOMIC_CAS_1 $yesno
  11332. _ACEOF
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
  11334. $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
  11335. if test "${libat_cv_have_at_cas_2+set}" = set; then :
  11336. $as_echo_n "(cached) " >&6
  11337. else
  11338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11339. /* end confdefs.h. */
  11340. int
  11341. main ()
  11342. {
  11343. typedef int T __attribute__((mode(HI))); T *x, *y;
  11344. asm("" : "=g"(x), "=g"(y));
  11345. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11346. ;
  11347. return 0;
  11348. }
  11349. _ACEOF
  11350. if test x$atomic_builtins_link_tests = xyes; then
  11351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11352. (eval $ac_link) 2>&5
  11353. ac_status=$?
  11354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11355. test $ac_status = 0; }; then
  11356. eval libat_cv_have_at_cas_2=yes
  11357. else
  11358. eval libat_cv_have_at_cas_2=no
  11359. fi
  11360. else
  11361. old_CFLAGS="$CFLAGS"
  11362. # Compile unoptimized.
  11363. CFLAGS="$CFLAGS -O0 -S"
  11364. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11365. (eval $ac_compile) 2>&5
  11366. ac_status=$?
  11367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11368. test $ac_status = 0; }; then
  11369. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11370. eval libat_cv_have_at_cas_2=no
  11371. else
  11372. eval libat_cv_have_at_cas_2=yes
  11373. fi
  11374. else
  11375. eval libat_cv_have_at_cas_2=no
  11376. fi
  11377. CFLAGS="$old_CFLAGS"
  11378. fi
  11379. rm -f conftest*
  11380. fi
  11381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
  11382. $as_echo "$libat_cv_have_at_cas_2" >&6; }
  11383. yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
  11384. cat >>confdefs.h <<_ACEOF
  11385. #define HAVE_ATOMIC_CAS_2 $yesno
  11386. _ACEOF
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
  11388. $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
  11389. if test "${libat_cv_have_at_cas_4+set}" = set; then :
  11390. $as_echo_n "(cached) " >&6
  11391. else
  11392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11393. /* end confdefs.h. */
  11394. int
  11395. main ()
  11396. {
  11397. typedef int T __attribute__((mode(SI))); T *x, *y;
  11398. asm("" : "=g"(x), "=g"(y));
  11399. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11400. ;
  11401. return 0;
  11402. }
  11403. _ACEOF
  11404. if test x$atomic_builtins_link_tests = xyes; then
  11405. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11406. (eval $ac_link) 2>&5
  11407. ac_status=$?
  11408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11409. test $ac_status = 0; }; then
  11410. eval libat_cv_have_at_cas_4=yes
  11411. else
  11412. eval libat_cv_have_at_cas_4=no
  11413. fi
  11414. else
  11415. old_CFLAGS="$CFLAGS"
  11416. # Compile unoptimized.
  11417. CFLAGS="$CFLAGS -O0 -S"
  11418. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11419. (eval $ac_compile) 2>&5
  11420. ac_status=$?
  11421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11422. test $ac_status = 0; }; then
  11423. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11424. eval libat_cv_have_at_cas_4=no
  11425. else
  11426. eval libat_cv_have_at_cas_4=yes
  11427. fi
  11428. else
  11429. eval libat_cv_have_at_cas_4=no
  11430. fi
  11431. CFLAGS="$old_CFLAGS"
  11432. fi
  11433. rm -f conftest*
  11434. fi
  11435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
  11436. $as_echo "$libat_cv_have_at_cas_4" >&6; }
  11437. yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
  11438. cat >>confdefs.h <<_ACEOF
  11439. #define HAVE_ATOMIC_CAS_4 $yesno
  11440. _ACEOF
  11441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
  11442. $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
  11443. if test "${libat_cv_have_at_cas_8+set}" = set; then :
  11444. $as_echo_n "(cached) " >&6
  11445. else
  11446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11447. /* end confdefs.h. */
  11448. int
  11449. main ()
  11450. {
  11451. typedef int T __attribute__((mode(DI))); T *x, *y;
  11452. asm("" : "=g"(x), "=g"(y));
  11453. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11454. ;
  11455. return 0;
  11456. }
  11457. _ACEOF
  11458. if test x$atomic_builtins_link_tests = xyes; then
  11459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11460. (eval $ac_link) 2>&5
  11461. ac_status=$?
  11462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11463. test $ac_status = 0; }; then
  11464. eval libat_cv_have_at_cas_8=yes
  11465. else
  11466. eval libat_cv_have_at_cas_8=no
  11467. fi
  11468. else
  11469. old_CFLAGS="$CFLAGS"
  11470. # Compile unoptimized.
  11471. CFLAGS="$CFLAGS -O0 -S"
  11472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11473. (eval $ac_compile) 2>&5
  11474. ac_status=$?
  11475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11476. test $ac_status = 0; }; then
  11477. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11478. eval libat_cv_have_at_cas_8=no
  11479. else
  11480. eval libat_cv_have_at_cas_8=yes
  11481. fi
  11482. else
  11483. eval libat_cv_have_at_cas_8=no
  11484. fi
  11485. CFLAGS="$old_CFLAGS"
  11486. fi
  11487. rm -f conftest*
  11488. fi
  11489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
  11490. $as_echo "$libat_cv_have_at_cas_8" >&6; }
  11491. yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
  11492. cat >>confdefs.h <<_ACEOF
  11493. #define HAVE_ATOMIC_CAS_8 $yesno
  11494. _ACEOF
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
  11496. $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
  11497. if test "${libat_cv_have_at_cas_16+set}" = set; then :
  11498. $as_echo_n "(cached) " >&6
  11499. else
  11500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11501. /* end confdefs.h. */
  11502. int
  11503. main ()
  11504. {
  11505. typedef int T __attribute__((mode(TI))); T *x, *y;
  11506. asm("" : "=g"(x), "=g"(y));
  11507. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11508. ;
  11509. return 0;
  11510. }
  11511. _ACEOF
  11512. if test x$atomic_builtins_link_tests = xyes; then
  11513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11514. (eval $ac_link) 2>&5
  11515. ac_status=$?
  11516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11517. test $ac_status = 0; }; then
  11518. eval libat_cv_have_at_cas_16=yes
  11519. else
  11520. eval libat_cv_have_at_cas_16=no
  11521. fi
  11522. else
  11523. old_CFLAGS="$CFLAGS"
  11524. # Compile unoptimized.
  11525. CFLAGS="$CFLAGS -O0 -S"
  11526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11527. (eval $ac_compile) 2>&5
  11528. ac_status=$?
  11529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11530. test $ac_status = 0; }; then
  11531. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11532. eval libat_cv_have_at_cas_16=no
  11533. else
  11534. eval libat_cv_have_at_cas_16=yes
  11535. fi
  11536. else
  11537. eval libat_cv_have_at_cas_16=no
  11538. fi
  11539. CFLAGS="$old_CFLAGS"
  11540. fi
  11541. rm -f conftest*
  11542. fi
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
  11544. $as_echo "$libat_cv_have_at_cas_16" >&6; }
  11545. yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
  11546. cat >>confdefs.h <<_ACEOF
  11547. #define HAVE_ATOMIC_CAS_16 $yesno
  11548. _ACEOF
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
  11550. $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
  11551. if test "${libat_cv_have_at_fadd_1+set}" = set; then :
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11555. /* end confdefs.h. */
  11556. int
  11557. main ()
  11558. {
  11559. typedef int T __attribute__((mode(QI))); T *x, y;
  11560. asm("" : "=g"(x), "=g"(y));
  11561. __atomic_fetch_add (x, y, 0);
  11562. __atomic_add_fetch (x, y, 0);
  11563. ;
  11564. return 0;
  11565. }
  11566. _ACEOF
  11567. if test x$atomic_builtins_link_tests = xyes; then
  11568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11569. (eval $ac_link) 2>&5
  11570. ac_status=$?
  11571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11572. test $ac_status = 0; }; then
  11573. eval libat_cv_have_at_fadd_1=yes
  11574. else
  11575. eval libat_cv_have_at_fadd_1=no
  11576. fi
  11577. else
  11578. old_CFLAGS="$CFLAGS"
  11579. # Compile unoptimized.
  11580. CFLAGS="$CFLAGS -O0 -S"
  11581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11582. (eval $ac_compile) 2>&5
  11583. ac_status=$?
  11584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11585. test $ac_status = 0; }; then
  11586. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11587. eval libat_cv_have_at_fadd_1=no
  11588. else
  11589. eval libat_cv_have_at_fadd_1=yes
  11590. fi
  11591. else
  11592. eval libat_cv_have_at_fadd_1=no
  11593. fi
  11594. CFLAGS="$old_CFLAGS"
  11595. fi
  11596. rm -f conftest*
  11597. fi
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
  11599. $as_echo "$libat_cv_have_at_fadd_1" >&6; }
  11600. yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
  11601. cat >>confdefs.h <<_ACEOF
  11602. #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
  11603. _ACEOF
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
  11605. $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
  11606. if test "${libat_cv_have_at_fadd_2+set}" = set; then :
  11607. $as_echo_n "(cached) " >&6
  11608. else
  11609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11610. /* end confdefs.h. */
  11611. int
  11612. main ()
  11613. {
  11614. typedef int T __attribute__((mode(HI))); T *x, y;
  11615. asm("" : "=g"(x), "=g"(y));
  11616. __atomic_fetch_add (x, y, 0);
  11617. __atomic_add_fetch (x, y, 0);
  11618. ;
  11619. return 0;
  11620. }
  11621. _ACEOF
  11622. if test x$atomic_builtins_link_tests = xyes; then
  11623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11624. (eval $ac_link) 2>&5
  11625. ac_status=$?
  11626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11627. test $ac_status = 0; }; then
  11628. eval libat_cv_have_at_fadd_2=yes
  11629. else
  11630. eval libat_cv_have_at_fadd_2=no
  11631. fi
  11632. else
  11633. old_CFLAGS="$CFLAGS"
  11634. # Compile unoptimized.
  11635. CFLAGS="$CFLAGS -O0 -S"
  11636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11637. (eval $ac_compile) 2>&5
  11638. ac_status=$?
  11639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11640. test $ac_status = 0; }; then
  11641. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11642. eval libat_cv_have_at_fadd_2=no
  11643. else
  11644. eval libat_cv_have_at_fadd_2=yes
  11645. fi
  11646. else
  11647. eval libat_cv_have_at_fadd_2=no
  11648. fi
  11649. CFLAGS="$old_CFLAGS"
  11650. fi
  11651. rm -f conftest*
  11652. fi
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
  11654. $as_echo "$libat_cv_have_at_fadd_2" >&6; }
  11655. yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
  11656. cat >>confdefs.h <<_ACEOF
  11657. #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
  11658. _ACEOF
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
  11660. $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
  11661. if test "${libat_cv_have_at_fadd_4+set}" = set; then :
  11662. $as_echo_n "(cached) " >&6
  11663. else
  11664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11665. /* end confdefs.h. */
  11666. int
  11667. main ()
  11668. {
  11669. typedef int T __attribute__((mode(SI))); T *x, y;
  11670. asm("" : "=g"(x), "=g"(y));
  11671. __atomic_fetch_add (x, y, 0);
  11672. __atomic_add_fetch (x, y, 0);
  11673. ;
  11674. return 0;
  11675. }
  11676. _ACEOF
  11677. if test x$atomic_builtins_link_tests = xyes; then
  11678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11679. (eval $ac_link) 2>&5
  11680. ac_status=$?
  11681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11682. test $ac_status = 0; }; then
  11683. eval libat_cv_have_at_fadd_4=yes
  11684. else
  11685. eval libat_cv_have_at_fadd_4=no
  11686. fi
  11687. else
  11688. old_CFLAGS="$CFLAGS"
  11689. # Compile unoptimized.
  11690. CFLAGS="$CFLAGS -O0 -S"
  11691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11692. (eval $ac_compile) 2>&5
  11693. ac_status=$?
  11694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11695. test $ac_status = 0; }; then
  11696. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11697. eval libat_cv_have_at_fadd_4=no
  11698. else
  11699. eval libat_cv_have_at_fadd_4=yes
  11700. fi
  11701. else
  11702. eval libat_cv_have_at_fadd_4=no
  11703. fi
  11704. CFLAGS="$old_CFLAGS"
  11705. fi
  11706. rm -f conftest*
  11707. fi
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
  11709. $as_echo "$libat_cv_have_at_fadd_4" >&6; }
  11710. yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
  11711. cat >>confdefs.h <<_ACEOF
  11712. #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
  11713. _ACEOF
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
  11715. $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
  11716. if test "${libat_cv_have_at_fadd_8+set}" = set; then :
  11717. $as_echo_n "(cached) " >&6
  11718. else
  11719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11720. /* end confdefs.h. */
  11721. int
  11722. main ()
  11723. {
  11724. typedef int T __attribute__((mode(DI))); T *x, y;
  11725. asm("" : "=g"(x), "=g"(y));
  11726. __atomic_fetch_add (x, y, 0);
  11727. __atomic_add_fetch (x, y, 0);
  11728. ;
  11729. return 0;
  11730. }
  11731. _ACEOF
  11732. if test x$atomic_builtins_link_tests = xyes; then
  11733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11734. (eval $ac_link) 2>&5
  11735. ac_status=$?
  11736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11737. test $ac_status = 0; }; then
  11738. eval libat_cv_have_at_fadd_8=yes
  11739. else
  11740. eval libat_cv_have_at_fadd_8=no
  11741. fi
  11742. else
  11743. old_CFLAGS="$CFLAGS"
  11744. # Compile unoptimized.
  11745. CFLAGS="$CFLAGS -O0 -S"
  11746. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11747. (eval $ac_compile) 2>&5
  11748. ac_status=$?
  11749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11750. test $ac_status = 0; }; then
  11751. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11752. eval libat_cv_have_at_fadd_8=no
  11753. else
  11754. eval libat_cv_have_at_fadd_8=yes
  11755. fi
  11756. else
  11757. eval libat_cv_have_at_fadd_8=no
  11758. fi
  11759. CFLAGS="$old_CFLAGS"
  11760. fi
  11761. rm -f conftest*
  11762. fi
  11763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
  11764. $as_echo "$libat_cv_have_at_fadd_8" >&6; }
  11765. yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
  11766. cat >>confdefs.h <<_ACEOF
  11767. #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
  11768. _ACEOF
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
  11770. $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
  11771. if test "${libat_cv_have_at_fadd_16+set}" = set; then :
  11772. $as_echo_n "(cached) " >&6
  11773. else
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main ()
  11778. {
  11779. typedef int T __attribute__((mode(TI))); T *x, y;
  11780. asm("" : "=g"(x), "=g"(y));
  11781. __atomic_fetch_add (x, y, 0);
  11782. __atomic_add_fetch (x, y, 0);
  11783. ;
  11784. return 0;
  11785. }
  11786. _ACEOF
  11787. if test x$atomic_builtins_link_tests = xyes; then
  11788. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11789. (eval $ac_link) 2>&5
  11790. ac_status=$?
  11791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11792. test $ac_status = 0; }; then
  11793. eval libat_cv_have_at_fadd_16=yes
  11794. else
  11795. eval libat_cv_have_at_fadd_16=no
  11796. fi
  11797. else
  11798. old_CFLAGS="$CFLAGS"
  11799. # Compile unoptimized.
  11800. CFLAGS="$CFLAGS -O0 -S"
  11801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11802. (eval $ac_compile) 2>&5
  11803. ac_status=$?
  11804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11805. test $ac_status = 0; }; then
  11806. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11807. eval libat_cv_have_at_fadd_16=no
  11808. else
  11809. eval libat_cv_have_at_fadd_16=yes
  11810. fi
  11811. else
  11812. eval libat_cv_have_at_fadd_16=no
  11813. fi
  11814. CFLAGS="$old_CFLAGS"
  11815. fi
  11816. rm -f conftest*
  11817. fi
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
  11819. $as_echo "$libat_cv_have_at_fadd_16" >&6; }
  11820. yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
  11821. cat >>confdefs.h <<_ACEOF
  11822. #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
  11823. _ACEOF
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
  11825. $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
  11826. if test "${libat_cv_have_at_fop_1+set}" = set; then :
  11827. $as_echo_n "(cached) " >&6
  11828. else
  11829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11830. /* end confdefs.h. */
  11831. int
  11832. main ()
  11833. {
  11834. typedef int T __attribute__((mode(QI))); T *x, y;
  11835. asm("" : "=g"(x), "=g"(y));
  11836. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  11837. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  11838. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  11839. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  11840. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  11841. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  11842. ;
  11843. return 0;
  11844. }
  11845. _ACEOF
  11846. if test x$atomic_builtins_link_tests = xyes; then
  11847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11848. (eval $ac_link) 2>&5
  11849. ac_status=$?
  11850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11851. test $ac_status = 0; }; then
  11852. eval libat_cv_have_at_fop_1=yes
  11853. else
  11854. eval libat_cv_have_at_fop_1=no
  11855. fi
  11856. else
  11857. old_CFLAGS="$CFLAGS"
  11858. # Compile unoptimized.
  11859. CFLAGS="$CFLAGS -O0 -S"
  11860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11861. (eval $ac_compile) 2>&5
  11862. ac_status=$?
  11863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11864. test $ac_status = 0; }; then
  11865. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11866. eval libat_cv_have_at_fop_1=no
  11867. else
  11868. eval libat_cv_have_at_fop_1=yes
  11869. fi
  11870. else
  11871. eval libat_cv_have_at_fop_1=no
  11872. fi
  11873. CFLAGS="$old_CFLAGS"
  11874. fi
  11875. rm -f conftest*
  11876. fi
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
  11878. $as_echo "$libat_cv_have_at_fop_1" >&6; }
  11879. yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
  11880. cat >>confdefs.h <<_ACEOF
  11881. #define HAVE_ATOMIC_FETCH_OP_1 $yesno
  11882. _ACEOF
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
  11884. $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
  11885. if test "${libat_cv_have_at_fop_2+set}" = set; then :
  11886. $as_echo_n "(cached) " >&6
  11887. else
  11888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11889. /* end confdefs.h. */
  11890. int
  11891. main ()
  11892. {
  11893. typedef int T __attribute__((mode(HI))); T *x, y;
  11894. asm("" : "=g"(x), "=g"(y));
  11895. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  11896. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  11897. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  11898. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  11899. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  11900. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  11901. ;
  11902. return 0;
  11903. }
  11904. _ACEOF
  11905. if test x$atomic_builtins_link_tests = xyes; then
  11906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11907. (eval $ac_link) 2>&5
  11908. ac_status=$?
  11909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11910. test $ac_status = 0; }; then
  11911. eval libat_cv_have_at_fop_2=yes
  11912. else
  11913. eval libat_cv_have_at_fop_2=no
  11914. fi
  11915. else
  11916. old_CFLAGS="$CFLAGS"
  11917. # Compile unoptimized.
  11918. CFLAGS="$CFLAGS -O0 -S"
  11919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11920. (eval $ac_compile) 2>&5
  11921. ac_status=$?
  11922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11923. test $ac_status = 0; }; then
  11924. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11925. eval libat_cv_have_at_fop_2=no
  11926. else
  11927. eval libat_cv_have_at_fop_2=yes
  11928. fi
  11929. else
  11930. eval libat_cv_have_at_fop_2=no
  11931. fi
  11932. CFLAGS="$old_CFLAGS"
  11933. fi
  11934. rm -f conftest*
  11935. fi
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
  11937. $as_echo "$libat_cv_have_at_fop_2" >&6; }
  11938. yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
  11939. cat >>confdefs.h <<_ACEOF
  11940. #define HAVE_ATOMIC_FETCH_OP_2 $yesno
  11941. _ACEOF
  11942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
  11943. $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
  11944. if test "${libat_cv_have_at_fop_4+set}" = set; then :
  11945. $as_echo_n "(cached) " >&6
  11946. else
  11947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11948. /* end confdefs.h. */
  11949. int
  11950. main ()
  11951. {
  11952. typedef int T __attribute__((mode(SI))); T *x, y;
  11953. asm("" : "=g"(x), "=g"(y));
  11954. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  11955. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  11956. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  11957. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  11958. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  11959. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  11960. ;
  11961. return 0;
  11962. }
  11963. _ACEOF
  11964. if test x$atomic_builtins_link_tests = xyes; then
  11965. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11966. (eval $ac_link) 2>&5
  11967. ac_status=$?
  11968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11969. test $ac_status = 0; }; then
  11970. eval libat_cv_have_at_fop_4=yes
  11971. else
  11972. eval libat_cv_have_at_fop_4=no
  11973. fi
  11974. else
  11975. old_CFLAGS="$CFLAGS"
  11976. # Compile unoptimized.
  11977. CFLAGS="$CFLAGS -O0 -S"
  11978. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11979. (eval $ac_compile) 2>&5
  11980. ac_status=$?
  11981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11982. test $ac_status = 0; }; then
  11983. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11984. eval libat_cv_have_at_fop_4=no
  11985. else
  11986. eval libat_cv_have_at_fop_4=yes
  11987. fi
  11988. else
  11989. eval libat_cv_have_at_fop_4=no
  11990. fi
  11991. CFLAGS="$old_CFLAGS"
  11992. fi
  11993. rm -f conftest*
  11994. fi
  11995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
  11996. $as_echo "$libat_cv_have_at_fop_4" >&6; }
  11997. yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
  11998. cat >>confdefs.h <<_ACEOF
  11999. #define HAVE_ATOMIC_FETCH_OP_4 $yesno
  12000. _ACEOF
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
  12002. $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
  12003. if test "${libat_cv_have_at_fop_8+set}" = set; then :
  12004. $as_echo_n "(cached) " >&6
  12005. else
  12006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12007. /* end confdefs.h. */
  12008. int
  12009. main ()
  12010. {
  12011. typedef int T __attribute__((mode(DI))); T *x, y;
  12012. asm("" : "=g"(x), "=g"(y));
  12013. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12014. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12015. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12016. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12017. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12018. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12019. ;
  12020. return 0;
  12021. }
  12022. _ACEOF
  12023. if test x$atomic_builtins_link_tests = xyes; then
  12024. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12025. (eval $ac_link) 2>&5
  12026. ac_status=$?
  12027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12028. test $ac_status = 0; }; then
  12029. eval libat_cv_have_at_fop_8=yes
  12030. else
  12031. eval libat_cv_have_at_fop_8=no
  12032. fi
  12033. else
  12034. old_CFLAGS="$CFLAGS"
  12035. # Compile unoptimized.
  12036. CFLAGS="$CFLAGS -O0 -S"
  12037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12038. (eval $ac_compile) 2>&5
  12039. ac_status=$?
  12040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12041. test $ac_status = 0; }; then
  12042. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12043. eval libat_cv_have_at_fop_8=no
  12044. else
  12045. eval libat_cv_have_at_fop_8=yes
  12046. fi
  12047. else
  12048. eval libat_cv_have_at_fop_8=no
  12049. fi
  12050. CFLAGS="$old_CFLAGS"
  12051. fi
  12052. rm -f conftest*
  12053. fi
  12054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
  12055. $as_echo "$libat_cv_have_at_fop_8" >&6; }
  12056. yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
  12057. cat >>confdefs.h <<_ACEOF
  12058. #define HAVE_ATOMIC_FETCH_OP_8 $yesno
  12059. _ACEOF
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
  12061. $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
  12062. if test "${libat_cv_have_at_fop_16+set}" = set; then :
  12063. $as_echo_n "(cached) " >&6
  12064. else
  12065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12066. /* end confdefs.h. */
  12067. int
  12068. main ()
  12069. {
  12070. typedef int T __attribute__((mode(TI))); T *x, y;
  12071. asm("" : "=g"(x), "=g"(y));
  12072. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12073. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12074. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12075. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12076. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12077. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12078. ;
  12079. return 0;
  12080. }
  12081. _ACEOF
  12082. if test x$atomic_builtins_link_tests = xyes; then
  12083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12084. (eval $ac_link) 2>&5
  12085. ac_status=$?
  12086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12087. test $ac_status = 0; }; then
  12088. eval libat_cv_have_at_fop_16=yes
  12089. else
  12090. eval libat_cv_have_at_fop_16=no
  12091. fi
  12092. else
  12093. old_CFLAGS="$CFLAGS"
  12094. # Compile unoptimized.
  12095. CFLAGS="$CFLAGS -O0 -S"
  12096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12097. (eval $ac_compile) 2>&5
  12098. ac_status=$?
  12099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12100. test $ac_status = 0; }; then
  12101. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12102. eval libat_cv_have_at_fop_16=no
  12103. else
  12104. eval libat_cv_have_at_fop_16=yes
  12105. fi
  12106. else
  12107. eval libat_cv_have_at_fop_16=no
  12108. fi
  12109. CFLAGS="$old_CFLAGS"
  12110. fi
  12111. rm -f conftest*
  12112. fi
  12113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
  12114. $as_echo "$libat_cv_have_at_fop_16" >&6; }
  12115. yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
  12116. cat >>confdefs.h <<_ACEOF
  12117. #define HAVE_ATOMIC_FETCH_OP_16 $yesno
  12118. _ACEOF
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12120. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12121. if test "${ac_cv_c_bigendian+set}" = set; then :
  12122. $as_echo_n "(cached) " >&6
  12123. else
  12124. ac_cv_c_bigendian=unknown
  12125. # See if we're dealing with a universal compiler.
  12126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12127. /* end confdefs.h. */
  12128. #ifndef __APPLE_CC__
  12129. not a universal capable compiler
  12130. #endif
  12131. typedef int dummy;
  12132. _ACEOF
  12133. if ac_fn_c_try_compile "$LINENO"; then :
  12134. # Check for potential -arch flags. It is not universal unless
  12135. # there are at least two -arch flags with different values.
  12136. ac_arch=
  12137. ac_prev=
  12138. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12139. if test -n "$ac_prev"; then
  12140. case $ac_word in
  12141. i?86 | x86_64 | ppc | ppc64)
  12142. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12143. ac_arch=$ac_word
  12144. else
  12145. ac_cv_c_bigendian=universal
  12146. break
  12147. fi
  12148. ;;
  12149. esac
  12150. ac_prev=
  12151. elif test "x$ac_word" = "x-arch"; then
  12152. ac_prev=arch
  12153. fi
  12154. done
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12157. if test $ac_cv_c_bigendian = unknown; then
  12158. # See if sys/param.h defines the BYTE_ORDER macro.
  12159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12160. /* end confdefs.h. */
  12161. #include <sys/types.h>
  12162. #include <sys/param.h>
  12163. int
  12164. main ()
  12165. {
  12166. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12167. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12168. && LITTLE_ENDIAN)
  12169. bogus endian macros
  12170. #endif
  12171. ;
  12172. return 0;
  12173. }
  12174. _ACEOF
  12175. if ac_fn_c_try_compile "$LINENO"; then :
  12176. # It does; now see whether it defined to BIG_ENDIAN or not.
  12177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12178. /* end confdefs.h. */
  12179. #include <sys/types.h>
  12180. #include <sys/param.h>
  12181. int
  12182. main ()
  12183. {
  12184. #if BYTE_ORDER != BIG_ENDIAN
  12185. not big endian
  12186. #endif
  12187. ;
  12188. return 0;
  12189. }
  12190. _ACEOF
  12191. if ac_fn_c_try_compile "$LINENO"; then :
  12192. ac_cv_c_bigendian=yes
  12193. else
  12194. ac_cv_c_bigendian=no
  12195. fi
  12196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12197. fi
  12198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12199. fi
  12200. if test $ac_cv_c_bigendian = unknown; then
  12201. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12203. /* end confdefs.h. */
  12204. #include <limits.h>
  12205. int
  12206. main ()
  12207. {
  12208. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12209. bogus endian macros
  12210. #endif
  12211. ;
  12212. return 0;
  12213. }
  12214. _ACEOF
  12215. if ac_fn_c_try_compile "$LINENO"; then :
  12216. # It does; now see whether it defined to _BIG_ENDIAN or not.
  12217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12218. /* end confdefs.h. */
  12219. #include <limits.h>
  12220. int
  12221. main ()
  12222. {
  12223. #ifndef _BIG_ENDIAN
  12224. not big endian
  12225. #endif
  12226. ;
  12227. return 0;
  12228. }
  12229. _ACEOF
  12230. if ac_fn_c_try_compile "$LINENO"; then :
  12231. ac_cv_c_bigendian=yes
  12232. else
  12233. ac_cv_c_bigendian=no
  12234. fi
  12235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12236. fi
  12237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12238. fi
  12239. if test $ac_cv_c_bigendian = unknown; then
  12240. # Compile a test program.
  12241. if test "$cross_compiling" = yes; then :
  12242. # Try to guess by grepping values from an object file.
  12243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12244. /* end confdefs.h. */
  12245. short int ascii_mm[] =
  12246. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12247. short int ascii_ii[] =
  12248. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12249. int use_ascii (int i) {
  12250. return ascii_mm[i] + ascii_ii[i];
  12251. }
  12252. short int ebcdic_ii[] =
  12253. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12254. short int ebcdic_mm[] =
  12255. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12256. int use_ebcdic (int i) {
  12257. return ebcdic_mm[i] + ebcdic_ii[i];
  12258. }
  12259. extern int foo;
  12260. int
  12261. main ()
  12262. {
  12263. return use_ascii (foo) == use_ebcdic (foo);
  12264. ;
  12265. return 0;
  12266. }
  12267. _ACEOF
  12268. if ac_fn_c_try_compile "$LINENO"; then :
  12269. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  12270. ac_cv_c_bigendian=yes
  12271. fi
  12272. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12273. if test "$ac_cv_c_bigendian" = unknown; then
  12274. ac_cv_c_bigendian=no
  12275. else
  12276. # finding both strings is unlikely to happen, but who knows?
  12277. ac_cv_c_bigendian=unknown
  12278. fi
  12279. fi
  12280. fi
  12281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12282. else
  12283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12284. /* end confdefs.h. */
  12285. $ac_includes_default
  12286. int
  12287. main ()
  12288. {
  12289. /* Are we little or big endian? From Harbison&Steele. */
  12290. union
  12291. {
  12292. long int l;
  12293. char c[sizeof (long int)];
  12294. } u;
  12295. u.l = 1;
  12296. return u.c[sizeof (long int) - 1] == 1;
  12297. ;
  12298. return 0;
  12299. }
  12300. _ACEOF
  12301. if ac_fn_c_try_run "$LINENO"; then :
  12302. ac_cv_c_bigendian=no
  12303. else
  12304. ac_cv_c_bigendian=yes
  12305. fi
  12306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12307. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12308. fi
  12309. fi
  12310. fi
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  12312. $as_echo "$ac_cv_c_bigendian" >&6; }
  12313. case $ac_cv_c_bigendian in #(
  12314. yes)
  12315. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  12316. ;; #(
  12317. no)
  12318. ;; #(
  12319. universal)
  12320. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  12321. ;; #(
  12322. *)
  12323. as_fn_error "unknown endianness
  12324. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  12325. esac
  12326. # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
  12328. $as_echo_n "checking for the word size... " >&6; }
  12329. if test "${libat_cv_wordsize+set}" = set; then :
  12330. $as_echo_n "(cached) " >&6
  12331. else
  12332. if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
  12333. else
  12334. as_fn_error "Could not determine word size." "$LINENO" 5
  12335. fi
  12336. fi
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
  12338. $as_echo "$libat_cv_wordsize" >&6; }
  12339. cat >>confdefs.h <<_ACEOF
  12340. #define WORDSIZE $libat_cv_wordsize
  12341. _ACEOF
  12342. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  12343. # In case the pthread.h system header is not found, this test will fail.
  12344. case " $config_path " in
  12345. *" posix "*)
  12346. XPCFLAGS=""
  12347. CFLAGS="$CFLAGS -pthread"
  12348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12349. /* end confdefs.h. */
  12350. #include <pthread.h>
  12351. void *g(void *d) { return NULL; }
  12352. int
  12353. main ()
  12354. {
  12355. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12356. ;
  12357. return 0;
  12358. }
  12359. _ACEOF
  12360. if ac_fn_c_try_link "$LINENO"; then :
  12361. XPCFLAGS=" -pthread"
  12362. else
  12363. CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
  12364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12365. /* end confdefs.h. */
  12366. #include <pthread.h>
  12367. void *g(void *d) { return NULL; }
  12368. int
  12369. main ()
  12370. {
  12371. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12372. ;
  12373. return 0;
  12374. }
  12375. _ACEOF
  12376. if ac_fn_c_try_link "$LINENO"; then :
  12377. else
  12378. as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
  12379. fi
  12380. rm -f core conftest.err conftest.$ac_objext \
  12381. conftest$ac_exeext conftest.$ac_ext
  12382. fi
  12383. rm -f core conftest.err conftest.$ac_objext \
  12384. conftest$ac_exeext conftest.$ac_ext
  12385. CFLAGS="$save_CFLAGS $XPCFLAGS"
  12386. ;;
  12387. esac
  12388. # See what sort of export controls are available.
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  12390. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  12391. if test "${libat_cv_have_attribute_visibility+set}" = set; then :
  12392. $as_echo_n "(cached) " >&6
  12393. else
  12394. save_CFLAGS="$CFLAGS"
  12395. CFLAGS="$CFLAGS -Werror"
  12396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12397. /* end confdefs.h. */
  12398. void __attribute__((visibility("hidden"))) foo(void) { }
  12399. int
  12400. main ()
  12401. {
  12402. ;
  12403. return 0;
  12404. }
  12405. _ACEOF
  12406. if ac_fn_c_try_compile "$LINENO"; then :
  12407. libat_cv_have_attribute_visibility=yes
  12408. else
  12409. libat_cv_have_attribute_visibility=no
  12410. fi
  12411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12412. CFLAGS="$save_CFLAGS"
  12413. fi
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
  12415. $as_echo "$libat_cv_have_attribute_visibility" >&6; }
  12416. if test $libat_cv_have_attribute_visibility = yes; then
  12417. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  12418. fi
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  12420. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  12421. if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
  12422. $as_echo_n "(cached) " >&6
  12423. else
  12424. save_CFLAGS="$CFLAGS"
  12425. CFLAGS="$CFLAGS -Werror"
  12426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12427. /* end confdefs.h. */
  12428. void __attribute__((dllexport)) foo(void) { }
  12429. int
  12430. main ()
  12431. {
  12432. ;
  12433. return 0;
  12434. }
  12435. _ACEOF
  12436. if ac_fn_c_try_compile "$LINENO"; then :
  12437. libat_cv_have_attribute_dllexport=yes
  12438. else
  12439. libat_cv_have_attribute_dllexport=no
  12440. fi
  12441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12442. CFLAGS="$save_CFLAGS"
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
  12445. $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
  12446. if test $libat_cv_have_attribute_dllexport = yes; then
  12447. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  12448. fi
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  12450. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  12451. if test "${libat_cv_have_attribute_alias+set}" = set; then :
  12452. $as_echo_n "(cached) " >&6
  12453. else
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. void foo(void) { }
  12457. extern void bar(void) __attribute__((alias("foo")));
  12458. int
  12459. main ()
  12460. {
  12461. bar();
  12462. ;
  12463. return 0;
  12464. }
  12465. _ACEOF
  12466. if ac_fn_c_try_link "$LINENO"; then :
  12467. libat_cv_have_attribute_alias=yes
  12468. else
  12469. libat_cv_have_attribute_alias=no
  12470. fi
  12471. rm -f core conftest.err conftest.$ac_objext \
  12472. conftest$ac_exeext conftest.$ac_ext
  12473. fi
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
  12475. $as_echo "$libat_cv_have_attribute_alias" >&6; }
  12476. if test $libat_cv_have_attribute_alias = yes; then
  12477. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  12478. fi
  12479. if test x$try_ifunc = xyes; then
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
  12481. $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
  12482. if test "${libat_cv_have_ifunc+set}" = set; then :
  12483. $as_echo_n "(cached) " >&6
  12484. else
  12485. save_CFLAGS="$CFLAGS"
  12486. CFLAGS="$CFLAGS -Werror"
  12487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12488. /* end confdefs.h. */
  12489. int foo_alt(void) { return 0; }
  12490. void *foo_sel(void) { return foo_alt; }
  12491. int foo(void) __attribute__((ifunc("foo_sel")));
  12492. int
  12493. main ()
  12494. {
  12495. return foo();
  12496. ;
  12497. return 0;
  12498. }
  12499. _ACEOF
  12500. if ac_fn_c_try_link "$LINENO"; then :
  12501. libat_cv_have_ifunc=yes
  12502. else
  12503. libat_cv_have_ifunc=no
  12504. fi
  12505. rm -f core conftest.err conftest.$ac_objext \
  12506. conftest$ac_exeext conftest.$ac_ext
  12507. fi
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
  12509. $as_echo "$libat_cv_have_ifunc" >&6; }
  12510. yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
  12511. cat >>confdefs.h <<_ACEOF
  12512. #define HAVE_IFUNC $yesno
  12513. _ACEOF
  12514. fi
  12515. # Check linker support.
  12516. # Check whether --with-gnu-ld was given.
  12517. if test "${with_gnu_ld+set}" = set; then :
  12518. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12519. else
  12520. with_gnu_ld=no
  12521. fi
  12522. ac_prog=ld
  12523. if test "$GCC" = yes; then
  12524. # Check if gcc -print-prog-name=ld gives a path.
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12526. $as_echo_n "checking for ld used by $CC... " >&6; }
  12527. case $host in
  12528. *-*-mingw*)
  12529. # gcc leaves a trailing carriage return which upsets mingw
  12530. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12531. *)
  12532. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12533. esac
  12534. case $ac_prog in
  12535. # Accept absolute paths.
  12536. [\\/]* | ?:[\\/]*)
  12537. re_direlt='/[^/][^/]*/\.\./'
  12538. # Canonicalize the pathname of ld
  12539. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12540. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12541. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12542. done
  12543. test -z "$LD" && LD="$ac_prog"
  12544. ;;
  12545. "")
  12546. # If it fails, then pretend we aren't using GCC.
  12547. ac_prog=ld
  12548. ;;
  12549. *)
  12550. # If it is relative, then search for the first ld in PATH.
  12551. with_gnu_ld=unknown
  12552. ;;
  12553. esac
  12554. elif test "$with_gnu_ld" = yes; then
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12556. $as_echo_n "checking for GNU ld... " >&6; }
  12557. else
  12558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12559. $as_echo_n "checking for non-GNU ld... " >&6; }
  12560. fi
  12561. if test "${lt_cv_path_LD+set}" = set; then :
  12562. $as_echo_n "(cached) " >&6
  12563. else
  12564. if test -z "$LD"; then
  12565. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12566. for ac_dir in $PATH; do
  12567. IFS="$lt_save_ifs"
  12568. test -z "$ac_dir" && ac_dir=.
  12569. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12570. lt_cv_path_LD="$ac_dir/$ac_prog"
  12571. # Check to see if the program is GNU ld. I'd rather use --version,
  12572. # but apparently some variants of GNU ld only accept -v.
  12573. # Break only if it was the GNU/non-GNU ld that we prefer.
  12574. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12575. *GNU* | *'with BFD'*)
  12576. test "$with_gnu_ld" != no && break
  12577. ;;
  12578. *)
  12579. test "$with_gnu_ld" != yes && break
  12580. ;;
  12581. esac
  12582. fi
  12583. done
  12584. IFS="$lt_save_ifs"
  12585. else
  12586. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12587. fi
  12588. fi
  12589. LD="$lt_cv_path_LD"
  12590. if test -n "$LD"; then
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12592. $as_echo "$LD" >&6; }
  12593. else
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12595. $as_echo "no" >&6; }
  12596. fi
  12597. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12599. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12600. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  12601. $as_echo_n "(cached) " >&6
  12602. else
  12603. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12604. case `$LD -v 2>&1 </dev/null` in
  12605. *GNU* | *'with BFD'*)
  12606. lt_cv_prog_gnu_ld=yes
  12607. ;;
  12608. *)
  12609. lt_cv_prog_gnu_ld=no
  12610. ;;
  12611. esac
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12614. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12615. with_gnu_ld=$lt_cv_prog_gnu_ld
  12616. # If we're not using GNU ld, then there's no point in even trying these
  12617. # tests. Check for that first. We should have already tested for gld
  12618. # by now (in libtool), but require it now just to be safe...
  12619. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  12620. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  12621. # The name set by libtool depends on the version of libtool. Shame on us
  12622. # for depending on an impl detail, but c'est la vie. Older versions used
  12623. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  12624. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  12625. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  12626. # set (hence we're using an older libtool), then set it.
  12627. if test x${with_gnu_ld+set} != xset; then
  12628. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  12629. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  12630. with_gnu_ld=no
  12631. else
  12632. with_gnu_ld=$ac_cv_prog_gnu_ld
  12633. fi
  12634. fi
  12635. # Start by getting the version number. I think the libtool test already
  12636. # does some of this, but throws away the result.
  12637. libat_ld_is_gold=no
  12638. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  12639. libat_ld_is_gold=yes
  12640. fi
  12641. ldver=`$LD --version 2>/dev/null |
  12642. sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
  12643. libat_gnu_ld_version=`echo $ldver | \
  12644. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  12645. # Set --gc-sections.
  12646. if test "$with_gnu_ld" = "notbroken"; then
  12647. # GNU ld it is! Joy and bunny rabbits!
  12648. # All these tests are for C++; save the language and the compiler flags.
  12649. # Need to do this so that g++ won't try to link in libstdc++
  12650. ac_test_CFLAGS="${CFLAGS+set}"
  12651. ac_save_CFLAGS="$CFLAGS"
  12652. CFLAGS='-x c++ -Wl,--gc-sections'
  12653. # Check for -Wl,--gc-sections
  12654. # XXX This test is broken at the moment, as symbols required for linking
  12655. # are now in libsupc++ (not built yet). In addition, this test has
  12656. # cored on solaris in the past. In addition, --gc-sections doesn't
  12657. # really work at the moment (keeps on discarding used sections, first
  12658. # .eh_frame and now some of the glibc sections for iconv).
  12659. # Bzzzzt. Thanks for playing, maybe next time.
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  12661. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  12662. if test "$cross_compiling" = yes; then :
  12663. ac_sectionLDflags=yes
  12664. else
  12665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12666. /* end confdefs.h. */
  12667. int main(void)
  12668. {
  12669. try { throw 1; }
  12670. catch (...) { };
  12671. return 0;
  12672. }
  12673. _ACEOF
  12674. if ac_fn_c_try_run "$LINENO"; then :
  12675. ac_sectionLDflags=yes
  12676. else
  12677. ac_sectionLDflags=no
  12678. fi
  12679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12681. fi
  12682. if test "$ac_test_CFLAGS" = set; then
  12683. CFLAGS="$ac_save_CFLAGS"
  12684. else
  12685. # this is the suspicious part
  12686. CFLAGS=''
  12687. fi
  12688. if test "$ac_sectionLDflags" = "yes"; then
  12689. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  12692. $as_echo "$ac_sectionLDflags" >&6; }
  12693. fi
  12694. # Set linker optimization flags.
  12695. if test x"$with_gnu_ld" = x"yes"; then
  12696. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  12697. fi
  12698. # Check whether --enable-symvers was given.
  12699. if test "${enable_symvers+set}" = set; then :
  12700. enableval=$enable_symvers;
  12701. case "$enableval" in
  12702. yes|no|gnu*|sun) ;;
  12703. *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  12704. esac
  12705. else
  12706. enable_symvers=yes
  12707. fi
  12708. # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
  12709. # don't know enough about $LD to do tricks...
  12710. # Turn a 'yes' into a suitable default.
  12711. if test x$enable_symvers = xyes ; then
  12712. # FIXME The following test is too strict, in theory.
  12713. if test $enable_shared = no || test "x$LD" = x; then
  12714. enable_symvers=no
  12715. else
  12716. if test $with_gnu_ld = yes ; then
  12717. enable_symvers=gnu
  12718. else
  12719. case ${target_os} in
  12720. # Sun symbol versioning exists since Solaris 2.5.
  12721. solaris2.[5-9]* | solaris2.1[0-9]*)
  12722. enable_symvers=sun ;;
  12723. *)
  12724. enable_symvers=no ;;
  12725. esac
  12726. fi
  12727. fi
  12728. fi
  12729. # Check if 'sun' was requested on non-Solaris 2 platforms.
  12730. if test x$enable_symvers = xsun ; then
  12731. case ${target_os} in
  12732. solaris2*)
  12733. # All fine.
  12734. ;;
  12735. *)
  12736. # Unlikely to work.
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  12738. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  12740. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  12742. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  12743. enable_symvers=no
  12744. ;;
  12745. esac
  12746. fi
  12747. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  12748. if test $enable_symvers != no; then
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  12750. $as_echo_n "checking for shared libgcc... " >&6; }
  12751. ac_save_CFLAGS="$CFLAGS"
  12752. CFLAGS=' -lgcc_s'
  12753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12754. /* end confdefs.h. */
  12755. int
  12756. main ()
  12757. {
  12758. return 0;
  12759. ;
  12760. return 0;
  12761. }
  12762. _ACEOF
  12763. if ac_fn_c_try_link "$LINENO"; then :
  12764. libat_shared_libgcc=yes
  12765. else
  12766. libat_shared_libgcc=no
  12767. fi
  12768. rm -f core conftest.err conftest.$ac_objext \
  12769. conftest$ac_exeext conftest.$ac_ext
  12770. CFLAGS="$ac_save_CFLAGS"
  12771. if test $libat_shared_libgcc = no; then
  12772. cat > conftest.c <<EOF
  12773. int main (void) { return 0; }
  12774. EOF
  12775. libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  12776. -shared -shared-libgcc -o conftest.so \
  12777. conftest.c -v 2>&1 >/dev/null \
  12778. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  12779. rm -f conftest.c conftest.so
  12780. if test x${libat_libgcc_s_suffix+set} = xset; then
  12781. CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
  12782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12783. /* end confdefs.h. */
  12784. int
  12785. main ()
  12786. {
  12787. return 0;
  12788. ;
  12789. return 0;
  12790. }
  12791. _ACEOF
  12792. if ac_fn_c_try_link "$LINENO"; then :
  12793. libat_shared_libgcc=yes
  12794. fi
  12795. rm -f core conftest.err conftest.$ac_objext \
  12796. conftest$ac_exeext conftest.$ac_ext
  12797. CFLAGS="$ac_save_CFLAGS"
  12798. fi
  12799. fi
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
  12801. $as_echo "$libat_shared_libgcc" >&6; }
  12802. fi
  12803. # For GNU ld, we need at least this version. The format is described in
  12804. # LIBAT_CHECK_LINKER_FEATURES above.
  12805. libat_min_gnu_ld_version=21400
  12806. # XXXXXXXXXXX libat_gnu_ld_version=21390
  12807. # Check to see if unspecified "yes" value can win, given results above.
  12808. # Change "yes" into either "no" or a style name.
  12809. if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
  12810. if test $with_gnu_ld = yes; then
  12811. if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
  12812. enable_symvers=gnu
  12813. elif test $libat_ld_is_gold = yes ; then
  12814. enable_symvers=gnu
  12815. else
  12816. # The right tools, the right setup, but too old. Fallbacks?
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
  12818. $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  12820. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  12822. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
  12824. $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
  12825. if test $libat_gnu_ld_version -ge 21200 ; then
  12826. # Globbing fix is present, proper block support is not.
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  12828. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  12829. enable_symvers=no
  12830. else
  12831. # 2.11 or older.
  12832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  12833. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  12834. enable_symvers=no
  12835. fi
  12836. fi
  12837. elif test $enable_symvers = sun; then
  12838. : All interesting versions of Sun ld support sun style symbol versioning.
  12839. else
  12840. # just fail for now
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  12842. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  12844. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  12846. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  12847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  12848. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  12849. enable_symvers=no
  12850. fi
  12851. fi
  12852. if test $enable_symvers = gnu; then
  12853. $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  12854. fi
  12855. if test $enable_symvers != no; then
  12856. LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
  12857. LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
  12858. else
  12859. LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
  12860. LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
  12861. fi
  12862. if test $enable_symvers = gnu; then
  12863. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  12864. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  12865. else
  12866. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  12867. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  12868. fi
  12869. if test $enable_symvers = sun; then
  12870. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  12871. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  12872. else
  12873. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  12874. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  12875. fi
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  12877. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  12878. # Cleanup and exit.
  12879. CFLAGS="$save_CFLAGS"
  12880. cat >confcache <<\_ACEOF
  12881. # This file is a shell script that caches the results of configure
  12882. # tests run on this system so they can be shared between configure
  12883. # scripts and configure runs, see configure's option --config-cache.
  12884. # It is not useful on other systems. If it contains results you don't
  12885. # want to keep, you may remove or edit it.
  12886. #
  12887. # config.status only pays attention to the cache file if you give it
  12888. # the --recheck option to rerun configure.
  12889. #
  12890. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12891. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12892. # following values.
  12893. _ACEOF
  12894. # The following way of writing the cache mishandles newlines in values,
  12895. # but we know of no workaround that is simple, portable, and efficient.
  12896. # So, we kill variables containing newlines.
  12897. # Ultrix sh set writes to stderr and can't be redirected directly,
  12898. # and sets the high bit in the cache file unless we assign to the vars.
  12899. (
  12900. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12901. eval ac_val=\$$ac_var
  12902. case $ac_val in #(
  12903. *${as_nl}*)
  12904. case $ac_var in #(
  12905. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12906. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12907. esac
  12908. case $ac_var in #(
  12909. _ | IFS | as_nl) ;; #(
  12910. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12911. *) { eval $ac_var=; unset $ac_var;} ;;
  12912. esac ;;
  12913. esac
  12914. done
  12915. (set) 2>&1 |
  12916. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12917. *${as_nl}ac_space=\ *)
  12918. # `set' does not quote correctly, so add quotes: double-quote
  12919. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12920. sed -n \
  12921. "s/'/'\\\\''/g;
  12922. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12923. ;; #(
  12924. *)
  12925. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12926. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12927. ;;
  12928. esac |
  12929. sort
  12930. ) |
  12931. sed '
  12932. /^ac_cv_env_/b end
  12933. t clear
  12934. :clear
  12935. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12936. t end
  12937. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12938. :end' >>confcache
  12939. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12940. if test -w "$cache_file"; then
  12941. test "x$cache_file" != "x/dev/null" &&
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12943. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12944. cat confcache >$cache_file
  12945. else
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12947. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12948. fi
  12949. fi
  12950. rm -f confcache
  12951. # Add -Wall -Werror if we are using GCC.
  12952. if test "x$GCC" = "xyes"; then
  12953. XCFLAGS="$XCFLAGS -Wall -Werror"
  12954. fi
  12955. XCFLAGS="$XCFLAGS $XPCFLAGS"
  12956. if test x$libat_cv_have_ifunc = xyes; then
  12957. HAVE_IFUNC_TRUE=
  12958. HAVE_IFUNC_FALSE='#'
  12959. else
  12960. HAVE_IFUNC_TRUE='#'
  12961. HAVE_IFUNC_FALSE=
  12962. fi
  12963. if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
  12964. ARCH_ARM_LINUX_TRUE=
  12965. ARCH_ARM_LINUX_FALSE='#'
  12966. else
  12967. ARCH_ARM_LINUX_TRUE='#'
  12968. ARCH_ARM_LINUX_FALSE=
  12969. fi
  12970. if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
  12971. ARCH_I386_TRUE=
  12972. ARCH_I386_FALSE='#'
  12973. else
  12974. ARCH_I386_TRUE='#'
  12975. ARCH_I386_FALSE=
  12976. fi
  12977. if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
  12978. ARCH_X86_64_TRUE=
  12979. ARCH_X86_64_FALSE='#'
  12980. else
  12981. ARCH_X86_64_TRUE='#'
  12982. ARCH_X86_64_FALSE=
  12983. fi
  12984. if test ${multilib} = yes; then
  12985. multilib_arg="--enable-multilib"
  12986. else
  12987. multilib_arg=
  12988. fi
  12989. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  12990. cat >confcache <<\_ACEOF
  12991. # This file is a shell script that caches the results of configure
  12992. # tests run on this system so they can be shared between configure
  12993. # scripts and configure runs, see configure's option --config-cache.
  12994. # It is not useful on other systems. If it contains results you don't
  12995. # want to keep, you may remove or edit it.
  12996. #
  12997. # config.status only pays attention to the cache file if you give it
  12998. # the --recheck option to rerun configure.
  12999. #
  13000. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13001. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13002. # following values.
  13003. _ACEOF
  13004. # The following way of writing the cache mishandles newlines in values,
  13005. # but we know of no workaround that is simple, portable, and efficient.
  13006. # So, we kill variables containing newlines.
  13007. # Ultrix sh set writes to stderr and can't be redirected directly,
  13008. # and sets the high bit in the cache file unless we assign to the vars.
  13009. (
  13010. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13011. eval ac_val=\$$ac_var
  13012. case $ac_val in #(
  13013. *${as_nl}*)
  13014. case $ac_var in #(
  13015. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13016. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13017. esac
  13018. case $ac_var in #(
  13019. _ | IFS | as_nl) ;; #(
  13020. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13021. *) { eval $ac_var=; unset $ac_var;} ;;
  13022. esac ;;
  13023. esac
  13024. done
  13025. (set) 2>&1 |
  13026. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13027. *${as_nl}ac_space=\ *)
  13028. # `set' does not quote correctly, so add quotes: double-quote
  13029. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13030. sed -n \
  13031. "s/'/'\\\\''/g;
  13032. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13033. ;; #(
  13034. *)
  13035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13036. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13037. ;;
  13038. esac |
  13039. sort
  13040. ) |
  13041. sed '
  13042. /^ac_cv_env_/b end
  13043. t clear
  13044. :clear
  13045. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13046. t end
  13047. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13048. :end' >>confcache
  13049. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13050. if test -w "$cache_file"; then
  13051. test "x$cache_file" != "x/dev/null" &&
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13053. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13054. cat confcache >$cache_file
  13055. else
  13056. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13057. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13058. fi
  13059. fi
  13060. rm -f confcache
  13061. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13062. # Let make expand exec_prefix.
  13063. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13064. DEFS=-DHAVE_CONFIG_H
  13065. ac_libobjs=
  13066. ac_ltlibobjs=
  13067. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13068. # 1. Remove the extension, and $U if already installed.
  13069. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13070. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13071. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13072. # will be set to the directory where LIBOBJS objects are built.
  13073. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13074. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13075. done
  13076. LIBOBJS=$ac_libobjs
  13077. LTLIBOBJS=$ac_ltlibobjs
  13078. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  13079. as_fn_error "conditional \"GENINSRC\" was never defined.
  13080. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13081. fi
  13082. if test -n "$EXEEXT"; then
  13083. am__EXEEXT_TRUE=
  13084. am__EXEEXT_FALSE='#'
  13085. else
  13086. am__EXEEXT_TRUE='#'
  13087. am__EXEEXT_FALSE=
  13088. fi
  13089. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13090. as_fn_error "conditional \"AMDEP\" was never defined.
  13091. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13092. fi
  13093. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13094. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13095. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13096. fi
  13097. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  13098. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  13099. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13100. fi
  13101. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13102. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13103. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13104. fi
  13105. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
  13106. as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
  13107. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13108. fi
  13109. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  13110. as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  13111. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13112. fi
  13113. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  13114. as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  13115. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13116. fi
  13117. if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
  13118. as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
  13119. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13120. fi
  13121. if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
  13122. as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
  13123. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13124. fi
  13125. if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
  13126. as_fn_error "conditional \"ARCH_I386\" was never defined.
  13127. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13128. fi
  13129. if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
  13130. as_fn_error "conditional \"ARCH_X86_64\" was never defined.
  13131. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13132. fi
  13133. : ${CONFIG_STATUS=./config.status}
  13134. ac_write_fail=0
  13135. ac_clean_files_save=$ac_clean_files
  13136. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13137. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13138. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13139. as_write_fail=0
  13140. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13141. #! $SHELL
  13142. # Generated by $as_me.
  13143. # Run this file to recreate the current configuration.
  13144. # Compiler output produced by configure, useful for debugging
  13145. # configure, is in config.log if it exists.
  13146. debug=false
  13147. ac_cs_recheck=false
  13148. ac_cs_silent=false
  13149. SHELL=\${CONFIG_SHELL-$SHELL}
  13150. export SHELL
  13151. _ASEOF
  13152. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13153. ## -------------------- ##
  13154. ## M4sh Initialization. ##
  13155. ## -------------------- ##
  13156. # Be more Bourne compatible
  13157. DUALCASE=1; export DUALCASE # for MKS sh
  13158. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13159. emulate sh
  13160. NULLCMD=:
  13161. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13162. # is contrary to our usage. Disable this feature.
  13163. alias -g '${1+"$@"}'='"$@"'
  13164. setopt NO_GLOB_SUBST
  13165. else
  13166. case `(set -o) 2>/dev/null` in #(
  13167. *posix*) :
  13168. set -o posix ;; #(
  13169. *) :
  13170. ;;
  13171. esac
  13172. fi
  13173. as_nl='
  13174. '
  13175. export as_nl
  13176. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13177. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13178. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13179. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13180. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13181. # but without wasting forks for bash or zsh.
  13182. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13183. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13184. as_echo='print -r --'
  13185. as_echo_n='print -rn --'
  13186. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13187. as_echo='printf %s\n'
  13188. as_echo_n='printf %s'
  13189. else
  13190. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13191. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13192. as_echo_n='/usr/ucb/echo -n'
  13193. else
  13194. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13195. as_echo_n_body='eval
  13196. arg=$1;
  13197. case $arg in #(
  13198. *"$as_nl"*)
  13199. expr "X$arg" : "X\\(.*\\)$as_nl";
  13200. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13201. esac;
  13202. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13203. '
  13204. export as_echo_n_body
  13205. as_echo_n='sh -c $as_echo_n_body as_echo'
  13206. fi
  13207. export as_echo_body
  13208. as_echo='sh -c $as_echo_body as_echo'
  13209. fi
  13210. # The user is always right.
  13211. if test "${PATH_SEPARATOR+set}" != set; then
  13212. PATH_SEPARATOR=:
  13213. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13214. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13215. PATH_SEPARATOR=';'
  13216. }
  13217. fi
  13218. # IFS
  13219. # We need space, tab and new line, in precisely that order. Quoting is
  13220. # there to prevent editors from complaining about space-tab.
  13221. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13222. # splitting by setting IFS to empty value.)
  13223. IFS=" "" $as_nl"
  13224. # Find who we are. Look in the path if we contain no directory separator.
  13225. case $0 in #((
  13226. *[\\/]* ) as_myself=$0 ;;
  13227. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13228. for as_dir in $PATH
  13229. do
  13230. IFS=$as_save_IFS
  13231. test -z "$as_dir" && as_dir=.
  13232. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13233. done
  13234. IFS=$as_save_IFS
  13235. ;;
  13236. esac
  13237. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13238. # in which case we are not to be found in the path.
  13239. if test "x$as_myself" = x; then
  13240. as_myself=$0
  13241. fi
  13242. if test ! -f "$as_myself"; then
  13243. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13244. exit 1
  13245. fi
  13246. # Unset variables that we do not need and which cause bugs (e.g. in
  13247. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13248. # suppresses any "Segmentation fault" message there. '((' could
  13249. # trigger a bug in pdksh 5.2.14.
  13250. for as_var in BASH_ENV ENV MAIL MAILPATH
  13251. do eval test x\${$as_var+set} = xset \
  13252. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13253. done
  13254. PS1='$ '
  13255. PS2='> '
  13256. PS4='+ '
  13257. # NLS nuisances.
  13258. LC_ALL=C
  13259. export LC_ALL
  13260. LANGUAGE=C
  13261. export LANGUAGE
  13262. # CDPATH.
  13263. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13264. # as_fn_error ERROR [LINENO LOG_FD]
  13265. # ---------------------------------
  13266. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13267. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13268. # script with status $?, using 1 if that was 0.
  13269. as_fn_error ()
  13270. {
  13271. as_status=$?; test $as_status -eq 0 && as_status=1
  13272. if test "$3"; then
  13273. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13274. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13275. fi
  13276. $as_echo "$as_me: error: $1" >&2
  13277. as_fn_exit $as_status
  13278. } # as_fn_error
  13279. # as_fn_set_status STATUS
  13280. # -----------------------
  13281. # Set $? to STATUS, without forking.
  13282. as_fn_set_status ()
  13283. {
  13284. return $1
  13285. } # as_fn_set_status
  13286. # as_fn_exit STATUS
  13287. # -----------------
  13288. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13289. as_fn_exit ()
  13290. {
  13291. set +e
  13292. as_fn_set_status $1
  13293. exit $1
  13294. } # as_fn_exit
  13295. # as_fn_unset VAR
  13296. # ---------------
  13297. # Portably unset VAR.
  13298. as_fn_unset ()
  13299. {
  13300. { eval $1=; unset $1;}
  13301. }
  13302. as_unset=as_fn_unset
  13303. # as_fn_append VAR VALUE
  13304. # ----------------------
  13305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13306. # advantage of any shell optimizations that allow amortized linear growth over
  13307. # repeated appends, instead of the typical quadratic growth present in naive
  13308. # implementations.
  13309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13310. eval 'as_fn_append ()
  13311. {
  13312. eval $1+=\$2
  13313. }'
  13314. else
  13315. as_fn_append ()
  13316. {
  13317. eval $1=\$$1\$2
  13318. }
  13319. fi # as_fn_append
  13320. # as_fn_arith ARG...
  13321. # ------------------
  13322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13324. # must be portable across $(()) and expr.
  13325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13326. eval 'as_fn_arith ()
  13327. {
  13328. as_val=$(( $* ))
  13329. }'
  13330. else
  13331. as_fn_arith ()
  13332. {
  13333. as_val=`expr "$@" || test $? -eq 1`
  13334. }
  13335. fi # as_fn_arith
  13336. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13337. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13338. as_expr=expr
  13339. else
  13340. as_expr=false
  13341. fi
  13342. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13343. as_basename=basename
  13344. else
  13345. as_basename=false
  13346. fi
  13347. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13348. as_dirname=dirname
  13349. else
  13350. as_dirname=false
  13351. fi
  13352. as_me=`$as_basename -- "$0" ||
  13353. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13354. X"$0" : 'X\(//\)$' \| \
  13355. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13356. $as_echo X/"$0" |
  13357. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13358. s//\1/
  13359. q
  13360. }
  13361. /^X\/\(\/\/\)$/{
  13362. s//\1/
  13363. q
  13364. }
  13365. /^X\/\(\/\).*/{
  13366. s//\1/
  13367. q
  13368. }
  13369. s/.*/./; q'`
  13370. # Avoid depending upon Character Ranges.
  13371. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13372. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13373. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13374. as_cr_digits='0123456789'
  13375. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13376. ECHO_C= ECHO_N= ECHO_T=
  13377. case `echo -n x` in #(((((
  13378. -n*)
  13379. case `echo 'xy\c'` in
  13380. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13381. xy) ECHO_C='\c';;
  13382. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13383. ECHO_T=' ';;
  13384. esac;;
  13385. *)
  13386. ECHO_N='-n';;
  13387. esac
  13388. rm -f conf$$ conf$$.exe conf$$.file
  13389. if test -d conf$$.dir; then
  13390. rm -f conf$$.dir/conf$$.file
  13391. else
  13392. rm -f conf$$.dir
  13393. mkdir conf$$.dir 2>/dev/null
  13394. fi
  13395. if (echo >conf$$.file) 2>/dev/null; then
  13396. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13397. as_ln_s='ln -s'
  13398. # ... but there are two gotchas:
  13399. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13400. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13401. # In both cases, we have to default to `cp -p'.
  13402. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13403. as_ln_s='cp -p'
  13404. elif ln conf$$.file conf$$ 2>/dev/null; then
  13405. as_ln_s=ln
  13406. else
  13407. as_ln_s='cp -p'
  13408. fi
  13409. else
  13410. as_ln_s='cp -p'
  13411. fi
  13412. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13413. rmdir conf$$.dir 2>/dev/null
  13414. # as_fn_mkdir_p
  13415. # -------------
  13416. # Create "$as_dir" as a directory, including parents if necessary.
  13417. as_fn_mkdir_p ()
  13418. {
  13419. case $as_dir in #(
  13420. -*) as_dir=./$as_dir;;
  13421. esac
  13422. test -d "$as_dir" || eval $as_mkdir_p || {
  13423. as_dirs=
  13424. while :; do
  13425. case $as_dir in #(
  13426. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13427. *) as_qdir=$as_dir;;
  13428. esac
  13429. as_dirs="'$as_qdir' $as_dirs"
  13430. as_dir=`$as_dirname -- "$as_dir" ||
  13431. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13432. X"$as_dir" : 'X\(//\)[^/]' \| \
  13433. X"$as_dir" : 'X\(//\)$' \| \
  13434. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13435. $as_echo X"$as_dir" |
  13436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13437. s//\1/
  13438. q
  13439. }
  13440. /^X\(\/\/\)[^/].*/{
  13441. s//\1/
  13442. q
  13443. }
  13444. /^X\(\/\/\)$/{
  13445. s//\1/
  13446. q
  13447. }
  13448. /^X\(\/\).*/{
  13449. s//\1/
  13450. q
  13451. }
  13452. s/.*/./; q'`
  13453. test -d "$as_dir" && break
  13454. done
  13455. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13456. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13457. } # as_fn_mkdir_p
  13458. if mkdir -p . 2>/dev/null; then
  13459. as_mkdir_p='mkdir -p "$as_dir"'
  13460. else
  13461. test -d ./-p && rmdir ./-p
  13462. as_mkdir_p=false
  13463. fi
  13464. if test -x / >/dev/null 2>&1; then
  13465. as_test_x='test -x'
  13466. else
  13467. if ls -dL / >/dev/null 2>&1; then
  13468. as_ls_L_option=L
  13469. else
  13470. as_ls_L_option=
  13471. fi
  13472. as_test_x='
  13473. eval sh -c '\''
  13474. if test -d "$1"; then
  13475. test -d "$1/.";
  13476. else
  13477. case $1 in #(
  13478. -*)set "./$1";;
  13479. esac;
  13480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13481. ???[sx]*):;;*)false;;esac;fi
  13482. '\'' sh
  13483. '
  13484. fi
  13485. as_executable_p=$as_test_x
  13486. # Sed expression to map a string onto a valid CPP name.
  13487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13488. # Sed expression to map a string onto a valid variable name.
  13489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13490. exec 6>&1
  13491. ## ----------------------------------- ##
  13492. ## Main body of $CONFIG_STATUS script. ##
  13493. ## ----------------------------------- ##
  13494. _ASEOF
  13495. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13497. # Save the log message, to keep $0 and so on meaningful, and to
  13498. # report actual input values of CONFIG_FILES etc. instead of their
  13499. # values after options handling.
  13500. ac_log="
  13501. This file was extended by GNU Atomic Library $as_me 1.0, which was
  13502. generated by GNU Autoconf 2.64. Invocation command line was
  13503. CONFIG_FILES = $CONFIG_FILES
  13504. CONFIG_HEADERS = $CONFIG_HEADERS
  13505. CONFIG_LINKS = $CONFIG_LINKS
  13506. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13507. $ $0 $@
  13508. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13509. "
  13510. _ACEOF
  13511. case $ac_config_files in *"
  13512. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13513. esac
  13514. case $ac_config_headers in *"
  13515. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13516. esac
  13517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13518. # Files that config.status was made for.
  13519. config_files="$ac_config_files"
  13520. config_headers="$ac_config_headers"
  13521. config_commands="$ac_config_commands"
  13522. _ACEOF
  13523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13524. ac_cs_usage="\
  13525. \`$as_me' instantiates files and other configuration actions
  13526. from templates according to the current configuration. Unless the files
  13527. and actions are specified as TAGs, all are instantiated by default.
  13528. Usage: $0 [OPTION]... [TAG]...
  13529. -h, --help print this help, then exit
  13530. -V, --version print version number and configuration settings, then exit
  13531. -q, --quiet, --silent
  13532. do not print progress messages
  13533. -d, --debug don't remove temporary files
  13534. --recheck update $as_me by reconfiguring in the same conditions
  13535. --file=FILE[:TEMPLATE]
  13536. instantiate the configuration file FILE
  13537. --header=FILE[:TEMPLATE]
  13538. instantiate the configuration header FILE
  13539. Configuration files:
  13540. $config_files
  13541. Configuration headers:
  13542. $config_headers
  13543. Configuration commands:
  13544. $config_commands
  13545. Report bugs to the package provider.
  13546. GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
  13547. General help using GNU software: <http://www.gnu.org/gethelp/>."
  13548. _ACEOF
  13549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13550. ac_cs_version="\\
  13551. GNU Atomic Library config.status 1.0
  13552. configured by $0, generated by GNU Autoconf 2.64,
  13553. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13554. Copyright (C) 2009 Free Software Foundation, Inc.
  13555. This config.status script is free software; the Free Software Foundation
  13556. gives unlimited permission to copy, distribute and modify it."
  13557. ac_pwd='$ac_pwd'
  13558. srcdir='$srcdir'
  13559. INSTALL='$INSTALL'
  13560. MKDIR_P='$MKDIR_P'
  13561. AWK='$AWK'
  13562. test -n "\$AWK" || AWK=awk
  13563. _ACEOF
  13564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13565. # The default lists apply if the user does not specify any file.
  13566. ac_need_defaults=:
  13567. while test $# != 0
  13568. do
  13569. case $1 in
  13570. --*=*)
  13571. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13572. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13573. ac_shift=:
  13574. ;;
  13575. *)
  13576. ac_option=$1
  13577. ac_optarg=$2
  13578. ac_shift=shift
  13579. ;;
  13580. esac
  13581. case $ac_option in
  13582. # Handling of the options.
  13583. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13584. ac_cs_recheck=: ;;
  13585. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13586. $as_echo "$ac_cs_version"; exit ;;
  13587. --debug | --debu | --deb | --de | --d | -d )
  13588. debug=: ;;
  13589. --file | --fil | --fi | --f )
  13590. $ac_shift
  13591. case $ac_optarg in
  13592. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13593. esac
  13594. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13595. ac_need_defaults=false;;
  13596. --header | --heade | --head | --hea )
  13597. $ac_shift
  13598. case $ac_optarg in
  13599. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13600. esac
  13601. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13602. ac_need_defaults=false;;
  13603. --he | --h)
  13604. # Conflict between --help and --header
  13605. as_fn_error "ambiguous option: \`$1'
  13606. Try \`$0 --help' for more information.";;
  13607. --help | --hel | -h )
  13608. $as_echo "$ac_cs_usage"; exit ;;
  13609. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13610. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13611. ac_cs_silent=: ;;
  13612. # This is an error.
  13613. -*) as_fn_error "unrecognized option: \`$1'
  13614. Try \`$0 --help' for more information." ;;
  13615. *) as_fn_append ac_config_targets " $1"
  13616. ac_need_defaults=false ;;
  13617. esac
  13618. shift
  13619. done
  13620. ac_configure_extra_args=
  13621. if $ac_cs_silent; then
  13622. exec 6>/dev/null
  13623. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13624. fi
  13625. _ACEOF
  13626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13627. if \$ac_cs_recheck; then
  13628. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13629. shift
  13630. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13631. CONFIG_SHELL='$SHELL'
  13632. export CONFIG_SHELL
  13633. exec "\$@"
  13634. fi
  13635. _ACEOF
  13636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13637. exec 5>>config.log
  13638. {
  13639. echo
  13640. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13641. ## Running $as_me. ##
  13642. _ASBOX
  13643. $as_echo "$ac_log"
  13644. } >&5
  13645. _ACEOF
  13646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13647. #
  13648. # INIT-COMMANDS
  13649. #
  13650. srcdir="$srcdir"
  13651. host="$host"
  13652. target="$target"
  13653. with_multisubdir="$with_multisubdir"
  13654. with_multisrctop="$with_multisrctop"
  13655. with_target_subdir="$with_target_subdir"
  13656. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13657. multi_basedir="$multi_basedir"
  13658. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13659. CC="$CC"
  13660. CXX="$CXX"
  13661. GFORTRAN="$GFORTRAN"
  13662. GCJ="$GCJ"
  13663. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13664. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13665. # if CDPATH is set.
  13666. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13667. sed_quote_subst='$sed_quote_subst'
  13668. double_quote_subst='$double_quote_subst'
  13669. delay_variable_subst='$delay_variable_subst'
  13670. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13671. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13672. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13673. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13674. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13675. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13676. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13677. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13678. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13679. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13680. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13681. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13682. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13683. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13684. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13685. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13686. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13687. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13688. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13689. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13690. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13691. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13692. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13693. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13694. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13695. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13696. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13697. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13698. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13699. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13700. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13701. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13702. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13703. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13704. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13705. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13706. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13707. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13708. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13709. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13710. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13711. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13712. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13713. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13714. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13715. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13716. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13717. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13718. 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"`'
  13719. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13720. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13721. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13722. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13723. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13724. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13725. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13726. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13727. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13728. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13729. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13730. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13731. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13732. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13733. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13734. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13735. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13736. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13737. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13738. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13739. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13740. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13741. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13742. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13743. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13744. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13745. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13746. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13747. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13748. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13749. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13750. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13751. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13752. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13753. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13754. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13755. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13756. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13757. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13758. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13759. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13760. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13761. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13762. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13763. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13764. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13765. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13766. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13767. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13768. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13769. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13770. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13771. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13772. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13773. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13774. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13775. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13776. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13777. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13778. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13779. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13780. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13781. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13782. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13783. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13784. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13785. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13786. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13787. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13788. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13789. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13790. LTCC='$LTCC'
  13791. LTCFLAGS='$LTCFLAGS'
  13792. compiler='$compiler_DEFAULT'
  13793. # A function that is used when there is no print builtin or printf.
  13794. func_fallback_echo ()
  13795. {
  13796. eval 'cat <<_LTECHO_EOF
  13797. \$1
  13798. _LTECHO_EOF'
  13799. }
  13800. # Quote evaled strings.
  13801. for var in SHELL \
  13802. ECHO \
  13803. SED \
  13804. GREP \
  13805. EGREP \
  13806. FGREP \
  13807. LD \
  13808. NM \
  13809. LN_S \
  13810. lt_SP2NL \
  13811. lt_NL2SP \
  13812. reload_flag \
  13813. OBJDUMP \
  13814. deplibs_check_method \
  13815. file_magic_cmd \
  13816. AR \
  13817. AR_FLAGS \
  13818. STRIP \
  13819. RANLIB \
  13820. CC \
  13821. CFLAGS \
  13822. compiler \
  13823. lt_cv_sys_global_symbol_pipe \
  13824. lt_cv_sys_global_symbol_to_cdecl \
  13825. lt_cv_sys_global_symbol_to_c_name_address \
  13826. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13827. lt_prog_compiler_no_builtin_flag \
  13828. lt_prog_compiler_wl \
  13829. lt_prog_compiler_pic \
  13830. lt_prog_compiler_static \
  13831. lt_cv_prog_compiler_c_o \
  13832. need_locks \
  13833. DSYMUTIL \
  13834. NMEDIT \
  13835. LIPO \
  13836. OTOOL \
  13837. OTOOL64 \
  13838. shrext_cmds \
  13839. export_dynamic_flag_spec \
  13840. whole_archive_flag_spec \
  13841. compiler_needs_object \
  13842. with_gnu_ld \
  13843. allow_undefined_flag \
  13844. no_undefined_flag \
  13845. hardcode_libdir_flag_spec \
  13846. hardcode_libdir_flag_spec_ld \
  13847. hardcode_libdir_separator \
  13848. fix_srcfile_path \
  13849. exclude_expsyms \
  13850. include_expsyms \
  13851. file_list_spec \
  13852. variables_saved_for_relink \
  13853. libname_spec \
  13854. library_names_spec \
  13855. soname_spec \
  13856. install_override_mode \
  13857. finish_eval \
  13858. old_striplib \
  13859. striplib; do
  13860. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13861. *[\\\\\\\`\\"\\\$]*)
  13862. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13863. ;;
  13864. *)
  13865. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13866. ;;
  13867. esac
  13868. done
  13869. # Double-quote double-evaled strings.
  13870. for var in reload_cmds \
  13871. old_postinstall_cmds \
  13872. old_postuninstall_cmds \
  13873. old_archive_cmds \
  13874. extract_expsyms_cmds \
  13875. old_archive_from_new_cmds \
  13876. old_archive_from_expsyms_cmds \
  13877. archive_cmds \
  13878. archive_expsym_cmds \
  13879. module_cmds \
  13880. module_expsym_cmds \
  13881. export_symbols_cmds \
  13882. prelink_cmds \
  13883. postinstall_cmds \
  13884. postuninstall_cmds \
  13885. finish_cmds \
  13886. sys_lib_search_path_spec \
  13887. sys_lib_dlsearch_path_spec; do
  13888. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13889. *[\\\\\\\`\\"\\\$]*)
  13890. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13891. ;;
  13892. *)
  13893. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13894. ;;
  13895. esac
  13896. done
  13897. ac_aux_dir='$ac_aux_dir'
  13898. xsi_shell='$xsi_shell'
  13899. lt_shell_append='$lt_shell_append'
  13900. # See if we are running on zsh, and set the options which allow our
  13901. # commands through without removal of \ escapes INIT.
  13902. if test -n "\${ZSH_VERSION+set}" ; then
  13903. setopt NO_GLOB_SUBST
  13904. fi
  13905. PACKAGE='$PACKAGE'
  13906. VERSION='$VERSION'
  13907. TIMESTAMP='$TIMESTAMP'
  13908. RM='$RM'
  13909. ofile='$ofile'
  13910. GCC="$GCC"
  13911. CC="$CC"
  13912. acx_cv_header_stdint="$acx_cv_header_stdint"
  13913. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  13914. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  13915. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  13916. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  13917. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  13918. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  13919. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  13920. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  13921. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  13922. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  13923. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  13924. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  13925. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  13926. _ACEOF
  13927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13928. # Handling of arguments.
  13929. for ac_config_target in $ac_config_targets
  13930. do
  13931. case $ac_config_target in
  13932. "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
  13933. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13934. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13935. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13936. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  13937. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13938. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  13939. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13940. esac
  13941. done
  13942. # If the user did not use the arguments to specify the items to instantiate,
  13943. # then the envvar interface is used. Set only those that are not.
  13944. # We use the long form for the default assignment because of an extremely
  13945. # bizarre bug on SunOS 4.1.3.
  13946. if $ac_need_defaults; then
  13947. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13948. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13949. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13950. fi
  13951. # Have a temporary directory for convenience. Make it in the build tree
  13952. # simply because there is no reason against having it here, and in addition,
  13953. # creating and moving files from /tmp can sometimes cause problems.
  13954. # Hook for its removal unless debugging.
  13955. # Note that there is a small window in which the directory will not be cleaned:
  13956. # after its creation but before its name has been assigned to `$tmp'.
  13957. $debug ||
  13958. {
  13959. tmp=
  13960. trap 'exit_status=$?
  13961. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13962. ' 0
  13963. trap 'as_fn_exit 1' 1 2 13 15
  13964. }
  13965. # Create a (secure) tmp directory for tmp files.
  13966. {
  13967. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13968. test -n "$tmp" && test -d "$tmp"
  13969. } ||
  13970. {
  13971. tmp=./conf$$-$RANDOM
  13972. (umask 077 && mkdir "$tmp")
  13973. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13974. # Set up the scripts for CONFIG_FILES section.
  13975. # No need to generate them if there are no CONFIG_FILES.
  13976. # This happens for instance with `./config.status config.h'.
  13977. if test -n "$CONFIG_FILES"; then
  13978. ac_cr=`echo X | tr X '\015'`
  13979. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13980. # But we know of no other shell where ac_cr would be empty at this
  13981. # point, so we can use a bashism as a fallback.
  13982. if test "x$ac_cr" = x; then
  13983. eval ac_cr=\$\'\\r\'
  13984. fi
  13985. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13986. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13987. ac_cs_awk_cr='\r'
  13988. else
  13989. ac_cs_awk_cr=$ac_cr
  13990. fi
  13991. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13992. _ACEOF
  13993. {
  13994. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13995. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13996. echo "_ACEOF"
  13997. } >conf$$subs.sh ||
  13998. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13999. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14000. ac_delim='%!_!# '
  14001. for ac_last_try in false false false false false :; do
  14002. . ./conf$$subs.sh ||
  14003. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14004. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14005. if test $ac_delim_n = $ac_delim_num; then
  14006. break
  14007. elif $ac_last_try; then
  14008. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14009. else
  14010. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14011. fi
  14012. done
  14013. rm -f conf$$subs.sh
  14014. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14015. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14016. _ACEOF
  14017. sed -n '
  14018. h
  14019. s/^/S["/; s/!.*/"]=/
  14020. p
  14021. g
  14022. s/^[^!]*!//
  14023. :repl
  14024. t repl
  14025. s/'"$ac_delim"'$//
  14026. t delim
  14027. :nl
  14028. h
  14029. s/\(.\{148\}\).*/\1/
  14030. t more1
  14031. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14032. p
  14033. n
  14034. b repl
  14035. :more1
  14036. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14037. p
  14038. g
  14039. s/.\{148\}//
  14040. t nl
  14041. :delim
  14042. h
  14043. s/\(.\{148\}\).*/\1/
  14044. t more2
  14045. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14046. p
  14047. b
  14048. :more2
  14049. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14050. p
  14051. g
  14052. s/.\{148\}//
  14053. t delim
  14054. ' <conf$$subs.awk | sed '
  14055. /^[^""]/{
  14056. N
  14057. s/\n//
  14058. }
  14059. ' >>$CONFIG_STATUS || ac_write_fail=1
  14060. rm -f conf$$subs.awk
  14061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14062. _ACAWK
  14063. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14064. for (key in S) S_is_set[key] = 1
  14065. FS = ""
  14066. }
  14067. {
  14068. line = $ 0
  14069. nfields = split(line, field, "@")
  14070. substed = 0
  14071. len = length(field[1])
  14072. for (i = 2; i < nfields; i++) {
  14073. key = field[i]
  14074. keylen = length(key)
  14075. if (S_is_set[key]) {
  14076. value = S[key]
  14077. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14078. len += length(value) + length(field[++i])
  14079. substed = 1
  14080. } else
  14081. len += 1 + keylen
  14082. }
  14083. print line
  14084. }
  14085. _ACAWK
  14086. _ACEOF
  14087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14088. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14089. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14090. else
  14091. cat
  14092. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14093. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14094. _ACEOF
  14095. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14096. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14097. # trailing colons and then remove the whole line if VPATH becomes empty
  14098. # (actually we leave an empty line to preserve line numbers).
  14099. if test "x$srcdir" = x.; then
  14100. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14101. s/:*\$(srcdir):*/:/
  14102. s/:*\${srcdir}:*/:/
  14103. s/:*@srcdir@:*/:/
  14104. s/^\([^=]*=[ ]*\):*/\1/
  14105. s/:*$//
  14106. s/^[^=]*=[ ]*$//
  14107. }'
  14108. fi
  14109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14110. fi # test -n "$CONFIG_FILES"
  14111. # Set up the scripts for CONFIG_HEADERS section.
  14112. # No need to generate them if there are no CONFIG_HEADERS.
  14113. # This happens for instance with `./config.status Makefile'.
  14114. if test -n "$CONFIG_HEADERS"; then
  14115. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14116. BEGIN {
  14117. _ACEOF
  14118. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14119. # here-document in config.status, that substitutes the proper values into
  14120. # config.h.in to produce config.h.
  14121. # Create a delimiter string that does not exist in confdefs.h, to ease
  14122. # handling of long lines.
  14123. ac_delim='%!_!# '
  14124. for ac_last_try in false false :; do
  14125. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14126. if test -z "$ac_t"; then
  14127. break
  14128. elif $ac_last_try; then
  14129. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14130. else
  14131. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14132. fi
  14133. done
  14134. # For the awk script, D is an array of macro values keyed by name,
  14135. # likewise P contains macro parameters if any. Preserve backslash
  14136. # newline sequences.
  14137. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14138. sed -n '
  14139. s/.\{148\}/&'"$ac_delim"'/g
  14140. t rset
  14141. :rset
  14142. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14143. t def
  14144. d
  14145. :def
  14146. s/\\$//
  14147. t bsnl
  14148. s/["\\]/\\&/g
  14149. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14150. D["\1"]=" \3"/p
  14151. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14152. d
  14153. :bsnl
  14154. s/["\\]/\\&/g
  14155. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14156. D["\1"]=" \3\\\\\\n"\\/p
  14157. t cont
  14158. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14159. t cont
  14160. d
  14161. :cont
  14162. n
  14163. s/.\{148\}/&'"$ac_delim"'/g
  14164. t clear
  14165. :clear
  14166. s/\\$//
  14167. t bsnlc
  14168. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14169. d
  14170. :bsnlc
  14171. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14172. b cont
  14173. ' <confdefs.h | sed '
  14174. s/'"$ac_delim"'/"\\\
  14175. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14177. for (key in D) D_is_set[key] = 1
  14178. FS = ""
  14179. }
  14180. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14181. line = \$ 0
  14182. split(line, arg, " ")
  14183. if (arg[1] == "#") {
  14184. defundef = arg[2]
  14185. mac1 = arg[3]
  14186. } else {
  14187. defundef = substr(arg[1], 2)
  14188. mac1 = arg[2]
  14189. }
  14190. split(mac1, mac2, "(") #)
  14191. macro = mac2[1]
  14192. prefix = substr(line, 1, index(line, defundef) - 1)
  14193. if (D_is_set[macro]) {
  14194. # Preserve the white space surrounding the "#".
  14195. print prefix "define", macro P[macro] D[macro]
  14196. next
  14197. } else {
  14198. # Replace #undef with comments. This is necessary, for example,
  14199. # in the case of _POSIX_SOURCE, which is predefined and required
  14200. # on some systems where configure will not decide to define it.
  14201. if (defundef == "undef") {
  14202. print "/*", prefix defundef, macro, "*/"
  14203. next
  14204. }
  14205. }
  14206. }
  14207. { print }
  14208. _ACAWK
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14211. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14212. fi # test -n "$CONFIG_HEADERS"
  14213. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14214. shift
  14215. for ac_tag
  14216. do
  14217. case $ac_tag in
  14218. :[FHLC]) ac_mode=$ac_tag; continue;;
  14219. esac
  14220. case $ac_mode$ac_tag in
  14221. :[FHL]*:*);;
  14222. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14223. :[FH]-) ac_tag=-:-;;
  14224. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14225. esac
  14226. ac_save_IFS=$IFS
  14227. IFS=:
  14228. set x $ac_tag
  14229. IFS=$ac_save_IFS
  14230. shift
  14231. ac_file=$1
  14232. shift
  14233. case $ac_mode in
  14234. :L) ac_source=$1;;
  14235. :[FH])
  14236. ac_file_inputs=
  14237. for ac_f
  14238. do
  14239. case $ac_f in
  14240. -) ac_f="$tmp/stdin";;
  14241. *) # Look for the file first in the build tree, then in the source tree
  14242. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14243. # because $ac_f cannot contain `:'.
  14244. test -f "$ac_f" ||
  14245. case $ac_f in
  14246. [\\/$]*) false;;
  14247. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14248. esac ||
  14249. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14250. esac
  14251. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14252. as_fn_append ac_file_inputs " '$ac_f'"
  14253. done
  14254. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14255. # use $as_me), people would be surprised to read:
  14256. # /* config.h. Generated by config.status. */
  14257. configure_input='Generated from '`
  14258. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14259. `' by configure.'
  14260. if test x"$ac_file" != x-; then
  14261. configure_input="$ac_file. $configure_input"
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14263. $as_echo "$as_me: creating $ac_file" >&6;}
  14264. fi
  14265. # Neutralize special characters interpreted by sed in replacement strings.
  14266. case $configure_input in #(
  14267. *\&* | *\|* | *\\* )
  14268. ac_sed_conf_input=`$as_echo "$configure_input" |
  14269. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14270. *) ac_sed_conf_input=$configure_input;;
  14271. esac
  14272. case $ac_tag in
  14273. *:-:* | *:-) cat >"$tmp/stdin" \
  14274. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14275. esac
  14276. ;;
  14277. esac
  14278. ac_dir=`$as_dirname -- "$ac_file" ||
  14279. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14280. X"$ac_file" : 'X\(//\)[^/]' \| \
  14281. X"$ac_file" : 'X\(//\)$' \| \
  14282. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14283. $as_echo X"$ac_file" |
  14284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14285. s//\1/
  14286. q
  14287. }
  14288. /^X\(\/\/\)[^/].*/{
  14289. s//\1/
  14290. q
  14291. }
  14292. /^X\(\/\/\)$/{
  14293. s//\1/
  14294. q
  14295. }
  14296. /^X\(\/\).*/{
  14297. s//\1/
  14298. q
  14299. }
  14300. s/.*/./; q'`
  14301. as_dir="$ac_dir"; as_fn_mkdir_p
  14302. ac_builddir=.
  14303. case "$ac_dir" in
  14304. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14305. *)
  14306. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14307. # A ".." for each directory in $ac_dir_suffix.
  14308. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14309. case $ac_top_builddir_sub in
  14310. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14311. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14312. esac ;;
  14313. esac
  14314. ac_abs_top_builddir=$ac_pwd
  14315. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14316. # for backward compatibility:
  14317. ac_top_builddir=$ac_top_build_prefix
  14318. case $srcdir in
  14319. .) # We are building in place.
  14320. ac_srcdir=.
  14321. ac_top_srcdir=$ac_top_builddir_sub
  14322. ac_abs_top_srcdir=$ac_pwd ;;
  14323. [\\/]* | ?:[\\/]* ) # Absolute name.
  14324. ac_srcdir=$srcdir$ac_dir_suffix;
  14325. ac_top_srcdir=$srcdir
  14326. ac_abs_top_srcdir=$srcdir ;;
  14327. *) # Relative name.
  14328. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14329. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14330. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14331. esac
  14332. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14333. case $ac_mode in
  14334. :F)
  14335. #
  14336. # CONFIG_FILE
  14337. #
  14338. case $INSTALL in
  14339. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14340. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14341. esac
  14342. ac_MKDIR_P=$MKDIR_P
  14343. case $MKDIR_P in
  14344. [\\/$]* | ?:[\\/]* ) ;;
  14345. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14346. esac
  14347. _ACEOF
  14348. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14349. # If the template does not know about datarootdir, expand it.
  14350. # FIXME: This hack should be removed a few years after 2.60.
  14351. ac_datarootdir_hack=; ac_datarootdir_seen=
  14352. ac_sed_dataroot='
  14353. /datarootdir/ {
  14354. p
  14355. q
  14356. }
  14357. /@datadir@/p
  14358. /@docdir@/p
  14359. /@infodir@/p
  14360. /@localedir@/p
  14361. /@mandir@/p'
  14362. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14363. *datarootdir*) ac_datarootdir_seen=yes;;
  14364. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14366. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14367. _ACEOF
  14368. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14369. ac_datarootdir_hack='
  14370. s&@datadir@&$datadir&g
  14371. s&@docdir@&$docdir&g
  14372. s&@infodir@&$infodir&g
  14373. s&@localedir@&$localedir&g
  14374. s&@mandir@&$mandir&g
  14375. s&\\\${datarootdir}&$datarootdir&g' ;;
  14376. esac
  14377. _ACEOF
  14378. # Neutralize VPATH when `$srcdir' = `.'.
  14379. # Shell code in configure.ac might set extrasub.
  14380. # FIXME: do we really want to maintain this feature?
  14381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14382. ac_sed_extra="$ac_vpsub
  14383. $extrasub
  14384. _ACEOF
  14385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14386. :t
  14387. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14388. s|@configure_input@|$ac_sed_conf_input|;t t
  14389. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14390. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14391. s&@srcdir@&$ac_srcdir&;t t
  14392. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14393. s&@top_srcdir@&$ac_top_srcdir&;t t
  14394. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14395. s&@builddir@&$ac_builddir&;t t
  14396. s&@abs_builddir@&$ac_abs_builddir&;t t
  14397. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14398. s&@INSTALL@&$ac_INSTALL&;t t
  14399. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14400. $ac_datarootdir_hack
  14401. "
  14402. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14403. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14404. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14405. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14406. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14408. which seems to be undefined. Please make sure it is defined." >&5
  14409. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14410. which seems to be undefined. Please make sure it is defined." >&2;}
  14411. rm -f "$tmp/stdin"
  14412. case $ac_file in
  14413. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14414. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14415. esac \
  14416. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14417. ;;
  14418. :H)
  14419. #
  14420. # CONFIG_HEADER
  14421. #
  14422. if test x"$ac_file" != x-; then
  14423. {
  14424. $as_echo "/* $configure_input */" \
  14425. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14426. } >"$tmp/config.h" \
  14427. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14428. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14430. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14431. else
  14432. rm -f "$ac_file"
  14433. mv "$tmp/config.h" "$ac_file" \
  14434. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14435. fi
  14436. else
  14437. $as_echo "/* $configure_input */" \
  14438. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14439. || as_fn_error "could not create -" "$LINENO" 5
  14440. fi
  14441. # Compute "$ac_file"'s index in $config_headers.
  14442. _am_arg="$ac_file"
  14443. _am_stamp_count=1
  14444. for _am_header in $config_headers :; do
  14445. case $_am_header in
  14446. $_am_arg | $_am_arg:* )
  14447. break ;;
  14448. * )
  14449. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14450. esac
  14451. done
  14452. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14453. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14454. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14455. X"$_am_arg" : 'X\(//\)$' \| \
  14456. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14457. $as_echo X"$_am_arg" |
  14458. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14459. s//\1/
  14460. q
  14461. }
  14462. /^X\(\/\/\)[^/].*/{
  14463. s//\1/
  14464. q
  14465. }
  14466. /^X\(\/\/\)$/{
  14467. s//\1/
  14468. q
  14469. }
  14470. /^X\(\/\).*/{
  14471. s//\1/
  14472. q
  14473. }
  14474. s/.*/./; q'`/stamp-h$_am_stamp_count
  14475. ;;
  14476. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14477. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14478. ;;
  14479. esac
  14480. case $ac_file$ac_mode in
  14481. "default-1":C)
  14482. # Only add multilib support code if we just rebuilt the top-level
  14483. # Makefile.
  14484. case " $CONFIG_FILES " in
  14485. *" Makefile "*)
  14486. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14487. ;;
  14488. esac ;;
  14489. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14490. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14491. # are listed without --file. Let's play safe and only enable the eval
  14492. # if we detect the quoting.
  14493. case $CONFIG_FILES in
  14494. *\'*) eval set x "$CONFIG_FILES" ;;
  14495. *) set x $CONFIG_FILES ;;
  14496. esac
  14497. shift
  14498. for mf
  14499. do
  14500. # Strip MF so we end up with the name of the file.
  14501. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14502. # Check whether this is an Automake generated Makefile or not.
  14503. # We used to match only the files named `Makefile.in', but
  14504. # some people rename them; so instead we look at the file content.
  14505. # Grep'ing the first line is not enough: some people post-process
  14506. # each Makefile.in and add a new line on top of each file to say so.
  14507. # Grep'ing the whole file is not good either: AIX grep has a line
  14508. # limit of 2048, but all sed's we know have understand at least 4000.
  14509. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14510. dirpart=`$as_dirname -- "$mf" ||
  14511. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14512. X"$mf" : 'X\(//\)[^/]' \| \
  14513. X"$mf" : 'X\(//\)$' \| \
  14514. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14515. $as_echo X"$mf" |
  14516. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14517. s//\1/
  14518. q
  14519. }
  14520. /^X\(\/\/\)[^/].*/{
  14521. s//\1/
  14522. q
  14523. }
  14524. /^X\(\/\/\)$/{
  14525. s//\1/
  14526. q
  14527. }
  14528. /^X\(\/\).*/{
  14529. s//\1/
  14530. q
  14531. }
  14532. s/.*/./; q'`
  14533. else
  14534. continue
  14535. fi
  14536. # Extract the definition of DEPDIR, am__include, and am__quote
  14537. # from the Makefile without running `make'.
  14538. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14539. test -z "$DEPDIR" && continue
  14540. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14541. test -z "am__include" && continue
  14542. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14543. # When using ansi2knr, U may be empty or an underscore; expand it
  14544. U=`sed -n 's/^U = //p' < "$mf"`
  14545. # Find all dependency output files, they are included files with
  14546. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14547. # simplest approach to changing $(DEPDIR) to its actual value in the
  14548. # expansion.
  14549. for file in `sed -n "
  14550. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14551. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14552. # Make sure the directory exists.
  14553. test -f "$dirpart/$file" && continue
  14554. fdir=`$as_dirname -- "$file" ||
  14555. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14556. X"$file" : 'X\(//\)[^/]' \| \
  14557. X"$file" : 'X\(//\)$' \| \
  14558. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14559. $as_echo X"$file" |
  14560. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14561. s//\1/
  14562. q
  14563. }
  14564. /^X\(\/\/\)[^/].*/{
  14565. s//\1/
  14566. q
  14567. }
  14568. /^X\(\/\/\)$/{
  14569. s//\1/
  14570. q
  14571. }
  14572. /^X\(\/\).*/{
  14573. s//\1/
  14574. q
  14575. }
  14576. s/.*/./; q'`
  14577. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14578. # echo "creating $dirpart/$file"
  14579. echo '# dummy' > "$dirpart/$file"
  14580. done
  14581. done
  14582. }
  14583. ;;
  14584. "libtool":C)
  14585. # See if we are running on zsh, and set the options which allow our
  14586. # commands through without removal of \ escapes.
  14587. if test -n "${ZSH_VERSION+set}" ; then
  14588. setopt NO_GLOB_SUBST
  14589. fi
  14590. cfgfile="${ofile}T"
  14591. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14592. $RM "$cfgfile"
  14593. cat <<_LT_EOF >> "$cfgfile"
  14594. #! $SHELL
  14595. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14596. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14597. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14598. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14599. #
  14600. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14601. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14602. # Written by Gordon Matzigkeit, 1996
  14603. #
  14604. # This file is part of GNU Libtool.
  14605. #
  14606. # GNU Libtool is free software; you can redistribute it and/or
  14607. # modify it under the terms of the GNU General Public License as
  14608. # published by the Free Software Foundation; either version 2 of
  14609. # the License, or (at your option) any later version.
  14610. #
  14611. # As a special exception to the GNU General Public License,
  14612. # if you distribute this file as part of a program or library that
  14613. # is built using GNU Libtool, you may include this file under the
  14614. # same distribution terms that you use for the rest of that program.
  14615. #
  14616. # GNU Libtool is distributed in the hope that it will be useful,
  14617. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14618. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14619. # GNU General Public License for more details.
  14620. #
  14621. # You should have received a copy of the GNU General Public License
  14622. # along with GNU Libtool; see the file COPYING. If not, a copy
  14623. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14624. # obtained by writing to the Free Software Foundation, Inc.,
  14625. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14626. # The names of the tagged configurations supported by this script.
  14627. available_tags=""
  14628. # ### BEGIN LIBTOOL CONFIG
  14629. # Which release of libtool.m4 was used?
  14630. macro_version=$macro_version
  14631. macro_revision=$macro_revision
  14632. # Whether or not to build shared libraries.
  14633. build_libtool_libs=$enable_shared
  14634. # Whether or not to build static libraries.
  14635. build_old_libs=$enable_static
  14636. # What type of objects to build.
  14637. pic_mode=$pic_mode
  14638. # Whether or not to optimize for fast installation.
  14639. fast_install=$enable_fast_install
  14640. # Shell to use when invoking shell scripts.
  14641. SHELL=$lt_SHELL
  14642. # An echo program that protects backslashes.
  14643. ECHO=$lt_ECHO
  14644. # The host system.
  14645. host_alias=$host_alias
  14646. host=$host
  14647. host_os=$host_os
  14648. # The build system.
  14649. build_alias=$build_alias
  14650. build=$build
  14651. build_os=$build_os
  14652. # A sed program that does not truncate output.
  14653. SED=$lt_SED
  14654. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14655. Xsed="\$SED -e 1s/^X//"
  14656. # A grep program that handles long lines.
  14657. GREP=$lt_GREP
  14658. # An ERE matcher.
  14659. EGREP=$lt_EGREP
  14660. # A literal string matcher.
  14661. FGREP=$lt_FGREP
  14662. # A BSD- or MS-compatible name lister.
  14663. NM=$lt_NM
  14664. # Whether we need soft or hard links.
  14665. LN_S=$lt_LN_S
  14666. # What is the maximum length of a command?
  14667. max_cmd_len=$max_cmd_len
  14668. # Object file suffix (normally "o").
  14669. objext=$ac_objext
  14670. # Executable file suffix (normally "").
  14671. exeext=$exeext
  14672. # whether the shell understands "unset".
  14673. lt_unset=$lt_unset
  14674. # turn spaces into newlines.
  14675. SP2NL=$lt_lt_SP2NL
  14676. # turn newlines into spaces.
  14677. NL2SP=$lt_lt_NL2SP
  14678. # An object symbol dumper.
  14679. OBJDUMP=$lt_OBJDUMP
  14680. # Method to check whether dependent libraries are shared objects.
  14681. deplibs_check_method=$lt_deplibs_check_method
  14682. # Command to use when deplibs_check_method == "file_magic".
  14683. file_magic_cmd=$lt_file_magic_cmd
  14684. # The archiver.
  14685. AR=$lt_AR
  14686. AR_FLAGS=$lt_AR_FLAGS
  14687. # A symbol stripping program.
  14688. STRIP=$lt_STRIP
  14689. # Commands used to install an old-style archive.
  14690. RANLIB=$lt_RANLIB
  14691. old_postinstall_cmds=$lt_old_postinstall_cmds
  14692. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14693. # Whether to use a lock for old archive extraction.
  14694. lock_old_archive_extraction=$lock_old_archive_extraction
  14695. # A C compiler.
  14696. LTCC=$lt_CC
  14697. # LTCC compiler flags.
  14698. LTCFLAGS=$lt_CFLAGS
  14699. # Take the output of nm and produce a listing of raw symbols and C names.
  14700. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14701. # Transform the output of nm in a proper C declaration.
  14702. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14703. # Transform the output of nm in a C name address pair.
  14704. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14705. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14706. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14707. # The name of the directory that contains temporary libtool files.
  14708. objdir=$objdir
  14709. # Used to examine libraries when file_magic_cmd begins with "file".
  14710. MAGIC_CMD=$MAGIC_CMD
  14711. # Must we lock files when doing compilation?
  14712. need_locks=$lt_need_locks
  14713. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14714. DSYMUTIL=$lt_DSYMUTIL
  14715. # Tool to change global to local symbols on Mac OS X.
  14716. NMEDIT=$lt_NMEDIT
  14717. # Tool to manipulate fat objects and archives on Mac OS X.
  14718. LIPO=$lt_LIPO
  14719. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14720. OTOOL=$lt_OTOOL
  14721. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14722. OTOOL64=$lt_OTOOL64
  14723. # Old archive suffix (normally "a").
  14724. libext=$libext
  14725. # Shared library suffix (normally ".so").
  14726. shrext_cmds=$lt_shrext_cmds
  14727. # The commands to extract the exported symbol list from a shared archive.
  14728. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14729. # Variables whose values should be saved in libtool wrapper scripts and
  14730. # restored at link time.
  14731. variables_saved_for_relink=$lt_variables_saved_for_relink
  14732. # Do we need the "lib" prefix for modules?
  14733. need_lib_prefix=$need_lib_prefix
  14734. # Do we need a version for libraries?
  14735. need_version=$need_version
  14736. # Library versioning type.
  14737. version_type=$version_type
  14738. # Shared library runtime path variable.
  14739. runpath_var=$runpath_var
  14740. # Shared library path variable.
  14741. shlibpath_var=$shlibpath_var
  14742. # Is shlibpath searched before the hard-coded library search path?
  14743. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14744. # Format of library name prefix.
  14745. libname_spec=$lt_libname_spec
  14746. # List of archive names. First name is the real one, the rest are links.
  14747. # The last name is the one that the linker finds with -lNAME
  14748. library_names_spec=$lt_library_names_spec
  14749. # The coded name of the library, if different from the real name.
  14750. soname_spec=$lt_soname_spec
  14751. # Permission mode override for installation of shared libraries.
  14752. install_override_mode=$lt_install_override_mode
  14753. # Command to use after installation of a shared archive.
  14754. postinstall_cmds=$lt_postinstall_cmds
  14755. # Command to use after uninstallation of a shared archive.
  14756. postuninstall_cmds=$lt_postuninstall_cmds
  14757. # Commands used to finish a libtool library installation in a directory.
  14758. finish_cmds=$lt_finish_cmds
  14759. # As "finish_cmds", except a single script fragment to be evaled but
  14760. # not shown.
  14761. finish_eval=$lt_finish_eval
  14762. # Whether we should hardcode library paths into libraries.
  14763. hardcode_into_libs=$hardcode_into_libs
  14764. # Compile-time system search path for libraries.
  14765. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14766. # Run-time system search path for libraries.
  14767. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14768. # Whether dlopen is supported.
  14769. dlopen_support=$enable_dlopen
  14770. # Whether dlopen of programs is supported.
  14771. dlopen_self=$enable_dlopen_self
  14772. # Whether dlopen of statically linked programs is supported.
  14773. dlopen_self_static=$enable_dlopen_self_static
  14774. # Commands to strip libraries.
  14775. old_striplib=$lt_old_striplib
  14776. striplib=$lt_striplib
  14777. # The linker used to build libraries.
  14778. LD=$lt_LD
  14779. # How to create reloadable object files.
  14780. reload_flag=$lt_reload_flag
  14781. reload_cmds=$lt_reload_cmds
  14782. # Commands used to build an old-style archive.
  14783. old_archive_cmds=$lt_old_archive_cmds
  14784. # A language specific compiler.
  14785. CC=$lt_compiler
  14786. # Is the compiler the GNU compiler?
  14787. with_gcc=$GCC
  14788. # Compiler flag to turn off builtin functions.
  14789. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14790. # How to pass a linker flag through the compiler.
  14791. wl=$lt_lt_prog_compiler_wl
  14792. # Additional compiler flags for building library objects.
  14793. pic_flag=$lt_lt_prog_compiler_pic
  14794. # Compiler flag to prevent dynamic linking.
  14795. link_static_flag=$lt_lt_prog_compiler_static
  14796. # Does compiler simultaneously support -c and -o options?
  14797. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14798. # Whether or not to add -lc for building shared libraries.
  14799. build_libtool_need_lc=$archive_cmds_need_lc
  14800. # Whether or not to disallow shared libs when runtime libs are static.
  14801. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14802. # Compiler flag to allow reflexive dlopens.
  14803. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14804. # Compiler flag to generate shared objects directly from archives.
  14805. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14806. # Whether the compiler copes with passing no objects directly.
  14807. compiler_needs_object=$lt_compiler_needs_object
  14808. # Create an old-style archive from a shared archive.
  14809. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14810. # Create a temporary old-style archive to link instead of a shared archive.
  14811. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14812. # Commands used to build a shared archive.
  14813. archive_cmds=$lt_archive_cmds
  14814. archive_expsym_cmds=$lt_archive_expsym_cmds
  14815. # Commands used to build a loadable module if different from building
  14816. # a shared archive.
  14817. module_cmds=$lt_module_cmds
  14818. module_expsym_cmds=$lt_module_expsym_cmds
  14819. # Whether we are building with GNU ld or not.
  14820. with_gnu_ld=$lt_with_gnu_ld
  14821. # Flag that allows shared libraries with undefined symbols to be built.
  14822. allow_undefined_flag=$lt_allow_undefined_flag
  14823. # Flag that enforces no undefined symbols.
  14824. no_undefined_flag=$lt_no_undefined_flag
  14825. # Flag to hardcode \$libdir into a binary during linking.
  14826. # This must work even if \$libdir does not exist
  14827. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14828. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14829. # during linking. This must work even if \$libdir does not exist.
  14830. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14831. # Whether we need a single "-rpath" flag with a separated argument.
  14832. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14833. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14834. # DIR into the resulting binary.
  14835. hardcode_direct=$hardcode_direct
  14836. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14837. # DIR into the resulting binary and the resulting library dependency is
  14838. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14839. # library is relocated.
  14840. hardcode_direct_absolute=$hardcode_direct_absolute
  14841. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14842. # into the resulting binary.
  14843. hardcode_minus_L=$hardcode_minus_L
  14844. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14845. # into the resulting binary.
  14846. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14847. # Set to "yes" if building a shared library automatically hardcodes DIR
  14848. # into the library and all subsequent libraries and executables linked
  14849. # against it.
  14850. hardcode_automatic=$hardcode_automatic
  14851. # Set to yes if linker adds runtime paths of dependent libraries
  14852. # to runtime path list.
  14853. inherit_rpath=$inherit_rpath
  14854. # Whether libtool must link a program against all its dependency libraries.
  14855. link_all_deplibs=$link_all_deplibs
  14856. # Fix the shell variable \$srcfile for the compiler.
  14857. fix_srcfile_path=$lt_fix_srcfile_path
  14858. # Set to "yes" if exported symbols are required.
  14859. always_export_symbols=$always_export_symbols
  14860. # The commands to list exported symbols.
  14861. export_symbols_cmds=$lt_export_symbols_cmds
  14862. # Symbols that should not be listed in the preloaded symbols.
  14863. exclude_expsyms=$lt_exclude_expsyms
  14864. # Symbols that must always be exported.
  14865. include_expsyms=$lt_include_expsyms
  14866. # Commands necessary for linking programs (against libraries) with templates.
  14867. prelink_cmds=$lt_prelink_cmds
  14868. # Specify filename containing input files.
  14869. file_list_spec=$lt_file_list_spec
  14870. # How to hardcode a shared library path into an executable.
  14871. hardcode_action=$hardcode_action
  14872. # ### END LIBTOOL CONFIG
  14873. _LT_EOF
  14874. case $host_os in
  14875. aix3*)
  14876. cat <<\_LT_EOF >> "$cfgfile"
  14877. # AIX sometimes has problems with the GCC collect2 program. For some
  14878. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14879. # vanish in a puff of smoke.
  14880. if test "X${COLLECT_NAMES+set}" != Xset; then
  14881. COLLECT_NAMES=
  14882. export COLLECT_NAMES
  14883. fi
  14884. _LT_EOF
  14885. ;;
  14886. esac
  14887. ltmain="$ac_aux_dir/ltmain.sh"
  14888. # We use sed instead of cat because bash on DJGPP gets confused if
  14889. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14890. # text mode, it properly converts lines to CR/LF. This bash problem
  14891. # is reportedly fixed, but why not run on old versions too?
  14892. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14893. || (rm -f "$cfgfile"; exit 1)
  14894. case $xsi_shell in
  14895. yes)
  14896. cat << \_LT_EOF >> "$cfgfile"
  14897. # func_dirname file append nondir_replacement
  14898. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14899. # otherwise set result to NONDIR_REPLACEMENT.
  14900. func_dirname ()
  14901. {
  14902. case ${1} in
  14903. */*) func_dirname_result="${1%/*}${2}" ;;
  14904. * ) func_dirname_result="${3}" ;;
  14905. esac
  14906. }
  14907. # func_basename file
  14908. func_basename ()
  14909. {
  14910. func_basename_result="${1##*/}"
  14911. }
  14912. # func_dirname_and_basename file append nondir_replacement
  14913. # perform func_basename and func_dirname in a single function
  14914. # call:
  14915. # dirname: Compute the dirname of FILE. If nonempty,
  14916. # add APPEND to the result, otherwise set result
  14917. # to NONDIR_REPLACEMENT.
  14918. # value returned in "$func_dirname_result"
  14919. # basename: Compute filename of FILE.
  14920. # value retuned in "$func_basename_result"
  14921. # Implementation must be kept synchronized with func_dirname
  14922. # and func_basename. For efficiency, we do not delegate to
  14923. # those functions but instead duplicate the functionality here.
  14924. func_dirname_and_basename ()
  14925. {
  14926. case ${1} in
  14927. */*) func_dirname_result="${1%/*}${2}" ;;
  14928. * ) func_dirname_result="${3}" ;;
  14929. esac
  14930. func_basename_result="${1##*/}"
  14931. }
  14932. # func_stripname prefix suffix name
  14933. # strip PREFIX and SUFFIX off of NAME.
  14934. # PREFIX and SUFFIX must not contain globbing or regex special
  14935. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14936. # dot (in which case that matches only a dot).
  14937. func_stripname ()
  14938. {
  14939. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14940. # positional parameters, so assign one to ordinary parameter first.
  14941. func_stripname_result=${3}
  14942. func_stripname_result=${func_stripname_result#"${1}"}
  14943. func_stripname_result=${func_stripname_result%"${2}"}
  14944. }
  14945. # func_opt_split
  14946. func_opt_split ()
  14947. {
  14948. func_opt_split_opt=${1%%=*}
  14949. func_opt_split_arg=${1#*=}
  14950. }
  14951. # func_lo2o object
  14952. func_lo2o ()
  14953. {
  14954. case ${1} in
  14955. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14956. *) func_lo2o_result=${1} ;;
  14957. esac
  14958. }
  14959. # func_xform libobj-or-source
  14960. func_xform ()
  14961. {
  14962. func_xform_result=${1%.*}.lo
  14963. }
  14964. # func_arith arithmetic-term...
  14965. func_arith ()
  14966. {
  14967. func_arith_result=$(( $* ))
  14968. }
  14969. # func_len string
  14970. # STRING may not start with a hyphen.
  14971. func_len ()
  14972. {
  14973. func_len_result=${#1}
  14974. }
  14975. _LT_EOF
  14976. ;;
  14977. *) # Bourne compatible functions.
  14978. cat << \_LT_EOF >> "$cfgfile"
  14979. # func_dirname file append nondir_replacement
  14980. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14981. # otherwise set result to NONDIR_REPLACEMENT.
  14982. func_dirname ()
  14983. {
  14984. # Extract subdirectory from the argument.
  14985. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14986. if test "X$func_dirname_result" = "X${1}"; then
  14987. func_dirname_result="${3}"
  14988. else
  14989. func_dirname_result="$func_dirname_result${2}"
  14990. fi
  14991. }
  14992. # func_basename file
  14993. func_basename ()
  14994. {
  14995. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14996. }
  14997. # func_stripname prefix suffix name
  14998. # strip PREFIX and SUFFIX off of NAME.
  14999. # PREFIX and SUFFIX must not contain globbing or regex special
  15000. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15001. # dot (in which case that matches only a dot).
  15002. # func_strip_suffix prefix name
  15003. func_stripname ()
  15004. {
  15005. case ${2} in
  15006. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15007. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15008. esac
  15009. }
  15010. # sed scripts:
  15011. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15012. my_sed_long_arg='1s/^-[^=]*=//'
  15013. # func_opt_split
  15014. func_opt_split ()
  15015. {
  15016. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15017. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15018. }
  15019. # func_lo2o object
  15020. func_lo2o ()
  15021. {
  15022. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15023. }
  15024. # func_xform libobj-or-source
  15025. func_xform ()
  15026. {
  15027. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15028. }
  15029. # func_arith arithmetic-term...
  15030. func_arith ()
  15031. {
  15032. func_arith_result=`expr "$@"`
  15033. }
  15034. # func_len string
  15035. # STRING may not start with a hyphen.
  15036. func_len ()
  15037. {
  15038. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15039. }
  15040. _LT_EOF
  15041. esac
  15042. case $lt_shell_append in
  15043. yes)
  15044. cat << \_LT_EOF >> "$cfgfile"
  15045. # func_append var value
  15046. # Append VALUE to the end of shell variable VAR.
  15047. func_append ()
  15048. {
  15049. eval "$1+=\$2"
  15050. }
  15051. _LT_EOF
  15052. ;;
  15053. *)
  15054. cat << \_LT_EOF >> "$cfgfile"
  15055. # func_append var value
  15056. # Append VALUE to the end of shell variable VAR.
  15057. func_append ()
  15058. {
  15059. eval "$1=\$$1\$2"
  15060. }
  15061. _LT_EOF
  15062. ;;
  15063. esac
  15064. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15065. || (rm -f "$cfgfile"; exit 1)
  15066. mv -f "$cfgfile" "$ofile" ||
  15067. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15068. chmod +x "$ofile"
  15069. ;;
  15070. "gstdint.h":C)
  15071. if test "$GCC" = yes; then
  15072. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  15073. else
  15074. echo "/* generated for $CC */" > tmp-stdint.h
  15075. fi
  15076. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15077. #ifndef GCC_GENERATED_STDINT_H
  15078. #define GCC_GENERATED_STDINT_H 1
  15079. #include <sys/types.h>
  15080. EOF
  15081. if test "$acx_cv_header_stdint" != stdint.h; then
  15082. echo "#include <stddef.h>" >> tmp-stdint.h
  15083. fi
  15084. if test "$acx_cv_header_stdint" != stddef.h; then
  15085. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  15086. fi
  15087. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15088. /* glibc uses these symbols as guards to prevent redefinitions. */
  15089. #ifdef __int8_t_defined
  15090. #define _INT8_T
  15091. #define _INT16_T
  15092. #define _INT32_T
  15093. #endif
  15094. #ifdef __uint32_t_defined
  15095. #define _UINT32_T
  15096. #endif
  15097. EOF
  15098. # ----------------- done header, emit basic int types -------------
  15099. if test "$acx_cv_header_stdint" = stddef.h; then
  15100. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15101. #ifndef _UINT8_T
  15102. #define _UINT8_T
  15103. #ifndef __uint8_t_defined
  15104. #define __uint8_t_defined
  15105. #ifndef uint8_t
  15106. typedef unsigned $acx_cv_type_int8_t uint8_t;
  15107. #endif
  15108. #endif
  15109. #endif
  15110. #ifndef _UINT16_T
  15111. #define _UINT16_T
  15112. #ifndef __uint16_t_defined
  15113. #define __uint16_t_defined
  15114. #ifndef uint16_t
  15115. typedef unsigned $acx_cv_type_int16_t uint16_t;
  15116. #endif
  15117. #endif
  15118. #endif
  15119. #ifndef _UINT32_T
  15120. #define _UINT32_T
  15121. #ifndef __uint32_t_defined
  15122. #define __uint32_t_defined
  15123. #ifndef uint32_t
  15124. typedef unsigned $acx_cv_type_int32_t uint32_t;
  15125. #endif
  15126. #endif
  15127. #endif
  15128. #ifndef _INT8_T
  15129. #define _INT8_T
  15130. #ifndef __int8_t_defined
  15131. #define __int8_t_defined
  15132. #ifndef int8_t
  15133. typedef $acx_cv_type_int8_t int8_t;
  15134. #endif
  15135. #endif
  15136. #endif
  15137. #ifndef _INT16_T
  15138. #define _INT16_T
  15139. #ifndef __int16_t_defined
  15140. #define __int16_t_defined
  15141. #ifndef int16_t
  15142. typedef $acx_cv_type_int16_t int16_t;
  15143. #endif
  15144. #endif
  15145. #endif
  15146. #ifndef _INT32_T
  15147. #define _INT32_T
  15148. #ifndef __int32_t_defined
  15149. #define __int32_t_defined
  15150. #ifndef int32_t
  15151. typedef $acx_cv_type_int32_t int32_t;
  15152. #endif
  15153. #endif
  15154. #endif
  15155. EOF
  15156. elif test "$ac_cv_type_u_int32_t" = yes; then
  15157. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15158. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  15159. #ifndef _INT8_T
  15160. #define _INT8_T
  15161. #endif
  15162. #ifndef _INT16_T
  15163. #define _INT16_T
  15164. #endif
  15165. #ifndef _INT32_T
  15166. #define _INT32_T
  15167. #endif
  15168. #ifndef _UINT8_T
  15169. #define _UINT8_T
  15170. #ifndef __uint8_t_defined
  15171. #define __uint8_t_defined
  15172. #ifndef uint8_t
  15173. typedef u_int8_t uint8_t;
  15174. #endif
  15175. #endif
  15176. #endif
  15177. #ifndef _UINT16_T
  15178. #define _UINT16_T
  15179. #ifndef __uint16_t_defined
  15180. #define __uint16_t_defined
  15181. #ifndef uint16_t
  15182. typedef u_int16_t uint16_t;
  15183. #endif
  15184. #endif
  15185. #endif
  15186. #ifndef _UINT32_T
  15187. #define _UINT32_T
  15188. #ifndef __uint32_t_defined
  15189. #define __uint32_t_defined
  15190. #ifndef uint32_t
  15191. typedef u_int32_t uint32_t;
  15192. #endif
  15193. #endif
  15194. #endif
  15195. EOF
  15196. else
  15197. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15198. /* Some systems have guard macros to prevent redefinitions, define them. */
  15199. #ifndef _INT8_T
  15200. #define _INT8_T
  15201. #endif
  15202. #ifndef _INT16_T
  15203. #define _INT16_T
  15204. #endif
  15205. #ifndef _INT32_T
  15206. #define _INT32_T
  15207. #endif
  15208. #ifndef _UINT8_T
  15209. #define _UINT8_T
  15210. #endif
  15211. #ifndef _UINT16_T
  15212. #define _UINT16_T
  15213. #endif
  15214. #ifndef _UINT32_T
  15215. #define _UINT32_T
  15216. #endif
  15217. EOF
  15218. fi
  15219. # ------------- done basic int types, emit int64_t types ------------
  15220. if test "$ac_cv_type_uint64_t" = yes; then
  15221. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15222. /* system headers have good uint64_t and int64_t */
  15223. #ifndef _INT64_T
  15224. #define _INT64_T
  15225. #endif
  15226. #ifndef _UINT64_T
  15227. #define _UINT64_T
  15228. #endif
  15229. EOF
  15230. elif test "$ac_cv_type_u_int64_t" = yes; then
  15231. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15232. /* system headers have an u_int64_t (and int64_t) */
  15233. #ifndef _INT64_T
  15234. #define _INT64_T
  15235. #endif
  15236. #ifndef _UINT64_T
  15237. #define _UINT64_T
  15238. #ifndef __uint64_t_defined
  15239. #define __uint64_t_defined
  15240. #ifndef uint64_t
  15241. typedef u_int64_t uint64_t;
  15242. #endif
  15243. #endif
  15244. #endif
  15245. EOF
  15246. elif test -n "$acx_cv_type_int64_t"; then
  15247. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15248. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  15249. #ifndef _INT64_T
  15250. #define _INT64_T
  15251. #ifndef int64_t
  15252. typedef $acx_cv_type_int64_t int64_t;
  15253. #endif
  15254. #endif
  15255. #ifndef _UINT64_T
  15256. #define _UINT64_T
  15257. #ifndef __uint64_t_defined
  15258. #define __uint64_t_defined
  15259. #ifndef uint64_t
  15260. typedef unsigned $acx_cv_type_int64_t uint64_t;
  15261. #endif
  15262. #endif
  15263. #endif
  15264. EOF
  15265. else
  15266. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15267. /* some common heuristics for int64_t, using compiler-specific tests */
  15268. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  15269. #ifndef _INT64_T
  15270. #define _INT64_T
  15271. #ifndef __int64_t_defined
  15272. #ifndef int64_t
  15273. typedef long long int64_t;
  15274. #endif
  15275. #endif
  15276. #endif
  15277. #ifndef _UINT64_T
  15278. #define _UINT64_T
  15279. #ifndef uint64_t
  15280. typedef unsigned long long uint64_t;
  15281. #endif
  15282. #endif
  15283. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  15284. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  15285. does not implement __extension__. But that compiler doesn't define
  15286. __GNUC_MINOR__. */
  15287. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  15288. # define __extension__
  15289. # endif
  15290. # ifndef _INT64_T
  15291. # define _INT64_T
  15292. # ifndef int64_t
  15293. __extension__ typedef long long int64_t;
  15294. # endif
  15295. # endif
  15296. # ifndef _UINT64_T
  15297. # define _UINT64_T
  15298. # ifndef uint64_t
  15299. __extension__ typedef unsigned long long uint64_t;
  15300. # endif
  15301. # endif
  15302. #elif !defined __STRICT_ANSI__
  15303. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  15304. # ifndef _INT64_T
  15305. # define _INT64_T
  15306. # ifndef int64_t
  15307. typedef __int64 int64_t;
  15308. # endif
  15309. # endif
  15310. # ifndef _UINT64_T
  15311. # define _UINT64_T
  15312. # ifndef uint64_t
  15313. typedef unsigned __int64 uint64_t;
  15314. # endif
  15315. # endif
  15316. # endif /* compiler */
  15317. #endif /* ANSI version */
  15318. EOF
  15319. fi
  15320. # ------------- done int64_t types, emit intptr types ------------
  15321. if test "$ac_cv_type_uintptr_t" != yes; then
  15322. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15323. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  15324. #ifndef __uintptr_t_defined
  15325. #ifndef uintptr_t
  15326. typedef u$acx_cv_type_intptr_t uintptr_t;
  15327. #endif
  15328. #endif
  15329. #ifndef __intptr_t_defined
  15330. #ifndef intptr_t
  15331. typedef $acx_cv_type_intptr_t intptr_t;
  15332. #endif
  15333. #endif
  15334. EOF
  15335. fi
  15336. # ------------- done intptr types, emit int_least types ------------
  15337. if test "$ac_cv_type_int_least32_t" != yes; then
  15338. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15339. /* Define int_least types */
  15340. typedef int8_t int_least8_t;
  15341. typedef int16_t int_least16_t;
  15342. typedef int32_t int_least32_t;
  15343. #ifdef _INT64_T
  15344. typedef int64_t int_least64_t;
  15345. #endif
  15346. typedef uint8_t uint_least8_t;
  15347. typedef uint16_t uint_least16_t;
  15348. typedef uint32_t uint_least32_t;
  15349. #ifdef _UINT64_T
  15350. typedef uint64_t uint_least64_t;
  15351. #endif
  15352. EOF
  15353. fi
  15354. # ------------- done intptr types, emit int_fast types ------------
  15355. if test "$ac_cv_type_int_fast32_t" != yes; then
  15356. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15357. /* Define int_fast types. short is often slow */
  15358. typedef int8_t int_fast8_t;
  15359. typedef int int_fast16_t;
  15360. typedef int32_t int_fast32_t;
  15361. #ifdef _INT64_T
  15362. typedef int64_t int_fast64_t;
  15363. #endif
  15364. typedef uint8_t uint_fast8_t;
  15365. typedef unsigned int uint_fast16_t;
  15366. typedef uint32_t uint_fast32_t;
  15367. #ifdef _UINT64_T
  15368. typedef uint64_t uint_fast64_t;
  15369. #endif
  15370. EOF
  15371. fi
  15372. if test "$ac_cv_type_uintmax_t" != yes; then
  15373. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15374. /* Define intmax based on what we found */
  15375. #ifndef intmax_t
  15376. #ifdef _INT64_T
  15377. typedef int64_t intmax_t;
  15378. #else
  15379. typedef long intmax_t;
  15380. #endif
  15381. #endif
  15382. #ifndef uintmax_t
  15383. #ifdef _UINT64_T
  15384. typedef uint64_t uintmax_t;
  15385. #else
  15386. typedef unsigned long uintmax_t;
  15387. #endif
  15388. #endif
  15389. EOF
  15390. fi
  15391. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15392. #endif /* GCC_GENERATED_STDINT_H */
  15393. EOF
  15394. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  15395. rm -f tmp-stdint.h
  15396. else
  15397. mv -f tmp-stdint.h gstdint.h
  15398. fi
  15399. ;;
  15400. esac
  15401. done # for ac_tag
  15402. as_fn_exit 0
  15403. _ACEOF
  15404. ac_clean_files=$ac_clean_files_save
  15405. test $ac_write_fail = 0 ||
  15406. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15407. # configure is writing to config.log, and then calls config.status.
  15408. # config.status does its own redirection, appending to config.log.
  15409. # Unfortunately, on DOS this fails, as config.log is still kept open
  15410. # by configure, so config.status won't be able to write to it; its
  15411. # output is simply discarded. So we exec the FD to /dev/null,
  15412. # effectively closing config.log, so it can be properly (re)opened and
  15413. # appended to by config.status. When coming back to configure, we
  15414. # need to make the FD available again.
  15415. if test "$no_create" != yes; then
  15416. ac_cs_success=:
  15417. ac_config_status_args=
  15418. test "$silent" = yes &&
  15419. ac_config_status_args="$ac_config_status_args --quiet"
  15420. exec 5>/dev/null
  15421. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15422. exec 5>>config.log
  15423. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15424. # would make configure fail if this is the last instruction.
  15425. $ac_cs_success || as_fn_exit $?
  15426. fi
  15427. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15429. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15430. fi