configure 599 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xf86-video-mach64 6.9.5.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  260. $0: about your system, including any error possibly output
  261. $0: before this message. Then install a modern shell, or
  262. $0: manually run the script under such a shell if you do
  263. $0: have one."
  264. fi
  265. exit 1
  266. fi
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. $as_echo X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else
  380. as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. }
  384. fi # as_fn_arith
  385. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  386. # ----------------------------------------
  387. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  388. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  389. # script with STATUS, using 1 if that was 0.
  390. as_fn_error ()
  391. {
  392. as_status=$1; test $as_status -eq 0 && as_status=1
  393. if test "$4"; then
  394. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  395. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  396. fi
  397. $as_echo "$as_me: error: $2" >&2
  398. as_fn_exit $as_status
  399. } # as_fn_error
  400. if expr a : '\(a\)' >/dev/null 2>&1 &&
  401. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  402. as_expr=expr
  403. else
  404. as_expr=false
  405. fi
  406. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  407. as_basename=basename
  408. else
  409. as_basename=false
  410. fi
  411. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  412. as_dirname=dirname
  413. else
  414. as_dirname=false
  415. fi
  416. as_me=`$as_basename -- "$0" ||
  417. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  418. X"$0" : 'X\(//\)$' \| \
  419. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  420. $as_echo X/"$0" |
  421. sed '/^.*\/\([^/][^/]*\)\/*$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\/\)$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\).*/{
  430. s//\1/
  431. q
  432. }
  433. s/.*/./; q'`
  434. # Avoid depending upon Character Ranges.
  435. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. as_cr_digits='0123456789'
  439. as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  445. sed -n '
  446. p
  447. /[$]LINENO/=
  448. ' <$as_myself |
  449. sed '
  450. s/[$]LINENO.*/&-/
  451. t lineno
  452. b
  453. :lineno
  454. N
  455. :loop
  456. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457. t loop
  458. s/-\n.*//
  459. ' >$as_me.lineno &&
  460. chmod +x "$as_me.lineno" ||
  461. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  463. # already done that, so ensure we don't try to do so again and fall
  464. # in an infinite loop. This has already happened in practice.
  465. _as_can_reexec=no; export _as_can_reexec
  466. # Don't try to exec as it changes $[0], causing all sort of problems
  467. # (the dirname of $[0] is not the place where we might find the
  468. # original and so on. Autoconf is especially sensitive to this).
  469. . "./$as_me.lineno"
  470. # Exit status is that of the last command.
  471. exit
  472. }
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in #(((((
  475. -n*)
  476. case `echo 'xy\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. xy) ECHO_C='\c';;
  479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. ECHO_T=' ';;
  481. esac;;
  482. *)
  483. ECHO_N='-n';;
  484. esac
  485. rm -f conf$$ conf$$.exe conf$$.file
  486. if test -d conf$$.dir; then
  487. rm -f conf$$.dir/conf$$.file
  488. else
  489. rm -f conf$$.dir
  490. mkdir conf$$.dir 2>/dev/null
  491. fi
  492. if (echo >conf$$.file) 2>/dev/null; then
  493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s='ln -s'
  495. # ... but there are two gotchas:
  496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498. # In both cases, we have to default to `cp -pR'.
  499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500. as_ln_s='cp -pR'
  501. elif ln conf$$.file conf$$ 2>/dev/null; then
  502. as_ln_s=ln
  503. else
  504. as_ln_s='cp -pR'
  505. fi
  506. else
  507. as_ln_s='cp -pR'
  508. fi
  509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510. rmdir conf$$.dir 2>/dev/null
  511. if mkdir -p . 2>/dev/null; then
  512. as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514. test -d ./-p && rmdir ./-p
  515. as_mkdir_p=false
  516. fi
  517. as_test_x='test -x'
  518. as_executable_p=as_fn_executable_p
  519. # Sed expression to map a string onto a valid CPP name.
  520. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  521. # Sed expression to map a string onto a valid variable name.
  522. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  523. SHELL=${CONFIG_SHELL-/bin/sh}
  524. test -n "$DJDIR" || exec 7<&0 </dev/null
  525. exec 6>&1
  526. # Name of the host.
  527. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  528. # so uname gets run too.
  529. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  530. #
  531. # Initializations.
  532. #
  533. ac_default_prefix=/usr/local
  534. ac_clean_files=
  535. ac_config_libobj_dir=.
  536. LIBOBJS=
  537. cross_compiling=no
  538. subdirs=
  539. MFLAGS=
  540. MAKEFLAGS=
  541. # Identity of this package.
  542. PACKAGE_NAME='xf86-video-mach64'
  543. PACKAGE_TARNAME='xf86-video-mach64'
  544. PACKAGE_VERSION='6.9.5'
  545. PACKAGE_STRING='xf86-video-mach64 6.9.5'
  546. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  547. PACKAGE_URL=''
  548. ac_unique_file="Makefile.am"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. DRIVER_NAME
  589. moduledir
  590. XSERVER_LIBPCIACCESS_FALSE
  591. XSERVER_LIBPCIACCESS_TRUE
  592. PCIACCESS_LIBS
  593. PCIACCESS_CFLAGS
  594. USE_EXA_FALSE
  595. USE_EXA_TRUE
  596. XAA_FALSE
  597. XAA_TRUE
  598. ATIMISC_TV_OUT_FALSE
  599. ATIMISC_TV_OUT_TRUE
  600. ATIMISC_DGA_FALSE
  601. ATIMISC_DGA_TRUE
  602. ATIMISC_CPIO_FALSE
  603. ATIMISC_CPIO_TRUE
  604. DRI_LIBS
  605. DRI_CFLAGS
  606. DRI_FALSE
  607. DRI_TRUE
  608. HAVE_XEXTPROTO_71_FALSE
  609. HAVE_XEXTPROTO_71_TRUE
  610. XEXT_LIBS
  611. XEXT_CFLAGS
  612. XORG_LIBS
  613. XORG_CFLAGS
  614. OTOOL64
  615. OTOOL
  616. LIPO
  617. NMEDIT
  618. DSYMUTIL
  619. MANIFEST_TOOL
  620. RANLIB
  621. ac_ct_AR
  622. AR
  623. DLLTOOL
  624. OBJDUMP
  625. LN_S
  626. NM
  627. ac_ct_DUMPBIN
  628. DUMPBIN
  629. LD
  630. FGREP
  631. LIBTOOL
  632. AM_BACKSLASH
  633. AM_DEFAULT_VERBOSITY
  634. AM_DEFAULT_V
  635. AM_V
  636. MAN_SUBSTS
  637. XORG_MAN_PAGE
  638. ADMIN_MAN_DIR
  639. DRIVER_MAN_DIR
  640. MISC_MAN_DIR
  641. FILE_MAN_DIR
  642. LIB_MAN_DIR
  643. APP_MAN_DIR
  644. ADMIN_MAN_SUFFIX
  645. DRIVER_MAN_SUFFIX
  646. MISC_MAN_SUFFIX
  647. FILE_MAN_SUFFIX
  648. LIB_MAN_SUFFIX
  649. APP_MAN_SUFFIX
  650. SED
  651. host_os
  652. host_vendor
  653. host_cpu
  654. host
  655. build_os
  656. build_vendor
  657. build_cpu
  658. build
  659. INSTALL_CMD
  660. PKG_CONFIG_LIBDIR
  661. PKG_CONFIG_PATH
  662. PKG_CONFIG
  663. CHANGELOG_CMD
  664. STRICT_CFLAGS
  665. CWARNFLAGS
  666. BASE_CFLAGS
  667. EGREP
  668. GREP
  669. CPP
  670. am__fastdepCC_FALSE
  671. am__fastdepCC_TRUE
  672. CCDEPMODE
  673. am__nodep
  674. AMDEPBACKSLASH
  675. AMDEP_FALSE
  676. AMDEP_TRUE
  677. am__quote
  678. am__include
  679. DEPDIR
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. MAINT
  688. MAINTAINER_MODE_FALSE
  689. MAINTAINER_MODE_TRUE
  690. am__untar
  691. am__tar
  692. AMTAR
  693. am__leading_dot
  694. SET_MAKE
  695. AWK
  696. mkdir_p
  697. MKDIR_P
  698. INSTALL_STRIP_PROGRAM
  699. STRIP
  700. install_sh
  701. MAKEINFO
  702. AUTOHEADER
  703. AUTOMAKE
  704. AUTOCONF
  705. ACLOCAL
  706. VERSION
  707. PACKAGE
  708. CYGPATH_W
  709. am__isrc
  710. INSTALL_DATA
  711. INSTALL_SCRIPT
  712. INSTALL_PROGRAM
  713. target_alias
  714. host_alias
  715. build_alias
  716. LIBS
  717. ECHO_T
  718. ECHO_N
  719. ECHO_C
  720. DEFS
  721. mandir
  722. localedir
  723. libdir
  724. psdir
  725. pdfdir
  726. dvidir
  727. htmldir
  728. infodir
  729. docdir
  730. oldincludedir
  731. includedir
  732. localstatedir
  733. sharedstatedir
  734. sysconfdir
  735. datadir
  736. datarootdir
  737. libexecdir
  738. sbindir
  739. bindir
  740. program_transform_name
  741. prefix
  742. exec_prefix
  743. PACKAGE_URL
  744. PACKAGE_BUGREPORT
  745. PACKAGE_STRING
  746. PACKAGE_VERSION
  747. PACKAGE_TARNAME
  748. PACKAGE_NAME
  749. PATH_SEPARATOR
  750. SHELL'
  751. ac_subst_files=''
  752. ac_user_opts='
  753. enable_option_checking
  754. enable_maintainer_mode
  755. enable_dependency_tracking
  756. enable_selective_werror
  757. enable_strict_compilation
  758. enable_silent_rules
  759. enable_static
  760. enable_shared
  761. with_pic
  762. enable_fast_install
  763. with_gnu_ld
  764. with_sysroot
  765. enable_libtool_lock
  766. with_xorg_module_dir
  767. enable_dri
  768. enable_exa
  769. enable_xaa
  770. '
  771. ac_precious_vars='build_alias
  772. host_alias
  773. target_alias
  774. CC
  775. CFLAGS
  776. LDFLAGS
  777. LIBS
  778. CPPFLAGS
  779. CPP
  780. PKG_CONFIG
  781. PKG_CONFIG_PATH
  782. PKG_CONFIG_LIBDIR
  783. XORG_CFLAGS
  784. XORG_LIBS
  785. XEXT_CFLAGS
  786. XEXT_LIBS
  787. DRI_CFLAGS
  788. DRI_LIBS
  789. PCIACCESS_CFLAGS
  790. PCIACCESS_LIBS'
  791. # Initialize some variables set by options.
  792. ac_init_help=
  793. ac_init_version=false
  794. ac_unrecognized_opts=
  795. ac_unrecognized_sep=
  796. # The variables have the same names as the options, with
  797. # dashes changed to underlines.
  798. cache_file=/dev/null
  799. exec_prefix=NONE
  800. no_create=
  801. no_recursion=
  802. prefix=NONE
  803. program_prefix=NONE
  804. program_suffix=NONE
  805. program_transform_name=s,x,x,
  806. silent=
  807. site=
  808. srcdir=
  809. verbose=
  810. x_includes=NONE
  811. x_libraries=NONE
  812. # Installation directory options.
  813. # These are left unexpanded so users can "make install exec_prefix=/foo"
  814. # and all the variables that are supposed to be based on exec_prefix
  815. # by default will actually change.
  816. # Use braces instead of parens because sh, perl, etc. also accept them.
  817. # (The list follows the same order as the GNU Coding Standards.)
  818. bindir='${exec_prefix}/bin'
  819. sbindir='${exec_prefix}/sbin'
  820. libexecdir='${exec_prefix}/libexec'
  821. datarootdir='${prefix}/share'
  822. datadir='${datarootdir}'
  823. sysconfdir='${prefix}/etc'
  824. sharedstatedir='${prefix}/com'
  825. localstatedir='${prefix}/var'
  826. includedir='${prefix}/include'
  827. oldincludedir='/usr/include'
  828. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  829. infodir='${datarootdir}/info'
  830. htmldir='${docdir}'
  831. dvidir='${docdir}'
  832. pdfdir='${docdir}'
  833. psdir='${docdir}'
  834. libdir='${exec_prefix}/lib'
  835. localedir='${datarootdir}/locale'
  836. mandir='${datarootdir}/man'
  837. ac_prev=
  838. ac_dashdash=
  839. for ac_option
  840. do
  841. # If the previous option needs an argument, assign it.
  842. if test -n "$ac_prev"; then
  843. eval $ac_prev=\$ac_option
  844. ac_prev=
  845. continue
  846. fi
  847. case $ac_option in
  848. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  849. *=) ac_optarg= ;;
  850. *) ac_optarg=yes ;;
  851. esac
  852. # Accept the important Cygnus configure options, so we can diagnose typos.
  853. case $ac_dashdash$ac_option in
  854. --)
  855. ac_dashdash=yes ;;
  856. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857. ac_prev=bindir ;;
  858. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859. bindir=$ac_optarg ;;
  860. -build | --build | --buil | --bui | --bu)
  861. ac_prev=build_alias ;;
  862. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  863. build_alias=$ac_optarg ;;
  864. -cache-file | --cache-file | --cache-fil | --cache-fi \
  865. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  866. ac_prev=cache_file ;;
  867. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  868. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  869. cache_file=$ac_optarg ;;
  870. --config-cache | -C)
  871. cache_file=config.cache ;;
  872. -datadir | --datadir | --datadi | --datad)
  873. ac_prev=datadir ;;
  874. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  875. datadir=$ac_optarg ;;
  876. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  877. | --dataroo | --dataro | --datar)
  878. ac_prev=datarootdir ;;
  879. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  880. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  881. datarootdir=$ac_optarg ;;
  882. -disable-* | --disable-*)
  883. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  886. as_fn_error $? "invalid feature name: $ac_useropt"
  887. ac_useropt_orig=$ac_useropt
  888. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  889. case $ac_user_opts in
  890. *"
  891. "enable_$ac_useropt"
  892. "*) ;;
  893. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  894. ac_unrecognized_sep=', ';;
  895. esac
  896. eval enable_$ac_useropt=no ;;
  897. -docdir | --docdir | --docdi | --doc | --do)
  898. ac_prev=docdir ;;
  899. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  900. docdir=$ac_optarg ;;
  901. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  902. ac_prev=dvidir ;;
  903. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  904. dvidir=$ac_optarg ;;
  905. -enable-* | --enable-*)
  906. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  907. # Reject names that are not valid shell variable names.
  908. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  909. as_fn_error $? "invalid feature name: $ac_useropt"
  910. ac_useropt_orig=$ac_useropt
  911. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  912. case $ac_user_opts in
  913. *"
  914. "enable_$ac_useropt"
  915. "*) ;;
  916. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  917. ac_unrecognized_sep=', ';;
  918. esac
  919. eval enable_$ac_useropt=\$ac_optarg ;;
  920. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  921. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  922. | --exec | --exe | --ex)
  923. ac_prev=exec_prefix ;;
  924. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  925. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  926. | --exec=* | --exe=* | --ex=*)
  927. exec_prefix=$ac_optarg ;;
  928. -gas | --gas | --ga | --g)
  929. # Obsolete; use --with-gas.
  930. with_gas=yes ;;
  931. -help | --help | --hel | --he | -h)
  932. ac_init_help=long ;;
  933. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  934. ac_init_help=recursive ;;
  935. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  936. ac_init_help=short ;;
  937. -host | --host | --hos | --ho)
  938. ac_prev=host_alias ;;
  939. -host=* | --host=* | --hos=* | --ho=*)
  940. host_alias=$ac_optarg ;;
  941. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  942. ac_prev=htmldir ;;
  943. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  944. | --ht=*)
  945. htmldir=$ac_optarg ;;
  946. -includedir | --includedir | --includedi | --included | --include \
  947. | --includ | --inclu | --incl | --inc)
  948. ac_prev=includedir ;;
  949. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  950. | --includ=* | --inclu=* | --incl=* | --inc=*)
  951. includedir=$ac_optarg ;;
  952. -infodir | --infodir | --infodi | --infod | --info | --inf)
  953. ac_prev=infodir ;;
  954. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  955. infodir=$ac_optarg ;;
  956. -libdir | --libdir | --libdi | --libd)
  957. ac_prev=libdir ;;
  958. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  959. libdir=$ac_optarg ;;
  960. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  961. | --libexe | --libex | --libe)
  962. ac_prev=libexecdir ;;
  963. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  964. | --libexe=* | --libex=* | --libe=*)
  965. libexecdir=$ac_optarg ;;
  966. -localedir | --localedir | --localedi | --localed | --locale)
  967. ac_prev=localedir ;;
  968. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  969. localedir=$ac_optarg ;;
  970. -localstatedir | --localstatedir | --localstatedi | --localstated \
  971. | --localstate | --localstat | --localsta | --localst | --locals)
  972. ac_prev=localstatedir ;;
  973. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  974. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  975. localstatedir=$ac_optarg ;;
  976. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  977. ac_prev=mandir ;;
  978. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  979. mandir=$ac_optarg ;;
  980. -nfp | --nfp | --nf)
  981. # Obsolete; use --without-fp.
  982. with_fp=no ;;
  983. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  984. | --no-cr | --no-c | -n)
  985. no_create=yes ;;
  986. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  987. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  988. no_recursion=yes ;;
  989. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  990. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  991. | --oldin | --oldi | --old | --ol | --o)
  992. ac_prev=oldincludedir ;;
  993. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  994. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  995. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  996. oldincludedir=$ac_optarg ;;
  997. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  998. ac_prev=prefix ;;
  999. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1000. prefix=$ac_optarg ;;
  1001. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1002. | --program-pre | --program-pr | --program-p)
  1003. ac_prev=program_prefix ;;
  1004. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1005. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1006. program_prefix=$ac_optarg ;;
  1007. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1008. | --program-suf | --program-su | --program-s)
  1009. ac_prev=program_suffix ;;
  1010. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1011. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1012. program_suffix=$ac_optarg ;;
  1013. -program-transform-name | --program-transform-name \
  1014. | --program-transform-nam | --program-transform-na \
  1015. | --program-transform-n | --program-transform- \
  1016. | --program-transform | --program-transfor \
  1017. | --program-transfo | --program-transf \
  1018. | --program-trans | --program-tran \
  1019. | --progr-tra | --program-tr | --program-t)
  1020. ac_prev=program_transform_name ;;
  1021. -program-transform-name=* | --program-transform-name=* \
  1022. | --program-transform-nam=* | --program-transform-na=* \
  1023. | --program-transform-n=* | --program-transform-=* \
  1024. | --program-transform=* | --program-transfor=* \
  1025. | --program-transfo=* | --program-transf=* \
  1026. | --program-trans=* | --program-tran=* \
  1027. | --progr-tra=* | --program-tr=* | --program-t=*)
  1028. program_transform_name=$ac_optarg ;;
  1029. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1030. ac_prev=pdfdir ;;
  1031. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1032. pdfdir=$ac_optarg ;;
  1033. -psdir | --psdir | --psdi | --psd | --ps)
  1034. ac_prev=psdir ;;
  1035. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1036. psdir=$ac_optarg ;;
  1037. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1038. | -silent | --silent | --silen | --sile | --sil)
  1039. silent=yes ;;
  1040. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1041. ac_prev=sbindir ;;
  1042. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1043. | --sbi=* | --sb=*)
  1044. sbindir=$ac_optarg ;;
  1045. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1046. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1047. | --sharedst | --shareds | --shared | --share | --shar \
  1048. | --sha | --sh)
  1049. ac_prev=sharedstatedir ;;
  1050. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1051. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1052. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1053. | --sha=* | --sh=*)
  1054. sharedstatedir=$ac_optarg ;;
  1055. -site | --site | --sit)
  1056. ac_prev=site ;;
  1057. -site=* | --site=* | --sit=*)
  1058. site=$ac_optarg ;;
  1059. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1060. ac_prev=srcdir ;;
  1061. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1062. srcdir=$ac_optarg ;;
  1063. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1064. | --syscon | --sysco | --sysc | --sys | --sy)
  1065. ac_prev=sysconfdir ;;
  1066. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1067. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1068. sysconfdir=$ac_optarg ;;
  1069. -target | --target | --targe | --targ | --tar | --ta | --t)
  1070. ac_prev=target_alias ;;
  1071. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1072. target_alias=$ac_optarg ;;
  1073. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1074. verbose=yes ;;
  1075. -version | --version | --versio | --versi | --vers | -V)
  1076. ac_init_version=: ;;
  1077. -with-* | --with-*)
  1078. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1079. # Reject names that are not valid shell variable names.
  1080. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1081. as_fn_error $? "invalid package name: $ac_useropt"
  1082. ac_useropt_orig=$ac_useropt
  1083. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1084. case $ac_user_opts in
  1085. *"
  1086. "with_$ac_useropt"
  1087. "*) ;;
  1088. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1089. ac_unrecognized_sep=', ';;
  1090. esac
  1091. eval with_$ac_useropt=\$ac_optarg ;;
  1092. -without-* | --without-*)
  1093. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1094. # Reject names that are not valid shell variable names.
  1095. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1096. as_fn_error $? "invalid package name: $ac_useropt"
  1097. ac_useropt_orig=$ac_useropt
  1098. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1099. case $ac_user_opts in
  1100. *"
  1101. "with_$ac_useropt"
  1102. "*) ;;
  1103. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1104. ac_unrecognized_sep=', ';;
  1105. esac
  1106. eval with_$ac_useropt=no ;;
  1107. --x)
  1108. # Obsolete; use --with-x.
  1109. with_x=yes ;;
  1110. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1111. | --x-incl | --x-inc | --x-in | --x-i)
  1112. ac_prev=x_includes ;;
  1113. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1114. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1115. x_includes=$ac_optarg ;;
  1116. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1117. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1118. ac_prev=x_libraries ;;
  1119. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1120. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1121. x_libraries=$ac_optarg ;;
  1122. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1123. Try \`$0 --help' for more information"
  1124. ;;
  1125. *=*)
  1126. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1127. # Reject names that are not valid shell variable names.
  1128. case $ac_envvar in #(
  1129. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1130. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1131. esac
  1132. eval $ac_envvar=\$ac_optarg
  1133. export $ac_envvar ;;
  1134. *)
  1135. # FIXME: should be removed in autoconf 3.0.
  1136. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1137. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1138. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1139. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1140. ;;
  1141. esac
  1142. done
  1143. if test -n "$ac_prev"; then
  1144. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1145. as_fn_error $? "missing argument to $ac_option"
  1146. fi
  1147. if test -n "$ac_unrecognized_opts"; then
  1148. case $enable_option_checking in
  1149. no) ;;
  1150. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1151. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1152. esac
  1153. fi
  1154. # Check all directory arguments for consistency.
  1155. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1156. datadir sysconfdir sharedstatedir localstatedir includedir \
  1157. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1158. libdir localedir mandir
  1159. do
  1160. eval ac_val=\$$ac_var
  1161. # Remove trailing slashes.
  1162. case $ac_val in
  1163. */ )
  1164. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1165. eval $ac_var=\$ac_val;;
  1166. esac
  1167. # Be sure to have absolute directory names.
  1168. case $ac_val in
  1169. [\\/$]* | ?:[\\/]* ) continue;;
  1170. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1171. esac
  1172. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1173. done
  1174. # There might be people who depend on the old broken behavior: `$host'
  1175. # used to hold the argument of --host etc.
  1176. # FIXME: To remove some day.
  1177. build=$build_alias
  1178. host=$host_alias
  1179. target=$target_alias
  1180. # FIXME: To remove some day.
  1181. if test "x$host_alias" != x; then
  1182. if test "x$build_alias" = x; then
  1183. cross_compiling=maybe
  1184. elif test "x$build_alias" != "x$host_alias"; then
  1185. cross_compiling=yes
  1186. fi
  1187. fi
  1188. ac_tool_prefix=
  1189. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1190. test "$silent" = yes && exec 6>/dev/null
  1191. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1192. ac_ls_di=`ls -di .` &&
  1193. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1194. as_fn_error $? "working directory cannot be determined"
  1195. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1196. as_fn_error $? "pwd does not report name of working directory"
  1197. # Find the source files, if location was not specified.
  1198. if test -z "$srcdir"; then
  1199. ac_srcdir_defaulted=yes
  1200. # Try the directory containing this script, then the parent directory.
  1201. ac_confdir=`$as_dirname -- "$as_myself" ||
  1202. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1203. X"$as_myself" : 'X\(//\)[^/]' \| \
  1204. X"$as_myself" : 'X\(//\)$' \| \
  1205. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1206. $as_echo X"$as_myself" |
  1207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\/\)[^/].*/{
  1212. s//\1/
  1213. q
  1214. }
  1215. /^X\(\/\/\)$/{
  1216. s//\1/
  1217. q
  1218. }
  1219. /^X\(\/\).*/{
  1220. s//\1/
  1221. q
  1222. }
  1223. s/.*/./; q'`
  1224. srcdir=$ac_confdir
  1225. if test ! -r "$srcdir/$ac_unique_file"; then
  1226. srcdir=..
  1227. fi
  1228. else
  1229. ac_srcdir_defaulted=no
  1230. fi
  1231. if test ! -r "$srcdir/$ac_unique_file"; then
  1232. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1233. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1234. fi
  1235. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1236. ac_abs_confdir=`(
  1237. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1238. pwd)`
  1239. # When building in place, set srcdir=.
  1240. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1241. srcdir=.
  1242. fi
  1243. # Remove unnecessary trailing slashes from srcdir.
  1244. # Double slashes in file names in object file debugging info
  1245. # mess up M-x gdb in Emacs.
  1246. case $srcdir in
  1247. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1248. esac
  1249. for ac_var in $ac_precious_vars; do
  1250. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1251. eval ac_env_${ac_var}_value=\$${ac_var}
  1252. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1253. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1254. done
  1255. #
  1256. # Report the --help message.
  1257. #
  1258. if test "$ac_init_help" = "long"; then
  1259. # Omit some internal or obsolete options to make the list less imposing.
  1260. # This message is too long to be a string in the A/UX 3.1 sh.
  1261. cat <<_ACEOF
  1262. \`configure' configures xf86-video-mach64 6.9.5 to adapt to many kinds of systems.
  1263. Usage: $0 [OPTION]... [VAR=VALUE]...
  1264. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1265. VAR=VALUE. See below for descriptions of some of the useful variables.
  1266. Defaults for the options are specified in brackets.
  1267. Configuration:
  1268. -h, --help display this help and exit
  1269. --help=short display options specific to this package
  1270. --help=recursive display the short help of all the included packages
  1271. -V, --version display version information and exit
  1272. -q, --quiet, --silent do not print \`checking ...' messages
  1273. --cache-file=FILE cache test results in FILE [disabled]
  1274. -C, --config-cache alias for \`--cache-file=config.cache'
  1275. -n, --no-create do not create output files
  1276. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1277. Installation directories:
  1278. --prefix=PREFIX install architecture-independent files in PREFIX
  1279. [$ac_default_prefix]
  1280. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1281. [PREFIX]
  1282. By default, \`make install' will install all the files in
  1283. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1284. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1285. for instance \`--prefix=\$HOME'.
  1286. For better control, use the options below.
  1287. Fine tuning of the installation directories:
  1288. --bindir=DIR user executables [EPREFIX/bin]
  1289. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1290. --libexecdir=DIR program executables [EPREFIX/libexec]
  1291. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1292. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1293. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1294. --libdir=DIR object code libraries [EPREFIX/lib]
  1295. --includedir=DIR C header files [PREFIX/include]
  1296. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1297. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1298. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1299. --infodir=DIR info documentation [DATAROOTDIR/info]
  1300. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1301. --mandir=DIR man documentation [DATAROOTDIR/man]
  1302. --docdir=DIR documentation root
  1303. [DATAROOTDIR/doc/xf86-video-mach64]
  1304. --htmldir=DIR html documentation [DOCDIR]
  1305. --dvidir=DIR dvi documentation [DOCDIR]
  1306. --pdfdir=DIR pdf documentation [DOCDIR]
  1307. --psdir=DIR ps documentation [DOCDIR]
  1308. _ACEOF
  1309. cat <<\_ACEOF
  1310. Program names:
  1311. --program-prefix=PREFIX prepend PREFIX to installed program names
  1312. --program-suffix=SUFFIX append SUFFIX to installed program names
  1313. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1314. System types:
  1315. --build=BUILD configure for building on BUILD [guessed]
  1316. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1317. _ACEOF
  1318. fi
  1319. if test -n "$ac_init_help"; then
  1320. case $ac_init_help in
  1321. short | recursive ) echo "Configuration of xf86-video-mach64 6.9.5:";;
  1322. esac
  1323. cat <<\_ACEOF
  1324. Optional Features:
  1325. --disable-option-checking ignore unrecognized --enable/--with options
  1326. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1327. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1328. --enable-maintainer-mode
  1329. enable make rules and dependencies not useful (and
  1330. sometimes confusing) to the casual installer
  1331. --enable-dependency-tracking
  1332. do not reject slow dependency extractors
  1333. --disable-dependency-tracking
  1334. speeds up one-time build
  1335. --disable-selective-werror
  1336. Turn off selective compiler errors. (default:
  1337. enabled)
  1338. --enable-strict-compilation
  1339. Enable all warnings from compiler and make them
  1340. errors (default: disabled)
  1341. --enable-silent-rules less verbose build output (undo: "make V=1")
  1342. --disable-silent-rules verbose build output (undo: "make V=0")
  1343. --enable-static[=PKGS] build static libraries [default=no]
  1344. --enable-shared[=PKGS] build shared libraries [default=yes]
  1345. --enable-fast-install[=PKGS]
  1346. optimize for fast installation [default=yes]
  1347. --disable-libtool-lock avoid locking (might break parallel builds)
  1348. --disable-dri Disable DRI support [[default=auto]]
  1349. --disable-exa Disable EXA support [[default=enabled]]
  1350. --enable-xaa Enable legacy X Acceleration Architecture (XAA)
  1351. [default=auto]
  1352. Optional Packages:
  1353. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1354. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1355. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1356. both]
  1357. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1358. --with-sysroot=DIR Search for dependent libraries within DIR
  1359. (or the compiler's sysroot if not specified).
  1360. --with-xorg-module-dir=DIR
  1361. Default xorg module directory
  1362. [[default=$libdir/xorg/modules]]
  1363. Some influential environment variables:
  1364. CC C compiler command
  1365. CFLAGS C compiler flags
  1366. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1367. nonstandard directory <lib dir>
  1368. LIBS libraries to pass to the linker, e.g. -l<library>
  1369. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1370. you have headers in a nonstandard directory <include dir>
  1371. CPP C preprocessor
  1372. PKG_CONFIG path to pkg-config utility
  1373. PKG_CONFIG_PATH
  1374. directories to add to pkg-config's search path
  1375. PKG_CONFIG_LIBDIR
  1376. path overriding pkg-config's built-in search path
  1377. XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
  1378. XORG_LIBS linker flags for XORG, overriding pkg-config
  1379. XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
  1380. XEXT_LIBS linker flags for XEXT, overriding pkg-config
  1381. DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
  1382. DRI_LIBS linker flags for DRI, overriding pkg-config
  1383. PCIACCESS_CFLAGS
  1384. C compiler flags for PCIACCESS, overriding pkg-config
  1385. PCIACCESS_LIBS
  1386. linker flags for PCIACCESS, overriding pkg-config
  1387. Use these variables to override the choices made by `configure' or to help
  1388. it to find libraries and programs with nonstandard names/locations.
  1389. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1390. _ACEOF
  1391. ac_status=$?
  1392. fi
  1393. if test "$ac_init_help" = "recursive"; then
  1394. # If there are subdirs, report their specific --help.
  1395. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1396. test -d "$ac_dir" ||
  1397. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1398. continue
  1399. ac_builddir=.
  1400. case "$ac_dir" in
  1401. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1402. *)
  1403. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1404. # A ".." for each directory in $ac_dir_suffix.
  1405. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1406. case $ac_top_builddir_sub in
  1407. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1408. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1409. esac ;;
  1410. esac
  1411. ac_abs_top_builddir=$ac_pwd
  1412. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1413. # for backward compatibility:
  1414. ac_top_builddir=$ac_top_build_prefix
  1415. case $srcdir in
  1416. .) # We are building in place.
  1417. ac_srcdir=.
  1418. ac_top_srcdir=$ac_top_builddir_sub
  1419. ac_abs_top_srcdir=$ac_pwd ;;
  1420. [\\/]* | ?:[\\/]* ) # Absolute name.
  1421. ac_srcdir=$srcdir$ac_dir_suffix;
  1422. ac_top_srcdir=$srcdir
  1423. ac_abs_top_srcdir=$srcdir ;;
  1424. *) # Relative name.
  1425. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1426. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1427. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1428. esac
  1429. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1430. cd "$ac_dir" || { ac_status=$?; continue; }
  1431. # Check for guested configure.
  1432. if test -f "$ac_srcdir/configure.gnu"; then
  1433. echo &&
  1434. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1435. elif test -f "$ac_srcdir/configure"; then
  1436. echo &&
  1437. $SHELL "$ac_srcdir/configure" --help=recursive
  1438. else
  1439. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1440. fi || ac_status=$?
  1441. cd "$ac_pwd" || { ac_status=$?; break; }
  1442. done
  1443. fi
  1444. test -n "$ac_init_help" && exit $ac_status
  1445. if $ac_init_version; then
  1446. cat <<\_ACEOF
  1447. xf86-video-mach64 configure 6.9.5
  1448. generated by GNU Autoconf 2.69
  1449. Copyright (C) 2012 Free Software Foundation, Inc.
  1450. This configure script is free software; the Free Software Foundation
  1451. gives unlimited permission to copy, distribute and modify it.
  1452. _ACEOF
  1453. exit
  1454. fi
  1455. ## ------------------------ ##
  1456. ## Autoconf initialization. ##
  1457. ## ------------------------ ##
  1458. # ac_fn_c_try_compile LINENO
  1459. # --------------------------
  1460. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_compile ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. rm -f conftest.$ac_objext
  1465. if { { ac_try="$ac_compile"
  1466. case "(($ac_try" in
  1467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1468. *) ac_try_echo=$ac_try;;
  1469. esac
  1470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1471. $as_echo "$ac_try_echo"; } >&5
  1472. (eval "$ac_compile") 2>conftest.err
  1473. ac_status=$?
  1474. if test -s conftest.err; then
  1475. grep -v '^ *+' conftest.err >conftest.er1
  1476. cat conftest.er1 >&5
  1477. mv -f conftest.er1 conftest.err
  1478. fi
  1479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1480. test $ac_status = 0; } && {
  1481. test -z "$ac_c_werror_flag" ||
  1482. test ! -s conftest.err
  1483. } && test -s conftest.$ac_objext; then :
  1484. ac_retval=0
  1485. else
  1486. $as_echo "$as_me: failed program was:" >&5
  1487. sed 's/^/| /' conftest.$ac_ext >&5
  1488. ac_retval=1
  1489. fi
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. as_fn_set_status $ac_retval
  1492. } # ac_fn_c_try_compile
  1493. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1494. # ---------------------------------------------
  1495. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1496. # accordingly.
  1497. ac_fn_c_check_decl ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1501. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1503. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1504. if eval \${$3+:} false; then :
  1505. $as_echo_n "(cached) " >&6
  1506. else
  1507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1508. /* end confdefs.h. */
  1509. $4
  1510. int
  1511. main ()
  1512. {
  1513. #ifndef $as_decl_name
  1514. #ifdef __cplusplus
  1515. (void) $as_decl_use;
  1516. #else
  1517. (void) $as_decl_name;
  1518. #endif
  1519. #endif
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. if ac_fn_c_try_compile "$LINENO"; then :
  1525. eval "$3=yes"
  1526. else
  1527. eval "$3=no"
  1528. fi
  1529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1530. fi
  1531. eval ac_res=\$$3
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. $as_echo "$ac_res" >&6; }
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_c_check_decl
  1536. # ac_fn_c_try_cpp LINENO
  1537. # ----------------------
  1538. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_cpp ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } > conftest.i && {
  1558. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_cpp
  1570. # ac_fn_c_try_run LINENO
  1571. # ----------------------
  1572. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1573. # that executables *can* be run.
  1574. ac_fn_c_try_run ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. if { { ac_try="$ac_link"
  1578. case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_link") 2>&5
  1585. ac_status=$?
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1588. { { case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_try") 2>&5
  1595. ac_status=$?
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; }; }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: program exited with status $ac_status" >&5
  1601. $as_echo "$as_me: failed program was:" >&5
  1602. sed 's/^/| /' conftest.$ac_ext >&5
  1603. ac_retval=$ac_status
  1604. fi
  1605. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_run
  1609. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1610. # -------------------------------------------------------
  1611. # Tests whether HEADER exists and can be compiled using the include files in
  1612. # INCLUDES, setting the cache variable VAR accordingly.
  1613. ac_fn_c_check_header_compile ()
  1614. {
  1615. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1617. $as_echo_n "checking for $2... " >&6; }
  1618. if eval \${$3+:} false; then :
  1619. $as_echo_n "(cached) " >&6
  1620. else
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. $4
  1624. #include <$2>
  1625. _ACEOF
  1626. if ac_fn_c_try_compile "$LINENO"; then :
  1627. eval "$3=yes"
  1628. else
  1629. eval "$3=no"
  1630. fi
  1631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1637. } # ac_fn_c_check_header_compile
  1638. # ac_fn_c_try_link LINENO
  1639. # -----------------------
  1640. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1641. ac_fn_c_try_link ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. rm -f conftest.$ac_objext conftest$ac_exeext
  1645. if { { ac_try="$ac_link"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1651. $as_echo "$ac_try_echo"; } >&5
  1652. (eval "$ac_link") 2>conftest.err
  1653. ac_status=$?
  1654. if test -s conftest.err; then
  1655. grep -v '^ *+' conftest.err >conftest.er1
  1656. cat conftest.er1 >&5
  1657. mv -f conftest.er1 conftest.err
  1658. fi
  1659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1660. test $ac_status = 0; } && {
  1661. test -z "$ac_c_werror_flag" ||
  1662. test ! -s conftest.err
  1663. } && test -s conftest$ac_exeext && {
  1664. test "$cross_compiling" = yes ||
  1665. test -x conftest$ac_exeext
  1666. }; then :
  1667. ac_retval=0
  1668. else
  1669. $as_echo "$as_me: failed program was:" >&5
  1670. sed 's/^/| /' conftest.$ac_ext >&5
  1671. ac_retval=1
  1672. fi
  1673. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1674. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1675. # interfere with the next link command; also delete a directory that is
  1676. # left behind by Apple's compiler. We do this before executing the actions.
  1677. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. as_fn_set_status $ac_retval
  1680. } # ac_fn_c_try_link
  1681. # ac_fn_c_check_func LINENO FUNC VAR
  1682. # ----------------------------------
  1683. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1684. ac_fn_c_check_func ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1688. $as_echo_n "checking for $2... " >&6; }
  1689. if eval \${$3+:} false; then :
  1690. $as_echo_n "(cached) " >&6
  1691. else
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1695. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1696. #define $2 innocuous_$2
  1697. /* System header to define __stub macros and hopefully few prototypes,
  1698. which can conflict with char $2 (); below.
  1699. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1700. <limits.h> exists even on freestanding compilers. */
  1701. #ifdef __STDC__
  1702. # include <limits.h>
  1703. #else
  1704. # include <assert.h>
  1705. #endif
  1706. #undef $2
  1707. /* Override any GCC internal prototype to avoid an error.
  1708. Use char because int might match the return type of a GCC
  1709. builtin and then its argument prototype would still apply. */
  1710. #ifdef __cplusplus
  1711. extern "C"
  1712. #endif
  1713. char $2 ();
  1714. /* The GNU C library defines this for functions which it implements
  1715. to always fail with ENOSYS. Some functions are actually named
  1716. something starting with __ and the normal name is an alias. */
  1717. #if defined __stub_$2 || defined __stub___$2
  1718. choke me
  1719. #endif
  1720. int
  1721. main ()
  1722. {
  1723. return $2 ();
  1724. ;
  1725. return 0;
  1726. }
  1727. _ACEOF
  1728. if ac_fn_c_try_link "$LINENO"; then :
  1729. eval "$3=yes"
  1730. else
  1731. eval "$3=no"
  1732. fi
  1733. rm -f core conftest.err conftest.$ac_objext \
  1734. conftest$ac_exeext conftest.$ac_ext
  1735. fi
  1736. eval ac_res=\$$3
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1738. $as_echo "$ac_res" >&6; }
  1739. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740. } # ac_fn_c_check_func
  1741. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1742. # -------------------------------------------------------
  1743. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1744. # the include files in INCLUDES and setting the cache variable VAR
  1745. # accordingly.
  1746. ac_fn_c_check_header_mongrel ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. if eval \${$3+:} false; then :
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. fi
  1755. eval ac_res=\$$3
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. $as_echo "$ac_res" >&6; }
  1758. else
  1759. # Is the header compilable?
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1761. $as_echo_n "checking $2 usability... " >&6; }
  1762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end confdefs.h. */
  1764. $4
  1765. #include <$2>
  1766. _ACEOF
  1767. if ac_fn_c_try_compile "$LINENO"; then :
  1768. ac_header_compiler=yes
  1769. else
  1770. ac_header_compiler=no
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1774. $as_echo "$ac_header_compiler" >&6; }
  1775. # Is the header present?
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1777. $as_echo_n "checking $2 presence... " >&6; }
  1778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end confdefs.h. */
  1780. #include <$2>
  1781. _ACEOF
  1782. if ac_fn_c_try_cpp "$LINENO"; then :
  1783. ac_header_preproc=yes
  1784. else
  1785. ac_header_preproc=no
  1786. fi
  1787. rm -f conftest.err conftest.i conftest.$ac_ext
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1789. $as_echo "$ac_header_preproc" >&6; }
  1790. # So? What about this header?
  1791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1792. yes:no: )
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1794. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1796. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1797. ;;
  1798. no:yes:* )
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1800. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1802. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1804. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1806. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1808. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1809. ( $as_echo "## ---------------------------------------------------------------------- ##
  1810. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  1811. ## ---------------------------------------------------------------------- ##"
  1812. ) | sed "s/^/$as_me: WARNING: /" >&2
  1813. ;;
  1814. esac
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1816. $as_echo_n "checking for $2... " >&6; }
  1817. if eval \${$3+:} false; then :
  1818. $as_echo_n "(cached) " >&6
  1819. else
  1820. eval "$3=\$ac_header_compiler"
  1821. fi
  1822. eval ac_res=\$$3
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1824. $as_echo "$ac_res" >&6; }
  1825. fi
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_header_mongrel
  1828. cat >config.log <<_ACEOF
  1829. This file contains any messages produced by compilers while
  1830. running configure, to aid debugging if configure makes a mistake.
  1831. It was created by xf86-video-mach64 $as_me 6.9.5, which was
  1832. generated by GNU Autoconf 2.69. Invocation command line was
  1833. $ $0 $@
  1834. _ACEOF
  1835. exec 5>>config.log
  1836. {
  1837. cat <<_ASUNAME
  1838. ## --------- ##
  1839. ## Platform. ##
  1840. ## --------- ##
  1841. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1842. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1843. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1844. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1845. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1846. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1847. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1848. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1849. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1850. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1851. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1852. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1853. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1854. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1855. _ASUNAME
  1856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1857. for as_dir in $PATH
  1858. do
  1859. IFS=$as_save_IFS
  1860. test -z "$as_dir" && as_dir=.
  1861. $as_echo "PATH: $as_dir"
  1862. done
  1863. IFS=$as_save_IFS
  1864. } >&5
  1865. cat >&5 <<_ACEOF
  1866. ## ----------- ##
  1867. ## Core tests. ##
  1868. ## ----------- ##
  1869. _ACEOF
  1870. # Keep a trace of the command line.
  1871. # Strip out --no-create and --no-recursion so they do not pile up.
  1872. # Strip out --silent because we don't want to record it for future runs.
  1873. # Also quote any args containing shell meta-characters.
  1874. # Make two passes to allow for proper duplicate-argument suppression.
  1875. ac_configure_args=
  1876. ac_configure_args0=
  1877. ac_configure_args1=
  1878. ac_must_keep_next=false
  1879. for ac_pass in 1 2
  1880. do
  1881. for ac_arg
  1882. do
  1883. case $ac_arg in
  1884. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1885. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1886. | -silent | --silent | --silen | --sile | --sil)
  1887. continue ;;
  1888. *\'*)
  1889. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1890. esac
  1891. case $ac_pass in
  1892. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1893. 2)
  1894. as_fn_append ac_configure_args1 " '$ac_arg'"
  1895. if test $ac_must_keep_next = true; then
  1896. ac_must_keep_next=false # Got value, back to normal.
  1897. else
  1898. case $ac_arg in
  1899. *=* | --config-cache | -C | -disable-* | --disable-* \
  1900. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1901. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1902. | -with-* | --with-* | -without-* | --without-* | --x)
  1903. case "$ac_configure_args0 " in
  1904. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1905. esac
  1906. ;;
  1907. -* ) ac_must_keep_next=true ;;
  1908. esac
  1909. fi
  1910. as_fn_append ac_configure_args " '$ac_arg'"
  1911. ;;
  1912. esac
  1913. done
  1914. done
  1915. { ac_configure_args0=; unset ac_configure_args0;}
  1916. { ac_configure_args1=; unset ac_configure_args1;}
  1917. # When interrupted or exit'd, cleanup temporary files, and complete
  1918. # config.log. We remove comments because anyway the quotes in there
  1919. # would cause problems or look ugly.
  1920. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1921. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1922. trap 'exit_status=$?
  1923. # Save into config.log some information that might help in debugging.
  1924. {
  1925. echo
  1926. $as_echo "## ---------------- ##
  1927. ## Cache variables. ##
  1928. ## ---------------- ##"
  1929. echo
  1930. # The following way of writing the cache mishandles newlines in values,
  1931. (
  1932. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1933. eval ac_val=\$$ac_var
  1934. case $ac_val in #(
  1935. *${as_nl}*)
  1936. case $ac_var in #(
  1937. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1938. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1939. esac
  1940. case $ac_var in #(
  1941. _ | IFS | as_nl) ;; #(
  1942. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1943. *) { eval $ac_var=; unset $ac_var;} ;;
  1944. esac ;;
  1945. esac
  1946. done
  1947. (set) 2>&1 |
  1948. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1949. *${as_nl}ac_space=\ *)
  1950. sed -n \
  1951. "s/'\''/'\''\\\\'\'''\''/g;
  1952. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1953. ;; #(
  1954. *)
  1955. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1956. ;;
  1957. esac |
  1958. sort
  1959. )
  1960. echo
  1961. $as_echo "## ----------------- ##
  1962. ## Output variables. ##
  1963. ## ----------------- ##"
  1964. echo
  1965. for ac_var in $ac_subst_vars
  1966. do
  1967. eval ac_val=\$$ac_var
  1968. case $ac_val in
  1969. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1970. esac
  1971. $as_echo "$ac_var='\''$ac_val'\''"
  1972. done | sort
  1973. echo
  1974. if test -n "$ac_subst_files"; then
  1975. $as_echo "## ------------------- ##
  1976. ## File substitutions. ##
  1977. ## ------------------- ##"
  1978. echo
  1979. for ac_var in $ac_subst_files
  1980. do
  1981. eval ac_val=\$$ac_var
  1982. case $ac_val in
  1983. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1984. esac
  1985. $as_echo "$ac_var='\''$ac_val'\''"
  1986. done | sort
  1987. echo
  1988. fi
  1989. if test -s confdefs.h; then
  1990. $as_echo "## ----------- ##
  1991. ## confdefs.h. ##
  1992. ## ----------- ##"
  1993. echo
  1994. cat confdefs.h
  1995. echo
  1996. fi
  1997. test "$ac_signal" != 0 &&
  1998. $as_echo "$as_me: caught signal $ac_signal"
  1999. $as_echo "$as_me: exit $exit_status"
  2000. } >&5
  2001. rm -f core *.core core.conftest.* &&
  2002. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2003. exit $exit_status
  2004. ' 0
  2005. for ac_signal in 1 2 13 15; do
  2006. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2007. done
  2008. ac_signal=0
  2009. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2010. rm -f -r conftest* confdefs.h
  2011. $as_echo "/* confdefs.h */" > confdefs.h
  2012. # Predefined preprocessor variables.
  2013. cat >>confdefs.h <<_ACEOF
  2014. #define PACKAGE_NAME "$PACKAGE_NAME"
  2015. _ACEOF
  2016. cat >>confdefs.h <<_ACEOF
  2017. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2018. _ACEOF
  2019. cat >>confdefs.h <<_ACEOF
  2020. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2021. _ACEOF
  2022. cat >>confdefs.h <<_ACEOF
  2023. #define PACKAGE_STRING "$PACKAGE_STRING"
  2024. _ACEOF
  2025. cat >>confdefs.h <<_ACEOF
  2026. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2027. _ACEOF
  2028. cat >>confdefs.h <<_ACEOF
  2029. #define PACKAGE_URL "$PACKAGE_URL"
  2030. _ACEOF
  2031. # Let the site file select an alternate cache file if it wants to.
  2032. # Prefer an explicitly selected file to automatically selected ones.
  2033. ac_site_file1=NONE
  2034. ac_site_file2=NONE
  2035. if test -n "$CONFIG_SITE"; then
  2036. # We do not want a PATH search for config.site.
  2037. case $CONFIG_SITE in #((
  2038. -*) ac_site_file1=./$CONFIG_SITE;;
  2039. */*) ac_site_file1=$CONFIG_SITE;;
  2040. *) ac_site_file1=./$CONFIG_SITE;;
  2041. esac
  2042. elif test "x$prefix" != xNONE; then
  2043. ac_site_file1=$prefix/share/config.site
  2044. ac_site_file2=$prefix/etc/config.site
  2045. else
  2046. ac_site_file1=$ac_default_prefix/share/config.site
  2047. ac_site_file2=$ac_default_prefix/etc/config.site
  2048. fi
  2049. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2050. do
  2051. test "x$ac_site_file" = xNONE && continue
  2052. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2054. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2055. sed 's/^/| /' "$ac_site_file" >&5
  2056. . "$ac_site_file" \
  2057. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2058. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2059. as_fn_error $? "failed to load site script $ac_site_file
  2060. See \`config.log' for more details" "$LINENO" 5; }
  2061. fi
  2062. done
  2063. if test -r "$cache_file"; then
  2064. # Some versions of bash will fail to source /dev/null (special files
  2065. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2066. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2068. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2069. case $cache_file in
  2070. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2071. *) . "./$cache_file";;
  2072. esac
  2073. fi
  2074. else
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2076. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2077. >$cache_file
  2078. fi
  2079. # Check that the precious variables saved in the cache have kept the same
  2080. # value.
  2081. ac_cache_corrupted=false
  2082. for ac_var in $ac_precious_vars; do
  2083. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2084. eval ac_new_set=\$ac_env_${ac_var}_set
  2085. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2086. eval ac_new_val=\$ac_env_${ac_var}_value
  2087. case $ac_old_set,$ac_new_set in
  2088. set,)
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2090. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2091. ac_cache_corrupted=: ;;
  2092. ,set)
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2094. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2095. ac_cache_corrupted=: ;;
  2096. ,);;
  2097. *)
  2098. if test "x$ac_old_val" != "x$ac_new_val"; then
  2099. # differences in whitespace do not lead to failure.
  2100. ac_old_val_w=`echo x $ac_old_val`
  2101. ac_new_val_w=`echo x $ac_new_val`
  2102. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2104. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2105. ac_cache_corrupted=:
  2106. else
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2108. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2109. eval $ac_var=\$ac_old_val
  2110. fi
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2112. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2114. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2115. fi;;
  2116. esac
  2117. # Pass precious variables to config.status.
  2118. if test "$ac_new_set" = set; then
  2119. case $ac_new_val in
  2120. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. *) ac_arg=$ac_var=$ac_new_val ;;
  2122. esac
  2123. case " $ac_configure_args " in
  2124. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2125. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2126. esac
  2127. fi
  2128. done
  2129. if $ac_cache_corrupted; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2133. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2134. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2135. fi
  2136. ## -------------------- ##
  2137. ## Main body of script. ##
  2138. ## -------------------- ##
  2139. ac_ext=c
  2140. ac_cpp='$CPP $CPPFLAGS'
  2141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2144. ac_config_headers="$ac_config_headers config.h"
  2145. ac_aux_dir=
  2146. for ac_dir in . "$srcdir"/.; do
  2147. if test -f "$ac_dir/install-sh"; then
  2148. ac_aux_dir=$ac_dir
  2149. ac_install_sh="$ac_aux_dir/install-sh -c"
  2150. break
  2151. elif test -f "$ac_dir/install.sh"; then
  2152. ac_aux_dir=$ac_dir
  2153. ac_install_sh="$ac_aux_dir/install.sh -c"
  2154. break
  2155. elif test -f "$ac_dir/shtool"; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/shtool install -c"
  2158. break
  2159. fi
  2160. done
  2161. if test -z "$ac_aux_dir"; then
  2162. as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2163. fi
  2164. # These three variables are undocumented and unsupported,
  2165. # and are intended to be withdrawn in a future Autoconf release.
  2166. # They can cause serious problems if a builder's source tree is in a directory
  2167. # whose full name contains unusual characters.
  2168. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2169. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2170. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2171. # Initialize Automake
  2172. am__api_version='1.12'
  2173. # Find a good install program. We prefer a C program (faster),
  2174. # so one script is as good as another. But avoid the broken or
  2175. # incompatible versions:
  2176. # SysV /etc/install, /usr/sbin/install
  2177. # SunOS /usr/etc/install
  2178. # IRIX /sbin/install
  2179. # AIX /bin/install
  2180. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2181. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2182. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2183. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2184. # OS/2's system install, which has a completely different semantic
  2185. # ./install, which can be erroneously created by make from ./install.sh.
  2186. # Reject install programs that cannot install multiple files.
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2188. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2189. if test -z "$INSTALL"; then
  2190. if ${ac_cv_path_install+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2194. for as_dir in $PATH
  2195. do
  2196. IFS=$as_save_IFS
  2197. test -z "$as_dir" && as_dir=.
  2198. # Account for people who put trailing slashes in PATH elements.
  2199. case $as_dir/ in #((
  2200. ./ | .// | /[cC]/* | \
  2201. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2202. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2203. /usr/ucb/* ) ;;
  2204. *)
  2205. # OSF1 and SCO ODT 3.0 have their own names for install.
  2206. # Don't use installbsd from OSF since it installs stuff as root
  2207. # by default.
  2208. for ac_prog in ginstall scoinst install; do
  2209. for ac_exec_ext in '' $ac_executable_extensions; do
  2210. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2211. if test $ac_prog = install &&
  2212. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2213. # AIX install. It has an incompatible calling convention.
  2214. :
  2215. elif test $ac_prog = install &&
  2216. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2217. # program-specific install script used by HP pwplus--don't use.
  2218. :
  2219. else
  2220. rm -rf conftest.one conftest.two conftest.dir
  2221. echo one > conftest.one
  2222. echo two > conftest.two
  2223. mkdir conftest.dir
  2224. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2225. test -s conftest.one && test -s conftest.two &&
  2226. test -s conftest.dir/conftest.one &&
  2227. test -s conftest.dir/conftest.two
  2228. then
  2229. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2230. break 3
  2231. fi
  2232. fi
  2233. fi
  2234. done
  2235. done
  2236. ;;
  2237. esac
  2238. done
  2239. IFS=$as_save_IFS
  2240. rm -rf conftest.one conftest.two conftest.dir
  2241. fi
  2242. if test "${ac_cv_path_install+set}" = set; then
  2243. INSTALL=$ac_cv_path_install
  2244. else
  2245. # As a last resort, use the slow shell script. Don't cache a
  2246. # value for INSTALL within a source directory, because that will
  2247. # break other packages using the cache if that directory is
  2248. # removed, or if the value is a relative name.
  2249. INSTALL=$ac_install_sh
  2250. fi
  2251. fi
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2253. $as_echo "$INSTALL" >&6; }
  2254. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2255. # It thinks the first close brace ends the variable substitution.
  2256. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2257. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2258. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2260. $as_echo_n "checking whether build environment is sane... " >&6; }
  2261. # Reject unsafe characters in $srcdir or the absolute working directory
  2262. # name. Accept space and tab only in the latter.
  2263. am_lf='
  2264. '
  2265. case `pwd` in
  2266. *[\\\"\#\$\&\'\`$am_lf]*)
  2267. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2268. esac
  2269. case $srcdir in
  2270. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2271. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2272. esac
  2273. # Do 'set' in a subshell so we don't clobber the current shell's
  2274. # arguments. Must try -L first in case configure is actually a
  2275. # symlink; some systems play weird games with the mod time of symlinks
  2276. # (eg FreeBSD returns the mod time of the symlink's containing
  2277. # directory).
  2278. if (
  2279. am_has_slept=no
  2280. for am_try in 1 2; do
  2281. echo "timestamp, slept: $am_has_slept" > conftest.file
  2282. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2283. if test "$*" = "X"; then
  2284. # -L didn't work.
  2285. set X `ls -t "$srcdir/configure" conftest.file`
  2286. fi
  2287. if test "$*" != "X $srcdir/configure conftest.file" \
  2288. && test "$*" != "X conftest.file $srcdir/configure"; then
  2289. # If neither matched, then we have a broken ls. This can happen
  2290. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2291. # broken ls alias from the environment. This has actually
  2292. # happened. Such a system could not be considered "sane".
  2293. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2294. alias in your environment" "$LINENO" 5
  2295. fi
  2296. if test "$2" = conftest.file || test $am_try -eq 2; then
  2297. break
  2298. fi
  2299. # Just in case.
  2300. sleep 1
  2301. am_has_slept=yes
  2302. done
  2303. test "$2" = conftest.file
  2304. )
  2305. then
  2306. # Ok.
  2307. :
  2308. else
  2309. as_fn_error $? "newly created file is older than distributed files!
  2310. Check your system clock" "$LINENO" 5
  2311. fi
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2313. $as_echo "yes" >&6; }
  2314. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2315. # generated files are strictly newer.
  2316. am_sleep_pid=
  2317. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2318. ( sleep 1 ) &
  2319. am_sleep_pid=$!
  2320. fi
  2321. rm -f conftest.file
  2322. test "$program_prefix" != NONE &&
  2323. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2324. # Use a double $ so make ignores it.
  2325. test "$program_suffix" != NONE &&
  2326. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2327. # Double any \ or $.
  2328. # By default was `s,x,x', remove it if useless.
  2329. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2330. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2331. # expand $ac_aux_dir to an absolute path
  2332. am_aux_dir=`cd $ac_aux_dir && pwd`
  2333. if test x"${MISSING+set}" != xset; then
  2334. case $am_aux_dir in
  2335. *\ * | *\ *)
  2336. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2337. *)
  2338. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2339. esac
  2340. fi
  2341. # Use eval to expand $SHELL
  2342. if eval "$MISSING --run true"; then
  2343. am_missing_run="$MISSING --run "
  2344. else
  2345. am_missing_run=
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2347. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2348. fi
  2349. if test x"${install_sh}" != xset; then
  2350. case $am_aux_dir in
  2351. *\ * | *\ *)
  2352. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2353. *)
  2354. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2355. esac
  2356. fi
  2357. # Installed binaries are usually stripped using 'strip' when the user
  2358. # run "make install-strip". However 'strip' might not be the right
  2359. # tool to use in cross-compilation environments, therefore Automake
  2360. # will honor the 'STRIP' environment variable to overrule this program.
  2361. if test "$cross_compiling" != no; then
  2362. if test -n "$ac_tool_prefix"; then
  2363. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2364. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if ${ac_cv_prog_STRIP+:} false; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$STRIP"; then
  2371. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2372. else
  2373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2380. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. fi
  2388. fi
  2389. STRIP=$ac_cv_prog_STRIP
  2390. if test -n "$STRIP"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2392. $as_echo "$STRIP" >&6; }
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2395. $as_echo "no" >&6; }
  2396. fi
  2397. fi
  2398. if test -z "$ac_cv_prog_STRIP"; then
  2399. ac_ct_STRIP=$STRIP
  2400. # Extract the first word of "strip", so it can be a program name with args.
  2401. set dummy strip; ac_word=$2
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2403. $as_echo_n "checking for $ac_word... " >&6; }
  2404. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. if test -n "$ac_ct_STRIP"; then
  2408. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2417. ac_cv_prog_ac_ct_STRIP="strip"
  2418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2427. if test -n "$ac_ct_STRIP"; then
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2429. $as_echo "$ac_ct_STRIP" >&6; }
  2430. else
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2432. $as_echo "no" >&6; }
  2433. fi
  2434. if test "x$ac_ct_STRIP" = x; then
  2435. STRIP=":"
  2436. else
  2437. case $cross_compiling:$ac_tool_warned in
  2438. yes:)
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2441. ac_tool_warned=yes ;;
  2442. esac
  2443. STRIP=$ac_ct_STRIP
  2444. fi
  2445. else
  2446. STRIP="$ac_cv_prog_STRIP"
  2447. fi
  2448. fi
  2449. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2451. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2452. if test -z "$MKDIR_P"; then
  2453. if ${ac_cv_path_mkdir+:} false; then :
  2454. $as_echo_n "(cached) " >&6
  2455. else
  2456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2457. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2458. do
  2459. IFS=$as_save_IFS
  2460. test -z "$as_dir" && as_dir=.
  2461. for ac_prog in mkdir gmkdir; do
  2462. for ac_exec_ext in '' $ac_executable_extensions; do
  2463. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2464. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2465. 'mkdir (GNU coreutils) '* | \
  2466. 'mkdir (coreutils) '* | \
  2467. 'mkdir (fileutils) '4.1*)
  2468. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2469. break 3;;
  2470. esac
  2471. done
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. fi
  2476. test -d ./--version && rmdir ./--version
  2477. if test "${ac_cv_path_mkdir+set}" = set; then
  2478. MKDIR_P="$ac_cv_path_mkdir -p"
  2479. else
  2480. # As a last resort, use the slow shell script. Don't cache a
  2481. # value for MKDIR_P within a source directory, because that will
  2482. # break other packages using the cache if that directory is
  2483. # removed, or if the value is a relative name.
  2484. MKDIR_P="$ac_install_sh -d"
  2485. fi
  2486. fi
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2488. $as_echo "$MKDIR_P" >&6; }
  2489. for ac_prog in gawk mawk nawk awk
  2490. do
  2491. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2492. set dummy $ac_prog; ac_word=$2
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2494. $as_echo_n "checking for $ac_word... " >&6; }
  2495. if ${ac_cv_prog_AWK+:} false; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. if test -n "$AWK"; then
  2499. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2500. else
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. for ac_exec_ext in '' $ac_executable_extensions; do
  2507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2508. ac_cv_prog_AWK="$ac_prog"
  2509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2510. break 2
  2511. fi
  2512. done
  2513. done
  2514. IFS=$as_save_IFS
  2515. fi
  2516. fi
  2517. AWK=$ac_cv_prog_AWK
  2518. if test -n "$AWK"; then
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2520. $as_echo "$AWK" >&6; }
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2523. $as_echo "no" >&6; }
  2524. fi
  2525. test -n "$AWK" && break
  2526. done
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2528. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2529. set x ${MAKE-make}
  2530. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2531. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. cat >conftest.make <<\_ACEOF
  2535. SHELL = /bin/sh
  2536. all:
  2537. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2538. _ACEOF
  2539. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2540. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2541. *@@@%%%=?*=@@@%%%*)
  2542. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2543. *)
  2544. eval ac_cv_prog_make_${ac_make}_set=no;;
  2545. esac
  2546. rm -f conftest.make
  2547. fi
  2548. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2550. $as_echo "yes" >&6; }
  2551. SET_MAKE=
  2552. else
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2554. $as_echo "no" >&6; }
  2555. SET_MAKE="MAKE=${MAKE-make}"
  2556. fi
  2557. rm -rf .tst 2>/dev/null
  2558. mkdir .tst 2>/dev/null
  2559. if test -d .tst; then
  2560. am__leading_dot=.
  2561. else
  2562. am__leading_dot=_
  2563. fi
  2564. rmdir .tst 2>/dev/null
  2565. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2566. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2567. # is not polluted with repeated "-I."
  2568. am__isrc=' -I$(srcdir)'
  2569. # test to see if srcdir already configured
  2570. if test -f $srcdir/config.status; then
  2571. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2572. fi
  2573. fi
  2574. # test whether we have cygpath
  2575. if test -z "$CYGPATH_W"; then
  2576. if (cygpath --version) >/dev/null 2>/dev/null; then
  2577. CYGPATH_W='cygpath -w'
  2578. else
  2579. CYGPATH_W=echo
  2580. fi
  2581. fi
  2582. # Define the identity of the package.
  2583. PACKAGE='xf86-video-mach64'
  2584. VERSION='6.9.5'
  2585. cat >>confdefs.h <<_ACEOF
  2586. #define PACKAGE "$PACKAGE"
  2587. _ACEOF
  2588. cat >>confdefs.h <<_ACEOF
  2589. #define VERSION "$VERSION"
  2590. _ACEOF
  2591. # Some tools Automake needs.
  2592. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2593. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2594. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2595. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2596. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2597. # For better backward compatibility. To be removed once Automake 1.9.x
  2598. # dies out for good. For more background, see:
  2599. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2600. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2601. mkdir_p='$(MKDIR_P)'
  2602. # We need awk for the "check" target. The system "awk" is bad on
  2603. # some platforms.
  2604. # Always define AMTAR for backward compatibility. Yes, it's still used
  2605. # in the wild :-( We should find a proper way to deprecate it ...
  2606. AMTAR='$${TAR-tar}'
  2607. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2609. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2610. # Check whether --enable-maintainer-mode was given.
  2611. if test "${enable_maintainer_mode+set}" = set; then :
  2612. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2613. else
  2614. USE_MAINTAINER_MODE=no
  2615. fi
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2617. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2618. if test $USE_MAINTAINER_MODE = yes; then
  2619. MAINTAINER_MODE_TRUE=
  2620. MAINTAINER_MODE_FALSE='#'
  2621. else
  2622. MAINTAINER_MODE_TRUE='#'
  2623. MAINTAINER_MODE_FALSE=
  2624. fi
  2625. MAINT=$MAINTAINER_MODE_TRUE
  2626. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2627. DEPDIR="${am__leading_dot}deps"
  2628. ac_config_commands="$ac_config_commands depfiles"
  2629. am_make=${MAKE-make}
  2630. cat > confinc << 'END'
  2631. am__doit:
  2632. @echo this is the am__doit target
  2633. .PHONY: am__doit
  2634. END
  2635. # If we don't find an include directive, just comment out the code.
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2637. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2638. am__include="#"
  2639. am__quote=
  2640. _am_result=none
  2641. # First try GNU make style include.
  2642. echo "include confinc" > confmf
  2643. # Ignore all kinds of additional output from 'make'.
  2644. case `$am_make -s -f confmf 2> /dev/null` in #(
  2645. *the\ am__doit\ target*)
  2646. am__include=include
  2647. am__quote=
  2648. _am_result=GNU
  2649. ;;
  2650. esac
  2651. # Now try BSD make style include.
  2652. if test "$am__include" = "#"; then
  2653. echo '.include "confinc"' > confmf
  2654. case `$am_make -s -f confmf 2> /dev/null` in #(
  2655. *the\ am__doit\ target*)
  2656. am__include=.include
  2657. am__quote="\""
  2658. _am_result=BSD
  2659. ;;
  2660. esac
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2663. $as_echo "$_am_result" >&6; }
  2664. rm -f confinc confmf
  2665. # Check whether --enable-dependency-tracking was given.
  2666. if test "${enable_dependency_tracking+set}" = set; then :
  2667. enableval=$enable_dependency_tracking;
  2668. fi
  2669. if test "x$enable_dependency_tracking" != xno; then
  2670. am_depcomp="$ac_aux_dir/depcomp"
  2671. AMDEPBACKSLASH='\'
  2672. am__nodep='_no'
  2673. fi
  2674. if test "x$enable_dependency_tracking" != xno; then
  2675. AMDEP_TRUE=
  2676. AMDEP_FALSE='#'
  2677. else
  2678. AMDEP_TRUE='#'
  2679. AMDEP_FALSE=
  2680. fi
  2681. ac_ext=c
  2682. ac_cpp='$CPP $CPPFLAGS'
  2683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2686. if test -n "$ac_tool_prefix"; then
  2687. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2688. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2690. $as_echo_n "checking for $ac_word... " >&6; }
  2691. if ${ac_cv_prog_CC+:} false; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$CC"; then
  2695. ac_cv_prog_CC="$CC" # Let the user override the test.
  2696. else
  2697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2698. for as_dir in $PATH
  2699. do
  2700. IFS=$as_save_IFS
  2701. test -z "$as_dir" && as_dir=.
  2702. for ac_exec_ext in '' $ac_executable_extensions; do
  2703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2704. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2706. break 2
  2707. fi
  2708. done
  2709. done
  2710. IFS=$as_save_IFS
  2711. fi
  2712. fi
  2713. CC=$ac_cv_prog_CC
  2714. if test -n "$CC"; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2716. $as_echo "$CC" >&6; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2719. $as_echo "no" >&6; }
  2720. fi
  2721. fi
  2722. if test -z "$ac_cv_prog_CC"; then
  2723. ac_ct_CC=$CC
  2724. # Extract the first word of "gcc", so it can be a program name with args.
  2725. set dummy gcc; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$ac_ct_CC"; then
  2732. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2741. ac_cv_prog_ac_ct_CC="gcc"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2751. if test -n "$ac_ct_CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2753. $as_echo "$ac_ct_CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. if test "x$ac_ct_CC" = x; then
  2759. CC=""
  2760. else
  2761. case $cross_compiling:$ac_tool_warned in
  2762. yes:)
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2765. ac_tool_warned=yes ;;
  2766. esac
  2767. CC=$ac_ct_CC
  2768. fi
  2769. else
  2770. CC="$ac_cv_prog_CC"
  2771. fi
  2772. if test -z "$CC"; then
  2773. if test -n "$ac_tool_prefix"; then
  2774. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2775. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_CC+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$CC"; then
  2782. ac_cv_prog_CC="$CC" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. CC=$ac_cv_prog_CC
  2801. if test -n "$CC"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2803. $as_echo "$CC" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. fi
  2809. fi
  2810. if test -z "$CC"; then
  2811. # Extract the first word of "cc", so it can be a program name with args.
  2812. set dummy cc; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_CC+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$CC"; then
  2819. ac_cv_prog_CC="$CC" # Let the user override the test.
  2820. else
  2821. ac_prog_rejected=no
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2830. ac_prog_rejected=yes
  2831. continue
  2832. fi
  2833. ac_cv_prog_CC="cc"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. if test $ac_prog_rejected = yes; then
  2841. # We found a bogon in the path, so make sure we never use it.
  2842. set dummy $ac_cv_prog_CC
  2843. shift
  2844. if test $# != 0; then
  2845. # We chose a different compiler from the bogus one.
  2846. # However, it has the same basename, so the bogon will be chosen
  2847. # first if we set CC to just the basename; use the full file name.
  2848. shift
  2849. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2850. fi
  2851. fi
  2852. fi
  2853. fi
  2854. CC=$ac_cv_prog_CC
  2855. if test -n "$CC"; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2857. $as_echo "$CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. fi
  2863. if test -z "$CC"; then
  2864. if test -n "$ac_tool_prefix"; then
  2865. for ac_prog in cl.exe
  2866. do
  2867. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2868. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if ${ac_cv_prog_CC+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$CC"; then
  2875. ac_cv_prog_CC="$CC" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2884. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. CC=$ac_cv_prog_CC
  2894. if test -n "$CC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2896. $as_echo "$CC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. test -n "$CC" && break
  2902. done
  2903. fi
  2904. if test -z "$CC"; then
  2905. ac_ct_CC=$CC
  2906. for ac_prog in cl.exe
  2907. do
  2908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2909. set dummy $ac_prog; 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 ${ac_cv_prog_ac_ct_CC+:} false; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. if test -n "$ac_ct_CC"; then
  2916. ac_cv_prog_ac_ct_CC="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2925. ac_cv_prog_ac_ct_CC="$ac_prog"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2935. if test -n "$ac_ct_CC"; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2937. $as_echo "$ac_ct_CC" >&6; }
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. fi
  2942. test -n "$ac_ct_CC" && break
  2943. done
  2944. if test "x$ac_ct_CC" = x; then
  2945. CC=""
  2946. else
  2947. case $cross_compiling:$ac_tool_warned in
  2948. yes:)
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2951. ac_tool_warned=yes ;;
  2952. esac
  2953. CC=$ac_ct_CC
  2954. fi
  2955. fi
  2956. fi
  2957. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2959. as_fn_error $? "no acceptable C compiler found in \$PATH
  2960. See \`config.log' for more details" "$LINENO" 5; }
  2961. # Provide some information about the compiler.
  2962. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2963. set X $ac_compile
  2964. ac_compiler=$2
  2965. for ac_option in --version -v -V -qversion; do
  2966. { { ac_try="$ac_compiler $ac_option >&5"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2974. ac_status=$?
  2975. if test -s conftest.err; then
  2976. sed '10a\
  2977. ... rest of stderr output deleted ...
  2978. 10q' conftest.err >conftest.er1
  2979. cat conftest.er1 >&5
  2980. fi
  2981. rm -f conftest.er1 conftest.err
  2982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2983. test $ac_status = 0; }
  2984. done
  2985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2986. /* end confdefs.h. */
  2987. int
  2988. main ()
  2989. {
  2990. ;
  2991. return 0;
  2992. }
  2993. _ACEOF
  2994. ac_clean_files_save=$ac_clean_files
  2995. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2996. # Try to create an executable without -o first, disregard a.out.
  2997. # It will help us diagnose broken compilers, and finding out an intuition
  2998. # of exeext.
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3000. $as_echo_n "checking whether the C compiler works... " >&6; }
  3001. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3002. # The possible output files:
  3003. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3004. ac_rmfiles=
  3005. for ac_file in $ac_files
  3006. do
  3007. case $ac_file in
  3008. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3009. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3010. esac
  3011. done
  3012. rm -f $ac_rmfiles
  3013. if { { ac_try="$ac_link_default"
  3014. case "(($ac_try" in
  3015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3016. *) ac_try_echo=$ac_try;;
  3017. esac
  3018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3019. $as_echo "$ac_try_echo"; } >&5
  3020. (eval "$ac_link_default") 2>&5
  3021. ac_status=$?
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3023. test $ac_status = 0; }; then :
  3024. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3025. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3026. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3027. # so that the user can short-circuit this test for compilers unknown to
  3028. # Autoconf.
  3029. for ac_file in $ac_files ''
  3030. do
  3031. test -f "$ac_file" || continue
  3032. case $ac_file in
  3033. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3034. ;;
  3035. [ab].out )
  3036. # We found the default executable, but exeext='' is most
  3037. # certainly right.
  3038. break;;
  3039. *.* )
  3040. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3041. then :; else
  3042. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3043. fi
  3044. # We set ac_cv_exeext here because the later test for it is not
  3045. # safe: cross compilers may not add the suffix if given an `-o'
  3046. # argument, so we may need to know it at that point already.
  3047. # Even if this section looks crufty: it has the advantage of
  3048. # actually working.
  3049. break;;
  3050. * )
  3051. break;;
  3052. esac
  3053. done
  3054. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3055. else
  3056. ac_file=''
  3057. fi
  3058. if test -z "$ac_file"; then :
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. $as_echo "no" >&6; }
  3061. $as_echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error 77 "C compiler cannot create executables
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. else
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3069. $as_echo "yes" >&6; }
  3070. fi
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3072. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3074. $as_echo "$ac_file" >&6; }
  3075. ac_exeext=$ac_cv_exeext
  3076. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3077. ac_clean_files=$ac_clean_files_save
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3079. $as_echo_n "checking for suffix of executables... " >&6; }
  3080. if { { ac_try="$ac_link"
  3081. case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. $as_echo "$ac_try_echo"; } >&5
  3087. (eval "$ac_link") 2>&5
  3088. ac_status=$?
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }; then :
  3091. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3092. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3093. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3094. # `rm'.
  3095. for ac_file in conftest.exe conftest conftest.*; do
  3096. test -f "$ac_file" || continue
  3097. case $ac_file in
  3098. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3099. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3100. break;;
  3101. * ) break;;
  3102. esac
  3103. done
  3104. else
  3105. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3107. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3108. See \`config.log' for more details" "$LINENO" 5; }
  3109. fi
  3110. rm -f conftest conftest$ac_cv_exeext
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3112. $as_echo "$ac_cv_exeext" >&6; }
  3113. rm -f conftest.$ac_ext
  3114. EXEEXT=$ac_cv_exeext
  3115. ac_exeext=$EXEEXT
  3116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h. */
  3118. #include <stdio.h>
  3119. int
  3120. main ()
  3121. {
  3122. FILE *f = fopen ("conftest.out", "w");
  3123. return ferror (f) || fclose (f) != 0;
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. ac_clean_files="$ac_clean_files conftest.out"
  3129. # Check that the compiler produces executables we can run. If not, either
  3130. # the compiler is broken, or we cross compile.
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3132. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3133. if test "$cross_compiling" != yes; then
  3134. { { ac_try="$ac_link"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_link") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }
  3145. if { ac_try='./conftest$ac_cv_exeext'
  3146. { { case "(($ac_try" in
  3147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3148. *) ac_try_echo=$ac_try;;
  3149. esac
  3150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3151. $as_echo "$ac_try_echo"; } >&5
  3152. (eval "$ac_try") 2>&5
  3153. ac_status=$?
  3154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3155. test $ac_status = 0; }; }; then
  3156. cross_compiling=no
  3157. else
  3158. if test "$cross_compiling" = maybe; then
  3159. cross_compiling=yes
  3160. else
  3161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3163. as_fn_error $? "cannot run C compiled programs.
  3164. If you meant to cross compile, use \`--host'.
  3165. See \`config.log' for more details" "$LINENO" 5; }
  3166. fi
  3167. fi
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3170. $as_echo "$cross_compiling" >&6; }
  3171. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3172. ac_clean_files=$ac_clean_files_save
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3174. $as_echo_n "checking for suffix of object files... " >&6; }
  3175. if ${ac_cv_objext+:} false; then :
  3176. $as_echo_n "(cached) " >&6
  3177. else
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. rm -f conftest.o conftest.obj
  3188. if { { ac_try="$ac_compile"
  3189. case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. $as_echo "$ac_try_echo"; } >&5
  3195. (eval "$ac_compile") 2>&5
  3196. ac_status=$?
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }; then :
  3199. for ac_file in conftest.o conftest.obj conftest.*; do
  3200. test -f "$ac_file" || continue;
  3201. case $ac_file in
  3202. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3203. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3204. break;;
  3205. esac
  3206. done
  3207. else
  3208. $as_echo "$as_me: failed program was:" >&5
  3209. sed 's/^/| /' conftest.$ac_ext >&5
  3210. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3212. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3213. See \`config.log' for more details" "$LINENO" 5; }
  3214. fi
  3215. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3218. $as_echo "$ac_cv_objext" >&6; }
  3219. OBJEXT=$ac_cv_objext
  3220. ac_objext=$OBJEXT
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3222. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3223. if ${ac_cv_c_compiler_gnu+:} false; then :
  3224. $as_echo_n "(cached) " >&6
  3225. else
  3226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3227. /* end confdefs.h. */
  3228. int
  3229. main ()
  3230. {
  3231. #ifndef __GNUC__
  3232. choke me
  3233. #endif
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_c_try_compile "$LINENO"; then :
  3239. ac_compiler_gnu=yes
  3240. else
  3241. ac_compiler_gnu=no
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3247. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3248. if test $ac_compiler_gnu = yes; then
  3249. GCC=yes
  3250. else
  3251. GCC=
  3252. fi
  3253. ac_test_CFLAGS=${CFLAGS+set}
  3254. ac_save_CFLAGS=$CFLAGS
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3256. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3257. if ${ac_cv_prog_cc_g+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. ac_save_c_werror_flag=$ac_c_werror_flag
  3261. ac_c_werror_flag=yes
  3262. ac_cv_prog_cc_g=no
  3263. CFLAGS="-g"
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. int
  3267. main ()
  3268. {
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. if ac_fn_c_try_compile "$LINENO"; then :
  3274. ac_cv_prog_cc_g=yes
  3275. else
  3276. CFLAGS=""
  3277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. if ac_fn_c_try_compile "$LINENO"; then :
  3287. else
  3288. ac_c_werror_flag=$ac_save_c_werror_flag
  3289. CFLAGS="-g"
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. int
  3293. main ()
  3294. {
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. if ac_fn_c_try_compile "$LINENO"; then :
  3300. ac_cv_prog_cc_g=yes
  3301. fi
  3302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. fi
  3304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3305. fi
  3306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3307. ac_c_werror_flag=$ac_save_c_werror_flag
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3310. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3311. if test "$ac_test_CFLAGS" = set; then
  3312. CFLAGS=$ac_save_CFLAGS
  3313. elif test $ac_cv_prog_cc_g = yes; then
  3314. if test "$GCC" = yes; then
  3315. CFLAGS="-g -O2"
  3316. else
  3317. CFLAGS="-g"
  3318. fi
  3319. else
  3320. if test "$GCC" = yes; then
  3321. CFLAGS="-O2"
  3322. else
  3323. CFLAGS=
  3324. fi
  3325. fi
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3327. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3328. if ${ac_cv_prog_cc_c89+:} false; then :
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. ac_cv_prog_cc_c89=no
  3332. ac_save_CC=$CC
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. #include <stdarg.h>
  3336. #include <stdio.h>
  3337. struct stat;
  3338. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3339. struct buf { int x; };
  3340. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3341. static char *e (p, i)
  3342. char **p;
  3343. int i;
  3344. {
  3345. return p[i];
  3346. }
  3347. static char *f (char * (*g) (char **, int), char **p, ...)
  3348. {
  3349. char *s;
  3350. va_list v;
  3351. va_start (v,p);
  3352. s = g (p, va_arg (v,int));
  3353. va_end (v);
  3354. return s;
  3355. }
  3356. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3357. function prototypes and stuff, but not '\xHH' hex character constants.
  3358. These don't provoke an error unfortunately, instead are silently treated
  3359. as 'x'. The following induces an error, until -std is added to get
  3360. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3361. array size at least. It's necessary to write '\x00'==0 to get something
  3362. that's true only with -std. */
  3363. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3364. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3365. inside strings and character constants. */
  3366. #define FOO(x) 'x'
  3367. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3368. int test (int i, double x);
  3369. struct s1 {int (*f) (int a);};
  3370. struct s2 {int (*f) (double a);};
  3371. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3372. int argc;
  3373. char **argv;
  3374. int
  3375. main ()
  3376. {
  3377. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3378. ;
  3379. return 0;
  3380. }
  3381. _ACEOF
  3382. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3383. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3384. do
  3385. CC="$ac_save_CC $ac_arg"
  3386. if ac_fn_c_try_compile "$LINENO"; then :
  3387. ac_cv_prog_cc_c89=$ac_arg
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext
  3390. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3391. done
  3392. rm -f conftest.$ac_ext
  3393. CC=$ac_save_CC
  3394. fi
  3395. # AC_CACHE_VAL
  3396. case "x$ac_cv_prog_cc_c89" in
  3397. x)
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3399. $as_echo "none needed" >&6; } ;;
  3400. xno)
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3402. $as_echo "unsupported" >&6; } ;;
  3403. *)
  3404. CC="$CC $ac_cv_prog_cc_c89"
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3406. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3407. esac
  3408. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3409. fi
  3410. ac_ext=c
  3411. ac_cpp='$CPP $CPPFLAGS'
  3412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3415. depcc="$CC" am_compiler_list=
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3417. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3418. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3419. $as_echo_n "(cached) " >&6
  3420. else
  3421. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3422. # We make a subdir and do the tests there. Otherwise we can end up
  3423. # making bogus files that we don't know about and never remove. For
  3424. # instance it was reported that on HP-UX the gcc test will end up
  3425. # making a dummy file named 'D' -- because '-MD' means "put the output
  3426. # in D".
  3427. rm -rf conftest.dir
  3428. mkdir conftest.dir
  3429. # Copy depcomp to subdir because otherwise we won't find it if we're
  3430. # using a relative directory.
  3431. cp "$am_depcomp" conftest.dir
  3432. cd conftest.dir
  3433. # We will build objects and dependencies in a subdirectory because
  3434. # it helps to detect inapplicable dependency modes. For instance
  3435. # both Tru64's cc and ICC support -MD to output dependencies as a
  3436. # side effect of compilation, but ICC will put the dependencies in
  3437. # the current directory while Tru64 will put them in the object
  3438. # directory.
  3439. mkdir sub
  3440. am_cv_CC_dependencies_compiler_type=none
  3441. if test "$am_compiler_list" = ""; then
  3442. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3443. fi
  3444. am__universal=false
  3445. case " $depcc " in #(
  3446. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3447. esac
  3448. for depmode in $am_compiler_list; do
  3449. # Setup a source with many dependencies, because some compilers
  3450. # like to wrap large dependency lists on column 80 (with \), and
  3451. # we should not choose a depcomp mode which is confused by this.
  3452. #
  3453. # We need to recreate these files for each test, as the compiler may
  3454. # overwrite some of them when testing with obscure command lines.
  3455. # This happens at least with the AIX C compiler.
  3456. : > sub/conftest.c
  3457. for i in 1 2 3 4 5 6; do
  3458. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3459. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3460. # Solaris 10 /bin/sh.
  3461. echo '/* dummy */' > sub/conftst$i.h
  3462. done
  3463. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3464. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3465. # mode. It turns out that the SunPro C++ compiler does not properly
  3466. # handle '-M -o', and we need to detect this. Also, some Intel
  3467. # versions had trouble with output in subdirs.
  3468. am__obj=sub/conftest.${OBJEXT-o}
  3469. am__minus_obj="-o $am__obj"
  3470. case $depmode in
  3471. gcc)
  3472. # This depmode causes a compiler race in universal mode.
  3473. test "$am__universal" = false || continue
  3474. ;;
  3475. nosideeffect)
  3476. # After this tag, mechanisms are not by side-effect, so they'll
  3477. # only be used when explicitly requested.
  3478. if test "x$enable_dependency_tracking" = xyes; then
  3479. continue
  3480. else
  3481. break
  3482. fi
  3483. ;;
  3484. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3485. # This compiler won't grok '-c -o', but also, the minuso test has
  3486. # not run yet. These depmodes are late enough in the game, and
  3487. # so weak that their functioning should not be impacted.
  3488. am__obj=conftest.${OBJEXT-o}
  3489. am__minus_obj=
  3490. ;;
  3491. none) break ;;
  3492. esac
  3493. if depmode=$depmode \
  3494. source=sub/conftest.c object=$am__obj \
  3495. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3496. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3497. >/dev/null 2>conftest.err &&
  3498. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3499. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3500. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3501. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3502. # icc doesn't choke on unknown options, it will just issue warnings
  3503. # or remarks (even with -Werror). So we grep stderr for any message
  3504. # that says an option was ignored or not supported.
  3505. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3506. # icc: Command line warning: ignoring option '-M'; no argument required
  3507. # The diagnosis changed in icc 8.0:
  3508. # icc: Command line remark: option '-MP' not supported
  3509. if (grep 'ignoring option' conftest.err ||
  3510. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3511. am_cv_CC_dependencies_compiler_type=$depmode
  3512. break
  3513. fi
  3514. fi
  3515. done
  3516. cd ..
  3517. rm -rf conftest.dir
  3518. else
  3519. am_cv_CC_dependencies_compiler_type=none
  3520. fi
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3523. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3524. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3525. if
  3526. test "x$enable_dependency_tracking" != xno \
  3527. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3528. am__fastdepCC_TRUE=
  3529. am__fastdepCC_FALSE='#'
  3530. else
  3531. am__fastdepCC_TRUE='#'
  3532. am__fastdepCC_FALSE=
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3535. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3536. if ${ac_cv_prog_cc_c99+:} false; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. ac_cv_prog_cc_c99=no
  3540. ac_save_CC=$CC
  3541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3542. /* end confdefs.h. */
  3543. #include <stdarg.h>
  3544. #include <stdbool.h>
  3545. #include <stdlib.h>
  3546. #include <wchar.h>
  3547. #include <stdio.h>
  3548. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3549. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3550. #define showlist(...) puts (#__VA_ARGS__)
  3551. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3552. static void
  3553. test_varargs_macros (void)
  3554. {
  3555. int x = 1234;
  3556. int y = 5678;
  3557. debug ("Flag");
  3558. debug ("X = %d\n", x);
  3559. showlist (The first, second, and third items.);
  3560. report (x>y, "x is %d but y is %d", x, y);
  3561. }
  3562. // Check long long types.
  3563. #define BIG64 18446744073709551615ull
  3564. #define BIG32 4294967295ul
  3565. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3566. #if !BIG_OK
  3567. your preprocessor is broken;
  3568. #endif
  3569. #if BIG_OK
  3570. #else
  3571. your preprocessor is broken;
  3572. #endif
  3573. static long long int bignum = -9223372036854775807LL;
  3574. static unsigned long long int ubignum = BIG64;
  3575. struct incomplete_array
  3576. {
  3577. int datasize;
  3578. double data[];
  3579. };
  3580. struct named_init {
  3581. int number;
  3582. const wchar_t *name;
  3583. double average;
  3584. };
  3585. typedef const char *ccp;
  3586. static inline int
  3587. test_restrict (ccp restrict text)
  3588. {
  3589. // See if C++-style comments work.
  3590. // Iterate through items via the restricted pointer.
  3591. // Also check for declarations in for loops.
  3592. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3593. continue;
  3594. return 0;
  3595. }
  3596. // Check varargs and va_copy.
  3597. static void
  3598. test_varargs (const char *format, ...)
  3599. {
  3600. va_list args;
  3601. va_start (args, format);
  3602. va_list args_copy;
  3603. va_copy (args_copy, args);
  3604. const char *str;
  3605. int number;
  3606. float fnumber;
  3607. while (*format)
  3608. {
  3609. switch (*format++)
  3610. {
  3611. case 's': // string
  3612. str = va_arg (args_copy, const char *);
  3613. break;
  3614. case 'd': // int
  3615. number = va_arg (args_copy, int);
  3616. break;
  3617. case 'f': // float
  3618. fnumber = va_arg (args_copy, double);
  3619. break;
  3620. default:
  3621. break;
  3622. }
  3623. }
  3624. va_end (args_copy);
  3625. va_end (args);
  3626. }
  3627. int
  3628. main ()
  3629. {
  3630. // Check bool.
  3631. _Bool success = false;
  3632. // Check restrict.
  3633. if (test_restrict ("String literal") == 0)
  3634. success = true;
  3635. char *restrict newvar = "Another string";
  3636. // Check varargs.
  3637. test_varargs ("s, d' f .", "string", 65, 34.234);
  3638. test_varargs_macros ();
  3639. // Check flexible array members.
  3640. struct incomplete_array *ia =
  3641. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3642. ia->datasize = 10;
  3643. for (int i = 0; i < ia->datasize; ++i)
  3644. ia->data[i] = i * 1.234;
  3645. // Check named initializers.
  3646. struct named_init ni = {
  3647. .number = 34,
  3648. .name = L"Test wide string",
  3649. .average = 543.34343,
  3650. };
  3651. ni.number = 58;
  3652. int dynamic_array[ni.number];
  3653. dynamic_array[ni.number - 1] = 543;
  3654. // work around unused variable warnings
  3655. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3656. || dynamic_array[ni.number - 1] != 543);
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3662. do
  3663. CC="$ac_save_CC $ac_arg"
  3664. if ac_fn_c_try_compile "$LINENO"; then :
  3665. ac_cv_prog_cc_c99=$ac_arg
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext
  3668. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3669. done
  3670. rm -f conftest.$ac_ext
  3671. CC=$ac_save_CC
  3672. fi
  3673. # AC_CACHE_VAL
  3674. case "x$ac_cv_prog_cc_c99" in
  3675. x)
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3677. $as_echo "none needed" >&6; } ;;
  3678. xno)
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3680. $as_echo "unsupported" >&6; } ;;
  3681. *)
  3682. CC="$CC $ac_cv_prog_cc_c99"
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3684. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3685. esac
  3686. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3687. fi
  3688. ac_ext=c
  3689. ac_cpp='$CPP $CPPFLAGS'
  3690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3694. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3695. # On Suns, sometimes $CPP names a directory.
  3696. if test -n "$CPP" && test -d "$CPP"; then
  3697. CPP=
  3698. fi
  3699. if test -z "$CPP"; then
  3700. if ${ac_cv_prog_CPP+:} false; then :
  3701. $as_echo_n "(cached) " >&6
  3702. else
  3703. # Double quotes because CPP needs to be expanded
  3704. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3705. do
  3706. ac_preproc_ok=false
  3707. for ac_c_preproc_warn_flag in '' yes
  3708. do
  3709. # Use a header file that comes with gcc, so configuring glibc
  3710. # with a fresh cross-compiler works.
  3711. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3712. # <limits.h> exists even on freestanding compilers.
  3713. # On the NeXT, cc -E runs the code through the compiler's parser,
  3714. # not just through cpp. "Syntax error" is here to catch this case.
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. #ifdef __STDC__
  3718. # include <limits.h>
  3719. #else
  3720. # include <assert.h>
  3721. #endif
  3722. Syntax error
  3723. _ACEOF
  3724. if ac_fn_c_try_cpp "$LINENO"; then :
  3725. else
  3726. # Broken: fails on valid input.
  3727. continue
  3728. fi
  3729. rm -f conftest.err conftest.i conftest.$ac_ext
  3730. # OK, works on sane cases. Now check whether nonexistent headers
  3731. # can be detected and how.
  3732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3733. /* end confdefs.h. */
  3734. #include <ac_nonexistent.h>
  3735. _ACEOF
  3736. if ac_fn_c_try_cpp "$LINENO"; then :
  3737. # Broken: success on invalid input.
  3738. continue
  3739. else
  3740. # Passes both tests.
  3741. ac_preproc_ok=:
  3742. break
  3743. fi
  3744. rm -f conftest.err conftest.i conftest.$ac_ext
  3745. done
  3746. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3747. rm -f conftest.i conftest.err conftest.$ac_ext
  3748. if $ac_preproc_ok; then :
  3749. break
  3750. fi
  3751. done
  3752. ac_cv_prog_CPP=$CPP
  3753. fi
  3754. CPP=$ac_cv_prog_CPP
  3755. else
  3756. ac_cv_prog_CPP=$CPP
  3757. fi
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3759. $as_echo "$CPP" >&6; }
  3760. ac_preproc_ok=false
  3761. for ac_c_preproc_warn_flag in '' yes
  3762. do
  3763. # Use a header file that comes with gcc, so configuring glibc
  3764. # with a fresh cross-compiler works.
  3765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3766. # <limits.h> exists even on freestanding compilers.
  3767. # On the NeXT, cc -E runs the code through the compiler's parser,
  3768. # not just through cpp. "Syntax error" is here to catch this case.
  3769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h. */
  3771. #ifdef __STDC__
  3772. # include <limits.h>
  3773. #else
  3774. # include <assert.h>
  3775. #endif
  3776. Syntax error
  3777. _ACEOF
  3778. if ac_fn_c_try_cpp "$LINENO"; then :
  3779. else
  3780. # Broken: fails on valid input.
  3781. continue
  3782. fi
  3783. rm -f conftest.err conftest.i conftest.$ac_ext
  3784. # OK, works on sane cases. Now check whether nonexistent headers
  3785. # can be detected and how.
  3786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end confdefs.h. */
  3788. #include <ac_nonexistent.h>
  3789. _ACEOF
  3790. if ac_fn_c_try_cpp "$LINENO"; then :
  3791. # Broken: success on invalid input.
  3792. continue
  3793. else
  3794. # Passes both tests.
  3795. ac_preproc_ok=:
  3796. break
  3797. fi
  3798. rm -f conftest.err conftest.i conftest.$ac_ext
  3799. done
  3800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3801. rm -f conftest.i conftest.err conftest.$ac_ext
  3802. if $ac_preproc_ok; then :
  3803. else
  3804. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3805. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3806. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3807. See \`config.log' for more details" "$LINENO" 5; }
  3808. fi
  3809. ac_ext=c
  3810. ac_cpp='$CPP $CPPFLAGS'
  3811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3815. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3816. if ${ac_cv_path_GREP+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -z "$GREP"; then
  3820. ac_path_GREP_found=false
  3821. # Loop through the user's path and test for each of PROGNAME-LIST
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_prog in grep ggrep; do
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3830. as_fn_executable_p "$ac_path_GREP" || continue
  3831. # Check for GNU ac_path_GREP and select it if it is found.
  3832. # Check for GNU $ac_path_GREP
  3833. case `"$ac_path_GREP" --version 2>&1` in
  3834. *GNU*)
  3835. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3836. *)
  3837. ac_count=0
  3838. $as_echo_n 0123456789 >"conftest.in"
  3839. while :
  3840. do
  3841. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3842. mv "conftest.tmp" "conftest.in"
  3843. cp "conftest.in" "conftest.nl"
  3844. $as_echo 'GREP' >> "conftest.nl"
  3845. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3846. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3847. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3848. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3849. # Best one so far, save it but keep looking for a better one
  3850. ac_cv_path_GREP="$ac_path_GREP"
  3851. ac_path_GREP_max=$ac_count
  3852. fi
  3853. # 10*(2^10) chars as input seems more than enough
  3854. test $ac_count -gt 10 && break
  3855. done
  3856. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3857. esac
  3858. $ac_path_GREP_found && break 3
  3859. done
  3860. done
  3861. done
  3862. IFS=$as_save_IFS
  3863. if test -z "$ac_cv_path_GREP"; then
  3864. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3865. fi
  3866. else
  3867. ac_cv_path_GREP=$GREP
  3868. fi
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3871. $as_echo "$ac_cv_path_GREP" >&6; }
  3872. GREP="$ac_cv_path_GREP"
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3874. $as_echo_n "checking for egrep... " >&6; }
  3875. if ${ac_cv_path_EGREP+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3879. then ac_cv_path_EGREP="$GREP -E"
  3880. else
  3881. if test -z "$EGREP"; then
  3882. ac_path_EGREP_found=false
  3883. # Loop through the user's path and test for each of PROGNAME-LIST
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_prog in egrep; do
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3892. as_fn_executable_p "$ac_path_EGREP" || continue
  3893. # Check for GNU ac_path_EGREP and select it if it is found.
  3894. # Check for GNU $ac_path_EGREP
  3895. case `"$ac_path_EGREP" --version 2>&1` in
  3896. *GNU*)
  3897. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3898. *)
  3899. ac_count=0
  3900. $as_echo_n 0123456789 >"conftest.in"
  3901. while :
  3902. do
  3903. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3904. mv "conftest.tmp" "conftest.in"
  3905. cp "conftest.in" "conftest.nl"
  3906. $as_echo 'EGREP' >> "conftest.nl"
  3907. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3908. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3909. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3910. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3911. # Best one so far, save it but keep looking for a better one
  3912. ac_cv_path_EGREP="$ac_path_EGREP"
  3913. ac_path_EGREP_max=$ac_count
  3914. fi
  3915. # 10*(2^10) chars as input seems more than enough
  3916. test $ac_count -gt 10 && break
  3917. done
  3918. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3919. esac
  3920. $ac_path_EGREP_found && break 3
  3921. done
  3922. done
  3923. done
  3924. IFS=$as_save_IFS
  3925. if test -z "$ac_cv_path_EGREP"; then
  3926. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3927. fi
  3928. else
  3929. ac_cv_path_EGREP=$EGREP
  3930. fi
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3934. $as_echo "$ac_cv_path_EGREP" >&6; }
  3935. EGREP="$ac_cv_path_EGREP"
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3937. $as_echo_n "checking for ANSI C header files... " >&6; }
  3938. if ${ac_cv_header_stdc+:} false; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3942. /* end confdefs.h. */
  3943. #include <stdlib.h>
  3944. #include <stdarg.h>
  3945. #include <string.h>
  3946. #include <float.h>
  3947. int
  3948. main ()
  3949. {
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_c_try_compile "$LINENO"; then :
  3955. ac_cv_header_stdc=yes
  3956. else
  3957. ac_cv_header_stdc=no
  3958. fi
  3959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3960. if test $ac_cv_header_stdc = yes; then
  3961. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. #include <string.h>
  3965. _ACEOF
  3966. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3967. $EGREP "memchr" >/dev/null 2>&1; then :
  3968. else
  3969. ac_cv_header_stdc=no
  3970. fi
  3971. rm -f conftest*
  3972. fi
  3973. if test $ac_cv_header_stdc = yes; then
  3974. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976. /* end confdefs.h. */
  3977. #include <stdlib.h>
  3978. _ACEOF
  3979. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3980. $EGREP "free" >/dev/null 2>&1; then :
  3981. else
  3982. ac_cv_header_stdc=no
  3983. fi
  3984. rm -f conftest*
  3985. fi
  3986. if test $ac_cv_header_stdc = yes; then
  3987. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3988. if test "$cross_compiling" = yes; then :
  3989. :
  3990. else
  3991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3992. /* end confdefs.h. */
  3993. #include <ctype.h>
  3994. #include <stdlib.h>
  3995. #if ((' ' & 0x0FF) == 0x020)
  3996. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3997. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3998. #else
  3999. # define ISLOWER(c) \
  4000. (('a' <= (c) && (c) <= 'i') \
  4001. || ('j' <= (c) && (c) <= 'r') \
  4002. || ('s' <= (c) && (c) <= 'z'))
  4003. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4004. #endif
  4005. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4006. int
  4007. main ()
  4008. {
  4009. int i;
  4010. for (i = 0; i < 256; i++)
  4011. if (XOR (islower (i), ISLOWER (i))
  4012. || toupper (i) != TOUPPER (i))
  4013. return 2;
  4014. return 0;
  4015. }
  4016. _ACEOF
  4017. if ac_fn_c_try_run "$LINENO"; then :
  4018. else
  4019. ac_cv_header_stdc=no
  4020. fi
  4021. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4022. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4023. fi
  4024. fi
  4025. fi
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4027. $as_echo "$ac_cv_header_stdc" >&6; }
  4028. if test $ac_cv_header_stdc = yes; then
  4029. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4030. fi
  4031. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4032. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4033. inttypes.h stdint.h unistd.h
  4034. do :
  4035. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4036. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4037. "
  4038. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4039. cat >>confdefs.h <<_ACEOF
  4040. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4041. _ACEOF
  4042. fi
  4043. done
  4044. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  4045. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  4046. CLANGCC="yes"
  4047. else
  4048. CLANGCC="no"
  4049. fi
  4050. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  4051. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  4052. INTELCC="yes"
  4053. else
  4054. INTELCC="no"
  4055. fi
  4056. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  4057. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  4058. SUNCC="yes"
  4059. else
  4060. SUNCC="no"
  4061. fi
  4062. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4063. if test -n "$ac_tool_prefix"; then
  4064. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4065. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4067. $as_echo_n "checking for $ac_word... " >&6; }
  4068. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. case $PKG_CONFIG in
  4072. [\\/]* | ?:[\\/]*)
  4073. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4074. ;;
  4075. *)
  4076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4077. for as_dir in $PATH
  4078. do
  4079. IFS=$as_save_IFS
  4080. test -z "$as_dir" && as_dir=.
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4083. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4085. break 2
  4086. fi
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. ;;
  4091. esac
  4092. fi
  4093. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4094. if test -n "$PKG_CONFIG"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4096. $as_echo "$PKG_CONFIG" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. fi
  4102. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4103. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4104. # Extract the first word of "pkg-config", so it can be a program name with args.
  4105. set dummy pkg-config; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. case $ac_pt_PKG_CONFIG in
  4112. [\\/]* | ?:[\\/]*)
  4113. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4114. ;;
  4115. *)
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. for as_dir in $PATH
  4118. do
  4119. IFS=$as_save_IFS
  4120. test -z "$as_dir" && as_dir=.
  4121. for ac_exec_ext in '' $ac_executable_extensions; do
  4122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4123. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4125. break 2
  4126. fi
  4127. done
  4128. done
  4129. IFS=$as_save_IFS
  4130. ;;
  4131. esac
  4132. fi
  4133. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4134. if test -n "$ac_pt_PKG_CONFIG"; then
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4136. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4139. $as_echo "no" >&6; }
  4140. fi
  4141. if test "x$ac_pt_PKG_CONFIG" = x; then
  4142. PKG_CONFIG=""
  4143. else
  4144. case $cross_compiling:$ac_tool_warned in
  4145. yes:)
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4147. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4148. ac_tool_warned=yes ;;
  4149. esac
  4150. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4151. fi
  4152. else
  4153. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4154. fi
  4155. fi
  4156. if test -n "$PKG_CONFIG"; then
  4157. _pkg_min_version=0.9.0
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4159. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4160. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4162. $as_echo "yes" >&6; }
  4163. else
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4165. $as_echo "no" >&6; }
  4166. PKG_CONFIG=""
  4167. fi
  4168. fi
  4169. # Make sure we can run config.sub.
  4170. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4171. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4173. $as_echo_n "checking build system type... " >&6; }
  4174. if ${ac_cv_build+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. ac_build_alias=$build_alias
  4178. test "x$ac_build_alias" = x &&
  4179. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4180. test "x$ac_build_alias" = x &&
  4181. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4182. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4183. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4184. fi
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4186. $as_echo "$ac_cv_build" >&6; }
  4187. case $ac_cv_build in
  4188. *-*-*) ;;
  4189. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4190. esac
  4191. build=$ac_cv_build
  4192. ac_save_IFS=$IFS; IFS='-'
  4193. set x $ac_cv_build
  4194. shift
  4195. build_cpu=$1
  4196. build_vendor=$2
  4197. shift; shift
  4198. # Remember, the first character of IFS is used to create $*,
  4199. # except with old shells:
  4200. build_os=$*
  4201. IFS=$ac_save_IFS
  4202. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4204. $as_echo_n "checking host system type... " >&6; }
  4205. if ${ac_cv_host+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test "x$host_alias" = x; then
  4209. ac_cv_host=$ac_cv_build
  4210. else
  4211. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4212. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4213. fi
  4214. fi
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4216. $as_echo "$ac_cv_host" >&6; }
  4217. case $ac_cv_host in
  4218. *-*-*) ;;
  4219. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4220. esac
  4221. host=$ac_cv_host
  4222. ac_save_IFS=$IFS; IFS='-'
  4223. set x $ac_cv_host
  4224. shift
  4225. host_cpu=$1
  4226. host_vendor=$2
  4227. shift; shift
  4228. # Remember, the first character of IFS is used to create $*,
  4229. # except with old shells:
  4230. host_os=$*
  4231. IFS=$ac_save_IFS
  4232. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4234. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4235. if ${ac_cv_path_SED+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4239. for ac_i in 1 2 3 4 5 6 7; do
  4240. ac_script="$ac_script$as_nl$ac_script"
  4241. done
  4242. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4243. { ac_script=; unset ac_script;}
  4244. if test -z "$SED"; then
  4245. ac_path_SED_found=false
  4246. # Loop through the user's path and test for each of PROGNAME-LIST
  4247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4248. for as_dir in $PATH
  4249. do
  4250. IFS=$as_save_IFS
  4251. test -z "$as_dir" && as_dir=.
  4252. for ac_prog in sed gsed; do
  4253. for ac_exec_ext in '' $ac_executable_extensions; do
  4254. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4255. as_fn_executable_p "$ac_path_SED" || continue
  4256. # Check for GNU ac_path_SED and select it if it is found.
  4257. # Check for GNU $ac_path_SED
  4258. case `"$ac_path_SED" --version 2>&1` in
  4259. *GNU*)
  4260. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4261. *)
  4262. ac_count=0
  4263. $as_echo_n 0123456789 >"conftest.in"
  4264. while :
  4265. do
  4266. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4267. mv "conftest.tmp" "conftest.in"
  4268. cp "conftest.in" "conftest.nl"
  4269. $as_echo '' >> "conftest.nl"
  4270. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4271. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4272. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4273. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4274. # Best one so far, save it but keep looking for a better one
  4275. ac_cv_path_SED="$ac_path_SED"
  4276. ac_path_SED_max=$ac_count
  4277. fi
  4278. # 10*(2^10) chars as input seems more than enough
  4279. test $ac_count -gt 10 && break
  4280. done
  4281. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4282. esac
  4283. $ac_path_SED_found && break 3
  4284. done
  4285. done
  4286. done
  4287. IFS=$as_save_IFS
  4288. if test -z "$ac_cv_path_SED"; then
  4289. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4290. fi
  4291. else
  4292. ac_cv_path_SED=$SED
  4293. fi
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4296. $as_echo "$ac_cv_path_SED" >&6; }
  4297. SED="$ac_cv_path_SED"
  4298. rm -f conftest.sed
  4299. # Check whether --enable-selective-werror was given.
  4300. if test "${enable_selective_werror+set}" = set; then :
  4301. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4302. else
  4303. SELECTIVE_WERROR=yes
  4304. fi
  4305. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4306. if test "x$SUNCC" = "xyes"; then
  4307. BASE_CFLAGS="-v"
  4308. else
  4309. BASE_CFLAGS=""
  4310. fi
  4311. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4312. xorg_testset_save_CFLAGS="$CFLAGS"
  4313. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4314. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4316. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4317. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end confdefs.h. */
  4322. int i;
  4323. _ACEOF
  4324. if ac_fn_c_try_compile "$LINENO"; then :
  4325. xorg_cv_cc_flag_unknown_warning_option=yes
  4326. else
  4327. xorg_cv_cc_flag_unknown_warning_option=no
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4332. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4333. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4334. CFLAGS="$xorg_testset_save_CFLAGS"
  4335. fi
  4336. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4337. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4338. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4339. fi
  4340. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4342. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4343. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4347. /* end confdefs.h. */
  4348. int i;
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. xorg_cv_cc_flag_unused_command_line_argument=yes
  4352. else
  4353. xorg_cv_cc_flag_unused_command_line_argument=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4356. fi
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4358. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4359. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4360. CFLAGS="$xorg_testset_save_CFLAGS"
  4361. fi
  4362. found="no"
  4363. if test $found = "no" ; then
  4364. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4365. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4366. fi
  4367. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4368. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4369. fi
  4370. CFLAGS="$CFLAGS -Wall"
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4372. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4373. cacheid=xorg_cv_cc_flag__Wall
  4374. if eval \${$cacheid+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4378. /* end confdefs.h. */
  4379. int i;
  4380. int
  4381. main ()
  4382. {
  4383. ;
  4384. return 0;
  4385. }
  4386. _ACEOF
  4387. if ac_fn_c_try_link "$LINENO"; then :
  4388. eval $cacheid=yes
  4389. else
  4390. eval $cacheid=no
  4391. fi
  4392. rm -f core conftest.err conftest.$ac_objext \
  4393. conftest$ac_exeext conftest.$ac_ext
  4394. fi
  4395. CFLAGS="$xorg_testset_save_CFLAGS"
  4396. eval supported=\$$cacheid
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4398. $as_echo "$supported" >&6; }
  4399. if test "$supported" = "yes" ; then
  4400. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4401. found="yes"
  4402. fi
  4403. fi
  4404. xorg_testset_save_CFLAGS="$CFLAGS"
  4405. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4406. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4408. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4409. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. int i;
  4415. _ACEOF
  4416. if ac_fn_c_try_compile "$LINENO"; then :
  4417. xorg_cv_cc_flag_unknown_warning_option=yes
  4418. else
  4419. xorg_cv_cc_flag_unknown_warning_option=no
  4420. fi
  4421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4422. fi
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4424. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4425. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4426. CFLAGS="$xorg_testset_save_CFLAGS"
  4427. fi
  4428. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4429. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4430. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4431. fi
  4432. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4434. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4435. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4436. $as_echo_n "(cached) " >&6
  4437. else
  4438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4439. /* end confdefs.h. */
  4440. int i;
  4441. _ACEOF
  4442. if ac_fn_c_try_compile "$LINENO"; then :
  4443. xorg_cv_cc_flag_unused_command_line_argument=yes
  4444. else
  4445. xorg_cv_cc_flag_unused_command_line_argument=no
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4448. fi
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4450. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4451. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4452. CFLAGS="$xorg_testset_save_CFLAGS"
  4453. fi
  4454. found="no"
  4455. if test $found = "no" ; then
  4456. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4457. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4458. fi
  4459. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4460. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4461. fi
  4462. CFLAGS="$CFLAGS -Wpointer-arith"
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4464. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4465. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4466. if eval \${$cacheid+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4470. /* end confdefs.h. */
  4471. int i;
  4472. int
  4473. main ()
  4474. {
  4475. ;
  4476. return 0;
  4477. }
  4478. _ACEOF
  4479. if ac_fn_c_try_link "$LINENO"; then :
  4480. eval $cacheid=yes
  4481. else
  4482. eval $cacheid=no
  4483. fi
  4484. rm -f core conftest.err conftest.$ac_objext \
  4485. conftest$ac_exeext conftest.$ac_ext
  4486. fi
  4487. CFLAGS="$xorg_testset_save_CFLAGS"
  4488. eval supported=\$$cacheid
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4490. $as_echo "$supported" >&6; }
  4491. if test "$supported" = "yes" ; then
  4492. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4493. found="yes"
  4494. fi
  4495. fi
  4496. xorg_testset_save_CFLAGS="$CFLAGS"
  4497. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4498. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4500. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4501. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4505. /* end confdefs.h. */
  4506. int i;
  4507. _ACEOF
  4508. if ac_fn_c_try_compile "$LINENO"; then :
  4509. xorg_cv_cc_flag_unknown_warning_option=yes
  4510. else
  4511. xorg_cv_cc_flag_unknown_warning_option=no
  4512. fi
  4513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4516. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4517. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4518. CFLAGS="$xorg_testset_save_CFLAGS"
  4519. fi
  4520. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4521. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4522. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4523. fi
  4524. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4526. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4527. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532. int i;
  4533. _ACEOF
  4534. if ac_fn_c_try_compile "$LINENO"; then :
  4535. xorg_cv_cc_flag_unused_command_line_argument=yes
  4536. else
  4537. xorg_cv_cc_flag_unused_command_line_argument=no
  4538. fi
  4539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4540. fi
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4542. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4543. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4544. CFLAGS="$xorg_testset_save_CFLAGS"
  4545. fi
  4546. found="no"
  4547. if test $found = "no" ; then
  4548. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4549. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4550. fi
  4551. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4552. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4553. fi
  4554. CFLAGS="$CFLAGS -Wmissing-declarations"
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4556. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4557. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4558. if eval \${$cacheid+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4562. /* end confdefs.h. */
  4563. int i;
  4564. int
  4565. main ()
  4566. {
  4567. ;
  4568. return 0;
  4569. }
  4570. _ACEOF
  4571. if ac_fn_c_try_link "$LINENO"; then :
  4572. eval $cacheid=yes
  4573. else
  4574. eval $cacheid=no
  4575. fi
  4576. rm -f core conftest.err conftest.$ac_objext \
  4577. conftest$ac_exeext conftest.$ac_ext
  4578. fi
  4579. CFLAGS="$xorg_testset_save_CFLAGS"
  4580. eval supported=\$$cacheid
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4582. $as_echo "$supported" >&6; }
  4583. if test "$supported" = "yes" ; then
  4584. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4585. found="yes"
  4586. fi
  4587. fi
  4588. xorg_testset_save_CFLAGS="$CFLAGS"
  4589. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4590. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4592. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4593. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4597. /* end confdefs.h. */
  4598. int i;
  4599. _ACEOF
  4600. if ac_fn_c_try_compile "$LINENO"; then :
  4601. xorg_cv_cc_flag_unknown_warning_option=yes
  4602. else
  4603. xorg_cv_cc_flag_unknown_warning_option=no
  4604. fi
  4605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4606. fi
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4608. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4609. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4610. CFLAGS="$xorg_testset_save_CFLAGS"
  4611. fi
  4612. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4613. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4614. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4615. fi
  4616. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4618. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4619. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4623. /* end confdefs.h. */
  4624. int i;
  4625. _ACEOF
  4626. if ac_fn_c_try_compile "$LINENO"; then :
  4627. xorg_cv_cc_flag_unused_command_line_argument=yes
  4628. else
  4629. xorg_cv_cc_flag_unused_command_line_argument=no
  4630. fi
  4631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4632. fi
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4634. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4635. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4636. CFLAGS="$xorg_testset_save_CFLAGS"
  4637. fi
  4638. found="no"
  4639. if test $found = "no" ; then
  4640. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4641. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4642. fi
  4643. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4644. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4645. fi
  4646. CFLAGS="$CFLAGS -Wformat=2"
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4648. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4649. cacheid=xorg_cv_cc_flag__Wformat_2
  4650. if eval \${$cacheid+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4654. /* end confdefs.h. */
  4655. int i;
  4656. int
  4657. main ()
  4658. {
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_link "$LINENO"; then :
  4664. eval $cacheid=yes
  4665. else
  4666. eval $cacheid=no
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext \
  4669. conftest$ac_exeext conftest.$ac_ext
  4670. fi
  4671. CFLAGS="$xorg_testset_save_CFLAGS"
  4672. eval supported=\$$cacheid
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4674. $as_echo "$supported" >&6; }
  4675. if test "$supported" = "yes" ; then
  4676. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4677. found="yes"
  4678. fi
  4679. fi
  4680. if test $found = "no" ; then
  4681. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4682. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4683. fi
  4684. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4685. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4686. fi
  4687. CFLAGS="$CFLAGS -Wformat"
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4689. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4690. cacheid=xorg_cv_cc_flag__Wformat
  4691. if eval \${$cacheid+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4695. /* end confdefs.h. */
  4696. int i;
  4697. int
  4698. main ()
  4699. {
  4700. ;
  4701. return 0;
  4702. }
  4703. _ACEOF
  4704. if ac_fn_c_try_link "$LINENO"; then :
  4705. eval $cacheid=yes
  4706. else
  4707. eval $cacheid=no
  4708. fi
  4709. rm -f core conftest.err conftest.$ac_objext \
  4710. conftest$ac_exeext conftest.$ac_ext
  4711. fi
  4712. CFLAGS="$xorg_testset_save_CFLAGS"
  4713. eval supported=\$$cacheid
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4715. $as_echo "$supported" >&6; }
  4716. if test "$supported" = "yes" ; then
  4717. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4718. found="yes"
  4719. fi
  4720. fi
  4721. xorg_testset_save_CFLAGS="$CFLAGS"
  4722. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4723. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4725. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4726. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h. */
  4731. int i;
  4732. _ACEOF
  4733. if ac_fn_c_try_compile "$LINENO"; then :
  4734. xorg_cv_cc_flag_unknown_warning_option=yes
  4735. else
  4736. xorg_cv_cc_flag_unknown_warning_option=no
  4737. fi
  4738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4739. fi
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4741. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4742. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4743. CFLAGS="$xorg_testset_save_CFLAGS"
  4744. fi
  4745. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4746. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4747. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4748. fi
  4749. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4751. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4752. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. int i;
  4758. _ACEOF
  4759. if ac_fn_c_try_compile "$LINENO"; then :
  4760. xorg_cv_cc_flag_unused_command_line_argument=yes
  4761. else
  4762. xorg_cv_cc_flag_unused_command_line_argument=no
  4763. fi
  4764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4767. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4768. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4769. CFLAGS="$xorg_testset_save_CFLAGS"
  4770. fi
  4771. found="no"
  4772. if test $found = "no" ; then
  4773. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4774. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4775. fi
  4776. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4777. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4778. fi
  4779. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4781. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4782. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4783. if eval \${$cacheid+:} false; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4787. /* end confdefs.h. */
  4788. int i;
  4789. int
  4790. main ()
  4791. {
  4792. ;
  4793. return 0;
  4794. }
  4795. _ACEOF
  4796. if ac_fn_c_try_link "$LINENO"; then :
  4797. eval $cacheid=yes
  4798. else
  4799. eval $cacheid=no
  4800. fi
  4801. rm -f core conftest.err conftest.$ac_objext \
  4802. conftest$ac_exeext conftest.$ac_ext
  4803. fi
  4804. CFLAGS="$xorg_testset_save_CFLAGS"
  4805. eval supported=\$$cacheid
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4807. $as_echo "$supported" >&6; }
  4808. if test "$supported" = "yes" ; then
  4809. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4810. found="yes"
  4811. fi
  4812. fi
  4813. xorg_testset_save_CFLAGS="$CFLAGS"
  4814. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4815. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4817. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4818. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4822. /* end confdefs.h. */
  4823. int i;
  4824. _ACEOF
  4825. if ac_fn_c_try_compile "$LINENO"; then :
  4826. xorg_cv_cc_flag_unknown_warning_option=yes
  4827. else
  4828. xorg_cv_cc_flag_unknown_warning_option=no
  4829. fi
  4830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4831. fi
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4833. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4834. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4835. CFLAGS="$xorg_testset_save_CFLAGS"
  4836. fi
  4837. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4838. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4839. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4840. fi
  4841. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4843. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4844. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4845. $as_echo_n "(cached) " >&6
  4846. else
  4847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4848. /* end confdefs.h. */
  4849. int i;
  4850. _ACEOF
  4851. if ac_fn_c_try_compile "$LINENO"; then :
  4852. xorg_cv_cc_flag_unused_command_line_argument=yes
  4853. else
  4854. xorg_cv_cc_flag_unused_command_line_argument=no
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4859. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4860. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4861. CFLAGS="$xorg_testset_save_CFLAGS"
  4862. fi
  4863. found="no"
  4864. if test $found = "no" ; then
  4865. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4866. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4867. fi
  4868. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4869. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4870. fi
  4871. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4873. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4874. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4875. if eval \${$cacheid+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4879. /* end confdefs.h. */
  4880. int i;
  4881. int
  4882. main ()
  4883. {
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. if ac_fn_c_try_link "$LINENO"; then :
  4889. eval $cacheid=yes
  4890. else
  4891. eval $cacheid=no
  4892. fi
  4893. rm -f core conftest.err conftest.$ac_objext \
  4894. conftest$ac_exeext conftest.$ac_ext
  4895. fi
  4896. CFLAGS="$xorg_testset_save_CFLAGS"
  4897. eval supported=\$$cacheid
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4899. $as_echo "$supported" >&6; }
  4900. if test "$supported" = "yes" ; then
  4901. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4902. found="yes"
  4903. fi
  4904. fi
  4905. xorg_testset_save_CFLAGS="$CFLAGS"
  4906. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4907. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4909. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4910. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4914. /* end confdefs.h. */
  4915. int i;
  4916. _ACEOF
  4917. if ac_fn_c_try_compile "$LINENO"; then :
  4918. xorg_cv_cc_flag_unknown_warning_option=yes
  4919. else
  4920. xorg_cv_cc_flag_unknown_warning_option=no
  4921. fi
  4922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4925. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4926. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4927. CFLAGS="$xorg_testset_save_CFLAGS"
  4928. fi
  4929. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4930. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4931. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4932. fi
  4933. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4935. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4936. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4940. /* end confdefs.h. */
  4941. int i;
  4942. _ACEOF
  4943. if ac_fn_c_try_compile "$LINENO"; then :
  4944. xorg_cv_cc_flag_unused_command_line_argument=yes
  4945. else
  4946. xorg_cv_cc_flag_unused_command_line_argument=no
  4947. fi
  4948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4949. fi
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4951. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4952. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4953. CFLAGS="$xorg_testset_save_CFLAGS"
  4954. fi
  4955. found="no"
  4956. if test $found = "no" ; then
  4957. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4958. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4959. fi
  4960. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4961. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4962. fi
  4963. CFLAGS="$CFLAGS -Wnested-externs"
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4965. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4966. cacheid=xorg_cv_cc_flag__Wnested_externs
  4967. if eval \${$cacheid+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4971. /* end confdefs.h. */
  4972. int i;
  4973. int
  4974. main ()
  4975. {
  4976. ;
  4977. return 0;
  4978. }
  4979. _ACEOF
  4980. if ac_fn_c_try_link "$LINENO"; then :
  4981. eval $cacheid=yes
  4982. else
  4983. eval $cacheid=no
  4984. fi
  4985. rm -f core conftest.err conftest.$ac_objext \
  4986. conftest$ac_exeext conftest.$ac_ext
  4987. fi
  4988. CFLAGS="$xorg_testset_save_CFLAGS"
  4989. eval supported=\$$cacheid
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4991. $as_echo "$supported" >&6; }
  4992. if test "$supported" = "yes" ; then
  4993. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4994. found="yes"
  4995. fi
  4996. fi
  4997. xorg_testset_save_CFLAGS="$CFLAGS"
  4998. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4999. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5001. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5002. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5006. /* end confdefs.h. */
  5007. int i;
  5008. _ACEOF
  5009. if ac_fn_c_try_compile "$LINENO"; then :
  5010. xorg_cv_cc_flag_unknown_warning_option=yes
  5011. else
  5012. xorg_cv_cc_flag_unknown_warning_option=no
  5013. fi
  5014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5015. fi
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5017. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5018. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5019. CFLAGS="$xorg_testset_save_CFLAGS"
  5020. fi
  5021. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5022. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5023. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5024. fi
  5025. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5027. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5028. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5029. $as_echo_n "(cached) " >&6
  5030. else
  5031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5032. /* end confdefs.h. */
  5033. int i;
  5034. _ACEOF
  5035. if ac_fn_c_try_compile "$LINENO"; then :
  5036. xorg_cv_cc_flag_unused_command_line_argument=yes
  5037. else
  5038. xorg_cv_cc_flag_unused_command_line_argument=no
  5039. fi
  5040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5041. fi
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5043. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5044. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5045. CFLAGS="$xorg_testset_save_CFLAGS"
  5046. fi
  5047. found="no"
  5048. if test $found = "no" ; then
  5049. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5050. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5051. fi
  5052. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5053. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5054. fi
  5055. CFLAGS="$CFLAGS -Wbad-function-cast"
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  5057. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  5058. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  5059. if eval \${$cacheid+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5063. /* end confdefs.h. */
  5064. int i;
  5065. int
  5066. main ()
  5067. {
  5068. ;
  5069. return 0;
  5070. }
  5071. _ACEOF
  5072. if ac_fn_c_try_link "$LINENO"; then :
  5073. eval $cacheid=yes
  5074. else
  5075. eval $cacheid=no
  5076. fi
  5077. rm -f core conftest.err conftest.$ac_objext \
  5078. conftest$ac_exeext conftest.$ac_ext
  5079. fi
  5080. CFLAGS="$xorg_testset_save_CFLAGS"
  5081. eval supported=\$$cacheid
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5083. $as_echo "$supported" >&6; }
  5084. if test "$supported" = "yes" ; then
  5085. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  5086. found="yes"
  5087. fi
  5088. fi
  5089. xorg_testset_save_CFLAGS="$CFLAGS"
  5090. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5091. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5093. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5094. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end confdefs.h. */
  5099. int i;
  5100. _ACEOF
  5101. if ac_fn_c_try_compile "$LINENO"; then :
  5102. xorg_cv_cc_flag_unknown_warning_option=yes
  5103. else
  5104. xorg_cv_cc_flag_unknown_warning_option=no
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5109. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5110. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5111. CFLAGS="$xorg_testset_save_CFLAGS"
  5112. fi
  5113. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5114. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5115. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5116. fi
  5117. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5119. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5120. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5124. /* end confdefs.h. */
  5125. int i;
  5126. _ACEOF
  5127. if ac_fn_c_try_compile "$LINENO"; then :
  5128. xorg_cv_cc_flag_unused_command_line_argument=yes
  5129. else
  5130. xorg_cv_cc_flag_unused_command_line_argument=no
  5131. fi
  5132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5133. fi
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5135. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5136. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5137. CFLAGS="$xorg_testset_save_CFLAGS"
  5138. fi
  5139. found="no"
  5140. if test $found = "no" ; then
  5141. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5142. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5143. fi
  5144. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5145. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5146. fi
  5147. CFLAGS="$CFLAGS -Wold-style-definition"
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  5149. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5150. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5151. if eval \${$cacheid+:} false; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5155. /* end confdefs.h. */
  5156. int i;
  5157. int
  5158. main ()
  5159. {
  5160. ;
  5161. return 0;
  5162. }
  5163. _ACEOF
  5164. if ac_fn_c_try_link "$LINENO"; then :
  5165. eval $cacheid=yes
  5166. else
  5167. eval $cacheid=no
  5168. fi
  5169. rm -f core conftest.err conftest.$ac_objext \
  5170. conftest$ac_exeext conftest.$ac_ext
  5171. fi
  5172. CFLAGS="$xorg_testset_save_CFLAGS"
  5173. eval supported=\$$cacheid
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5175. $as_echo "$supported" >&6; }
  5176. if test "$supported" = "yes" ; then
  5177. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5178. found="yes"
  5179. fi
  5180. fi
  5181. if test $found = "no" ; then
  5182. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5183. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5184. fi
  5185. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5186. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5187. fi
  5188. CFLAGS="$CFLAGS -fd"
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5190. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5191. cacheid=xorg_cv_cc_flag__fd
  5192. if eval \${$cacheid+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. /* end confdefs.h. */
  5197. int i;
  5198. int
  5199. main ()
  5200. {
  5201. ;
  5202. return 0;
  5203. }
  5204. _ACEOF
  5205. if ac_fn_c_try_link "$LINENO"; then :
  5206. eval $cacheid=yes
  5207. else
  5208. eval $cacheid=no
  5209. fi
  5210. rm -f core conftest.err conftest.$ac_objext \
  5211. conftest$ac_exeext conftest.$ac_ext
  5212. fi
  5213. CFLAGS="$xorg_testset_save_CFLAGS"
  5214. eval supported=\$$cacheid
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5216. $as_echo "$supported" >&6; }
  5217. if test "$supported" = "yes" ; then
  5218. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5219. found="yes"
  5220. fi
  5221. fi
  5222. xorg_testset_save_CFLAGS="$CFLAGS"
  5223. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5224. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5226. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5227. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5228. $as_echo_n "(cached) " >&6
  5229. else
  5230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5231. /* end confdefs.h. */
  5232. int i;
  5233. _ACEOF
  5234. if ac_fn_c_try_compile "$LINENO"; then :
  5235. xorg_cv_cc_flag_unknown_warning_option=yes
  5236. else
  5237. xorg_cv_cc_flag_unknown_warning_option=no
  5238. fi
  5239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5240. fi
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5242. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5243. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5244. CFLAGS="$xorg_testset_save_CFLAGS"
  5245. fi
  5246. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5247. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5248. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5249. fi
  5250. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5252. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5253. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5254. $as_echo_n "(cached) " >&6
  5255. else
  5256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5257. /* end confdefs.h. */
  5258. int i;
  5259. _ACEOF
  5260. if ac_fn_c_try_compile "$LINENO"; then :
  5261. xorg_cv_cc_flag_unused_command_line_argument=yes
  5262. else
  5263. xorg_cv_cc_flag_unused_command_line_argument=no
  5264. fi
  5265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5266. fi
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5268. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5269. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5270. CFLAGS="$xorg_testset_save_CFLAGS"
  5271. fi
  5272. found="no"
  5273. if test $found = "no" ; then
  5274. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5275. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5276. fi
  5277. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5278. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5279. fi
  5280. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5282. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5283. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5284. if eval \${$cacheid+:} false; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5288. /* end confdefs.h. */
  5289. int i;
  5290. int
  5291. main ()
  5292. {
  5293. ;
  5294. return 0;
  5295. }
  5296. _ACEOF
  5297. if ac_fn_c_try_link "$LINENO"; then :
  5298. eval $cacheid=yes
  5299. else
  5300. eval $cacheid=no
  5301. fi
  5302. rm -f core conftest.err conftest.$ac_objext \
  5303. conftest$ac_exeext conftest.$ac_ext
  5304. fi
  5305. CFLAGS="$xorg_testset_save_CFLAGS"
  5306. eval supported=\$$cacheid
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5308. $as_echo "$supported" >&6; }
  5309. if test "$supported" = "yes" ; then
  5310. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5311. found="yes"
  5312. fi
  5313. fi
  5314. # This chunk adds additional warnings that could catch undesired effects.
  5315. xorg_testset_save_CFLAGS="$CFLAGS"
  5316. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5317. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5319. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5320. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. int i;
  5326. _ACEOF
  5327. if ac_fn_c_try_compile "$LINENO"; then :
  5328. xorg_cv_cc_flag_unknown_warning_option=yes
  5329. else
  5330. xorg_cv_cc_flag_unknown_warning_option=no
  5331. fi
  5332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5333. fi
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5335. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5336. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5337. CFLAGS="$xorg_testset_save_CFLAGS"
  5338. fi
  5339. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5340. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5341. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5342. fi
  5343. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5345. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5346. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5347. $as_echo_n "(cached) " >&6
  5348. else
  5349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5350. /* end confdefs.h. */
  5351. int i;
  5352. _ACEOF
  5353. if ac_fn_c_try_compile "$LINENO"; then :
  5354. xorg_cv_cc_flag_unused_command_line_argument=yes
  5355. else
  5356. xorg_cv_cc_flag_unused_command_line_argument=no
  5357. fi
  5358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5359. fi
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5361. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5362. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5363. CFLAGS="$xorg_testset_save_CFLAGS"
  5364. fi
  5365. found="no"
  5366. if test $found = "no" ; then
  5367. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5368. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5369. fi
  5370. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5371. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5372. fi
  5373. CFLAGS="$CFLAGS -Wunused"
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5375. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5376. cacheid=xorg_cv_cc_flag__Wunused
  5377. if eval \${$cacheid+:} false; then :
  5378. $as_echo_n "(cached) " >&6
  5379. else
  5380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5381. /* end confdefs.h. */
  5382. int i;
  5383. int
  5384. main ()
  5385. {
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. if ac_fn_c_try_link "$LINENO"; then :
  5391. eval $cacheid=yes
  5392. else
  5393. eval $cacheid=no
  5394. fi
  5395. rm -f core conftest.err conftest.$ac_objext \
  5396. conftest$ac_exeext conftest.$ac_ext
  5397. fi
  5398. CFLAGS="$xorg_testset_save_CFLAGS"
  5399. eval supported=\$$cacheid
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5401. $as_echo "$supported" >&6; }
  5402. if test "$supported" = "yes" ; then
  5403. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5404. found="yes"
  5405. fi
  5406. fi
  5407. xorg_testset_save_CFLAGS="$CFLAGS"
  5408. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5409. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5411. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5412. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5416. /* end confdefs.h. */
  5417. int i;
  5418. _ACEOF
  5419. if ac_fn_c_try_compile "$LINENO"; then :
  5420. xorg_cv_cc_flag_unknown_warning_option=yes
  5421. else
  5422. xorg_cv_cc_flag_unknown_warning_option=no
  5423. fi
  5424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5425. fi
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5427. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5428. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5429. CFLAGS="$xorg_testset_save_CFLAGS"
  5430. fi
  5431. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5432. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5433. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5434. fi
  5435. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5437. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5438. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5439. $as_echo_n "(cached) " >&6
  5440. else
  5441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5442. /* end confdefs.h. */
  5443. int i;
  5444. _ACEOF
  5445. if ac_fn_c_try_compile "$LINENO"; then :
  5446. xorg_cv_cc_flag_unused_command_line_argument=yes
  5447. else
  5448. xorg_cv_cc_flag_unused_command_line_argument=no
  5449. fi
  5450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5451. fi
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5453. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5454. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5455. CFLAGS="$xorg_testset_save_CFLAGS"
  5456. fi
  5457. found="no"
  5458. if test $found = "no" ; then
  5459. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5460. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5461. fi
  5462. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5463. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5464. fi
  5465. CFLAGS="$CFLAGS -Wuninitialized"
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5467. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5468. cacheid=xorg_cv_cc_flag__Wuninitialized
  5469. if eval \${$cacheid+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5473. /* end confdefs.h. */
  5474. int i;
  5475. int
  5476. main ()
  5477. {
  5478. ;
  5479. return 0;
  5480. }
  5481. _ACEOF
  5482. if ac_fn_c_try_link "$LINENO"; then :
  5483. eval $cacheid=yes
  5484. else
  5485. eval $cacheid=no
  5486. fi
  5487. rm -f core conftest.err conftest.$ac_objext \
  5488. conftest$ac_exeext conftest.$ac_ext
  5489. fi
  5490. CFLAGS="$xorg_testset_save_CFLAGS"
  5491. eval supported=\$$cacheid
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5493. $as_echo "$supported" >&6; }
  5494. if test "$supported" = "yes" ; then
  5495. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5496. found="yes"
  5497. fi
  5498. fi
  5499. xorg_testset_save_CFLAGS="$CFLAGS"
  5500. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5501. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5503. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5504. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5508. /* end confdefs.h. */
  5509. int i;
  5510. _ACEOF
  5511. if ac_fn_c_try_compile "$LINENO"; then :
  5512. xorg_cv_cc_flag_unknown_warning_option=yes
  5513. else
  5514. xorg_cv_cc_flag_unknown_warning_option=no
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5519. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5520. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5521. CFLAGS="$xorg_testset_save_CFLAGS"
  5522. fi
  5523. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5524. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5526. fi
  5527. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5529. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5530. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5534. /* end confdefs.h. */
  5535. int i;
  5536. _ACEOF
  5537. if ac_fn_c_try_compile "$LINENO"; then :
  5538. xorg_cv_cc_flag_unused_command_line_argument=yes
  5539. else
  5540. xorg_cv_cc_flag_unused_command_line_argument=no
  5541. fi
  5542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5543. fi
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5545. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5546. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5547. CFLAGS="$xorg_testset_save_CFLAGS"
  5548. fi
  5549. found="no"
  5550. if test $found = "no" ; then
  5551. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5552. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5553. fi
  5554. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5555. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5556. fi
  5557. CFLAGS="$CFLAGS -Wshadow"
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5559. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5560. cacheid=xorg_cv_cc_flag__Wshadow
  5561. if eval \${$cacheid+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5565. /* end confdefs.h. */
  5566. int i;
  5567. int
  5568. main ()
  5569. {
  5570. ;
  5571. return 0;
  5572. }
  5573. _ACEOF
  5574. if ac_fn_c_try_link "$LINENO"; then :
  5575. eval $cacheid=yes
  5576. else
  5577. eval $cacheid=no
  5578. fi
  5579. rm -f core conftest.err conftest.$ac_objext \
  5580. conftest$ac_exeext conftest.$ac_ext
  5581. fi
  5582. CFLAGS="$xorg_testset_save_CFLAGS"
  5583. eval supported=\$$cacheid
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5585. $as_echo "$supported" >&6; }
  5586. if test "$supported" = "yes" ; then
  5587. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5588. found="yes"
  5589. fi
  5590. fi
  5591. xorg_testset_save_CFLAGS="$CFLAGS"
  5592. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5593. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5595. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5596. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5600. /* end confdefs.h. */
  5601. int i;
  5602. _ACEOF
  5603. if ac_fn_c_try_compile "$LINENO"; then :
  5604. xorg_cv_cc_flag_unknown_warning_option=yes
  5605. else
  5606. xorg_cv_cc_flag_unknown_warning_option=no
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5609. fi
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5611. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5612. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5613. CFLAGS="$xorg_testset_save_CFLAGS"
  5614. fi
  5615. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5616. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5617. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5618. fi
  5619. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5621. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5622. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5626. /* end confdefs.h. */
  5627. int i;
  5628. _ACEOF
  5629. if ac_fn_c_try_compile "$LINENO"; then :
  5630. xorg_cv_cc_flag_unused_command_line_argument=yes
  5631. else
  5632. xorg_cv_cc_flag_unused_command_line_argument=no
  5633. fi
  5634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5635. fi
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5637. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5638. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5639. CFLAGS="$xorg_testset_save_CFLAGS"
  5640. fi
  5641. found="no"
  5642. if test $found = "no" ; then
  5643. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5644. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5645. fi
  5646. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5647. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5648. fi
  5649. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5651. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5652. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5653. if eval \${$cacheid+:} false; then :
  5654. $as_echo_n "(cached) " >&6
  5655. else
  5656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5657. /* end confdefs.h. */
  5658. int i;
  5659. int
  5660. main ()
  5661. {
  5662. ;
  5663. return 0;
  5664. }
  5665. _ACEOF
  5666. if ac_fn_c_try_link "$LINENO"; then :
  5667. eval $cacheid=yes
  5668. else
  5669. eval $cacheid=no
  5670. fi
  5671. rm -f core conftest.err conftest.$ac_objext \
  5672. conftest$ac_exeext conftest.$ac_ext
  5673. fi
  5674. CFLAGS="$xorg_testset_save_CFLAGS"
  5675. eval supported=\$$cacheid
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5677. $as_echo "$supported" >&6; }
  5678. if test "$supported" = "yes" ; then
  5679. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5680. found="yes"
  5681. fi
  5682. fi
  5683. xorg_testset_save_CFLAGS="$CFLAGS"
  5684. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5685. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5687. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5688. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5689. $as_echo_n "(cached) " >&6
  5690. else
  5691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5692. /* end confdefs.h. */
  5693. int i;
  5694. _ACEOF
  5695. if ac_fn_c_try_compile "$LINENO"; then :
  5696. xorg_cv_cc_flag_unknown_warning_option=yes
  5697. else
  5698. xorg_cv_cc_flag_unknown_warning_option=no
  5699. fi
  5700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5701. fi
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5703. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5704. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5705. CFLAGS="$xorg_testset_save_CFLAGS"
  5706. fi
  5707. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5708. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5709. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5710. fi
  5711. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5713. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5714. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5718. /* end confdefs.h. */
  5719. int i;
  5720. _ACEOF
  5721. if ac_fn_c_try_compile "$LINENO"; then :
  5722. xorg_cv_cc_flag_unused_command_line_argument=yes
  5723. else
  5724. xorg_cv_cc_flag_unused_command_line_argument=no
  5725. fi
  5726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5727. fi
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5729. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5730. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5731. CFLAGS="$xorg_testset_save_CFLAGS"
  5732. fi
  5733. found="no"
  5734. if test $found = "no" ; then
  5735. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5736. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5737. fi
  5738. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5739. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5740. fi
  5741. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5743. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5744. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5745. if eval \${$cacheid+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5749. /* end confdefs.h. */
  5750. int i;
  5751. int
  5752. main ()
  5753. {
  5754. ;
  5755. return 0;
  5756. }
  5757. _ACEOF
  5758. if ac_fn_c_try_link "$LINENO"; then :
  5759. eval $cacheid=yes
  5760. else
  5761. eval $cacheid=no
  5762. fi
  5763. rm -f core conftest.err conftest.$ac_objext \
  5764. conftest$ac_exeext conftest.$ac_ext
  5765. fi
  5766. CFLAGS="$xorg_testset_save_CFLAGS"
  5767. eval supported=\$$cacheid
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5769. $as_echo "$supported" >&6; }
  5770. if test "$supported" = "yes" ; then
  5771. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5772. found="yes"
  5773. fi
  5774. fi
  5775. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5776. xorg_testset_save_CFLAGS="$CFLAGS"
  5777. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5778. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5780. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5781. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5785. /* end confdefs.h. */
  5786. int i;
  5787. _ACEOF
  5788. if ac_fn_c_try_compile "$LINENO"; then :
  5789. xorg_cv_cc_flag_unknown_warning_option=yes
  5790. else
  5791. xorg_cv_cc_flag_unknown_warning_option=no
  5792. fi
  5793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5796. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5797. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5798. CFLAGS="$xorg_testset_save_CFLAGS"
  5799. fi
  5800. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5801. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5802. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5803. fi
  5804. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5806. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5807. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5811. /* end confdefs.h. */
  5812. int i;
  5813. _ACEOF
  5814. if ac_fn_c_try_compile "$LINENO"; then :
  5815. xorg_cv_cc_flag_unused_command_line_argument=yes
  5816. else
  5817. xorg_cv_cc_flag_unused_command_line_argument=no
  5818. fi
  5819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5820. fi
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5822. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5823. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5824. CFLAGS="$xorg_testset_save_CFLAGS"
  5825. fi
  5826. found="no"
  5827. if test $found = "no" ; then
  5828. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5829. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5830. fi
  5831. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5832. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5833. fi
  5834. CFLAGS="$CFLAGS -Wlogical-op"
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5836. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5837. cacheid=xorg_cv_cc_flag__Wlogical_op
  5838. if eval \${$cacheid+:} false; then :
  5839. $as_echo_n "(cached) " >&6
  5840. else
  5841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5842. /* end confdefs.h. */
  5843. int i;
  5844. int
  5845. main ()
  5846. {
  5847. ;
  5848. return 0;
  5849. }
  5850. _ACEOF
  5851. if ac_fn_c_try_link "$LINENO"; then :
  5852. eval $cacheid=yes
  5853. else
  5854. eval $cacheid=no
  5855. fi
  5856. rm -f core conftest.err conftest.$ac_objext \
  5857. conftest$ac_exeext conftest.$ac_ext
  5858. fi
  5859. CFLAGS="$xorg_testset_save_CFLAGS"
  5860. eval supported=\$$cacheid
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5862. $as_echo "$supported" >&6; }
  5863. if test "$supported" = "yes" ; then
  5864. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5865. found="yes"
  5866. fi
  5867. fi
  5868. # These are currently disabled because they are noisy. They will be enabled
  5869. # in the future once the codebase is sufficiently modernized to silence
  5870. # them. For now, I don't want them to drown out the other warnings.
  5871. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5872. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5873. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5874. # Turn some warnings into errors, so we don't accidently get successful builds
  5875. # when there are problems that should be fixed.
  5876. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5877. xorg_testset_save_CFLAGS="$CFLAGS"
  5878. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5879. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5881. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5882. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5886. /* end confdefs.h. */
  5887. int i;
  5888. _ACEOF
  5889. if ac_fn_c_try_compile "$LINENO"; then :
  5890. xorg_cv_cc_flag_unknown_warning_option=yes
  5891. else
  5892. xorg_cv_cc_flag_unknown_warning_option=no
  5893. fi
  5894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5895. fi
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5897. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5898. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5899. CFLAGS="$xorg_testset_save_CFLAGS"
  5900. fi
  5901. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5902. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5903. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5904. fi
  5905. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5907. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5908. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5912. /* end confdefs.h. */
  5913. int i;
  5914. _ACEOF
  5915. if ac_fn_c_try_compile "$LINENO"; then :
  5916. xorg_cv_cc_flag_unused_command_line_argument=yes
  5917. else
  5918. xorg_cv_cc_flag_unused_command_line_argument=no
  5919. fi
  5920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5923. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5924. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5925. CFLAGS="$xorg_testset_save_CFLAGS"
  5926. fi
  5927. found="no"
  5928. if test $found = "no" ; then
  5929. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5930. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5931. fi
  5932. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5933. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5934. fi
  5935. CFLAGS="$CFLAGS -Werror=implicit"
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5937. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5938. cacheid=xorg_cv_cc_flag__Werror_implicit
  5939. if eval \${$cacheid+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5943. /* end confdefs.h. */
  5944. int i;
  5945. int
  5946. main ()
  5947. {
  5948. ;
  5949. return 0;
  5950. }
  5951. _ACEOF
  5952. if ac_fn_c_try_link "$LINENO"; then :
  5953. eval $cacheid=yes
  5954. else
  5955. eval $cacheid=no
  5956. fi
  5957. rm -f core conftest.err conftest.$ac_objext \
  5958. conftest$ac_exeext conftest.$ac_ext
  5959. fi
  5960. CFLAGS="$xorg_testset_save_CFLAGS"
  5961. eval supported=\$$cacheid
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5963. $as_echo "$supported" >&6; }
  5964. if test "$supported" = "yes" ; then
  5965. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5966. found="yes"
  5967. fi
  5968. fi
  5969. if test $found = "no" ; then
  5970. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5971. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5972. fi
  5973. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5974. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5975. fi
  5976. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5978. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5979. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5980. if eval \${$cacheid+:} false; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5984. /* end confdefs.h. */
  5985. int i;
  5986. int
  5987. main ()
  5988. {
  5989. ;
  5990. return 0;
  5991. }
  5992. _ACEOF
  5993. if ac_fn_c_try_link "$LINENO"; then :
  5994. eval $cacheid=yes
  5995. else
  5996. eval $cacheid=no
  5997. fi
  5998. rm -f core conftest.err conftest.$ac_objext \
  5999. conftest$ac_exeext conftest.$ac_ext
  6000. fi
  6001. CFLAGS="$xorg_testset_save_CFLAGS"
  6002. eval supported=\$$cacheid
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6004. $as_echo "$supported" >&6; }
  6005. if test "$supported" = "yes" ; then
  6006. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  6007. found="yes"
  6008. fi
  6009. fi
  6010. xorg_testset_save_CFLAGS="$CFLAGS"
  6011. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6012. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6014. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6015. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6019. /* end confdefs.h. */
  6020. int i;
  6021. _ACEOF
  6022. if ac_fn_c_try_compile "$LINENO"; then :
  6023. xorg_cv_cc_flag_unknown_warning_option=yes
  6024. else
  6025. xorg_cv_cc_flag_unknown_warning_option=no
  6026. fi
  6027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6028. fi
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6030. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6031. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6032. CFLAGS="$xorg_testset_save_CFLAGS"
  6033. fi
  6034. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6035. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6036. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6037. fi
  6038. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6040. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6041. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6042. $as_echo_n "(cached) " >&6
  6043. else
  6044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6045. /* end confdefs.h. */
  6046. int i;
  6047. _ACEOF
  6048. if ac_fn_c_try_compile "$LINENO"; then :
  6049. xorg_cv_cc_flag_unused_command_line_argument=yes
  6050. else
  6051. xorg_cv_cc_flag_unused_command_line_argument=no
  6052. fi
  6053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6056. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6057. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6058. CFLAGS="$xorg_testset_save_CFLAGS"
  6059. fi
  6060. found="no"
  6061. if test $found = "no" ; then
  6062. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6063. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6064. fi
  6065. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6066. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6067. fi
  6068. CFLAGS="$CFLAGS -Werror=nonnull"
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  6070. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  6071. cacheid=xorg_cv_cc_flag__Werror_nonnull
  6072. if eval \${$cacheid+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. int i;
  6078. int
  6079. main ()
  6080. {
  6081. ;
  6082. return 0;
  6083. }
  6084. _ACEOF
  6085. if ac_fn_c_try_link "$LINENO"; then :
  6086. eval $cacheid=yes
  6087. else
  6088. eval $cacheid=no
  6089. fi
  6090. rm -f core conftest.err conftest.$ac_objext \
  6091. conftest$ac_exeext conftest.$ac_ext
  6092. fi
  6093. CFLAGS="$xorg_testset_save_CFLAGS"
  6094. eval supported=\$$cacheid
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6096. $as_echo "$supported" >&6; }
  6097. if test "$supported" = "yes" ; then
  6098. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  6099. found="yes"
  6100. fi
  6101. fi
  6102. xorg_testset_save_CFLAGS="$CFLAGS"
  6103. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6104. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6106. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6107. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6111. /* end confdefs.h. */
  6112. int i;
  6113. _ACEOF
  6114. if ac_fn_c_try_compile "$LINENO"; then :
  6115. xorg_cv_cc_flag_unknown_warning_option=yes
  6116. else
  6117. xorg_cv_cc_flag_unknown_warning_option=no
  6118. fi
  6119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6120. fi
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6122. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6123. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6124. CFLAGS="$xorg_testset_save_CFLAGS"
  6125. fi
  6126. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6127. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6128. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6129. fi
  6130. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6132. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6133. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6137. /* end confdefs.h. */
  6138. int i;
  6139. _ACEOF
  6140. if ac_fn_c_try_compile "$LINENO"; then :
  6141. xorg_cv_cc_flag_unused_command_line_argument=yes
  6142. else
  6143. xorg_cv_cc_flag_unused_command_line_argument=no
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. fi
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6148. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6149. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6150. CFLAGS="$xorg_testset_save_CFLAGS"
  6151. fi
  6152. found="no"
  6153. if test $found = "no" ; then
  6154. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6155. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6156. fi
  6157. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6158. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6159. fi
  6160. CFLAGS="$CFLAGS -Werror=init-self"
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  6162. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6163. cacheid=xorg_cv_cc_flag__Werror_init_self
  6164. if eval \${$cacheid+:} false; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. int i;
  6170. int
  6171. main ()
  6172. {
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. if ac_fn_c_try_link "$LINENO"; then :
  6178. eval $cacheid=yes
  6179. else
  6180. eval $cacheid=no
  6181. fi
  6182. rm -f core conftest.err conftest.$ac_objext \
  6183. conftest$ac_exeext conftest.$ac_ext
  6184. fi
  6185. CFLAGS="$xorg_testset_save_CFLAGS"
  6186. eval supported=\$$cacheid
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6188. $as_echo "$supported" >&6; }
  6189. if test "$supported" = "yes" ; then
  6190. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6191. found="yes"
  6192. fi
  6193. fi
  6194. xorg_testset_save_CFLAGS="$CFLAGS"
  6195. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6196. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6198. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6199. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. int i;
  6205. _ACEOF
  6206. if ac_fn_c_try_compile "$LINENO"; then :
  6207. xorg_cv_cc_flag_unknown_warning_option=yes
  6208. else
  6209. xorg_cv_cc_flag_unknown_warning_option=no
  6210. fi
  6211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6212. fi
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6214. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6215. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6216. CFLAGS="$xorg_testset_save_CFLAGS"
  6217. fi
  6218. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6219. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6220. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6221. fi
  6222. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6224. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6225. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. int i;
  6231. _ACEOF
  6232. if ac_fn_c_try_compile "$LINENO"; then :
  6233. xorg_cv_cc_flag_unused_command_line_argument=yes
  6234. else
  6235. xorg_cv_cc_flag_unused_command_line_argument=no
  6236. fi
  6237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6238. fi
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6240. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6241. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6242. CFLAGS="$xorg_testset_save_CFLAGS"
  6243. fi
  6244. found="no"
  6245. if test $found = "no" ; then
  6246. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6247. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6248. fi
  6249. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6250. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6251. fi
  6252. CFLAGS="$CFLAGS -Werror=main"
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6254. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6255. cacheid=xorg_cv_cc_flag__Werror_main
  6256. if eval \${$cacheid+:} false; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. int i;
  6262. int
  6263. main ()
  6264. {
  6265. ;
  6266. return 0;
  6267. }
  6268. _ACEOF
  6269. if ac_fn_c_try_link "$LINENO"; then :
  6270. eval $cacheid=yes
  6271. else
  6272. eval $cacheid=no
  6273. fi
  6274. rm -f core conftest.err conftest.$ac_objext \
  6275. conftest$ac_exeext conftest.$ac_ext
  6276. fi
  6277. CFLAGS="$xorg_testset_save_CFLAGS"
  6278. eval supported=\$$cacheid
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6280. $as_echo "$supported" >&6; }
  6281. if test "$supported" = "yes" ; then
  6282. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6283. found="yes"
  6284. fi
  6285. fi
  6286. xorg_testset_save_CFLAGS="$CFLAGS"
  6287. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6288. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6290. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6291. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6295. /* end confdefs.h. */
  6296. int i;
  6297. _ACEOF
  6298. if ac_fn_c_try_compile "$LINENO"; then :
  6299. xorg_cv_cc_flag_unknown_warning_option=yes
  6300. else
  6301. xorg_cv_cc_flag_unknown_warning_option=no
  6302. fi
  6303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6306. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6307. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6308. CFLAGS="$xorg_testset_save_CFLAGS"
  6309. fi
  6310. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6311. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6312. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6313. fi
  6314. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6316. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6317. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6321. /* end confdefs.h. */
  6322. int i;
  6323. _ACEOF
  6324. if ac_fn_c_try_compile "$LINENO"; then :
  6325. xorg_cv_cc_flag_unused_command_line_argument=yes
  6326. else
  6327. xorg_cv_cc_flag_unused_command_line_argument=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6330. fi
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6332. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6333. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6334. CFLAGS="$xorg_testset_save_CFLAGS"
  6335. fi
  6336. found="no"
  6337. if test $found = "no" ; then
  6338. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6340. fi
  6341. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6342. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6343. fi
  6344. CFLAGS="$CFLAGS -Werror=missing-braces"
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6346. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6347. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6348. if eval \${$cacheid+:} false; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6352. /* end confdefs.h. */
  6353. int i;
  6354. int
  6355. main ()
  6356. {
  6357. ;
  6358. return 0;
  6359. }
  6360. _ACEOF
  6361. if ac_fn_c_try_link "$LINENO"; then :
  6362. eval $cacheid=yes
  6363. else
  6364. eval $cacheid=no
  6365. fi
  6366. rm -f core conftest.err conftest.$ac_objext \
  6367. conftest$ac_exeext conftest.$ac_ext
  6368. fi
  6369. CFLAGS="$xorg_testset_save_CFLAGS"
  6370. eval supported=\$$cacheid
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6372. $as_echo "$supported" >&6; }
  6373. if test "$supported" = "yes" ; then
  6374. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6375. found="yes"
  6376. fi
  6377. fi
  6378. xorg_testset_save_CFLAGS="$CFLAGS"
  6379. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6380. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6382. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6383. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6387. /* end confdefs.h. */
  6388. int i;
  6389. _ACEOF
  6390. if ac_fn_c_try_compile "$LINENO"; then :
  6391. xorg_cv_cc_flag_unknown_warning_option=yes
  6392. else
  6393. xorg_cv_cc_flag_unknown_warning_option=no
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6396. fi
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6398. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6399. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6400. CFLAGS="$xorg_testset_save_CFLAGS"
  6401. fi
  6402. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6403. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6404. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6405. fi
  6406. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6408. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6409. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. int i;
  6415. _ACEOF
  6416. if ac_fn_c_try_compile "$LINENO"; then :
  6417. xorg_cv_cc_flag_unused_command_line_argument=yes
  6418. else
  6419. xorg_cv_cc_flag_unused_command_line_argument=no
  6420. fi
  6421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6422. fi
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6424. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6425. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6426. CFLAGS="$xorg_testset_save_CFLAGS"
  6427. fi
  6428. found="no"
  6429. if test $found = "no" ; then
  6430. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6432. fi
  6433. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6434. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6435. fi
  6436. CFLAGS="$CFLAGS -Werror=sequence-point"
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6438. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6439. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6440. if eval \${$cacheid+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. int i;
  6446. int
  6447. main ()
  6448. {
  6449. ;
  6450. return 0;
  6451. }
  6452. _ACEOF
  6453. if ac_fn_c_try_link "$LINENO"; then :
  6454. eval $cacheid=yes
  6455. else
  6456. eval $cacheid=no
  6457. fi
  6458. rm -f core conftest.err conftest.$ac_objext \
  6459. conftest$ac_exeext conftest.$ac_ext
  6460. fi
  6461. CFLAGS="$xorg_testset_save_CFLAGS"
  6462. eval supported=\$$cacheid
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6464. $as_echo "$supported" >&6; }
  6465. if test "$supported" = "yes" ; then
  6466. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6467. found="yes"
  6468. fi
  6469. fi
  6470. xorg_testset_save_CFLAGS="$CFLAGS"
  6471. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6472. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6474. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6475. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6476. $as_echo_n "(cached) " >&6
  6477. else
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. int i;
  6481. _ACEOF
  6482. if ac_fn_c_try_compile "$LINENO"; then :
  6483. xorg_cv_cc_flag_unknown_warning_option=yes
  6484. else
  6485. xorg_cv_cc_flag_unknown_warning_option=no
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6488. fi
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6490. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6491. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6492. CFLAGS="$xorg_testset_save_CFLAGS"
  6493. fi
  6494. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6495. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6496. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6497. fi
  6498. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6500. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6501. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6502. $as_echo_n "(cached) " >&6
  6503. else
  6504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6505. /* end confdefs.h. */
  6506. int i;
  6507. _ACEOF
  6508. if ac_fn_c_try_compile "$LINENO"; then :
  6509. xorg_cv_cc_flag_unused_command_line_argument=yes
  6510. else
  6511. xorg_cv_cc_flag_unused_command_line_argument=no
  6512. fi
  6513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6514. fi
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6516. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6517. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6518. CFLAGS="$xorg_testset_save_CFLAGS"
  6519. fi
  6520. found="no"
  6521. if test $found = "no" ; then
  6522. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6524. fi
  6525. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6526. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6527. fi
  6528. CFLAGS="$CFLAGS -Werror=return-type"
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6530. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6531. cacheid=xorg_cv_cc_flag__Werror_return_type
  6532. if eval \${$cacheid+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. int i;
  6538. int
  6539. main ()
  6540. {
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. if ac_fn_c_try_link "$LINENO"; then :
  6546. eval $cacheid=yes
  6547. else
  6548. eval $cacheid=no
  6549. fi
  6550. rm -f core conftest.err conftest.$ac_objext \
  6551. conftest$ac_exeext conftest.$ac_ext
  6552. fi
  6553. CFLAGS="$xorg_testset_save_CFLAGS"
  6554. eval supported=\$$cacheid
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6556. $as_echo "$supported" >&6; }
  6557. if test "$supported" = "yes" ; then
  6558. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6559. found="yes"
  6560. fi
  6561. fi
  6562. if test $found = "no" ; then
  6563. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6564. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6565. fi
  6566. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6567. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6568. fi
  6569. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6571. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6572. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6573. if eval \${$cacheid+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6577. /* end confdefs.h. */
  6578. int i;
  6579. int
  6580. main ()
  6581. {
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. if ac_fn_c_try_link "$LINENO"; then :
  6587. eval $cacheid=yes
  6588. else
  6589. eval $cacheid=no
  6590. fi
  6591. rm -f core conftest.err conftest.$ac_objext \
  6592. conftest$ac_exeext conftest.$ac_ext
  6593. fi
  6594. CFLAGS="$xorg_testset_save_CFLAGS"
  6595. eval supported=\$$cacheid
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6597. $as_echo "$supported" >&6; }
  6598. if test "$supported" = "yes" ; then
  6599. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6600. found="yes"
  6601. fi
  6602. fi
  6603. xorg_testset_save_CFLAGS="$CFLAGS"
  6604. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6605. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6607. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6608. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6612. /* end confdefs.h. */
  6613. int i;
  6614. _ACEOF
  6615. if ac_fn_c_try_compile "$LINENO"; then :
  6616. xorg_cv_cc_flag_unknown_warning_option=yes
  6617. else
  6618. xorg_cv_cc_flag_unknown_warning_option=no
  6619. fi
  6620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6621. fi
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6623. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6624. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6625. CFLAGS="$xorg_testset_save_CFLAGS"
  6626. fi
  6627. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6628. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6629. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6630. fi
  6631. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6633. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6634. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6638. /* end confdefs.h. */
  6639. int i;
  6640. _ACEOF
  6641. if ac_fn_c_try_compile "$LINENO"; then :
  6642. xorg_cv_cc_flag_unused_command_line_argument=yes
  6643. else
  6644. xorg_cv_cc_flag_unused_command_line_argument=no
  6645. fi
  6646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6649. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6650. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6651. CFLAGS="$xorg_testset_save_CFLAGS"
  6652. fi
  6653. found="no"
  6654. if test $found = "no" ; then
  6655. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6656. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6657. fi
  6658. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6659. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6660. fi
  6661. CFLAGS="$CFLAGS -Werror=trigraphs"
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6663. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6664. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6665. if eval \${$cacheid+:} false; then :
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6669. /* end confdefs.h. */
  6670. int i;
  6671. int
  6672. main ()
  6673. {
  6674. ;
  6675. return 0;
  6676. }
  6677. _ACEOF
  6678. if ac_fn_c_try_link "$LINENO"; then :
  6679. eval $cacheid=yes
  6680. else
  6681. eval $cacheid=no
  6682. fi
  6683. rm -f core conftest.err conftest.$ac_objext \
  6684. conftest$ac_exeext conftest.$ac_ext
  6685. fi
  6686. CFLAGS="$xorg_testset_save_CFLAGS"
  6687. eval supported=\$$cacheid
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6689. $as_echo "$supported" >&6; }
  6690. if test "$supported" = "yes" ; then
  6691. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6692. found="yes"
  6693. fi
  6694. fi
  6695. xorg_testset_save_CFLAGS="$CFLAGS"
  6696. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6697. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6699. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6700. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. int i;
  6706. _ACEOF
  6707. if ac_fn_c_try_compile "$LINENO"; then :
  6708. xorg_cv_cc_flag_unknown_warning_option=yes
  6709. else
  6710. xorg_cv_cc_flag_unknown_warning_option=no
  6711. fi
  6712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6713. fi
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6715. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6716. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6717. CFLAGS="$xorg_testset_save_CFLAGS"
  6718. fi
  6719. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6720. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6721. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6722. fi
  6723. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6725. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6726. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6730. /* end confdefs.h. */
  6731. int i;
  6732. _ACEOF
  6733. if ac_fn_c_try_compile "$LINENO"; then :
  6734. xorg_cv_cc_flag_unused_command_line_argument=yes
  6735. else
  6736. xorg_cv_cc_flag_unused_command_line_argument=no
  6737. fi
  6738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6739. fi
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6741. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6742. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6743. CFLAGS="$xorg_testset_save_CFLAGS"
  6744. fi
  6745. found="no"
  6746. if test $found = "no" ; then
  6747. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6748. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6749. fi
  6750. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6751. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6752. fi
  6753. CFLAGS="$CFLAGS -Werror=array-bounds"
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6755. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6756. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6757. if eval \${$cacheid+:} false; then :
  6758. $as_echo_n "(cached) " >&6
  6759. else
  6760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6761. /* end confdefs.h. */
  6762. int i;
  6763. int
  6764. main ()
  6765. {
  6766. ;
  6767. return 0;
  6768. }
  6769. _ACEOF
  6770. if ac_fn_c_try_link "$LINENO"; then :
  6771. eval $cacheid=yes
  6772. else
  6773. eval $cacheid=no
  6774. fi
  6775. rm -f core conftest.err conftest.$ac_objext \
  6776. conftest$ac_exeext conftest.$ac_ext
  6777. fi
  6778. CFLAGS="$xorg_testset_save_CFLAGS"
  6779. eval supported=\$$cacheid
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6781. $as_echo "$supported" >&6; }
  6782. if test "$supported" = "yes" ; then
  6783. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6784. found="yes"
  6785. fi
  6786. fi
  6787. xorg_testset_save_CFLAGS="$CFLAGS"
  6788. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6789. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6791. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6792. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h. */
  6797. int i;
  6798. _ACEOF
  6799. if ac_fn_c_try_compile "$LINENO"; then :
  6800. xorg_cv_cc_flag_unknown_warning_option=yes
  6801. else
  6802. xorg_cv_cc_flag_unknown_warning_option=no
  6803. fi
  6804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6805. fi
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6807. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6808. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6809. CFLAGS="$xorg_testset_save_CFLAGS"
  6810. fi
  6811. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6812. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6813. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6814. fi
  6815. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6817. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6818. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. int i;
  6824. _ACEOF
  6825. if ac_fn_c_try_compile "$LINENO"; then :
  6826. xorg_cv_cc_flag_unused_command_line_argument=yes
  6827. else
  6828. xorg_cv_cc_flag_unused_command_line_argument=no
  6829. fi
  6830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6831. fi
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6833. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6834. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6835. CFLAGS="$xorg_testset_save_CFLAGS"
  6836. fi
  6837. found="no"
  6838. if test $found = "no" ; then
  6839. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6840. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6841. fi
  6842. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6843. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6844. fi
  6845. CFLAGS="$CFLAGS -Werror=write-strings"
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6847. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6848. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6849. if eval \${$cacheid+:} false; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6853. /* end confdefs.h. */
  6854. int i;
  6855. int
  6856. main ()
  6857. {
  6858. ;
  6859. return 0;
  6860. }
  6861. _ACEOF
  6862. if ac_fn_c_try_link "$LINENO"; then :
  6863. eval $cacheid=yes
  6864. else
  6865. eval $cacheid=no
  6866. fi
  6867. rm -f core conftest.err conftest.$ac_objext \
  6868. conftest$ac_exeext conftest.$ac_ext
  6869. fi
  6870. CFLAGS="$xorg_testset_save_CFLAGS"
  6871. eval supported=\$$cacheid
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6873. $as_echo "$supported" >&6; }
  6874. if test "$supported" = "yes" ; then
  6875. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6876. found="yes"
  6877. fi
  6878. fi
  6879. xorg_testset_save_CFLAGS="$CFLAGS"
  6880. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6881. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6883. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6884. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6888. /* end confdefs.h. */
  6889. int i;
  6890. _ACEOF
  6891. if ac_fn_c_try_compile "$LINENO"; then :
  6892. xorg_cv_cc_flag_unknown_warning_option=yes
  6893. else
  6894. xorg_cv_cc_flag_unknown_warning_option=no
  6895. fi
  6896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6897. fi
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6899. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6900. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6901. CFLAGS="$xorg_testset_save_CFLAGS"
  6902. fi
  6903. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6904. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6905. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6906. fi
  6907. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6909. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6910. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6911. $as_echo_n "(cached) " >&6
  6912. else
  6913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6914. /* end confdefs.h. */
  6915. int i;
  6916. _ACEOF
  6917. if ac_fn_c_try_compile "$LINENO"; then :
  6918. xorg_cv_cc_flag_unused_command_line_argument=yes
  6919. else
  6920. xorg_cv_cc_flag_unused_command_line_argument=no
  6921. fi
  6922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6923. fi
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6925. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6926. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6927. CFLAGS="$xorg_testset_save_CFLAGS"
  6928. fi
  6929. found="no"
  6930. if test $found = "no" ; then
  6931. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6932. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6933. fi
  6934. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6935. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6936. fi
  6937. CFLAGS="$CFLAGS -Werror=address"
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6939. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6940. cacheid=xorg_cv_cc_flag__Werror_address
  6941. if eval \${$cacheid+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6945. /* end confdefs.h. */
  6946. int i;
  6947. int
  6948. main ()
  6949. {
  6950. ;
  6951. return 0;
  6952. }
  6953. _ACEOF
  6954. if ac_fn_c_try_link "$LINENO"; then :
  6955. eval $cacheid=yes
  6956. else
  6957. eval $cacheid=no
  6958. fi
  6959. rm -f core conftest.err conftest.$ac_objext \
  6960. conftest$ac_exeext conftest.$ac_ext
  6961. fi
  6962. CFLAGS="$xorg_testset_save_CFLAGS"
  6963. eval supported=\$$cacheid
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6965. $as_echo "$supported" >&6; }
  6966. if test "$supported" = "yes" ; then
  6967. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6968. found="yes"
  6969. fi
  6970. fi
  6971. xorg_testset_save_CFLAGS="$CFLAGS"
  6972. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6973. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6975. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6976. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6977. $as_echo_n "(cached) " >&6
  6978. else
  6979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6980. /* end confdefs.h. */
  6981. int i;
  6982. _ACEOF
  6983. if ac_fn_c_try_compile "$LINENO"; then :
  6984. xorg_cv_cc_flag_unknown_warning_option=yes
  6985. else
  6986. xorg_cv_cc_flag_unknown_warning_option=no
  6987. fi
  6988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6989. fi
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6991. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6992. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6993. CFLAGS="$xorg_testset_save_CFLAGS"
  6994. fi
  6995. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6996. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6997. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6998. fi
  6999. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7001. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7002. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7003. $as_echo_n "(cached) " >&6
  7004. else
  7005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7006. /* end confdefs.h. */
  7007. int i;
  7008. _ACEOF
  7009. if ac_fn_c_try_compile "$LINENO"; then :
  7010. xorg_cv_cc_flag_unused_command_line_argument=yes
  7011. else
  7012. xorg_cv_cc_flag_unused_command_line_argument=no
  7013. fi
  7014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7015. fi
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7017. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7018. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7019. CFLAGS="$xorg_testset_save_CFLAGS"
  7020. fi
  7021. found="no"
  7022. if test $found = "no" ; then
  7023. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7024. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7025. fi
  7026. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7027. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7028. fi
  7029. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  7031. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  7032. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  7033. if eval \${$cacheid+:} false; then :
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. int i;
  7039. int
  7040. main ()
  7041. {
  7042. ;
  7043. return 0;
  7044. }
  7045. _ACEOF
  7046. if ac_fn_c_try_link "$LINENO"; then :
  7047. eval $cacheid=yes
  7048. else
  7049. eval $cacheid=no
  7050. fi
  7051. rm -f core conftest.err conftest.$ac_objext \
  7052. conftest$ac_exeext conftest.$ac_ext
  7053. fi
  7054. CFLAGS="$xorg_testset_save_CFLAGS"
  7055. eval supported=\$$cacheid
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7057. $as_echo "$supported" >&6; }
  7058. if test "$supported" = "yes" ; then
  7059. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  7060. found="yes"
  7061. fi
  7062. fi
  7063. if test $found = "no" ; then
  7064. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7065. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7066. fi
  7067. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7068. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7069. fi
  7070. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  7072. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  7073. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  7074. if eval \${$cacheid+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7078. /* end confdefs.h. */
  7079. int i;
  7080. int
  7081. main ()
  7082. {
  7083. ;
  7084. return 0;
  7085. }
  7086. _ACEOF
  7087. if ac_fn_c_try_link "$LINENO"; then :
  7088. eval $cacheid=yes
  7089. else
  7090. eval $cacheid=no
  7091. fi
  7092. rm -f core conftest.err conftest.$ac_objext \
  7093. conftest$ac_exeext conftest.$ac_ext
  7094. fi
  7095. CFLAGS="$xorg_testset_save_CFLAGS"
  7096. eval supported=\$$cacheid
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7098. $as_echo "$supported" >&6; }
  7099. if test "$supported" = "yes" ; then
  7100. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  7101. found="yes"
  7102. fi
  7103. fi
  7104. xorg_testset_save_CFLAGS="$CFLAGS"
  7105. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7106. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7108. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7109. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7110. $as_echo_n "(cached) " >&6
  7111. else
  7112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7113. /* end confdefs.h. */
  7114. int i;
  7115. _ACEOF
  7116. if ac_fn_c_try_compile "$LINENO"; then :
  7117. xorg_cv_cc_flag_unknown_warning_option=yes
  7118. else
  7119. xorg_cv_cc_flag_unknown_warning_option=no
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7122. fi
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7124. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7125. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7126. CFLAGS="$xorg_testset_save_CFLAGS"
  7127. fi
  7128. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7129. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7130. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7131. fi
  7132. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7134. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7135. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7139. /* end confdefs.h. */
  7140. int i;
  7141. _ACEOF
  7142. if ac_fn_c_try_compile "$LINENO"; then :
  7143. xorg_cv_cc_flag_unused_command_line_argument=yes
  7144. else
  7145. xorg_cv_cc_flag_unused_command_line_argument=no
  7146. fi
  7147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7150. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7151. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7152. CFLAGS="$xorg_testset_save_CFLAGS"
  7153. fi
  7154. found="no"
  7155. if test $found = "no" ; then
  7156. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7157. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7158. fi
  7159. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7160. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7161. fi
  7162. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7164. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7165. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7166. if eval \${$cacheid+:} false; then :
  7167. $as_echo_n "(cached) " >&6
  7168. else
  7169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7170. /* end confdefs.h. */
  7171. int i;
  7172. int
  7173. main ()
  7174. {
  7175. ;
  7176. return 0;
  7177. }
  7178. _ACEOF
  7179. if ac_fn_c_try_link "$LINENO"; then :
  7180. eval $cacheid=yes
  7181. else
  7182. eval $cacheid=no
  7183. fi
  7184. rm -f core conftest.err conftest.$ac_objext \
  7185. conftest$ac_exeext conftest.$ac_ext
  7186. fi
  7187. CFLAGS="$xorg_testset_save_CFLAGS"
  7188. eval supported=\$$cacheid
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7190. $as_echo "$supported" >&6; }
  7191. if test "$supported" = "yes" ; then
  7192. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7193. found="yes"
  7194. fi
  7195. fi
  7196. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7197. else
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
  7199. $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
  7200. xorg_testset_save_CFLAGS="$CFLAGS"
  7201. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7202. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7204. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7205. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7206. $as_echo_n "(cached) " >&6
  7207. else
  7208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7209. /* end confdefs.h. */
  7210. int i;
  7211. _ACEOF
  7212. if ac_fn_c_try_compile "$LINENO"; then :
  7213. xorg_cv_cc_flag_unknown_warning_option=yes
  7214. else
  7215. xorg_cv_cc_flag_unknown_warning_option=no
  7216. fi
  7217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7218. fi
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7220. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7221. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7222. CFLAGS="$xorg_testset_save_CFLAGS"
  7223. fi
  7224. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7225. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7226. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7227. fi
  7228. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7230. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7231. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7235. /* end confdefs.h. */
  7236. int i;
  7237. _ACEOF
  7238. if ac_fn_c_try_compile "$LINENO"; then :
  7239. xorg_cv_cc_flag_unused_command_line_argument=yes
  7240. else
  7241. xorg_cv_cc_flag_unused_command_line_argument=no
  7242. fi
  7243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7246. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7247. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7248. CFLAGS="$xorg_testset_save_CFLAGS"
  7249. fi
  7250. found="no"
  7251. if test $found = "no" ; then
  7252. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7253. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7254. fi
  7255. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7256. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7257. fi
  7258. CFLAGS="$CFLAGS -Wimplicit"
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7260. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7261. cacheid=xorg_cv_cc_flag__Wimplicit
  7262. if eval \${$cacheid+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7266. /* end confdefs.h. */
  7267. int i;
  7268. int
  7269. main ()
  7270. {
  7271. ;
  7272. return 0;
  7273. }
  7274. _ACEOF
  7275. if ac_fn_c_try_link "$LINENO"; then :
  7276. eval $cacheid=yes
  7277. else
  7278. eval $cacheid=no
  7279. fi
  7280. rm -f core conftest.err conftest.$ac_objext \
  7281. conftest$ac_exeext conftest.$ac_ext
  7282. fi
  7283. CFLAGS="$xorg_testset_save_CFLAGS"
  7284. eval supported=\$$cacheid
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7286. $as_echo "$supported" >&6; }
  7287. if test "$supported" = "yes" ; then
  7288. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7289. found="yes"
  7290. fi
  7291. fi
  7292. xorg_testset_save_CFLAGS="$CFLAGS"
  7293. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7294. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7296. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7297. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7298. $as_echo_n "(cached) " >&6
  7299. else
  7300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7301. /* end confdefs.h. */
  7302. int i;
  7303. _ACEOF
  7304. if ac_fn_c_try_compile "$LINENO"; then :
  7305. xorg_cv_cc_flag_unknown_warning_option=yes
  7306. else
  7307. xorg_cv_cc_flag_unknown_warning_option=no
  7308. fi
  7309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7312. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7313. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7314. CFLAGS="$xorg_testset_save_CFLAGS"
  7315. fi
  7316. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7317. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7318. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7319. fi
  7320. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7322. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7323. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7327. /* end confdefs.h. */
  7328. int i;
  7329. _ACEOF
  7330. if ac_fn_c_try_compile "$LINENO"; then :
  7331. xorg_cv_cc_flag_unused_command_line_argument=yes
  7332. else
  7333. xorg_cv_cc_flag_unused_command_line_argument=no
  7334. fi
  7335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7338. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7339. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7340. CFLAGS="$xorg_testset_save_CFLAGS"
  7341. fi
  7342. found="no"
  7343. if test $found = "no" ; then
  7344. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7345. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7346. fi
  7347. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7348. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7349. fi
  7350. CFLAGS="$CFLAGS -Wnonnull"
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7352. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7353. cacheid=xorg_cv_cc_flag__Wnonnull
  7354. if eval \${$cacheid+:} false; then :
  7355. $as_echo_n "(cached) " >&6
  7356. else
  7357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7358. /* end confdefs.h. */
  7359. int i;
  7360. int
  7361. main ()
  7362. {
  7363. ;
  7364. return 0;
  7365. }
  7366. _ACEOF
  7367. if ac_fn_c_try_link "$LINENO"; then :
  7368. eval $cacheid=yes
  7369. else
  7370. eval $cacheid=no
  7371. fi
  7372. rm -f core conftest.err conftest.$ac_objext \
  7373. conftest$ac_exeext conftest.$ac_ext
  7374. fi
  7375. CFLAGS="$xorg_testset_save_CFLAGS"
  7376. eval supported=\$$cacheid
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7378. $as_echo "$supported" >&6; }
  7379. if test "$supported" = "yes" ; then
  7380. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7381. found="yes"
  7382. fi
  7383. fi
  7384. xorg_testset_save_CFLAGS="$CFLAGS"
  7385. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7386. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7388. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7389. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7390. $as_echo_n "(cached) " >&6
  7391. else
  7392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7393. /* end confdefs.h. */
  7394. int i;
  7395. _ACEOF
  7396. if ac_fn_c_try_compile "$LINENO"; then :
  7397. xorg_cv_cc_flag_unknown_warning_option=yes
  7398. else
  7399. xorg_cv_cc_flag_unknown_warning_option=no
  7400. fi
  7401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7404. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7405. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7406. CFLAGS="$xorg_testset_save_CFLAGS"
  7407. fi
  7408. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7409. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7410. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7411. fi
  7412. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7414. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7415. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7419. /* end confdefs.h. */
  7420. int i;
  7421. _ACEOF
  7422. if ac_fn_c_try_compile "$LINENO"; then :
  7423. xorg_cv_cc_flag_unused_command_line_argument=yes
  7424. else
  7425. xorg_cv_cc_flag_unused_command_line_argument=no
  7426. fi
  7427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7428. fi
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7430. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7431. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7432. CFLAGS="$xorg_testset_save_CFLAGS"
  7433. fi
  7434. found="no"
  7435. if test $found = "no" ; then
  7436. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7437. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7438. fi
  7439. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7440. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7441. fi
  7442. CFLAGS="$CFLAGS -Winit-self"
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7444. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7445. cacheid=xorg_cv_cc_flag__Winit_self
  7446. if eval \${$cacheid+:} false; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7450. /* end confdefs.h. */
  7451. int i;
  7452. int
  7453. main ()
  7454. {
  7455. ;
  7456. return 0;
  7457. }
  7458. _ACEOF
  7459. if ac_fn_c_try_link "$LINENO"; then :
  7460. eval $cacheid=yes
  7461. else
  7462. eval $cacheid=no
  7463. fi
  7464. rm -f core conftest.err conftest.$ac_objext \
  7465. conftest$ac_exeext conftest.$ac_ext
  7466. fi
  7467. CFLAGS="$xorg_testset_save_CFLAGS"
  7468. eval supported=\$$cacheid
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7470. $as_echo "$supported" >&6; }
  7471. if test "$supported" = "yes" ; then
  7472. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7473. found="yes"
  7474. fi
  7475. fi
  7476. xorg_testset_save_CFLAGS="$CFLAGS"
  7477. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7478. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7480. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7481. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7482. $as_echo_n "(cached) " >&6
  7483. else
  7484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7485. /* end confdefs.h. */
  7486. int i;
  7487. _ACEOF
  7488. if ac_fn_c_try_compile "$LINENO"; then :
  7489. xorg_cv_cc_flag_unknown_warning_option=yes
  7490. else
  7491. xorg_cv_cc_flag_unknown_warning_option=no
  7492. fi
  7493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7494. fi
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7496. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7497. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7498. CFLAGS="$xorg_testset_save_CFLAGS"
  7499. fi
  7500. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7501. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7503. fi
  7504. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7506. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7507. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7508. $as_echo_n "(cached) " >&6
  7509. else
  7510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7511. /* end confdefs.h. */
  7512. int i;
  7513. _ACEOF
  7514. if ac_fn_c_try_compile "$LINENO"; then :
  7515. xorg_cv_cc_flag_unused_command_line_argument=yes
  7516. else
  7517. xorg_cv_cc_flag_unused_command_line_argument=no
  7518. fi
  7519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7522. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7523. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7524. CFLAGS="$xorg_testset_save_CFLAGS"
  7525. fi
  7526. found="no"
  7527. if test $found = "no" ; then
  7528. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7529. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7530. fi
  7531. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7532. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7533. fi
  7534. CFLAGS="$CFLAGS -Wmain"
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7536. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7537. cacheid=xorg_cv_cc_flag__Wmain
  7538. if eval \${$cacheid+:} false; then :
  7539. $as_echo_n "(cached) " >&6
  7540. else
  7541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7542. /* end confdefs.h. */
  7543. int i;
  7544. int
  7545. main ()
  7546. {
  7547. ;
  7548. return 0;
  7549. }
  7550. _ACEOF
  7551. if ac_fn_c_try_link "$LINENO"; then :
  7552. eval $cacheid=yes
  7553. else
  7554. eval $cacheid=no
  7555. fi
  7556. rm -f core conftest.err conftest.$ac_objext \
  7557. conftest$ac_exeext conftest.$ac_ext
  7558. fi
  7559. CFLAGS="$xorg_testset_save_CFLAGS"
  7560. eval supported=\$$cacheid
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7562. $as_echo "$supported" >&6; }
  7563. if test "$supported" = "yes" ; then
  7564. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7565. found="yes"
  7566. fi
  7567. fi
  7568. xorg_testset_save_CFLAGS="$CFLAGS"
  7569. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7570. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7572. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7573. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7574. $as_echo_n "(cached) " >&6
  7575. else
  7576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7577. /* end confdefs.h. */
  7578. int i;
  7579. _ACEOF
  7580. if ac_fn_c_try_compile "$LINENO"; then :
  7581. xorg_cv_cc_flag_unknown_warning_option=yes
  7582. else
  7583. xorg_cv_cc_flag_unknown_warning_option=no
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7588. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7589. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7590. CFLAGS="$xorg_testset_save_CFLAGS"
  7591. fi
  7592. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7593. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7594. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7595. fi
  7596. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7598. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7599. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7600. $as_echo_n "(cached) " >&6
  7601. else
  7602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7603. /* end confdefs.h. */
  7604. int i;
  7605. _ACEOF
  7606. if ac_fn_c_try_compile "$LINENO"; then :
  7607. xorg_cv_cc_flag_unused_command_line_argument=yes
  7608. else
  7609. xorg_cv_cc_flag_unused_command_line_argument=no
  7610. fi
  7611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7612. fi
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7614. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7615. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7616. CFLAGS="$xorg_testset_save_CFLAGS"
  7617. fi
  7618. found="no"
  7619. if test $found = "no" ; then
  7620. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7621. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7622. fi
  7623. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7624. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7625. fi
  7626. CFLAGS="$CFLAGS -Wmissing-braces"
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7628. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7629. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7630. if eval \${$cacheid+:} false; then :
  7631. $as_echo_n "(cached) " >&6
  7632. else
  7633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7634. /* end confdefs.h. */
  7635. int i;
  7636. int
  7637. main ()
  7638. {
  7639. ;
  7640. return 0;
  7641. }
  7642. _ACEOF
  7643. if ac_fn_c_try_link "$LINENO"; then :
  7644. eval $cacheid=yes
  7645. else
  7646. eval $cacheid=no
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext \
  7649. conftest$ac_exeext conftest.$ac_ext
  7650. fi
  7651. CFLAGS="$xorg_testset_save_CFLAGS"
  7652. eval supported=\$$cacheid
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7654. $as_echo "$supported" >&6; }
  7655. if test "$supported" = "yes" ; then
  7656. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7657. found="yes"
  7658. fi
  7659. fi
  7660. xorg_testset_save_CFLAGS="$CFLAGS"
  7661. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7662. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7664. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7665. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7666. $as_echo_n "(cached) " >&6
  7667. else
  7668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7669. /* end confdefs.h. */
  7670. int i;
  7671. _ACEOF
  7672. if ac_fn_c_try_compile "$LINENO"; then :
  7673. xorg_cv_cc_flag_unknown_warning_option=yes
  7674. else
  7675. xorg_cv_cc_flag_unknown_warning_option=no
  7676. fi
  7677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7678. fi
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7680. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7681. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7682. CFLAGS="$xorg_testset_save_CFLAGS"
  7683. fi
  7684. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7685. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7686. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7687. fi
  7688. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7690. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7691. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7692. $as_echo_n "(cached) " >&6
  7693. else
  7694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7695. /* end confdefs.h. */
  7696. int i;
  7697. _ACEOF
  7698. if ac_fn_c_try_compile "$LINENO"; then :
  7699. xorg_cv_cc_flag_unused_command_line_argument=yes
  7700. else
  7701. xorg_cv_cc_flag_unused_command_line_argument=no
  7702. fi
  7703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7706. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7707. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7708. CFLAGS="$xorg_testset_save_CFLAGS"
  7709. fi
  7710. found="no"
  7711. if test $found = "no" ; then
  7712. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7713. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7714. fi
  7715. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7716. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7717. fi
  7718. CFLAGS="$CFLAGS -Wsequence-point"
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7720. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7721. cacheid=xorg_cv_cc_flag__Wsequence_point
  7722. if eval \${$cacheid+:} false; then :
  7723. $as_echo_n "(cached) " >&6
  7724. else
  7725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7726. /* end confdefs.h. */
  7727. int i;
  7728. int
  7729. main ()
  7730. {
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. if ac_fn_c_try_link "$LINENO"; then :
  7736. eval $cacheid=yes
  7737. else
  7738. eval $cacheid=no
  7739. fi
  7740. rm -f core conftest.err conftest.$ac_objext \
  7741. conftest$ac_exeext conftest.$ac_ext
  7742. fi
  7743. CFLAGS="$xorg_testset_save_CFLAGS"
  7744. eval supported=\$$cacheid
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7746. $as_echo "$supported" >&6; }
  7747. if test "$supported" = "yes" ; then
  7748. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7749. found="yes"
  7750. fi
  7751. fi
  7752. xorg_testset_save_CFLAGS="$CFLAGS"
  7753. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7754. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7756. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7757. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7758. $as_echo_n "(cached) " >&6
  7759. else
  7760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7761. /* end confdefs.h. */
  7762. int i;
  7763. _ACEOF
  7764. if ac_fn_c_try_compile "$LINENO"; then :
  7765. xorg_cv_cc_flag_unknown_warning_option=yes
  7766. else
  7767. xorg_cv_cc_flag_unknown_warning_option=no
  7768. fi
  7769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7770. fi
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7772. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7773. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7774. CFLAGS="$xorg_testset_save_CFLAGS"
  7775. fi
  7776. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7777. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7778. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7779. fi
  7780. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7782. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7783. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7784. $as_echo_n "(cached) " >&6
  7785. else
  7786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7787. /* end confdefs.h. */
  7788. int i;
  7789. _ACEOF
  7790. if ac_fn_c_try_compile "$LINENO"; then :
  7791. xorg_cv_cc_flag_unused_command_line_argument=yes
  7792. else
  7793. xorg_cv_cc_flag_unused_command_line_argument=no
  7794. fi
  7795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7796. fi
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7798. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7799. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7800. CFLAGS="$xorg_testset_save_CFLAGS"
  7801. fi
  7802. found="no"
  7803. if test $found = "no" ; then
  7804. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7805. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7806. fi
  7807. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7808. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7809. fi
  7810. CFLAGS="$CFLAGS -Wreturn-type"
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7812. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7813. cacheid=xorg_cv_cc_flag__Wreturn_type
  7814. if eval \${$cacheid+:} false; then :
  7815. $as_echo_n "(cached) " >&6
  7816. else
  7817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7818. /* end confdefs.h. */
  7819. int i;
  7820. int
  7821. main ()
  7822. {
  7823. ;
  7824. return 0;
  7825. }
  7826. _ACEOF
  7827. if ac_fn_c_try_link "$LINENO"; then :
  7828. eval $cacheid=yes
  7829. else
  7830. eval $cacheid=no
  7831. fi
  7832. rm -f core conftest.err conftest.$ac_objext \
  7833. conftest$ac_exeext conftest.$ac_ext
  7834. fi
  7835. CFLAGS="$xorg_testset_save_CFLAGS"
  7836. eval supported=\$$cacheid
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7838. $as_echo "$supported" >&6; }
  7839. if test "$supported" = "yes" ; then
  7840. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7841. found="yes"
  7842. fi
  7843. fi
  7844. xorg_testset_save_CFLAGS="$CFLAGS"
  7845. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7846. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7848. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7849. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7850. $as_echo_n "(cached) " >&6
  7851. else
  7852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7853. /* end confdefs.h. */
  7854. int i;
  7855. _ACEOF
  7856. if ac_fn_c_try_compile "$LINENO"; then :
  7857. xorg_cv_cc_flag_unknown_warning_option=yes
  7858. else
  7859. xorg_cv_cc_flag_unknown_warning_option=no
  7860. fi
  7861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7862. fi
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7864. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7865. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7866. CFLAGS="$xorg_testset_save_CFLAGS"
  7867. fi
  7868. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7869. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7870. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7871. fi
  7872. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7874. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7875. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7876. $as_echo_n "(cached) " >&6
  7877. else
  7878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7879. /* end confdefs.h. */
  7880. int i;
  7881. _ACEOF
  7882. if ac_fn_c_try_compile "$LINENO"; then :
  7883. xorg_cv_cc_flag_unused_command_line_argument=yes
  7884. else
  7885. xorg_cv_cc_flag_unused_command_line_argument=no
  7886. fi
  7887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7888. fi
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7890. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7891. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7892. CFLAGS="$xorg_testset_save_CFLAGS"
  7893. fi
  7894. found="no"
  7895. if test $found = "no" ; then
  7896. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7897. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7898. fi
  7899. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7900. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7901. fi
  7902. CFLAGS="$CFLAGS -Wtrigraphs"
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7904. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7905. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7906. if eval \${$cacheid+:} false; then :
  7907. $as_echo_n "(cached) " >&6
  7908. else
  7909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7910. /* end confdefs.h. */
  7911. int i;
  7912. int
  7913. main ()
  7914. {
  7915. ;
  7916. return 0;
  7917. }
  7918. _ACEOF
  7919. if ac_fn_c_try_link "$LINENO"; then :
  7920. eval $cacheid=yes
  7921. else
  7922. eval $cacheid=no
  7923. fi
  7924. rm -f core conftest.err conftest.$ac_objext \
  7925. conftest$ac_exeext conftest.$ac_ext
  7926. fi
  7927. CFLAGS="$xorg_testset_save_CFLAGS"
  7928. eval supported=\$$cacheid
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7930. $as_echo "$supported" >&6; }
  7931. if test "$supported" = "yes" ; then
  7932. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7933. found="yes"
  7934. fi
  7935. fi
  7936. xorg_testset_save_CFLAGS="$CFLAGS"
  7937. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7938. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7940. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7941. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7942. $as_echo_n "(cached) " >&6
  7943. else
  7944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7945. /* end confdefs.h. */
  7946. int i;
  7947. _ACEOF
  7948. if ac_fn_c_try_compile "$LINENO"; then :
  7949. xorg_cv_cc_flag_unknown_warning_option=yes
  7950. else
  7951. xorg_cv_cc_flag_unknown_warning_option=no
  7952. fi
  7953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7956. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7957. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7958. CFLAGS="$xorg_testset_save_CFLAGS"
  7959. fi
  7960. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7961. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7962. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7963. fi
  7964. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7966. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7967. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7968. $as_echo_n "(cached) " >&6
  7969. else
  7970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7971. /* end confdefs.h. */
  7972. int i;
  7973. _ACEOF
  7974. if ac_fn_c_try_compile "$LINENO"; then :
  7975. xorg_cv_cc_flag_unused_command_line_argument=yes
  7976. else
  7977. xorg_cv_cc_flag_unused_command_line_argument=no
  7978. fi
  7979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7980. fi
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7982. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7983. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7984. CFLAGS="$xorg_testset_save_CFLAGS"
  7985. fi
  7986. found="no"
  7987. if test $found = "no" ; then
  7988. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7989. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7990. fi
  7991. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7992. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7993. fi
  7994. CFLAGS="$CFLAGS -Warray-bounds"
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7996. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7997. cacheid=xorg_cv_cc_flag__Warray_bounds
  7998. if eval \${$cacheid+:} false; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8002. /* end confdefs.h. */
  8003. int i;
  8004. int
  8005. main ()
  8006. {
  8007. ;
  8008. return 0;
  8009. }
  8010. _ACEOF
  8011. if ac_fn_c_try_link "$LINENO"; then :
  8012. eval $cacheid=yes
  8013. else
  8014. eval $cacheid=no
  8015. fi
  8016. rm -f core conftest.err conftest.$ac_objext \
  8017. conftest$ac_exeext conftest.$ac_ext
  8018. fi
  8019. CFLAGS="$xorg_testset_save_CFLAGS"
  8020. eval supported=\$$cacheid
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8022. $as_echo "$supported" >&6; }
  8023. if test "$supported" = "yes" ; then
  8024. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  8025. found="yes"
  8026. fi
  8027. fi
  8028. xorg_testset_save_CFLAGS="$CFLAGS"
  8029. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8030. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8032. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8033. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8037. /* end confdefs.h. */
  8038. int i;
  8039. _ACEOF
  8040. if ac_fn_c_try_compile "$LINENO"; then :
  8041. xorg_cv_cc_flag_unknown_warning_option=yes
  8042. else
  8043. xorg_cv_cc_flag_unknown_warning_option=no
  8044. fi
  8045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8046. fi
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8048. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8049. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8050. CFLAGS="$xorg_testset_save_CFLAGS"
  8051. fi
  8052. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8053. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8054. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8055. fi
  8056. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8058. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8059. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8060. $as_echo_n "(cached) " >&6
  8061. else
  8062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8063. /* end confdefs.h. */
  8064. int i;
  8065. _ACEOF
  8066. if ac_fn_c_try_compile "$LINENO"; then :
  8067. xorg_cv_cc_flag_unused_command_line_argument=yes
  8068. else
  8069. xorg_cv_cc_flag_unused_command_line_argument=no
  8070. fi
  8071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8072. fi
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8074. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8075. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8076. CFLAGS="$xorg_testset_save_CFLAGS"
  8077. fi
  8078. found="no"
  8079. if test $found = "no" ; then
  8080. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8081. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8082. fi
  8083. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8084. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8085. fi
  8086. CFLAGS="$CFLAGS -Wwrite-strings"
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  8088. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  8089. cacheid=xorg_cv_cc_flag__Wwrite_strings
  8090. if eval \${$cacheid+:} false; then :
  8091. $as_echo_n "(cached) " >&6
  8092. else
  8093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8094. /* end confdefs.h. */
  8095. int i;
  8096. int
  8097. main ()
  8098. {
  8099. ;
  8100. return 0;
  8101. }
  8102. _ACEOF
  8103. if ac_fn_c_try_link "$LINENO"; then :
  8104. eval $cacheid=yes
  8105. else
  8106. eval $cacheid=no
  8107. fi
  8108. rm -f core conftest.err conftest.$ac_objext \
  8109. conftest$ac_exeext conftest.$ac_ext
  8110. fi
  8111. CFLAGS="$xorg_testset_save_CFLAGS"
  8112. eval supported=\$$cacheid
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8114. $as_echo "$supported" >&6; }
  8115. if test "$supported" = "yes" ; then
  8116. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  8117. found="yes"
  8118. fi
  8119. fi
  8120. xorg_testset_save_CFLAGS="$CFLAGS"
  8121. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8122. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8124. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8125. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8126. $as_echo_n "(cached) " >&6
  8127. else
  8128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8129. /* end confdefs.h. */
  8130. int i;
  8131. _ACEOF
  8132. if ac_fn_c_try_compile "$LINENO"; then :
  8133. xorg_cv_cc_flag_unknown_warning_option=yes
  8134. else
  8135. xorg_cv_cc_flag_unknown_warning_option=no
  8136. fi
  8137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8138. fi
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8140. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8141. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8142. CFLAGS="$xorg_testset_save_CFLAGS"
  8143. fi
  8144. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8145. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8146. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8147. fi
  8148. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8150. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8151. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8155. /* end confdefs.h. */
  8156. int i;
  8157. _ACEOF
  8158. if ac_fn_c_try_compile "$LINENO"; then :
  8159. xorg_cv_cc_flag_unused_command_line_argument=yes
  8160. else
  8161. xorg_cv_cc_flag_unused_command_line_argument=no
  8162. fi
  8163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8164. fi
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8166. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8167. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8168. CFLAGS="$xorg_testset_save_CFLAGS"
  8169. fi
  8170. found="no"
  8171. if test $found = "no" ; then
  8172. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8173. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8174. fi
  8175. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8176. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8177. fi
  8178. CFLAGS="$CFLAGS -Waddress"
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8180. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8181. cacheid=xorg_cv_cc_flag__Waddress
  8182. if eval \${$cacheid+:} false; then :
  8183. $as_echo_n "(cached) " >&6
  8184. else
  8185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8186. /* end confdefs.h. */
  8187. int i;
  8188. int
  8189. main ()
  8190. {
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. if ac_fn_c_try_link "$LINENO"; then :
  8196. eval $cacheid=yes
  8197. else
  8198. eval $cacheid=no
  8199. fi
  8200. rm -f core conftest.err conftest.$ac_objext \
  8201. conftest$ac_exeext conftest.$ac_ext
  8202. fi
  8203. CFLAGS="$xorg_testset_save_CFLAGS"
  8204. eval supported=\$$cacheid
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8206. $as_echo "$supported" >&6; }
  8207. if test "$supported" = "yes" ; then
  8208. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8209. found="yes"
  8210. fi
  8211. fi
  8212. xorg_testset_save_CFLAGS="$CFLAGS"
  8213. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8214. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8216. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8217. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8218. $as_echo_n "(cached) " >&6
  8219. else
  8220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8221. /* end confdefs.h. */
  8222. int i;
  8223. _ACEOF
  8224. if ac_fn_c_try_compile "$LINENO"; then :
  8225. xorg_cv_cc_flag_unknown_warning_option=yes
  8226. else
  8227. xorg_cv_cc_flag_unknown_warning_option=no
  8228. fi
  8229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8230. fi
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8232. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8233. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8234. CFLAGS="$xorg_testset_save_CFLAGS"
  8235. fi
  8236. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8237. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8238. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8239. fi
  8240. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8242. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8243. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8244. $as_echo_n "(cached) " >&6
  8245. else
  8246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8247. /* end confdefs.h. */
  8248. int i;
  8249. _ACEOF
  8250. if ac_fn_c_try_compile "$LINENO"; then :
  8251. xorg_cv_cc_flag_unused_command_line_argument=yes
  8252. else
  8253. xorg_cv_cc_flag_unused_command_line_argument=no
  8254. fi
  8255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8256. fi
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8258. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8259. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8260. CFLAGS="$xorg_testset_save_CFLAGS"
  8261. fi
  8262. found="no"
  8263. if test $found = "no" ; then
  8264. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8265. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8266. fi
  8267. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8268. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8269. fi
  8270. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8272. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8273. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8274. if eval \${$cacheid+:} false; then :
  8275. $as_echo_n "(cached) " >&6
  8276. else
  8277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8278. /* end confdefs.h. */
  8279. int i;
  8280. int
  8281. main ()
  8282. {
  8283. ;
  8284. return 0;
  8285. }
  8286. _ACEOF
  8287. if ac_fn_c_try_link "$LINENO"; then :
  8288. eval $cacheid=yes
  8289. else
  8290. eval $cacheid=no
  8291. fi
  8292. rm -f core conftest.err conftest.$ac_objext \
  8293. conftest$ac_exeext conftest.$ac_ext
  8294. fi
  8295. CFLAGS="$xorg_testset_save_CFLAGS"
  8296. eval supported=\$$cacheid
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8298. $as_echo "$supported" >&6; }
  8299. if test "$supported" = "yes" ; then
  8300. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8301. found="yes"
  8302. fi
  8303. fi
  8304. xorg_testset_save_CFLAGS="$CFLAGS"
  8305. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8306. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8308. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8309. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8310. $as_echo_n "(cached) " >&6
  8311. else
  8312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8313. /* end confdefs.h. */
  8314. int i;
  8315. _ACEOF
  8316. if ac_fn_c_try_compile "$LINENO"; then :
  8317. xorg_cv_cc_flag_unknown_warning_option=yes
  8318. else
  8319. xorg_cv_cc_flag_unknown_warning_option=no
  8320. fi
  8321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8322. fi
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8324. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8325. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8326. CFLAGS="$xorg_testset_save_CFLAGS"
  8327. fi
  8328. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8329. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8330. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8331. fi
  8332. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8334. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8335. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8339. /* end confdefs.h. */
  8340. int i;
  8341. _ACEOF
  8342. if ac_fn_c_try_compile "$LINENO"; then :
  8343. xorg_cv_cc_flag_unused_command_line_argument=yes
  8344. else
  8345. xorg_cv_cc_flag_unused_command_line_argument=no
  8346. fi
  8347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8348. fi
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8350. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8351. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8352. CFLAGS="$xorg_testset_save_CFLAGS"
  8353. fi
  8354. found="no"
  8355. if test $found = "no" ; then
  8356. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8358. fi
  8359. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8360. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8361. fi
  8362. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8364. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8365. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8366. if eval \${$cacheid+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int i;
  8372. int
  8373. main ()
  8374. {
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. if ac_fn_c_try_link "$LINENO"; then :
  8380. eval $cacheid=yes
  8381. else
  8382. eval $cacheid=no
  8383. fi
  8384. rm -f core conftest.err conftest.$ac_objext \
  8385. conftest$ac_exeext conftest.$ac_ext
  8386. fi
  8387. CFLAGS="$xorg_testset_save_CFLAGS"
  8388. eval supported=\$$cacheid
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8390. $as_echo "$supported" >&6; }
  8391. if test "$supported" = "yes" ; then
  8392. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8393. found="yes"
  8394. fi
  8395. fi
  8396. fi
  8397. CWARNFLAGS="$BASE_CFLAGS"
  8398. if test "x$GCC" = xyes ; then
  8399. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8400. fi
  8401. # Check whether --enable-strict-compilation was given.
  8402. if test "${enable_strict_compilation+set}" = set; then :
  8403. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8404. else
  8405. STRICT_COMPILE=no
  8406. fi
  8407. STRICT_CFLAGS=""
  8408. xorg_testset_save_CFLAGS="$CFLAGS"
  8409. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8410. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8412. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8413. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8417. /* end confdefs.h. */
  8418. int i;
  8419. _ACEOF
  8420. if ac_fn_c_try_compile "$LINENO"; then :
  8421. xorg_cv_cc_flag_unknown_warning_option=yes
  8422. else
  8423. xorg_cv_cc_flag_unknown_warning_option=no
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8426. fi
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8428. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8429. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8430. CFLAGS="$xorg_testset_save_CFLAGS"
  8431. fi
  8432. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8433. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8434. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8435. fi
  8436. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8438. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8439. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8440. $as_echo_n "(cached) " >&6
  8441. else
  8442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8443. /* end confdefs.h. */
  8444. int i;
  8445. _ACEOF
  8446. if ac_fn_c_try_compile "$LINENO"; then :
  8447. xorg_cv_cc_flag_unused_command_line_argument=yes
  8448. else
  8449. xorg_cv_cc_flag_unused_command_line_argument=no
  8450. fi
  8451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8452. fi
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8454. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8455. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8456. CFLAGS="$xorg_testset_save_CFLAGS"
  8457. fi
  8458. found="no"
  8459. if test $found = "no" ; then
  8460. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8461. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8462. fi
  8463. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8464. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8465. fi
  8466. CFLAGS="$CFLAGS -pedantic"
  8467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8468. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8469. cacheid=xorg_cv_cc_flag__pedantic
  8470. if eval \${$cacheid+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. int i;
  8476. int
  8477. main ()
  8478. {
  8479. ;
  8480. return 0;
  8481. }
  8482. _ACEOF
  8483. if ac_fn_c_try_link "$LINENO"; then :
  8484. eval $cacheid=yes
  8485. else
  8486. eval $cacheid=no
  8487. fi
  8488. rm -f core conftest.err conftest.$ac_objext \
  8489. conftest$ac_exeext conftest.$ac_ext
  8490. fi
  8491. CFLAGS="$xorg_testset_save_CFLAGS"
  8492. eval supported=\$$cacheid
  8493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8494. $as_echo "$supported" >&6; }
  8495. if test "$supported" = "yes" ; then
  8496. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8497. found="yes"
  8498. fi
  8499. fi
  8500. xorg_testset_save_CFLAGS="$CFLAGS"
  8501. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8504. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8505. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8509. /* end confdefs.h. */
  8510. int i;
  8511. _ACEOF
  8512. if ac_fn_c_try_compile "$LINENO"; then :
  8513. xorg_cv_cc_flag_unknown_warning_option=yes
  8514. else
  8515. xorg_cv_cc_flag_unknown_warning_option=no
  8516. fi
  8517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8518. fi
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8520. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8521. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8522. CFLAGS="$xorg_testset_save_CFLAGS"
  8523. fi
  8524. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8525. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8526. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8527. fi
  8528. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8530. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8531. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8532. $as_echo_n "(cached) " >&6
  8533. else
  8534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8535. /* end confdefs.h. */
  8536. int i;
  8537. _ACEOF
  8538. if ac_fn_c_try_compile "$LINENO"; then :
  8539. xorg_cv_cc_flag_unused_command_line_argument=yes
  8540. else
  8541. xorg_cv_cc_flag_unused_command_line_argument=no
  8542. fi
  8543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8544. fi
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8546. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8547. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8548. CFLAGS="$xorg_testset_save_CFLAGS"
  8549. fi
  8550. found="no"
  8551. if test $found = "no" ; then
  8552. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8553. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8554. fi
  8555. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8556. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8557. fi
  8558. CFLAGS="$CFLAGS -Werror"
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8560. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8561. cacheid=xorg_cv_cc_flag__Werror
  8562. if eval \${$cacheid+:} false; then :
  8563. $as_echo_n "(cached) " >&6
  8564. else
  8565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8566. /* end confdefs.h. */
  8567. int i;
  8568. int
  8569. main ()
  8570. {
  8571. ;
  8572. return 0;
  8573. }
  8574. _ACEOF
  8575. if ac_fn_c_try_link "$LINENO"; then :
  8576. eval $cacheid=yes
  8577. else
  8578. eval $cacheid=no
  8579. fi
  8580. rm -f core conftest.err conftest.$ac_objext \
  8581. conftest$ac_exeext conftest.$ac_ext
  8582. fi
  8583. CFLAGS="$xorg_testset_save_CFLAGS"
  8584. eval supported=\$$cacheid
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8586. $as_echo "$supported" >&6; }
  8587. if test "$supported" = "yes" ; then
  8588. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8589. found="yes"
  8590. fi
  8591. fi
  8592. if test $found = "no" ; then
  8593. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8594. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8595. fi
  8596. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8597. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8598. fi
  8599. CFLAGS="$CFLAGS -errwarn"
  8600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8601. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8602. cacheid=xorg_cv_cc_flag__errwarn
  8603. if eval \${$cacheid+:} false; then :
  8604. $as_echo_n "(cached) " >&6
  8605. else
  8606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8607. /* end confdefs.h. */
  8608. int i;
  8609. int
  8610. main ()
  8611. {
  8612. ;
  8613. return 0;
  8614. }
  8615. _ACEOF
  8616. if ac_fn_c_try_link "$LINENO"; then :
  8617. eval $cacheid=yes
  8618. else
  8619. eval $cacheid=no
  8620. fi
  8621. rm -f core conftest.err conftest.$ac_objext \
  8622. conftest$ac_exeext conftest.$ac_ext
  8623. fi
  8624. CFLAGS="$xorg_testset_save_CFLAGS"
  8625. eval supported=\$$cacheid
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8627. $as_echo "$supported" >&6; }
  8628. if test "$supported" = "yes" ; then
  8629. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8630. found="yes"
  8631. fi
  8632. fi
  8633. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8634. # activate it with -Werror, so we add it here explicitly.
  8635. xorg_testset_save_CFLAGS="$CFLAGS"
  8636. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8637. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8639. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8640. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8641. $as_echo_n "(cached) " >&6
  8642. else
  8643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8644. /* end confdefs.h. */
  8645. int i;
  8646. _ACEOF
  8647. if ac_fn_c_try_compile "$LINENO"; then :
  8648. xorg_cv_cc_flag_unknown_warning_option=yes
  8649. else
  8650. xorg_cv_cc_flag_unknown_warning_option=no
  8651. fi
  8652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8653. fi
  8654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8655. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8656. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8657. CFLAGS="$xorg_testset_save_CFLAGS"
  8658. fi
  8659. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8660. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8661. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8662. fi
  8663. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8665. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8666. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8667. $as_echo_n "(cached) " >&6
  8668. else
  8669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8670. /* end confdefs.h. */
  8671. int i;
  8672. _ACEOF
  8673. if ac_fn_c_try_compile "$LINENO"; then :
  8674. xorg_cv_cc_flag_unused_command_line_argument=yes
  8675. else
  8676. xorg_cv_cc_flag_unused_command_line_argument=no
  8677. fi
  8678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8679. fi
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8681. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8682. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8683. CFLAGS="$xorg_testset_save_CFLAGS"
  8684. fi
  8685. found="no"
  8686. if test $found = "no" ; then
  8687. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8688. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8689. fi
  8690. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8691. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8692. fi
  8693. CFLAGS="$CFLAGS -Werror=attributes"
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8695. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8696. cacheid=xorg_cv_cc_flag__Werror_attributes
  8697. if eval \${$cacheid+:} false; then :
  8698. $as_echo_n "(cached) " >&6
  8699. else
  8700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8701. /* end confdefs.h. */
  8702. int i;
  8703. int
  8704. main ()
  8705. {
  8706. ;
  8707. return 0;
  8708. }
  8709. _ACEOF
  8710. if ac_fn_c_try_link "$LINENO"; then :
  8711. eval $cacheid=yes
  8712. else
  8713. eval $cacheid=no
  8714. fi
  8715. rm -f core conftest.err conftest.$ac_objext \
  8716. conftest$ac_exeext conftest.$ac_ext
  8717. fi
  8718. CFLAGS="$xorg_testset_save_CFLAGS"
  8719. eval supported=\$$cacheid
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8721. $as_echo "$supported" >&6; }
  8722. if test "$supported" = "yes" ; then
  8723. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8724. found="yes"
  8725. fi
  8726. fi
  8727. if test "x$STRICT_COMPILE" = "xyes"; then
  8728. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8729. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8730. fi
  8731. cat >>confdefs.h <<_ACEOF
  8732. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8733. _ACEOF
  8734. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8735. if test "x$PVM" = "x"; then
  8736. PVM="0"
  8737. fi
  8738. cat >>confdefs.h <<_ACEOF
  8739. #define PACKAGE_VERSION_MINOR $PVM
  8740. _ACEOF
  8741. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8742. if test "x$PVP" = "x"; then
  8743. PVP="0"
  8744. fi
  8745. cat >>confdefs.h <<_ACEOF
  8746. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8747. _ACEOF
  8748. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8749. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8750. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8751. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8752. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8753. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8754. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8755. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8756. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8757. if test x$APP_MAN_SUFFIX = x ; then
  8758. APP_MAN_SUFFIX=1
  8759. fi
  8760. if test x$APP_MAN_DIR = x ; then
  8761. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8762. fi
  8763. if test x$LIB_MAN_SUFFIX = x ; then
  8764. LIB_MAN_SUFFIX=3
  8765. fi
  8766. if test x$LIB_MAN_DIR = x ; then
  8767. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8768. fi
  8769. if test x$FILE_MAN_SUFFIX = x ; then
  8770. case $host_os in
  8771. solaris*) FILE_MAN_SUFFIX=4 ;;
  8772. *) FILE_MAN_SUFFIX=5 ;;
  8773. esac
  8774. fi
  8775. if test x$FILE_MAN_DIR = x ; then
  8776. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8777. fi
  8778. if test x$MISC_MAN_SUFFIX = x ; then
  8779. case $host_os in
  8780. solaris*) MISC_MAN_SUFFIX=5 ;;
  8781. *) MISC_MAN_SUFFIX=7 ;;
  8782. esac
  8783. fi
  8784. if test x$MISC_MAN_DIR = x ; then
  8785. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8786. fi
  8787. if test x$DRIVER_MAN_SUFFIX = x ; then
  8788. case $host_os in
  8789. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8790. *) DRIVER_MAN_SUFFIX=4 ;;
  8791. esac
  8792. fi
  8793. if test x$DRIVER_MAN_DIR = x ; then
  8794. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8795. fi
  8796. if test x$ADMIN_MAN_SUFFIX = x ; then
  8797. case $host_os in
  8798. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8799. *) ADMIN_MAN_SUFFIX=8 ;;
  8800. esac
  8801. fi
  8802. if test x$ADMIN_MAN_DIR = x ; then
  8803. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8804. fi
  8805. XORG_MAN_PAGE="X Version 11"
  8806. MAN_SUBSTS="\
  8807. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8808. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8809. -e 's|__xservername__|Xorg|g' \
  8810. -e 's|__xconfigfile__|xorg.conf|g' \
  8811. -e 's|__projectroot__|\$(prefix)|g' \
  8812. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8813. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8814. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8815. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8816. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8817. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8818. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8819. # Check whether --enable-silent-rules was given.
  8820. if test "${enable_silent_rules+set}" = set; then :
  8821. enableval=$enable_silent_rules;
  8822. fi
  8823. case $enable_silent_rules in # (((
  8824. yes) AM_DEFAULT_VERBOSITY=0;;
  8825. no) AM_DEFAULT_VERBOSITY=1;;
  8826. *) AM_DEFAULT_VERBOSITY=0;;
  8827. esac
  8828. am_make=${MAKE-make}
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8830. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8831. if ${am_cv_make_support_nested_variables+:} false; then :
  8832. $as_echo_n "(cached) " >&6
  8833. else
  8834. if $as_echo 'TRUE=$(BAR$(V))
  8835. BAR0=false
  8836. BAR1=true
  8837. V=1
  8838. am__doit:
  8839. @$(TRUE)
  8840. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8841. am_cv_make_support_nested_variables=yes
  8842. else
  8843. am_cv_make_support_nested_variables=no
  8844. fi
  8845. fi
  8846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8847. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8848. if test $am_cv_make_support_nested_variables = yes; then
  8849. AM_V='$(V)'
  8850. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8851. else
  8852. AM_V=$AM_DEFAULT_VERBOSITY
  8853. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8854. fi
  8855. AM_BACKSLASH='\'
  8856. # Initialize libtool
  8857. # Check whether --enable-static was given.
  8858. if test "${enable_static+set}" = set; then :
  8859. enableval=$enable_static; p=${PACKAGE-default}
  8860. case $enableval in
  8861. yes) enable_static=yes ;;
  8862. no) enable_static=no ;;
  8863. *)
  8864. enable_static=no
  8865. # Look at the argument we got. We use all the common list separators.
  8866. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8867. for pkg in $enableval; do
  8868. IFS="$lt_save_ifs"
  8869. if test "X$pkg" = "X$p"; then
  8870. enable_static=yes
  8871. fi
  8872. done
  8873. IFS="$lt_save_ifs"
  8874. ;;
  8875. esac
  8876. else
  8877. enable_static=no
  8878. fi
  8879. case `pwd` in
  8880. *\ * | *\ *)
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  8882. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  8883. esac
  8884. macro_version='2.4.2'
  8885. macro_revision='1.3337'
  8886. ltmain="$ac_aux_dir/ltmain.sh"
  8887. # Backslashify metacharacters that are still active within
  8888. # double-quoted strings.
  8889. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8890. # Same as above, but do not quote variable references.
  8891. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8892. # Sed substitution to delay expansion of an escaped shell variable in a
  8893. # double_quote_subst'ed string.
  8894. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8895. # Sed substitution to delay expansion of an escaped single quote.
  8896. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8897. # Sed substitution to avoid accidental globbing in evaled expressions
  8898. no_glob_subst='s/\*/\\\*/g'
  8899. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8900. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  8901. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  8903. $as_echo_n "checking how to print strings... " >&6; }
  8904. # Test print first, because it will be a builtin if present.
  8905. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  8906. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  8907. ECHO='print -r --'
  8908. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  8909. ECHO='printf %s\n'
  8910. else
  8911. # Use this function as a fallback that always works.
  8912. func_fallback_echo ()
  8913. {
  8914. eval 'cat <<_LTECHO_EOF
  8915. $1
  8916. _LTECHO_EOF'
  8917. }
  8918. ECHO='func_fallback_echo'
  8919. fi
  8920. # func_echo_all arg...
  8921. # Invoke $ECHO with all args, space-separated.
  8922. func_echo_all ()
  8923. {
  8924. $ECHO ""
  8925. }
  8926. case "$ECHO" in
  8927. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  8928. $as_echo "printf" >&6; } ;;
  8929. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  8930. $as_echo "print -r" >&6; } ;;
  8931. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  8932. $as_echo "cat" >&6; } ;;
  8933. esac
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8935. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  8936. if ${ac_cv_path_SED+:} false; then :
  8937. $as_echo_n "(cached) " >&6
  8938. else
  8939. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8940. for ac_i in 1 2 3 4 5 6 7; do
  8941. ac_script="$ac_script$as_nl$ac_script"
  8942. done
  8943. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8944. { ac_script=; unset ac_script;}
  8945. if test -z "$SED"; then
  8946. ac_path_SED_found=false
  8947. # Loop through the user's path and test for each of PROGNAME-LIST
  8948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8949. for as_dir in $PATH
  8950. do
  8951. IFS=$as_save_IFS
  8952. test -z "$as_dir" && as_dir=.
  8953. for ac_prog in sed gsed; do
  8954. for ac_exec_ext in '' $ac_executable_extensions; do
  8955. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  8956. as_fn_executable_p "$ac_path_SED" || continue
  8957. # Check for GNU ac_path_SED and select it if it is found.
  8958. # Check for GNU $ac_path_SED
  8959. case `"$ac_path_SED" --version 2>&1` in
  8960. *GNU*)
  8961. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8962. *)
  8963. ac_count=0
  8964. $as_echo_n 0123456789 >"conftest.in"
  8965. while :
  8966. do
  8967. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8968. mv "conftest.tmp" "conftest.in"
  8969. cp "conftest.in" "conftest.nl"
  8970. $as_echo '' >> "conftest.nl"
  8971. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8972. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8973. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8974. if test $ac_count -gt ${ac_path_SED_max-0}; then
  8975. # Best one so far, save it but keep looking for a better one
  8976. ac_cv_path_SED="$ac_path_SED"
  8977. ac_path_SED_max=$ac_count
  8978. fi
  8979. # 10*(2^10) chars as input seems more than enough
  8980. test $ac_count -gt 10 && break
  8981. done
  8982. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8983. esac
  8984. $ac_path_SED_found && break 3
  8985. done
  8986. done
  8987. done
  8988. IFS=$as_save_IFS
  8989. if test -z "$ac_cv_path_SED"; then
  8990. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8991. fi
  8992. else
  8993. ac_cv_path_SED=$SED
  8994. fi
  8995. fi
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8997. $as_echo "$ac_cv_path_SED" >&6; }
  8998. SED="$ac_cv_path_SED"
  8999. rm -f conftest.sed
  9000. test -z "$SED" && SED=sed
  9001. Xsed="$SED -e 1s/^X//"
  9002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  9003. $as_echo_n "checking for fgrep... " >&6; }
  9004. if ${ac_cv_path_FGREP+:} false; then :
  9005. $as_echo_n "(cached) " >&6
  9006. else
  9007. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  9008. then ac_cv_path_FGREP="$GREP -F"
  9009. else
  9010. if test -z "$FGREP"; then
  9011. ac_path_FGREP_found=false
  9012. # Loop through the user's path and test for each of PROGNAME-LIST
  9013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9014. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9015. do
  9016. IFS=$as_save_IFS
  9017. test -z "$as_dir" && as_dir=.
  9018. for ac_prog in fgrep; do
  9019. for ac_exec_ext in '' $ac_executable_extensions; do
  9020. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  9021. as_fn_executable_p "$ac_path_FGREP" || continue
  9022. # Check for GNU ac_path_FGREP and select it if it is found.
  9023. # Check for GNU $ac_path_FGREP
  9024. case `"$ac_path_FGREP" --version 2>&1` in
  9025. *GNU*)
  9026. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  9027. *)
  9028. ac_count=0
  9029. $as_echo_n 0123456789 >"conftest.in"
  9030. while :
  9031. do
  9032. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9033. mv "conftest.tmp" "conftest.in"
  9034. cp "conftest.in" "conftest.nl"
  9035. $as_echo 'FGREP' >> "conftest.nl"
  9036. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9037. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9038. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9039. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  9040. # Best one so far, save it but keep looking for a better one
  9041. ac_cv_path_FGREP="$ac_path_FGREP"
  9042. ac_path_FGREP_max=$ac_count
  9043. fi
  9044. # 10*(2^10) chars as input seems more than enough
  9045. test $ac_count -gt 10 && break
  9046. done
  9047. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9048. esac
  9049. $ac_path_FGREP_found && break 3
  9050. done
  9051. done
  9052. done
  9053. IFS=$as_save_IFS
  9054. if test -z "$ac_cv_path_FGREP"; then
  9055. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9056. fi
  9057. else
  9058. ac_cv_path_FGREP=$FGREP
  9059. fi
  9060. fi
  9061. fi
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  9063. $as_echo "$ac_cv_path_FGREP" >&6; }
  9064. FGREP="$ac_cv_path_FGREP"
  9065. test -z "$GREP" && GREP=grep
  9066. # Check whether --with-gnu-ld was given.
  9067. if test "${with_gnu_ld+set}" = set; then :
  9068. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9069. else
  9070. with_gnu_ld=no
  9071. fi
  9072. ac_prog=ld
  9073. if test "$GCC" = yes; then
  9074. # Check if gcc -print-prog-name=ld gives a path.
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9076. $as_echo_n "checking for ld used by $CC... " >&6; }
  9077. case $host in
  9078. *-*-mingw*)
  9079. # gcc leaves a trailing carriage return which upsets mingw
  9080. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9081. *)
  9082. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9083. esac
  9084. case $ac_prog in
  9085. # Accept absolute paths.
  9086. [\\/]* | ?:[\\/]*)
  9087. re_direlt='/[^/][^/]*/\.\./'
  9088. # Canonicalize the pathname of ld
  9089. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9090. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9091. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9092. done
  9093. test -z "$LD" && LD="$ac_prog"
  9094. ;;
  9095. "")
  9096. # If it fails, then pretend we aren't using GCC.
  9097. ac_prog=ld
  9098. ;;
  9099. *)
  9100. # If it is relative, then search for the first ld in PATH.
  9101. with_gnu_ld=unknown
  9102. ;;
  9103. esac
  9104. elif test "$with_gnu_ld" = yes; then
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9106. $as_echo_n "checking for GNU ld... " >&6; }
  9107. else
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9109. $as_echo_n "checking for non-GNU ld... " >&6; }
  9110. fi
  9111. if ${lt_cv_path_LD+:} false; then :
  9112. $as_echo_n "(cached) " >&6
  9113. else
  9114. if test -z "$LD"; then
  9115. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9116. for ac_dir in $PATH; do
  9117. IFS="$lt_save_ifs"
  9118. test -z "$ac_dir" && ac_dir=.
  9119. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9120. lt_cv_path_LD="$ac_dir/$ac_prog"
  9121. # Check to see if the program is GNU ld. I'd rather use --version,
  9122. # but apparently some variants of GNU ld only accept -v.
  9123. # Break only if it was the GNU/non-GNU ld that we prefer.
  9124. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9125. *GNU* | *'with BFD'*)
  9126. test "$with_gnu_ld" != no && break
  9127. ;;
  9128. *)
  9129. test "$with_gnu_ld" != yes && break
  9130. ;;
  9131. esac
  9132. fi
  9133. done
  9134. IFS="$lt_save_ifs"
  9135. else
  9136. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9137. fi
  9138. fi
  9139. LD="$lt_cv_path_LD"
  9140. if test -n "$LD"; then
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9142. $as_echo "$LD" >&6; }
  9143. else
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9145. $as_echo "no" >&6; }
  9146. fi
  9147. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9149. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9150. if ${lt_cv_prog_gnu_ld+:} false; then :
  9151. $as_echo_n "(cached) " >&6
  9152. else
  9153. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9154. case `$LD -v 2>&1 </dev/null` in
  9155. *GNU* | *'with BFD'*)
  9156. lt_cv_prog_gnu_ld=yes
  9157. ;;
  9158. *)
  9159. lt_cv_prog_gnu_ld=no
  9160. ;;
  9161. esac
  9162. fi
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9164. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9165. with_gnu_ld=$lt_cv_prog_gnu_ld
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9167. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9168. if ${lt_cv_path_NM+:} false; then :
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. if test -n "$NM"; then
  9172. # Let the user override the test.
  9173. lt_cv_path_NM="$NM"
  9174. else
  9175. lt_nm_to_check="${ac_tool_prefix}nm"
  9176. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9177. lt_nm_to_check="$lt_nm_to_check nm"
  9178. fi
  9179. for lt_tmp_nm in $lt_nm_to_check; do
  9180. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9181. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9182. IFS="$lt_save_ifs"
  9183. test -z "$ac_dir" && ac_dir=.
  9184. tmp_nm="$ac_dir/$lt_tmp_nm"
  9185. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9186. # Check to see if the nm accepts a BSD-compat flag.
  9187. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9188. # nm: unknown option "B" ignored
  9189. # Tru64's nm complains that /dev/null is an invalid object file
  9190. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9191. */dev/null* | *'Invalid file or object type'*)
  9192. lt_cv_path_NM="$tmp_nm -B"
  9193. break
  9194. ;;
  9195. *)
  9196. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9197. */dev/null*)
  9198. lt_cv_path_NM="$tmp_nm -p"
  9199. break
  9200. ;;
  9201. *)
  9202. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9203. continue # so that we can try to find one that supports BSD flags
  9204. ;;
  9205. esac
  9206. ;;
  9207. esac
  9208. fi
  9209. done
  9210. IFS="$lt_save_ifs"
  9211. done
  9212. : ${lt_cv_path_NM=no}
  9213. fi
  9214. fi
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9216. $as_echo "$lt_cv_path_NM" >&6; }
  9217. if test "$lt_cv_path_NM" != "no"; then
  9218. NM="$lt_cv_path_NM"
  9219. else
  9220. # Didn't find any BSD compatible name lister, look for dumpbin.
  9221. if test -n "$DUMPBIN"; then :
  9222. # Let the user override the test.
  9223. else
  9224. if test -n "$ac_tool_prefix"; then
  9225. for ac_prog in dumpbin "link -dump"
  9226. do
  9227. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9228. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9230. $as_echo_n "checking for $ac_word... " >&6; }
  9231. if ${ac_cv_prog_DUMPBIN+:} false; then :
  9232. $as_echo_n "(cached) " >&6
  9233. else
  9234. if test -n "$DUMPBIN"; then
  9235. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9236. else
  9237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9238. for as_dir in $PATH
  9239. do
  9240. IFS=$as_save_IFS
  9241. test -z "$as_dir" && as_dir=.
  9242. for ac_exec_ext in '' $ac_executable_extensions; do
  9243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9244. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9246. break 2
  9247. fi
  9248. done
  9249. done
  9250. IFS=$as_save_IFS
  9251. fi
  9252. fi
  9253. DUMPBIN=$ac_cv_prog_DUMPBIN
  9254. if test -n "$DUMPBIN"; then
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9256. $as_echo "$DUMPBIN" >&6; }
  9257. else
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9259. $as_echo "no" >&6; }
  9260. fi
  9261. test -n "$DUMPBIN" && break
  9262. done
  9263. fi
  9264. if test -z "$DUMPBIN"; then
  9265. ac_ct_DUMPBIN=$DUMPBIN
  9266. for ac_prog in dumpbin "link -dump"
  9267. do
  9268. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9269. set dummy $ac_prog; ac_word=$2
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9271. $as_echo_n "checking for $ac_word... " >&6; }
  9272. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  9273. $as_echo_n "(cached) " >&6
  9274. else
  9275. if test -n "$ac_ct_DUMPBIN"; then
  9276. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9277. else
  9278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9279. for as_dir in $PATH
  9280. do
  9281. IFS=$as_save_IFS
  9282. test -z "$as_dir" && as_dir=.
  9283. for ac_exec_ext in '' $ac_executable_extensions; do
  9284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9285. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9287. break 2
  9288. fi
  9289. done
  9290. done
  9291. IFS=$as_save_IFS
  9292. fi
  9293. fi
  9294. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9295. if test -n "$ac_ct_DUMPBIN"; then
  9296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9297. $as_echo "$ac_ct_DUMPBIN" >&6; }
  9298. else
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9300. $as_echo "no" >&6; }
  9301. fi
  9302. test -n "$ac_ct_DUMPBIN" && break
  9303. done
  9304. if test "x$ac_ct_DUMPBIN" = x; then
  9305. DUMPBIN=":"
  9306. else
  9307. case $cross_compiling:$ac_tool_warned in
  9308. yes:)
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9310. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9311. ac_tool_warned=yes ;;
  9312. esac
  9313. DUMPBIN=$ac_ct_DUMPBIN
  9314. fi
  9315. fi
  9316. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  9317. *COFF*)
  9318. DUMPBIN="$DUMPBIN -symbols"
  9319. ;;
  9320. *)
  9321. DUMPBIN=:
  9322. ;;
  9323. esac
  9324. fi
  9325. if test "$DUMPBIN" != ":"; then
  9326. NM="$DUMPBIN"
  9327. fi
  9328. fi
  9329. test -z "$NM" && NM=nm
  9330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9331. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  9332. if ${lt_cv_nm_interface+:} false; then :
  9333. $as_echo_n "(cached) " >&6
  9334. else
  9335. lt_cv_nm_interface="BSD nm"
  9336. echo "int some_variable = 0;" > conftest.$ac_ext
  9337. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9338. (eval "$ac_compile" 2>conftest.err)
  9339. cat conftest.err >&5
  9340. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9341. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9342. cat conftest.err >&5
  9343. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9344. cat conftest.out >&5
  9345. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9346. lt_cv_nm_interface="MS dumpbin"
  9347. fi
  9348. rm -f conftest*
  9349. fi
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9351. $as_echo "$lt_cv_nm_interface" >&6; }
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9353. $as_echo_n "checking whether ln -s works... " >&6; }
  9354. LN_S=$as_ln_s
  9355. if test "$LN_S" = "ln -s"; then
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9357. $as_echo "yes" >&6; }
  9358. else
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9360. $as_echo "no, using $LN_S" >&6; }
  9361. fi
  9362. # find the maximum length of command line arguments
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9364. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  9365. if ${lt_cv_sys_max_cmd_len+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. i=0
  9369. teststring="ABCD"
  9370. case $build_os in
  9371. msdosdjgpp*)
  9372. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9373. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9374. # during glob expansion). Even if it were fixed, the result of this
  9375. # check would be larger than it should be.
  9376. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9377. ;;
  9378. gnu*)
  9379. # Under GNU Hurd, this test is not required because there is
  9380. # no limit to the length of command line arguments.
  9381. # Libtool will interpret -1 as no limit whatsoever
  9382. lt_cv_sys_max_cmd_len=-1;
  9383. ;;
  9384. cygwin* | mingw* | cegcc*)
  9385. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9386. # about 5 minutes as the teststring grows exponentially.
  9387. # Worse, since 9x/ME are not pre-emptively multitasking,
  9388. # you end up with a "frozen" computer, even though with patience
  9389. # the test eventually succeeds (with a max line length of 256k).
  9390. # Instead, let's just punt: use the minimum linelength reported by
  9391. # all of the supported platforms: 8192 (on NT/2K/XP).
  9392. lt_cv_sys_max_cmd_len=8192;
  9393. ;;
  9394. mint*)
  9395. # On MiNT this can take a long time and run out of memory.
  9396. lt_cv_sys_max_cmd_len=8192;
  9397. ;;
  9398. amigaos*)
  9399. # On AmigaOS with pdksh, this test takes hours, literally.
  9400. # So we just punt and use a minimum line length of 8192.
  9401. lt_cv_sys_max_cmd_len=8192;
  9402. ;;
  9403. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  9404. # This has been around since 386BSD, at least. Likely further.
  9405. if test -x /sbin/sysctl; then
  9406. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9407. elif test -x /usr/sbin/sysctl; then
  9408. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9409. else
  9410. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9411. fi
  9412. # And add a safety zone
  9413. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9415. ;;
  9416. interix*)
  9417. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9418. lt_cv_sys_max_cmd_len=196608
  9419. ;;
  9420. os2*)
  9421. # The test takes a long time on OS/2.
  9422. lt_cv_sys_max_cmd_len=8192
  9423. ;;
  9424. osf*)
  9425. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9426. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9427. # nice to cause kernel panics so lets avoid the loop below.
  9428. # First set a reasonable default.
  9429. lt_cv_sys_max_cmd_len=16384
  9430. #
  9431. if test -x /sbin/sysconfig; then
  9432. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9433. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9434. esac
  9435. fi
  9436. ;;
  9437. sco3.2v5*)
  9438. lt_cv_sys_max_cmd_len=102400
  9439. ;;
  9440. sysv5* | sco5v6* | sysv4.2uw2*)
  9441. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9442. if test -n "$kargmax"; then
  9443. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  9444. else
  9445. lt_cv_sys_max_cmd_len=32768
  9446. fi
  9447. ;;
  9448. *)
  9449. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9450. if test -n "$lt_cv_sys_max_cmd_len"; then
  9451. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9453. else
  9454. # Make teststring a little bigger before we do anything with it.
  9455. # a 1K string should be a reasonable start.
  9456. for i in 1 2 3 4 5 6 7 8 ; do
  9457. teststring=$teststring$teststring
  9458. done
  9459. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9460. # If test is not a shell built-in, we'll probably end up computing a
  9461. # maximum length that is only half of the actual maximum length, but
  9462. # we can't tell.
  9463. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  9464. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9465. test $i != 17 # 1/2 MB should be enough
  9466. do
  9467. i=`expr $i + 1`
  9468. teststring=$teststring$teststring
  9469. done
  9470. # Only check the string length outside the loop.
  9471. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9472. teststring=
  9473. # Add a significant safety factor because C++ compilers can tack on
  9474. # massive amounts of additional arguments before passing them to the
  9475. # linker. It appears as though 1/2 is a usable value.
  9476. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9477. fi
  9478. ;;
  9479. esac
  9480. fi
  9481. if test -n $lt_cv_sys_max_cmd_len ; then
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9483. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9484. else
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9486. $as_echo "none" >&6; }
  9487. fi
  9488. max_cmd_len=$lt_cv_sys_max_cmd_len
  9489. : ${CP="cp -f"}
  9490. : ${MV="mv -f"}
  9491. : ${RM="rm -f"}
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  9493. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  9494. # Try some XSI features
  9495. xsi_shell=no
  9496. ( _lt_dummy="a/b/c"
  9497. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  9498. = c,a/b,b/c, \
  9499. && eval 'test $(( 1 + 1 )) -eq 2 \
  9500. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9501. && xsi_shell=yes
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  9503. $as_echo "$xsi_shell" >&6; }
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  9505. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  9506. lt_shell_append=no
  9507. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  9508. >/dev/null 2>&1 \
  9509. && lt_shell_append=yes
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  9511. $as_echo "$lt_shell_append" >&6; }
  9512. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9513. lt_unset=unset
  9514. else
  9515. lt_unset=false
  9516. fi
  9517. # test EBCDIC or ASCII
  9518. case `echo X|tr X '\101'` in
  9519. A) # ASCII based system
  9520. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9521. lt_SP2NL='tr \040 \012'
  9522. lt_NL2SP='tr \015\012 \040\040'
  9523. ;;
  9524. *) # EBCDIC based system
  9525. lt_SP2NL='tr \100 \n'
  9526. lt_NL2SP='tr \r\n \100\100'
  9527. ;;
  9528. esac
  9529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9530. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  9531. if ${lt_cv_to_host_file_cmd+:} false; then :
  9532. $as_echo_n "(cached) " >&6
  9533. else
  9534. case $host in
  9535. *-*-mingw* )
  9536. case $build in
  9537. *-*-mingw* ) # actually msys
  9538. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  9539. ;;
  9540. *-*-cygwin* )
  9541. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  9542. ;;
  9543. * ) # otherwise, assume *nix
  9544. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  9545. ;;
  9546. esac
  9547. ;;
  9548. *-*-cygwin* )
  9549. case $build in
  9550. *-*-mingw* ) # actually msys
  9551. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  9552. ;;
  9553. *-*-cygwin* )
  9554. lt_cv_to_host_file_cmd=func_convert_file_noop
  9555. ;;
  9556. * ) # otherwise, assume *nix
  9557. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  9558. ;;
  9559. esac
  9560. ;;
  9561. * ) # unhandled hosts (and "normal" native builds)
  9562. lt_cv_to_host_file_cmd=func_convert_file_noop
  9563. ;;
  9564. esac
  9565. fi
  9566. to_host_file_cmd=$lt_cv_to_host_file_cmd
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  9568. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  9570. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  9571. if ${lt_cv_to_tool_file_cmd+:} false; then :
  9572. $as_echo_n "(cached) " >&6
  9573. else
  9574. #assume ordinary cross tools, or native build.
  9575. lt_cv_to_tool_file_cmd=func_convert_file_noop
  9576. case $host in
  9577. *-*-mingw* )
  9578. case $build in
  9579. *-*-mingw* ) # actually msys
  9580. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  9581. ;;
  9582. esac
  9583. ;;
  9584. esac
  9585. fi
  9586. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  9588. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  9590. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  9591. if ${lt_cv_ld_reload_flag+:} false; then :
  9592. $as_echo_n "(cached) " >&6
  9593. else
  9594. lt_cv_ld_reload_flag='-r'
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  9597. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  9598. reload_flag=$lt_cv_ld_reload_flag
  9599. case $reload_flag in
  9600. "" | " "*) ;;
  9601. *) reload_flag=" $reload_flag" ;;
  9602. esac
  9603. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9604. case $host_os in
  9605. cygwin* | mingw* | pw32* | cegcc*)
  9606. if test "$GCC" != yes; then
  9607. reload_cmds=false
  9608. fi
  9609. ;;
  9610. darwin*)
  9611. if test "$GCC" = yes; then
  9612. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  9613. else
  9614. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9615. fi
  9616. ;;
  9617. esac
  9618. if test -n "$ac_tool_prefix"; then
  9619. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9620. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9622. $as_echo_n "checking for $ac_word... " >&6; }
  9623. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9624. $as_echo_n "(cached) " >&6
  9625. else
  9626. if test -n "$OBJDUMP"; then
  9627. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9628. else
  9629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9630. for as_dir in $PATH
  9631. do
  9632. IFS=$as_save_IFS
  9633. test -z "$as_dir" && as_dir=.
  9634. for ac_exec_ext in '' $ac_executable_extensions; do
  9635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9636. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9638. break 2
  9639. fi
  9640. done
  9641. done
  9642. IFS=$as_save_IFS
  9643. fi
  9644. fi
  9645. OBJDUMP=$ac_cv_prog_OBJDUMP
  9646. if test -n "$OBJDUMP"; then
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9648. $as_echo "$OBJDUMP" >&6; }
  9649. else
  9650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9651. $as_echo "no" >&6; }
  9652. fi
  9653. fi
  9654. if test -z "$ac_cv_prog_OBJDUMP"; then
  9655. ac_ct_OBJDUMP=$OBJDUMP
  9656. # Extract the first word of "objdump", so it can be a program name with args.
  9657. set dummy objdump; ac_word=$2
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9659. $as_echo_n "checking for $ac_word... " >&6; }
  9660. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9661. $as_echo_n "(cached) " >&6
  9662. else
  9663. if test -n "$ac_ct_OBJDUMP"; then
  9664. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9665. else
  9666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9667. for as_dir in $PATH
  9668. do
  9669. IFS=$as_save_IFS
  9670. test -z "$as_dir" && as_dir=.
  9671. for ac_exec_ext in '' $ac_executable_extensions; do
  9672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9673. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9675. break 2
  9676. fi
  9677. done
  9678. done
  9679. IFS=$as_save_IFS
  9680. fi
  9681. fi
  9682. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9683. if test -n "$ac_ct_OBJDUMP"; then
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9685. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9686. else
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9688. $as_echo "no" >&6; }
  9689. fi
  9690. if test "x$ac_ct_OBJDUMP" = x; then
  9691. OBJDUMP="false"
  9692. else
  9693. case $cross_compiling:$ac_tool_warned in
  9694. yes:)
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9697. ac_tool_warned=yes ;;
  9698. esac
  9699. OBJDUMP=$ac_ct_OBJDUMP
  9700. fi
  9701. else
  9702. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9703. fi
  9704. test -z "$OBJDUMP" && OBJDUMP=objdump
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  9706. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  9707. if ${lt_cv_deplibs_check_method+:} false; then :
  9708. $as_echo_n "(cached) " >&6
  9709. else
  9710. lt_cv_file_magic_cmd='$MAGIC_CMD'
  9711. lt_cv_file_magic_test_file=
  9712. lt_cv_deplibs_check_method='unknown'
  9713. # Need to set the preceding variable on all platforms that support
  9714. # interlibrary dependencies.
  9715. # 'none' -- dependencies not supported.
  9716. # `unknown' -- same as none, but documents that we really don't know.
  9717. # 'pass_all' -- all dependencies passed with no checks.
  9718. # 'test_compile' -- check by making test program.
  9719. # 'file_magic [[regex]]' -- check by looking for files in library path
  9720. # which responds to the $file_magic_cmd with a given extended regex.
  9721. # If you have `file' or equivalent on your system and you're not sure
  9722. # whether `pass_all' will *always* work, you probably want this one.
  9723. case $host_os in
  9724. aix[4-9]*)
  9725. lt_cv_deplibs_check_method=pass_all
  9726. ;;
  9727. beos*)
  9728. lt_cv_deplibs_check_method=pass_all
  9729. ;;
  9730. bsdi[45]*)
  9731. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9732. lt_cv_file_magic_cmd='/usr/bin/file -L'
  9733. lt_cv_file_magic_test_file=/shlib/libc.so
  9734. ;;
  9735. cygwin*)
  9736. # func_win32_libid is a shell function defined in ltmain.sh
  9737. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9738. lt_cv_file_magic_cmd='func_win32_libid'
  9739. ;;
  9740. mingw* | pw32*)
  9741. # Base MSYS/MinGW do not provide the 'file' command needed by
  9742. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  9743. # unless we find 'file', for example because we are cross-compiling.
  9744. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  9745. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  9746. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9747. lt_cv_file_magic_cmd='func_win32_libid'
  9748. else
  9749. # Keep this pattern in sync with the one in func_win32_libid.
  9750. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  9751. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9752. fi
  9753. ;;
  9754. cegcc*)
  9755. # use the weaker test based on 'objdump'. See mingw*.
  9756. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  9757. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9758. ;;
  9759. darwin* | rhapsody*)
  9760. lt_cv_deplibs_check_method=pass_all
  9761. ;;
  9762. freebsd* | dragonfly*)
  9763. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9764. case $host_cpu in
  9765. i*86 )
  9766. # Not sure whether the presence of OpenBSD here was a mistake.
  9767. # Let's accept both of them until this is cleared up.
  9768. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9769. lt_cv_file_magic_cmd=/usr/bin/file
  9770. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9771. ;;
  9772. esac
  9773. else
  9774. lt_cv_deplibs_check_method=pass_all
  9775. fi
  9776. ;;
  9777. gnu*)
  9778. lt_cv_deplibs_check_method=pass_all
  9779. ;;
  9780. haiku*)
  9781. lt_cv_deplibs_check_method=pass_all
  9782. ;;
  9783. hpux10.20* | hpux11*)
  9784. lt_cv_file_magic_cmd=/usr/bin/file
  9785. case $host_cpu in
  9786. ia64*)
  9787. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9788. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9789. ;;
  9790. hppa*64*)
  9791. 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]'
  9792. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9793. ;;
  9794. *)
  9795. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  9796. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9797. ;;
  9798. esac
  9799. ;;
  9800. interix[3-9]*)
  9801. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9802. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9803. ;;
  9804. irix5* | irix6* | nonstopux*)
  9805. case $LD in
  9806. *-32|*"-32 ") libmagic=32-bit;;
  9807. *-n32|*"-n32 ") libmagic=N32;;
  9808. *-64|*"-64 ") libmagic=64-bit;;
  9809. *) libmagic=never-match;;
  9810. esac
  9811. lt_cv_deplibs_check_method=pass_all
  9812. ;;
  9813. # This must be glibc/ELF.
  9814. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9815. lt_cv_deplibs_check_method=pass_all
  9816. ;;
  9817. netbsd*)
  9818. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9819. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9820. else
  9821. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9822. fi
  9823. ;;
  9824. newos6*)
  9825. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  9826. lt_cv_file_magic_cmd=/usr/bin/file
  9827. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9828. ;;
  9829. *nto* | *qnx*)
  9830. lt_cv_deplibs_check_method=pass_all
  9831. ;;
  9832. openbsd*)
  9833. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9834. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9835. else
  9836. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9837. fi
  9838. ;;
  9839. osf3* | osf4* | osf5*)
  9840. lt_cv_deplibs_check_method=pass_all
  9841. ;;
  9842. rdos*)
  9843. lt_cv_deplibs_check_method=pass_all
  9844. ;;
  9845. solaris*)
  9846. lt_cv_deplibs_check_method=pass_all
  9847. ;;
  9848. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9849. lt_cv_deplibs_check_method=pass_all
  9850. ;;
  9851. sysv4 | sysv4.3*)
  9852. case $host_vendor in
  9853. motorola)
  9854. 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]'
  9855. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  9856. ;;
  9857. ncr)
  9858. lt_cv_deplibs_check_method=pass_all
  9859. ;;
  9860. sequent)
  9861. lt_cv_file_magic_cmd='/bin/file'
  9862. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  9863. ;;
  9864. sni)
  9865. lt_cv_file_magic_cmd='/bin/file'
  9866. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  9867. lt_cv_file_magic_test_file=/lib/libc.so
  9868. ;;
  9869. siemens)
  9870. lt_cv_deplibs_check_method=pass_all
  9871. ;;
  9872. pc)
  9873. lt_cv_deplibs_check_method=pass_all
  9874. ;;
  9875. esac
  9876. ;;
  9877. tpf*)
  9878. lt_cv_deplibs_check_method=pass_all
  9879. ;;
  9880. esac
  9881. fi
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  9883. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  9884. file_magic_glob=
  9885. want_nocaseglob=no
  9886. if test "$build" = "$host"; then
  9887. case $host_os in
  9888. mingw* | pw32*)
  9889. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  9890. want_nocaseglob=yes
  9891. else
  9892. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  9893. fi
  9894. ;;
  9895. esac
  9896. fi
  9897. file_magic_cmd=$lt_cv_file_magic_cmd
  9898. deplibs_check_method=$lt_cv_deplibs_check_method
  9899. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9900. if test -n "$ac_tool_prefix"; then
  9901. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9902. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9904. $as_echo_n "checking for $ac_word... " >&6; }
  9905. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9906. $as_echo_n "(cached) " >&6
  9907. else
  9908. if test -n "$DLLTOOL"; then
  9909. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9910. else
  9911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9912. for as_dir in $PATH
  9913. do
  9914. IFS=$as_save_IFS
  9915. test -z "$as_dir" && as_dir=.
  9916. for ac_exec_ext in '' $ac_executable_extensions; do
  9917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9918. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9920. break 2
  9921. fi
  9922. done
  9923. done
  9924. IFS=$as_save_IFS
  9925. fi
  9926. fi
  9927. DLLTOOL=$ac_cv_prog_DLLTOOL
  9928. if test -n "$DLLTOOL"; then
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9930. $as_echo "$DLLTOOL" >&6; }
  9931. else
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9933. $as_echo "no" >&6; }
  9934. fi
  9935. fi
  9936. if test -z "$ac_cv_prog_DLLTOOL"; then
  9937. ac_ct_DLLTOOL=$DLLTOOL
  9938. # Extract the first word of "dlltool", so it can be a program name with args.
  9939. set dummy dlltool; ac_word=$2
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9941. $as_echo_n "checking for $ac_word... " >&6; }
  9942. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9943. $as_echo_n "(cached) " >&6
  9944. else
  9945. if test -n "$ac_ct_DLLTOOL"; then
  9946. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9947. else
  9948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9949. for as_dir in $PATH
  9950. do
  9951. IFS=$as_save_IFS
  9952. test -z "$as_dir" && as_dir=.
  9953. for ac_exec_ext in '' $ac_executable_extensions; do
  9954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9955. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9957. break 2
  9958. fi
  9959. done
  9960. done
  9961. IFS=$as_save_IFS
  9962. fi
  9963. fi
  9964. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9965. if test -n "$ac_ct_DLLTOOL"; then
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9967. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9968. else
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9970. $as_echo "no" >&6; }
  9971. fi
  9972. if test "x$ac_ct_DLLTOOL" = x; then
  9973. DLLTOOL="false"
  9974. else
  9975. case $cross_compiling:$ac_tool_warned in
  9976. yes:)
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9979. ac_tool_warned=yes ;;
  9980. esac
  9981. DLLTOOL=$ac_ct_DLLTOOL
  9982. fi
  9983. else
  9984. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9985. fi
  9986. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  9988. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  9989. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. lt_cv_sharedlib_from_linklib_cmd='unknown'
  9993. case $host_os in
  9994. cygwin* | mingw* | pw32* | cegcc*)
  9995. # two different shell functions defined in ltmain.sh
  9996. # decide which to use based on capabilities of $DLLTOOL
  9997. case `$DLLTOOL --help 2>&1` in
  9998. *--identify-strict*)
  9999. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  10000. ;;
  10001. *)
  10002. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  10003. ;;
  10004. esac
  10005. ;;
  10006. *)
  10007. # fallback: assume linklib IS sharedlib
  10008. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  10009. ;;
  10010. esac
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  10013. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  10014. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  10015. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  10016. if test -n "$ac_tool_prefix"; then
  10017. for ac_prog in ar
  10018. do
  10019. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10020. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10022. $as_echo_n "checking for $ac_word... " >&6; }
  10023. if ${ac_cv_prog_AR+:} false; then :
  10024. $as_echo_n "(cached) " >&6
  10025. else
  10026. if test -n "$AR"; then
  10027. ac_cv_prog_AR="$AR" # Let the user override the test.
  10028. else
  10029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10030. for as_dir in $PATH
  10031. do
  10032. IFS=$as_save_IFS
  10033. test -z "$as_dir" && as_dir=.
  10034. for ac_exec_ext in '' $ac_executable_extensions; do
  10035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10036. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10038. break 2
  10039. fi
  10040. done
  10041. done
  10042. IFS=$as_save_IFS
  10043. fi
  10044. fi
  10045. AR=$ac_cv_prog_AR
  10046. if test -n "$AR"; then
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10048. $as_echo "$AR" >&6; }
  10049. else
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10051. $as_echo "no" >&6; }
  10052. fi
  10053. test -n "$AR" && break
  10054. done
  10055. fi
  10056. if test -z "$AR"; then
  10057. ac_ct_AR=$AR
  10058. for ac_prog in ar
  10059. do
  10060. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10061. set dummy $ac_prog; ac_word=$2
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10063. $as_echo_n "checking for $ac_word... " >&6; }
  10064. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  10065. $as_echo_n "(cached) " >&6
  10066. else
  10067. if test -n "$ac_ct_AR"; then
  10068. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10069. else
  10070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10071. for as_dir in $PATH
  10072. do
  10073. IFS=$as_save_IFS
  10074. test -z "$as_dir" && as_dir=.
  10075. for ac_exec_ext in '' $ac_executable_extensions; do
  10076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10077. ac_cv_prog_ac_ct_AR="$ac_prog"
  10078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10079. break 2
  10080. fi
  10081. done
  10082. done
  10083. IFS=$as_save_IFS
  10084. fi
  10085. fi
  10086. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10087. if test -n "$ac_ct_AR"; then
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10089. $as_echo "$ac_ct_AR" >&6; }
  10090. else
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10092. $as_echo "no" >&6; }
  10093. fi
  10094. test -n "$ac_ct_AR" && break
  10095. done
  10096. if test "x$ac_ct_AR" = x; then
  10097. AR="false"
  10098. else
  10099. case $cross_compiling:$ac_tool_warned in
  10100. yes:)
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10102. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10103. ac_tool_warned=yes ;;
  10104. esac
  10105. AR=$ac_ct_AR
  10106. fi
  10107. fi
  10108. : ${AR=ar}
  10109. : ${AR_FLAGS=cru}
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10111. $as_echo_n "checking for archiver @FILE support... " >&6; }
  10112. if ${lt_cv_ar_at_file+:} false; then :
  10113. $as_echo_n "(cached) " >&6
  10114. else
  10115. lt_cv_ar_at_file=no
  10116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10117. /* end confdefs.h. */
  10118. int
  10119. main ()
  10120. {
  10121. ;
  10122. return 0;
  10123. }
  10124. _ACEOF
  10125. if ac_fn_c_try_compile "$LINENO"; then :
  10126. echo conftest.$ac_objext > conftest.lst
  10127. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10128. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10129. (eval $lt_ar_try) 2>&5
  10130. ac_status=$?
  10131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10132. test $ac_status = 0; }
  10133. if test "$ac_status" -eq 0; then
  10134. # Ensure the archiver fails upon bogus file names.
  10135. rm -f conftest.$ac_objext libconftest.a
  10136. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10137. (eval $lt_ar_try) 2>&5
  10138. ac_status=$?
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10140. test $ac_status = 0; }
  10141. if test "$ac_status" -ne 0; then
  10142. lt_cv_ar_at_file=@
  10143. fi
  10144. fi
  10145. rm -f conftest.* libconftest.a
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10150. $as_echo "$lt_cv_ar_at_file" >&6; }
  10151. if test "x$lt_cv_ar_at_file" = xno; then
  10152. archiver_list_spec=
  10153. else
  10154. archiver_list_spec=$lt_cv_ar_at_file
  10155. fi
  10156. if test -n "$ac_tool_prefix"; then
  10157. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10158. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10160. $as_echo_n "checking for $ac_word... " >&6; }
  10161. if ${ac_cv_prog_STRIP+:} false; then :
  10162. $as_echo_n "(cached) " >&6
  10163. else
  10164. if test -n "$STRIP"; then
  10165. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10166. else
  10167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10168. for as_dir in $PATH
  10169. do
  10170. IFS=$as_save_IFS
  10171. test -z "$as_dir" && as_dir=.
  10172. for ac_exec_ext in '' $ac_executable_extensions; do
  10173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10174. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10176. break 2
  10177. fi
  10178. done
  10179. done
  10180. IFS=$as_save_IFS
  10181. fi
  10182. fi
  10183. STRIP=$ac_cv_prog_STRIP
  10184. if test -n "$STRIP"; then
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10186. $as_echo "$STRIP" >&6; }
  10187. else
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10189. $as_echo "no" >&6; }
  10190. fi
  10191. fi
  10192. if test -z "$ac_cv_prog_STRIP"; then
  10193. ac_ct_STRIP=$STRIP
  10194. # Extract the first word of "strip", so it can be a program name with args.
  10195. set dummy strip; ac_word=$2
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10197. $as_echo_n "checking for $ac_word... " >&6; }
  10198. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10199. $as_echo_n "(cached) " >&6
  10200. else
  10201. if test -n "$ac_ct_STRIP"; then
  10202. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10203. else
  10204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10205. for as_dir in $PATH
  10206. do
  10207. IFS=$as_save_IFS
  10208. test -z "$as_dir" && as_dir=.
  10209. for ac_exec_ext in '' $ac_executable_extensions; do
  10210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10211. ac_cv_prog_ac_ct_STRIP="strip"
  10212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10213. break 2
  10214. fi
  10215. done
  10216. done
  10217. IFS=$as_save_IFS
  10218. fi
  10219. fi
  10220. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10221. if test -n "$ac_ct_STRIP"; then
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10223. $as_echo "$ac_ct_STRIP" >&6; }
  10224. else
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10226. $as_echo "no" >&6; }
  10227. fi
  10228. if test "x$ac_ct_STRIP" = x; then
  10229. STRIP=":"
  10230. else
  10231. case $cross_compiling:$ac_tool_warned in
  10232. yes:)
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10234. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10235. ac_tool_warned=yes ;;
  10236. esac
  10237. STRIP=$ac_ct_STRIP
  10238. fi
  10239. else
  10240. STRIP="$ac_cv_prog_STRIP"
  10241. fi
  10242. test -z "$STRIP" && STRIP=:
  10243. if test -n "$ac_tool_prefix"; then
  10244. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10245. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10247. $as_echo_n "checking for $ac_word... " >&6; }
  10248. if ${ac_cv_prog_RANLIB+:} false; then :
  10249. $as_echo_n "(cached) " >&6
  10250. else
  10251. if test -n "$RANLIB"; then
  10252. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10253. else
  10254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10255. for as_dir in $PATH
  10256. do
  10257. IFS=$as_save_IFS
  10258. test -z "$as_dir" && as_dir=.
  10259. for ac_exec_ext in '' $ac_executable_extensions; do
  10260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10261. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10263. break 2
  10264. fi
  10265. done
  10266. done
  10267. IFS=$as_save_IFS
  10268. fi
  10269. fi
  10270. RANLIB=$ac_cv_prog_RANLIB
  10271. if test -n "$RANLIB"; then
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10273. $as_echo "$RANLIB" >&6; }
  10274. else
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10276. $as_echo "no" >&6; }
  10277. fi
  10278. fi
  10279. if test -z "$ac_cv_prog_RANLIB"; then
  10280. ac_ct_RANLIB=$RANLIB
  10281. # Extract the first word of "ranlib", so it can be a program name with args.
  10282. set dummy ranlib; ac_word=$2
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10284. $as_echo_n "checking for $ac_word... " >&6; }
  10285. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  10286. $as_echo_n "(cached) " >&6
  10287. else
  10288. if test -n "$ac_ct_RANLIB"; then
  10289. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10290. else
  10291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10292. for as_dir in $PATH
  10293. do
  10294. IFS=$as_save_IFS
  10295. test -z "$as_dir" && as_dir=.
  10296. for ac_exec_ext in '' $ac_executable_extensions; do
  10297. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10298. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10300. break 2
  10301. fi
  10302. done
  10303. done
  10304. IFS=$as_save_IFS
  10305. fi
  10306. fi
  10307. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10308. if test -n "$ac_ct_RANLIB"; then
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10310. $as_echo "$ac_ct_RANLIB" >&6; }
  10311. else
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10313. $as_echo "no" >&6; }
  10314. fi
  10315. if test "x$ac_ct_RANLIB" = x; then
  10316. RANLIB=":"
  10317. else
  10318. case $cross_compiling:$ac_tool_warned in
  10319. yes:)
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10322. ac_tool_warned=yes ;;
  10323. esac
  10324. RANLIB=$ac_ct_RANLIB
  10325. fi
  10326. else
  10327. RANLIB="$ac_cv_prog_RANLIB"
  10328. fi
  10329. test -z "$RANLIB" && RANLIB=:
  10330. # Determine commands to create old-style static archives.
  10331. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10332. old_postinstall_cmds='chmod 644 $oldlib'
  10333. old_postuninstall_cmds=
  10334. if test -n "$RANLIB"; then
  10335. case $host_os in
  10336. openbsd*)
  10337. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  10338. ;;
  10339. *)
  10340. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10341. ;;
  10342. esac
  10343. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10344. fi
  10345. case $host_os in
  10346. darwin*)
  10347. lock_old_archive_extraction=yes ;;
  10348. *)
  10349. lock_old_archive_extraction=no ;;
  10350. esac
  10351. # If no C compiler was specified, use CC.
  10352. LTCC=${LTCC-"$CC"}
  10353. # If no C compiler flags were specified, use CFLAGS.
  10354. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10355. # Allow CC to be a program name with arguments.
  10356. compiler=$CC
  10357. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10359. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10360. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  10361. $as_echo_n "(cached) " >&6
  10362. else
  10363. # These are sane defaults that work on at least a few old systems.
  10364. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10365. # Character class describing NM global symbol codes.
  10366. symcode='[BCDEGRST]'
  10367. # Regexp to match symbols that can be accessed directly from C.
  10368. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10369. # Define system-specific variables.
  10370. case $host_os in
  10371. aix*)
  10372. symcode='[BCDT]'
  10373. ;;
  10374. cygwin* | mingw* | pw32* | cegcc*)
  10375. symcode='[ABCDGISTW]'
  10376. ;;
  10377. hpux*)
  10378. if test "$host_cpu" = ia64; then
  10379. symcode='[ABCDEGRST]'
  10380. fi
  10381. ;;
  10382. irix* | nonstopux*)
  10383. symcode='[BCDEGRST]'
  10384. ;;
  10385. osf*)
  10386. symcode='[BCDEGQRST]'
  10387. ;;
  10388. solaris*)
  10389. symcode='[BDRT]'
  10390. ;;
  10391. sco3.2v5*)
  10392. symcode='[DT]'
  10393. ;;
  10394. sysv4.2uw2*)
  10395. symcode='[DT]'
  10396. ;;
  10397. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10398. symcode='[ABDT]'
  10399. ;;
  10400. sysv4)
  10401. symcode='[DFNSTU]'
  10402. ;;
  10403. esac
  10404. # If we're using GNU nm, then use its standard symbol codes.
  10405. case `$NM -V 2>&1` in
  10406. *GNU* | *'with BFD'*)
  10407. symcode='[ABCDGIRSTW]' ;;
  10408. esac
  10409. # Transform an extracted symbol line into a proper C declaration.
  10410. # Some systems (esp. on ia64) link data and code symbols differently,
  10411. # so use this general approach.
  10412. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10413. # Transform an extracted symbol line into symbol name and symbol address
  10414. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  10415. 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'"
  10416. # Handle CRLF in mingw tool chain
  10417. opt_cr=
  10418. case $build_os in
  10419. mingw*)
  10420. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10421. ;;
  10422. esac
  10423. # Try without a prefix underscore, then with it.
  10424. for ac_symprfx in "" "_"; do
  10425. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10426. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10427. # Write the raw and C identifiers.
  10428. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10429. # Fake it for dumpbin and say T for any non-static function
  10430. # and D for any global variable.
  10431. # Also find C++ and __fastcall symbols from MSVC++,
  10432. # which start with @ or ?.
  10433. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10434. " {last_section=section; section=\$ 3};"\
  10435. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10436. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10437. " \$ 0!~/External *\|/{next};"\
  10438. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10439. " {if(hide[section]) next};"\
  10440. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10441. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10442. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10443. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10444. " ' prfx=^$ac_symprfx"
  10445. else
  10446. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10447. fi
  10448. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  10449. # Check to see that the pipe works correctly.
  10450. pipe_works=no
  10451. rm -f conftest*
  10452. cat > conftest.$ac_ext <<_LT_EOF
  10453. #ifdef __cplusplus
  10454. extern "C" {
  10455. #endif
  10456. char nm_test_var;
  10457. void nm_test_func(void);
  10458. void nm_test_func(void){}
  10459. #ifdef __cplusplus
  10460. }
  10461. #endif
  10462. int main(){nm_test_var='a';nm_test_func();return(0);}
  10463. _LT_EOF
  10464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10465. (eval $ac_compile) 2>&5
  10466. ac_status=$?
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10468. test $ac_status = 0; }; then
  10469. # Now try to grab the symbols.
  10470. nlist=conftest.nm
  10471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  10472. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  10473. ac_status=$?
  10474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10475. test $ac_status = 0; } && test -s "$nlist"; then
  10476. # Try sorting and uniquifying the output.
  10477. if sort "$nlist" | uniq > "$nlist"T; then
  10478. mv -f "$nlist"T "$nlist"
  10479. else
  10480. rm -f "$nlist"T
  10481. fi
  10482. # Make sure that we snagged all the symbols we need.
  10483. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10484. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10485. cat <<_LT_EOF > conftest.$ac_ext
  10486. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10487. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10488. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  10489. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10490. # define LT_DLSYM_CONST
  10491. #elif defined(__osf__)
  10492. /* This system does not cope well with relocations in const data. */
  10493. # define LT_DLSYM_CONST
  10494. #else
  10495. # define LT_DLSYM_CONST const
  10496. #endif
  10497. #ifdef __cplusplus
  10498. extern "C" {
  10499. #endif
  10500. _LT_EOF
  10501. # Now generate the symbol file.
  10502. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10503. cat <<_LT_EOF >> conftest.$ac_ext
  10504. /* The mapping between symbol names and symbols. */
  10505. LT_DLSYM_CONST struct {
  10506. const char *name;
  10507. void *address;
  10508. }
  10509. lt__PROGRAM__LTX_preloaded_symbols[] =
  10510. {
  10511. { "@PROGRAM@", (void *) 0 },
  10512. _LT_EOF
  10513. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10514. cat <<\_LT_EOF >> conftest.$ac_ext
  10515. {0, (void *) 0}
  10516. };
  10517. /* This works around a problem in FreeBSD linker */
  10518. #ifdef FREEBSD_WORKAROUND
  10519. static const void *lt_preloaded_setup() {
  10520. return lt__PROGRAM__LTX_preloaded_symbols;
  10521. }
  10522. #endif
  10523. #ifdef __cplusplus
  10524. }
  10525. #endif
  10526. _LT_EOF
  10527. # Now try linking the two files.
  10528. mv conftest.$ac_objext conftstm.$ac_objext
  10529. lt_globsym_save_LIBS=$LIBS
  10530. lt_globsym_save_CFLAGS=$CFLAGS
  10531. LIBS="conftstm.$ac_objext"
  10532. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10533. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10534. (eval $ac_link) 2>&5
  10535. ac_status=$?
  10536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10537. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  10538. pipe_works=yes
  10539. fi
  10540. LIBS=$lt_globsym_save_LIBS
  10541. CFLAGS=$lt_globsym_save_CFLAGS
  10542. else
  10543. echo "cannot find nm_test_func in $nlist" >&5
  10544. fi
  10545. else
  10546. echo "cannot find nm_test_var in $nlist" >&5
  10547. fi
  10548. else
  10549. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10550. fi
  10551. else
  10552. echo "$progname: failed program was:" >&5
  10553. cat conftest.$ac_ext >&5
  10554. fi
  10555. rm -rf conftest* conftst*
  10556. # Do not use the global_symbol_pipe unless it works.
  10557. if test "$pipe_works" = yes; then
  10558. break
  10559. else
  10560. lt_cv_sys_global_symbol_pipe=
  10561. fi
  10562. done
  10563. fi
  10564. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10565. lt_cv_sys_global_symbol_to_cdecl=
  10566. fi
  10567. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10569. $as_echo "failed" >&6; }
  10570. else
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10572. $as_echo "ok" >&6; }
  10573. fi
  10574. # Response file support.
  10575. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10576. nm_file_list_spec='@'
  10577. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  10578. nm_file_list_spec='@'
  10579. fi
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  10581. $as_echo_n "checking for sysroot... " >&6; }
  10582. # Check whether --with-sysroot was given.
  10583. if test "${with_sysroot+set}" = set; then :
  10584. withval=$with_sysroot;
  10585. else
  10586. with_sysroot=no
  10587. fi
  10588. lt_sysroot=
  10589. case ${with_sysroot} in #(
  10590. yes)
  10591. if test "$GCC" = yes; then
  10592. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  10593. fi
  10594. ;; #(
  10595. /*)
  10596. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  10597. ;; #(
  10598. no|'')
  10599. ;; #(
  10600. *)
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  10602. $as_echo "${with_sysroot}" >&6; }
  10603. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  10604. ;;
  10605. esac
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  10607. $as_echo "${lt_sysroot:-no}" >&6; }
  10608. # Check whether --enable-libtool-lock was given.
  10609. if test "${enable_libtool_lock+set}" = set; then :
  10610. enableval=$enable_libtool_lock;
  10611. fi
  10612. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  10613. # Some flags need to be propagated to the compiler or linker for good
  10614. # libtool support.
  10615. case $host in
  10616. ia64-*-hpux*)
  10617. # Find out which ABI we are using.
  10618. echo 'int i;' > conftest.$ac_ext
  10619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10620. (eval $ac_compile) 2>&5
  10621. ac_status=$?
  10622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10623. test $ac_status = 0; }; then
  10624. case `/usr/bin/file conftest.$ac_objext` in
  10625. *ELF-32*)
  10626. HPUX_IA64_MODE="32"
  10627. ;;
  10628. *ELF-64*)
  10629. HPUX_IA64_MODE="64"
  10630. ;;
  10631. esac
  10632. fi
  10633. rm -rf conftest*
  10634. ;;
  10635. *-*-irix6*)
  10636. # Find out which ABI we are using.
  10637. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10639. (eval $ac_compile) 2>&5
  10640. ac_status=$?
  10641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10642. test $ac_status = 0; }; then
  10643. if test "$lt_cv_prog_gnu_ld" = yes; then
  10644. case `/usr/bin/file conftest.$ac_objext` in
  10645. *32-bit*)
  10646. LD="${LD-ld} -melf32bsmip"
  10647. ;;
  10648. *N32*)
  10649. LD="${LD-ld} -melf32bmipn32"
  10650. ;;
  10651. *64-bit*)
  10652. LD="${LD-ld} -melf64bmip"
  10653. ;;
  10654. esac
  10655. else
  10656. case `/usr/bin/file conftest.$ac_objext` in
  10657. *32-bit*)
  10658. LD="${LD-ld} -32"
  10659. ;;
  10660. *N32*)
  10661. LD="${LD-ld} -n32"
  10662. ;;
  10663. *64-bit*)
  10664. LD="${LD-ld} -64"
  10665. ;;
  10666. esac
  10667. fi
  10668. fi
  10669. rm -rf conftest*
  10670. ;;
  10671. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  10672. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  10673. # Find out which ABI we are using.
  10674. echo 'int i;' > conftest.$ac_ext
  10675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10676. (eval $ac_compile) 2>&5
  10677. ac_status=$?
  10678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10679. test $ac_status = 0; }; then
  10680. case `/usr/bin/file conftest.o` in
  10681. *32-bit*)
  10682. case $host in
  10683. x86_64-*kfreebsd*-gnu)
  10684. LD="${LD-ld} -m elf_i386_fbsd"
  10685. ;;
  10686. x86_64-*linux*)
  10687. LD="${LD-ld} -m elf_i386"
  10688. ;;
  10689. ppc64-*linux*|powerpc64-*linux*)
  10690. LD="${LD-ld} -m elf32ppclinux"
  10691. ;;
  10692. s390x-*linux*)
  10693. LD="${LD-ld} -m elf_s390"
  10694. ;;
  10695. sparc64-*linux*)
  10696. LD="${LD-ld} -m elf32_sparc"
  10697. ;;
  10698. esac
  10699. ;;
  10700. *64-bit*)
  10701. case $host in
  10702. x86_64-*kfreebsd*-gnu)
  10703. LD="${LD-ld} -m elf_x86_64_fbsd"
  10704. ;;
  10705. x86_64-*linux*)
  10706. LD="${LD-ld} -m elf_x86_64"
  10707. ;;
  10708. ppc*-*linux*|powerpc*-*linux*)
  10709. LD="${LD-ld} -m elf64ppc"
  10710. ;;
  10711. s390*-*linux*|s390*-*tpf*)
  10712. LD="${LD-ld} -m elf64_s390"
  10713. ;;
  10714. sparc*-*linux*)
  10715. LD="${LD-ld} -m elf64_sparc"
  10716. ;;
  10717. esac
  10718. ;;
  10719. esac
  10720. fi
  10721. rm -rf conftest*
  10722. ;;
  10723. *-*-sco3.2v5*)
  10724. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10725. SAVE_CFLAGS="$CFLAGS"
  10726. CFLAGS="$CFLAGS -belf"
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  10728. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  10729. if ${lt_cv_cc_needs_belf+:} false; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. ac_ext=c
  10733. ac_cpp='$CPP $CPPFLAGS'
  10734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. int
  10740. main ()
  10741. {
  10742. ;
  10743. return 0;
  10744. }
  10745. _ACEOF
  10746. if ac_fn_c_try_link "$LINENO"; then :
  10747. lt_cv_cc_needs_belf=yes
  10748. else
  10749. lt_cv_cc_needs_belf=no
  10750. fi
  10751. rm -f core conftest.err conftest.$ac_objext \
  10752. conftest$ac_exeext conftest.$ac_ext
  10753. ac_ext=c
  10754. ac_cpp='$CPP $CPPFLAGS'
  10755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10758. fi
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  10760. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  10761. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  10762. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10763. CFLAGS="$SAVE_CFLAGS"
  10764. fi
  10765. ;;
  10766. *-*solaris*)
  10767. # Find out which ABI we are using.
  10768. echo 'int i;' > conftest.$ac_ext
  10769. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10770. (eval $ac_compile) 2>&5
  10771. ac_status=$?
  10772. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10773. test $ac_status = 0; }; then
  10774. case `/usr/bin/file conftest.o` in
  10775. *64-bit*)
  10776. case $lt_cv_prog_gnu_ld in
  10777. yes*)
  10778. case $host in
  10779. i?86-*-solaris*)
  10780. LD="${LD-ld} -m elf_x86_64"
  10781. ;;
  10782. sparc*-*-solaris*)
  10783. LD="${LD-ld} -m elf64_sparc"
  10784. ;;
  10785. esac
  10786. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  10787. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  10788. LD="${LD-ld}_sol2"
  10789. fi
  10790. ;;
  10791. *)
  10792. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  10793. LD="${LD-ld} -64"
  10794. fi
  10795. ;;
  10796. esac
  10797. ;;
  10798. esac
  10799. fi
  10800. rm -rf conftest*
  10801. ;;
  10802. esac
  10803. need_locks="$enable_libtool_lock"
  10804. if test -n "$ac_tool_prefix"; then
  10805. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  10806. set dummy ${ac_tool_prefix}mt; ac_word=$2
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10808. $as_echo_n "checking for $ac_word... " >&6; }
  10809. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  10810. $as_echo_n "(cached) " >&6
  10811. else
  10812. if test -n "$MANIFEST_TOOL"; then
  10813. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  10814. else
  10815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10816. for as_dir in $PATH
  10817. do
  10818. IFS=$as_save_IFS
  10819. test -z "$as_dir" && as_dir=.
  10820. for ac_exec_ext in '' $ac_executable_extensions; do
  10821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10822. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  10823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10824. break 2
  10825. fi
  10826. done
  10827. done
  10828. IFS=$as_save_IFS
  10829. fi
  10830. fi
  10831. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  10832. if test -n "$MANIFEST_TOOL"; then
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  10834. $as_echo "$MANIFEST_TOOL" >&6; }
  10835. else
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10837. $as_echo "no" >&6; }
  10838. fi
  10839. fi
  10840. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  10841. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  10842. # Extract the first word of "mt", so it can be a program name with args.
  10843. set dummy mt; ac_word=$2
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10845. $as_echo_n "checking for $ac_word... " >&6; }
  10846. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. if test -n "$ac_ct_MANIFEST_TOOL"; then
  10850. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  10851. else
  10852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10853. for as_dir in $PATH
  10854. do
  10855. IFS=$as_save_IFS
  10856. test -z "$as_dir" && as_dir=.
  10857. for ac_exec_ext in '' $ac_executable_extensions; do
  10858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10859. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  10860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10861. break 2
  10862. fi
  10863. done
  10864. done
  10865. IFS=$as_save_IFS
  10866. fi
  10867. fi
  10868. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  10869. if test -n "$ac_ct_MANIFEST_TOOL"; then
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  10871. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  10872. else
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10874. $as_echo "no" >&6; }
  10875. fi
  10876. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  10877. MANIFEST_TOOL=":"
  10878. else
  10879. case $cross_compiling:$ac_tool_warned in
  10880. yes:)
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10883. ac_tool_warned=yes ;;
  10884. esac
  10885. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  10886. fi
  10887. else
  10888. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  10889. fi
  10890. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  10892. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  10893. if ${lt_cv_path_mainfest_tool+:} false; then :
  10894. $as_echo_n "(cached) " >&6
  10895. else
  10896. lt_cv_path_mainfest_tool=no
  10897. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  10898. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  10899. cat conftest.err >&5
  10900. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  10901. lt_cv_path_mainfest_tool=yes
  10902. fi
  10903. rm -f conftest*
  10904. fi
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  10906. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  10907. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  10908. MANIFEST_TOOL=:
  10909. fi
  10910. case $host_os in
  10911. rhapsody* | darwin*)
  10912. if test -n "$ac_tool_prefix"; then
  10913. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  10914. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10916. $as_echo_n "checking for $ac_word... " >&6; }
  10917. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  10918. $as_echo_n "(cached) " >&6
  10919. else
  10920. if test -n "$DSYMUTIL"; then
  10921. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  10922. else
  10923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10924. for as_dir in $PATH
  10925. do
  10926. IFS=$as_save_IFS
  10927. test -z "$as_dir" && as_dir=.
  10928. for ac_exec_ext in '' $ac_executable_extensions; do
  10929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10930. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  10931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10932. break 2
  10933. fi
  10934. done
  10935. done
  10936. IFS=$as_save_IFS
  10937. fi
  10938. fi
  10939. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  10940. if test -n "$DSYMUTIL"; then
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  10942. $as_echo "$DSYMUTIL" >&6; }
  10943. else
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10945. $as_echo "no" >&6; }
  10946. fi
  10947. fi
  10948. if test -z "$ac_cv_prog_DSYMUTIL"; then
  10949. ac_ct_DSYMUTIL=$DSYMUTIL
  10950. # Extract the first word of "dsymutil", so it can be a program name with args.
  10951. set dummy dsymutil; ac_word=$2
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10953. $as_echo_n "checking for $ac_word... " >&6; }
  10954. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  10955. $as_echo_n "(cached) " >&6
  10956. else
  10957. if test -n "$ac_ct_DSYMUTIL"; then
  10958. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  10959. else
  10960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10961. for as_dir in $PATH
  10962. do
  10963. IFS=$as_save_IFS
  10964. test -z "$as_dir" && as_dir=.
  10965. for ac_exec_ext in '' $ac_executable_extensions; do
  10966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10967. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  10968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10969. break 2
  10970. fi
  10971. done
  10972. done
  10973. IFS=$as_save_IFS
  10974. fi
  10975. fi
  10976. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  10977. if test -n "$ac_ct_DSYMUTIL"; then
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  10979. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  10980. else
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10982. $as_echo "no" >&6; }
  10983. fi
  10984. if test "x$ac_ct_DSYMUTIL" = x; then
  10985. DSYMUTIL=":"
  10986. else
  10987. case $cross_compiling:$ac_tool_warned in
  10988. yes:)
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10991. ac_tool_warned=yes ;;
  10992. esac
  10993. DSYMUTIL=$ac_ct_DSYMUTIL
  10994. fi
  10995. else
  10996. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  10997. fi
  10998. if test -n "$ac_tool_prefix"; then
  10999. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11000. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11002. $as_echo_n "checking for $ac_word... " >&6; }
  11003. if ${ac_cv_prog_NMEDIT+:} false; then :
  11004. $as_echo_n "(cached) " >&6
  11005. else
  11006. if test -n "$NMEDIT"; then
  11007. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11008. else
  11009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11010. for as_dir in $PATH
  11011. do
  11012. IFS=$as_save_IFS
  11013. test -z "$as_dir" && as_dir=.
  11014. for ac_exec_ext in '' $ac_executable_extensions; do
  11015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11016. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11018. break 2
  11019. fi
  11020. done
  11021. done
  11022. IFS=$as_save_IFS
  11023. fi
  11024. fi
  11025. NMEDIT=$ac_cv_prog_NMEDIT
  11026. if test -n "$NMEDIT"; then
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11028. $as_echo "$NMEDIT" >&6; }
  11029. else
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11031. $as_echo "no" >&6; }
  11032. fi
  11033. fi
  11034. if test -z "$ac_cv_prog_NMEDIT"; then
  11035. ac_ct_NMEDIT=$NMEDIT
  11036. # Extract the first word of "nmedit", so it can be a program name with args.
  11037. set dummy nmedit; ac_word=$2
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11039. $as_echo_n "checking for $ac_word... " >&6; }
  11040. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  11041. $as_echo_n "(cached) " >&6
  11042. else
  11043. if test -n "$ac_ct_NMEDIT"; then
  11044. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11045. else
  11046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11047. for as_dir in $PATH
  11048. do
  11049. IFS=$as_save_IFS
  11050. test -z "$as_dir" && as_dir=.
  11051. for ac_exec_ext in '' $ac_executable_extensions; do
  11052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11053. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11055. break 2
  11056. fi
  11057. done
  11058. done
  11059. IFS=$as_save_IFS
  11060. fi
  11061. fi
  11062. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11063. if test -n "$ac_ct_NMEDIT"; then
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11065. $as_echo "$ac_ct_NMEDIT" >&6; }
  11066. else
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11068. $as_echo "no" >&6; }
  11069. fi
  11070. if test "x$ac_ct_NMEDIT" = x; then
  11071. NMEDIT=":"
  11072. else
  11073. case $cross_compiling:$ac_tool_warned in
  11074. yes:)
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11077. ac_tool_warned=yes ;;
  11078. esac
  11079. NMEDIT=$ac_ct_NMEDIT
  11080. fi
  11081. else
  11082. NMEDIT="$ac_cv_prog_NMEDIT"
  11083. fi
  11084. if test -n "$ac_tool_prefix"; then
  11085. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11086. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11088. $as_echo_n "checking for $ac_word... " >&6; }
  11089. if ${ac_cv_prog_LIPO+:} false; then :
  11090. $as_echo_n "(cached) " >&6
  11091. else
  11092. if test -n "$LIPO"; then
  11093. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11094. else
  11095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11096. for as_dir in $PATH
  11097. do
  11098. IFS=$as_save_IFS
  11099. test -z "$as_dir" && as_dir=.
  11100. for ac_exec_ext in '' $ac_executable_extensions; do
  11101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11102. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11104. break 2
  11105. fi
  11106. done
  11107. done
  11108. IFS=$as_save_IFS
  11109. fi
  11110. fi
  11111. LIPO=$ac_cv_prog_LIPO
  11112. if test -n "$LIPO"; then
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11114. $as_echo "$LIPO" >&6; }
  11115. else
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11117. $as_echo "no" >&6; }
  11118. fi
  11119. fi
  11120. if test -z "$ac_cv_prog_LIPO"; then
  11121. ac_ct_LIPO=$LIPO
  11122. # Extract the first word of "lipo", so it can be a program name with args.
  11123. set dummy lipo; ac_word=$2
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11125. $as_echo_n "checking for $ac_word... " >&6; }
  11126. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  11127. $as_echo_n "(cached) " >&6
  11128. else
  11129. if test -n "$ac_ct_LIPO"; then
  11130. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11131. else
  11132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11133. for as_dir in $PATH
  11134. do
  11135. IFS=$as_save_IFS
  11136. test -z "$as_dir" && as_dir=.
  11137. for ac_exec_ext in '' $ac_executable_extensions; do
  11138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11139. ac_cv_prog_ac_ct_LIPO="lipo"
  11140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11141. break 2
  11142. fi
  11143. done
  11144. done
  11145. IFS=$as_save_IFS
  11146. fi
  11147. fi
  11148. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11149. if test -n "$ac_ct_LIPO"; then
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11151. $as_echo "$ac_ct_LIPO" >&6; }
  11152. else
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11154. $as_echo "no" >&6; }
  11155. fi
  11156. if test "x$ac_ct_LIPO" = x; then
  11157. LIPO=":"
  11158. else
  11159. case $cross_compiling:$ac_tool_warned in
  11160. yes:)
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11163. ac_tool_warned=yes ;;
  11164. esac
  11165. LIPO=$ac_ct_LIPO
  11166. fi
  11167. else
  11168. LIPO="$ac_cv_prog_LIPO"
  11169. fi
  11170. if test -n "$ac_tool_prefix"; then
  11171. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11172. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11174. $as_echo_n "checking for $ac_word... " >&6; }
  11175. if ${ac_cv_prog_OTOOL+:} false; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. if test -n "$OTOOL"; then
  11179. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11180. else
  11181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11182. for as_dir in $PATH
  11183. do
  11184. IFS=$as_save_IFS
  11185. test -z "$as_dir" && as_dir=.
  11186. for ac_exec_ext in '' $ac_executable_extensions; do
  11187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11188. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11190. break 2
  11191. fi
  11192. done
  11193. done
  11194. IFS=$as_save_IFS
  11195. fi
  11196. fi
  11197. OTOOL=$ac_cv_prog_OTOOL
  11198. if test -n "$OTOOL"; then
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11200. $as_echo "$OTOOL" >&6; }
  11201. else
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11203. $as_echo "no" >&6; }
  11204. fi
  11205. fi
  11206. if test -z "$ac_cv_prog_OTOOL"; then
  11207. ac_ct_OTOOL=$OTOOL
  11208. # Extract the first word of "otool", so it can be a program name with args.
  11209. set dummy otool; ac_word=$2
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11211. $as_echo_n "checking for $ac_word... " >&6; }
  11212. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  11213. $as_echo_n "(cached) " >&6
  11214. else
  11215. if test -n "$ac_ct_OTOOL"; then
  11216. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11217. else
  11218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11219. for as_dir in $PATH
  11220. do
  11221. IFS=$as_save_IFS
  11222. test -z "$as_dir" && as_dir=.
  11223. for ac_exec_ext in '' $ac_executable_extensions; do
  11224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11225. ac_cv_prog_ac_ct_OTOOL="otool"
  11226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11227. break 2
  11228. fi
  11229. done
  11230. done
  11231. IFS=$as_save_IFS
  11232. fi
  11233. fi
  11234. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11235. if test -n "$ac_ct_OTOOL"; then
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11237. $as_echo "$ac_ct_OTOOL" >&6; }
  11238. else
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11240. $as_echo "no" >&6; }
  11241. fi
  11242. if test "x$ac_ct_OTOOL" = x; then
  11243. OTOOL=":"
  11244. else
  11245. case $cross_compiling:$ac_tool_warned in
  11246. yes:)
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11249. ac_tool_warned=yes ;;
  11250. esac
  11251. OTOOL=$ac_ct_OTOOL
  11252. fi
  11253. else
  11254. OTOOL="$ac_cv_prog_OTOOL"
  11255. fi
  11256. if test -n "$ac_tool_prefix"; then
  11257. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11258. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11260. $as_echo_n "checking for $ac_word... " >&6; }
  11261. if ${ac_cv_prog_OTOOL64+:} false; then :
  11262. $as_echo_n "(cached) " >&6
  11263. else
  11264. if test -n "$OTOOL64"; then
  11265. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11266. else
  11267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11268. for as_dir in $PATH
  11269. do
  11270. IFS=$as_save_IFS
  11271. test -z "$as_dir" && as_dir=.
  11272. for ac_exec_ext in '' $ac_executable_extensions; do
  11273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11274. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11276. break 2
  11277. fi
  11278. done
  11279. done
  11280. IFS=$as_save_IFS
  11281. fi
  11282. fi
  11283. OTOOL64=$ac_cv_prog_OTOOL64
  11284. if test -n "$OTOOL64"; then
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11286. $as_echo "$OTOOL64" >&6; }
  11287. else
  11288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11289. $as_echo "no" >&6; }
  11290. fi
  11291. fi
  11292. if test -z "$ac_cv_prog_OTOOL64"; then
  11293. ac_ct_OTOOL64=$OTOOL64
  11294. # Extract the first word of "otool64", so it can be a program name with args.
  11295. set dummy otool64; ac_word=$2
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11297. $as_echo_n "checking for $ac_word... " >&6; }
  11298. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  11299. $as_echo_n "(cached) " >&6
  11300. else
  11301. if test -n "$ac_ct_OTOOL64"; then
  11302. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11303. else
  11304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11305. for as_dir in $PATH
  11306. do
  11307. IFS=$as_save_IFS
  11308. test -z "$as_dir" && as_dir=.
  11309. for ac_exec_ext in '' $ac_executable_extensions; do
  11310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11311. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11313. break 2
  11314. fi
  11315. done
  11316. done
  11317. IFS=$as_save_IFS
  11318. fi
  11319. fi
  11320. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11321. if test -n "$ac_ct_OTOOL64"; then
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11323. $as_echo "$ac_ct_OTOOL64" >&6; }
  11324. else
  11325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11326. $as_echo "no" >&6; }
  11327. fi
  11328. if test "x$ac_ct_OTOOL64" = x; then
  11329. OTOOL64=":"
  11330. else
  11331. case $cross_compiling:$ac_tool_warned in
  11332. yes:)
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11335. ac_tool_warned=yes ;;
  11336. esac
  11337. OTOOL64=$ac_ct_OTOOL64
  11338. fi
  11339. else
  11340. OTOOL64="$ac_cv_prog_OTOOL64"
  11341. fi
  11342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11343. $as_echo_n "checking for -single_module linker flag... " >&6; }
  11344. if ${lt_cv_apple_cc_single_mod+:} false; then :
  11345. $as_echo_n "(cached) " >&6
  11346. else
  11347. lt_cv_apple_cc_single_mod=no
  11348. if test -z "${LT_MULTI_MODULE}"; then
  11349. # By default we will add the -single_module flag. You can override
  11350. # by either setting the environment variable LT_MULTI_MODULE
  11351. # non-empty at configure time, or by adding -multi_module to the
  11352. # link flags.
  11353. rm -rf libconftest.dylib*
  11354. echo "int foo(void){return 1;}" > conftest.c
  11355. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11356. -dynamiclib -Wl,-single_module conftest.c" >&5
  11357. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11358. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11359. _lt_result=$?
  11360. # If there is a non-empty error log, and "single_module"
  11361. # appears in it, assume the flag caused a linker warning
  11362. if test -s conftest.err && $GREP single_module conftest.err; then
  11363. cat conftest.err >&5
  11364. # Otherwise, if the output was created with a 0 exit code from
  11365. # the compiler, it worked.
  11366. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  11367. lt_cv_apple_cc_single_mod=yes
  11368. else
  11369. cat conftest.err >&5
  11370. fi
  11371. rm -rf libconftest.dylib*
  11372. rm -f conftest.*
  11373. fi
  11374. fi
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11376. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11378. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11379. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  11380. $as_echo_n "(cached) " >&6
  11381. else
  11382. lt_cv_ld_exported_symbols_list=no
  11383. save_LDFLAGS=$LDFLAGS
  11384. echo "_main" > conftest.sym
  11385. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11387. /* end confdefs.h. */
  11388. int
  11389. main ()
  11390. {
  11391. ;
  11392. return 0;
  11393. }
  11394. _ACEOF
  11395. if ac_fn_c_try_link "$LINENO"; then :
  11396. lt_cv_ld_exported_symbols_list=yes
  11397. else
  11398. lt_cv_ld_exported_symbols_list=no
  11399. fi
  11400. rm -f core conftest.err conftest.$ac_objext \
  11401. conftest$ac_exeext conftest.$ac_ext
  11402. LDFLAGS="$save_LDFLAGS"
  11403. fi
  11404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11405. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11407. $as_echo_n "checking for -force_load linker flag... " >&6; }
  11408. if ${lt_cv_ld_force_load+:} false; then :
  11409. $as_echo_n "(cached) " >&6
  11410. else
  11411. lt_cv_ld_force_load=no
  11412. cat > conftest.c << _LT_EOF
  11413. int forced_loaded() { return 2;}
  11414. _LT_EOF
  11415. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11416. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11417. echo "$AR cru libconftest.a conftest.o" >&5
  11418. $AR cru libconftest.a conftest.o 2>&5
  11419. echo "$RANLIB libconftest.a" >&5
  11420. $RANLIB libconftest.a 2>&5
  11421. cat > conftest.c << _LT_EOF
  11422. int main() { return 0;}
  11423. _LT_EOF
  11424. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11425. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11426. _lt_result=$?
  11427. if test -s conftest.err && $GREP force_load conftest.err; then
  11428. cat conftest.err >&5
  11429. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  11430. lt_cv_ld_force_load=yes
  11431. else
  11432. cat conftest.err >&5
  11433. fi
  11434. rm -f conftest.err libconftest.a conftest conftest.c
  11435. rm -rf conftest.dSYM
  11436. fi
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11438. $as_echo "$lt_cv_ld_force_load" >&6; }
  11439. case $host_os in
  11440. rhapsody* | darwin1.[012])
  11441. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11442. darwin1.*)
  11443. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11444. darwin*) # darwin 5.x on
  11445. # if running on 10.5 or later, the deployment target defaults
  11446. # to the OS version, if on x86, and 10.4, the deployment
  11447. # target defaults to 10.4. Don't you love it?
  11448. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11449. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11450. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11451. 10.[012]*)
  11452. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11453. 10.*)
  11454. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11455. esac
  11456. ;;
  11457. esac
  11458. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11459. _lt_dar_single_mod='$single_module'
  11460. fi
  11461. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11462. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11463. else
  11464. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11465. fi
  11466. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  11467. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11468. else
  11469. _lt_dsymutil=
  11470. fi
  11471. ;;
  11472. esac
  11473. for ac_header in dlfcn.h
  11474. do :
  11475. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11476. "
  11477. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11478. cat >>confdefs.h <<_ACEOF
  11479. #define HAVE_DLFCN_H 1
  11480. _ACEOF
  11481. fi
  11482. done
  11483. # Set options
  11484. enable_dlopen=no
  11485. enable_win32_dll=no
  11486. # Check whether --enable-shared was given.
  11487. if test "${enable_shared+set}" = set; then :
  11488. enableval=$enable_shared; p=${PACKAGE-default}
  11489. case $enableval in
  11490. yes) enable_shared=yes ;;
  11491. no) enable_shared=no ;;
  11492. *)
  11493. enable_shared=no
  11494. # Look at the argument we got. We use all the common list separators.
  11495. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11496. for pkg in $enableval; do
  11497. IFS="$lt_save_ifs"
  11498. if test "X$pkg" = "X$p"; then
  11499. enable_shared=yes
  11500. fi
  11501. done
  11502. IFS="$lt_save_ifs"
  11503. ;;
  11504. esac
  11505. else
  11506. enable_shared=yes
  11507. fi
  11508. # Check whether --with-pic was given.
  11509. if test "${with_pic+set}" = set; then :
  11510. withval=$with_pic; lt_p=${PACKAGE-default}
  11511. case $withval in
  11512. yes|no) pic_mode=$withval ;;
  11513. *)
  11514. pic_mode=default
  11515. # Look at the argument we got. We use all the common list separators.
  11516. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11517. for lt_pkg in $withval; do
  11518. IFS="$lt_save_ifs"
  11519. if test "X$lt_pkg" = "X$lt_p"; then
  11520. pic_mode=yes
  11521. fi
  11522. done
  11523. IFS="$lt_save_ifs"
  11524. ;;
  11525. esac
  11526. else
  11527. pic_mode=default
  11528. fi
  11529. test -z "$pic_mode" && pic_mode=default
  11530. # Check whether --enable-fast-install was given.
  11531. if test "${enable_fast_install+set}" = set; then :
  11532. enableval=$enable_fast_install; p=${PACKAGE-default}
  11533. case $enableval in
  11534. yes) enable_fast_install=yes ;;
  11535. no) enable_fast_install=no ;;
  11536. *)
  11537. enable_fast_install=no
  11538. # Look at the argument we got. We use all the common list separators.
  11539. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11540. for pkg in $enableval; do
  11541. IFS="$lt_save_ifs"
  11542. if test "X$pkg" = "X$p"; then
  11543. enable_fast_install=yes
  11544. fi
  11545. done
  11546. IFS="$lt_save_ifs"
  11547. ;;
  11548. esac
  11549. else
  11550. enable_fast_install=yes
  11551. fi
  11552. # This can be used to rebuild libtool when needed
  11553. LIBTOOL_DEPS="$ltmain"
  11554. # Always use our own libtool.
  11555. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11556. test -z "$LN_S" && LN_S="ln -s"
  11557. if test -n "${ZSH_VERSION+set}" ; then
  11558. setopt NO_GLOB_SUBST
  11559. fi
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  11561. $as_echo_n "checking for objdir... " >&6; }
  11562. if ${lt_cv_objdir+:} false; then :
  11563. $as_echo_n "(cached) " >&6
  11564. else
  11565. rm -f .libs 2>/dev/null
  11566. mkdir .libs 2>/dev/null
  11567. if test -d .libs; then
  11568. lt_cv_objdir=.libs
  11569. else
  11570. # MS-DOS does not allow filenames that begin with a dot.
  11571. lt_cv_objdir=_libs
  11572. fi
  11573. rmdir .libs 2>/dev/null
  11574. fi
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  11576. $as_echo "$lt_cv_objdir" >&6; }
  11577. objdir=$lt_cv_objdir
  11578. cat >>confdefs.h <<_ACEOF
  11579. #define LT_OBJDIR "$lt_cv_objdir/"
  11580. _ACEOF
  11581. case $host_os in
  11582. aix3*)
  11583. # AIX sometimes has problems with the GCC collect2 program. For some
  11584. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11585. # vanish in a puff of smoke.
  11586. if test "X${COLLECT_NAMES+set}" != Xset; then
  11587. COLLECT_NAMES=
  11588. export COLLECT_NAMES
  11589. fi
  11590. ;;
  11591. esac
  11592. # Global variables:
  11593. ofile=libtool
  11594. can_build_shared=yes
  11595. # All known linkers require a `.a' archive for static linking (except MSVC,
  11596. # which needs '.lib').
  11597. libext=a
  11598. with_gnu_ld="$lt_cv_prog_gnu_ld"
  11599. old_CC="$CC"
  11600. old_CFLAGS="$CFLAGS"
  11601. # Set sane defaults for various variables
  11602. test -z "$CC" && CC=cc
  11603. test -z "$LTCC" && LTCC=$CC
  11604. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11605. test -z "$LD" && LD=ld
  11606. test -z "$ac_objext" && ac_objext=o
  11607. for cc_temp in $compiler""; do
  11608. case $cc_temp in
  11609. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11610. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11611. \-*) ;;
  11612. *) break;;
  11613. esac
  11614. done
  11615. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11616. # Only perform the check for file, if the check method requires it
  11617. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11618. case $deplibs_check_method in
  11619. file_magic*)
  11620. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  11622. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  11623. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11624. $as_echo_n "(cached) " >&6
  11625. else
  11626. case $MAGIC_CMD in
  11627. [\\/*] | ?:[\\/]*)
  11628. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11629. ;;
  11630. *)
  11631. lt_save_MAGIC_CMD="$MAGIC_CMD"
  11632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11633. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11634. for ac_dir in $ac_dummy; do
  11635. IFS="$lt_save_ifs"
  11636. test -z "$ac_dir" && ac_dir=.
  11637. if test -f $ac_dir/${ac_tool_prefix}file; then
  11638. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  11639. if test -n "$file_magic_test_file"; then
  11640. case $deplibs_check_method in
  11641. "file_magic "*)
  11642. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11643. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11644. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11645. $EGREP "$file_magic_regex" > /dev/null; then
  11646. :
  11647. else
  11648. cat <<_LT_EOF 1>&2
  11649. *** Warning: the command libtool uses to detect shared libraries,
  11650. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11651. *** The result is that libtool may fail to recognize shared libraries
  11652. *** as such. This will affect the creation of libtool libraries that
  11653. *** depend on shared libraries, but programs linked with such libtool
  11654. *** libraries will work regardless of this problem. Nevertheless, you
  11655. *** may want to report the problem to your system manager and/or to
  11656. *** bug-libtool@gnu.org
  11657. _LT_EOF
  11658. fi ;;
  11659. esac
  11660. fi
  11661. break
  11662. fi
  11663. done
  11664. IFS="$lt_save_ifs"
  11665. MAGIC_CMD="$lt_save_MAGIC_CMD"
  11666. ;;
  11667. esac
  11668. fi
  11669. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11670. if test -n "$MAGIC_CMD"; then
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11672. $as_echo "$MAGIC_CMD" >&6; }
  11673. else
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11675. $as_echo "no" >&6; }
  11676. fi
  11677. if test -z "$lt_cv_path_MAGIC_CMD"; then
  11678. if test -n "$ac_tool_prefix"; then
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  11680. $as_echo_n "checking for file... " >&6; }
  11681. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11682. $as_echo_n "(cached) " >&6
  11683. else
  11684. case $MAGIC_CMD in
  11685. [\\/*] | ?:[\\/]*)
  11686. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11687. ;;
  11688. *)
  11689. lt_save_MAGIC_CMD="$MAGIC_CMD"
  11690. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11691. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11692. for ac_dir in $ac_dummy; do
  11693. IFS="$lt_save_ifs"
  11694. test -z "$ac_dir" && ac_dir=.
  11695. if test -f $ac_dir/file; then
  11696. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  11697. if test -n "$file_magic_test_file"; then
  11698. case $deplibs_check_method in
  11699. "file_magic "*)
  11700. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11701. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11702. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11703. $EGREP "$file_magic_regex" > /dev/null; then
  11704. :
  11705. else
  11706. cat <<_LT_EOF 1>&2
  11707. *** Warning: the command libtool uses to detect shared libraries,
  11708. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11709. *** The result is that libtool may fail to recognize shared libraries
  11710. *** as such. This will affect the creation of libtool libraries that
  11711. *** depend on shared libraries, but programs linked with such libtool
  11712. *** libraries will work regardless of this problem. Nevertheless, you
  11713. *** may want to report the problem to your system manager and/or to
  11714. *** bug-libtool@gnu.org
  11715. _LT_EOF
  11716. fi ;;
  11717. esac
  11718. fi
  11719. break
  11720. fi
  11721. done
  11722. IFS="$lt_save_ifs"
  11723. MAGIC_CMD="$lt_save_MAGIC_CMD"
  11724. ;;
  11725. esac
  11726. fi
  11727. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11728. if test -n "$MAGIC_CMD"; then
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11730. $as_echo "$MAGIC_CMD" >&6; }
  11731. else
  11732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11733. $as_echo "no" >&6; }
  11734. fi
  11735. else
  11736. MAGIC_CMD=:
  11737. fi
  11738. fi
  11739. fi
  11740. ;;
  11741. esac
  11742. # Use C for the default configuration in the libtool script
  11743. lt_save_CC="$CC"
  11744. ac_ext=c
  11745. ac_cpp='$CPP $CPPFLAGS'
  11746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11749. # Source file extension for C test sources.
  11750. ac_ext=c
  11751. # Object file extension for compiled C test sources.
  11752. objext=o
  11753. objext=$objext
  11754. # Code to be used in simple compile tests
  11755. lt_simple_compile_test_code="int some_variable = 0;"
  11756. # Code to be used in simple link tests
  11757. lt_simple_link_test_code='int main(){return(0);}'
  11758. # If no C compiler was specified, use CC.
  11759. LTCC=${LTCC-"$CC"}
  11760. # If no C compiler flags were specified, use CFLAGS.
  11761. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11762. # Allow CC to be a program name with arguments.
  11763. compiler=$CC
  11764. # Save the default compiler, since it gets overwritten when the other
  11765. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  11766. compiler_DEFAULT=$CC
  11767. # save warnings/boilerplate of simple test code
  11768. ac_outfile=conftest.$ac_objext
  11769. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11770. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11771. _lt_compiler_boilerplate=`cat conftest.err`
  11772. $RM conftest*
  11773. ac_outfile=conftest.$ac_objext
  11774. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11775. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11776. _lt_linker_boilerplate=`cat conftest.err`
  11777. $RM -r conftest*
  11778. if test -n "$compiler"; then
  11779. lt_prog_compiler_no_builtin_flag=
  11780. if test "$GCC" = yes; then
  11781. case $cc_basename in
  11782. nvcc*)
  11783. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  11784. *)
  11785. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  11786. esac
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11788. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11789. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  11790. $as_echo_n "(cached) " >&6
  11791. else
  11792. lt_cv_prog_compiler_rtti_exceptions=no
  11793. ac_outfile=conftest.$ac_objext
  11794. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11795. lt_compiler_flag="-fno-rtti -fno-exceptions"
  11796. # Insert the option either (1) after the last *FLAGS variable, or
  11797. # (2) before a word containing "conftest.", or (3) at the end.
  11798. # Note that $ac_compile itself does not contain backslashes and begins
  11799. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11800. # The option is referenced via a variable to avoid confusing sed.
  11801. lt_compile=`echo "$ac_compile" | $SED \
  11802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11804. -e 's:$: $lt_compiler_flag:'`
  11805. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11806. (eval "$lt_compile" 2>conftest.err)
  11807. ac_status=$?
  11808. cat conftest.err >&5
  11809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11810. if (exit $ac_status) && test -s "$ac_outfile"; then
  11811. # The compiler can only warn and ignore the option if not recognized
  11812. # So say no if there are warnings other than the usual output.
  11813. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11814. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11815. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11816. lt_cv_prog_compiler_rtti_exceptions=yes
  11817. fi
  11818. fi
  11819. $RM conftest*
  11820. fi
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11822. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11823. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  11824. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  11825. else
  11826. :
  11827. fi
  11828. fi
  11829. lt_prog_compiler_wl=
  11830. lt_prog_compiler_pic=
  11831. lt_prog_compiler_static=
  11832. if test "$GCC" = yes; then
  11833. lt_prog_compiler_wl='-Wl,'
  11834. lt_prog_compiler_static='-static'
  11835. case $host_os in
  11836. aix*)
  11837. # All AIX code is PIC.
  11838. if test "$host_cpu" = ia64; then
  11839. # AIX 5 now supports IA64 processor
  11840. lt_prog_compiler_static='-Bstatic'
  11841. fi
  11842. ;;
  11843. amigaos*)
  11844. case $host_cpu in
  11845. powerpc)
  11846. # see comment about AmigaOS4 .so support
  11847. lt_prog_compiler_pic='-fPIC'
  11848. ;;
  11849. m68k)
  11850. # FIXME: we need at least 68020 code to build shared libraries, but
  11851. # adding the `-m68020' flag to GCC prevents building anything better,
  11852. # like `-m68040'.
  11853. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11854. ;;
  11855. esac
  11856. ;;
  11857. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11858. # PIC is the default for these OSes.
  11859. ;;
  11860. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11861. # This hack is so that the source file can tell whether it is being
  11862. # built for inclusion in a dll (and should export symbols for example).
  11863. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11864. # (--disable-auto-import) libraries
  11865. lt_prog_compiler_pic='-DDLL_EXPORT'
  11866. ;;
  11867. darwin* | rhapsody*)
  11868. # PIC is the default on this platform
  11869. # Common symbols not allowed in MH_DYLIB files
  11870. lt_prog_compiler_pic='-fno-common'
  11871. ;;
  11872. haiku*)
  11873. # PIC is the default for Haiku.
  11874. # The "-static" flag exists, but is broken.
  11875. lt_prog_compiler_static=
  11876. ;;
  11877. hpux*)
  11878. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11879. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11880. # sets the default TLS model and affects inlining.
  11881. case $host_cpu in
  11882. hppa*64*)
  11883. # +Z the default
  11884. ;;
  11885. *)
  11886. lt_prog_compiler_pic='-fPIC'
  11887. ;;
  11888. esac
  11889. ;;
  11890. interix[3-9]*)
  11891. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11892. # Instead, we relocate shared libraries at runtime.
  11893. ;;
  11894. msdosdjgpp*)
  11895. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11896. # on systems that don't support them.
  11897. lt_prog_compiler_can_build_shared=no
  11898. enable_shared=no
  11899. ;;
  11900. *nto* | *qnx*)
  11901. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11902. # it will coredump.
  11903. lt_prog_compiler_pic='-fPIC -shared'
  11904. ;;
  11905. sysv4*MP*)
  11906. if test -d /usr/nec; then
  11907. lt_prog_compiler_pic=-Kconform_pic
  11908. fi
  11909. ;;
  11910. *)
  11911. lt_prog_compiler_pic='-fPIC'
  11912. ;;
  11913. esac
  11914. case $cc_basename in
  11915. nvcc*) # Cuda Compiler Driver 2.2
  11916. lt_prog_compiler_wl='-Xlinker '
  11917. if test -n "$lt_prog_compiler_pic"; then
  11918. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  11919. fi
  11920. ;;
  11921. esac
  11922. else
  11923. # PORTME Check for flag to pass linker flags through the system compiler.
  11924. case $host_os in
  11925. aix*)
  11926. lt_prog_compiler_wl='-Wl,'
  11927. if test "$host_cpu" = ia64; then
  11928. # AIX 5 now supports IA64 processor
  11929. lt_prog_compiler_static='-Bstatic'
  11930. else
  11931. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11932. fi
  11933. ;;
  11934. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11935. # This hack is so that the source file can tell whether it is being
  11936. # built for inclusion in a dll (and should export symbols for example).
  11937. lt_prog_compiler_pic='-DDLL_EXPORT'
  11938. ;;
  11939. hpux9* | hpux10* | hpux11*)
  11940. lt_prog_compiler_wl='-Wl,'
  11941. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11942. # not for PA HP-UX.
  11943. case $host_cpu in
  11944. hppa*64*|ia64*)
  11945. # +Z the default
  11946. ;;
  11947. *)
  11948. lt_prog_compiler_pic='+Z'
  11949. ;;
  11950. esac
  11951. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11952. lt_prog_compiler_static='${wl}-a ${wl}archive'
  11953. ;;
  11954. irix5* | irix6* | nonstopux*)
  11955. lt_prog_compiler_wl='-Wl,'
  11956. # PIC (with -KPIC) is the default.
  11957. lt_prog_compiler_static='-non_shared'
  11958. ;;
  11959. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11960. case $cc_basename in
  11961. # old Intel for x86_64 which still supported -KPIC.
  11962. ecc*)
  11963. lt_prog_compiler_wl='-Wl,'
  11964. lt_prog_compiler_pic='-KPIC'
  11965. lt_prog_compiler_static='-static'
  11966. ;;
  11967. # icc used to be incompatible with GCC.
  11968. # ICC 10 doesn't accept -KPIC any more.
  11969. icc* | ifort*)
  11970. lt_prog_compiler_wl='-Wl,'
  11971. lt_prog_compiler_pic='-fPIC'
  11972. lt_prog_compiler_static='-static'
  11973. ;;
  11974. # Lahey Fortran 8.1.
  11975. lf95*)
  11976. lt_prog_compiler_wl='-Wl,'
  11977. lt_prog_compiler_pic='--shared'
  11978. lt_prog_compiler_static='--static'
  11979. ;;
  11980. nagfor*)
  11981. # NAG Fortran compiler
  11982. lt_prog_compiler_wl='-Wl,-Wl,,'
  11983. lt_prog_compiler_pic='-PIC'
  11984. lt_prog_compiler_static='-Bstatic'
  11985. ;;
  11986. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  11987. # Portland Group compilers (*not* the Pentium gcc compiler,
  11988. # which looks to be a dead project)
  11989. lt_prog_compiler_wl='-Wl,'
  11990. lt_prog_compiler_pic='-fpic'
  11991. lt_prog_compiler_static='-Bstatic'
  11992. ;;
  11993. ccc*)
  11994. lt_prog_compiler_wl='-Wl,'
  11995. # All Alpha code is PIC.
  11996. lt_prog_compiler_static='-non_shared'
  11997. ;;
  11998. xl* | bgxl* | bgf* | mpixl*)
  11999. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12000. lt_prog_compiler_wl='-Wl,'
  12001. lt_prog_compiler_pic='-qpic'
  12002. lt_prog_compiler_static='-qstaticlink'
  12003. ;;
  12004. *)
  12005. case `$CC -V 2>&1 | sed 5q` in
  12006. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12007. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12008. lt_prog_compiler_pic='-KPIC'
  12009. lt_prog_compiler_static='-Bstatic'
  12010. lt_prog_compiler_wl=''
  12011. ;;
  12012. *Sun\ F* | *Sun*Fortran*)
  12013. lt_prog_compiler_pic='-KPIC'
  12014. lt_prog_compiler_static='-Bstatic'
  12015. lt_prog_compiler_wl='-Qoption ld '
  12016. ;;
  12017. *Sun\ C*)
  12018. # Sun C 5.9
  12019. lt_prog_compiler_pic='-KPIC'
  12020. lt_prog_compiler_static='-Bstatic'
  12021. lt_prog_compiler_wl='-Wl,'
  12022. ;;
  12023. *Intel*\ [CF]*Compiler*)
  12024. lt_prog_compiler_wl='-Wl,'
  12025. lt_prog_compiler_pic='-fPIC'
  12026. lt_prog_compiler_static='-static'
  12027. ;;
  12028. *Portland\ Group*)
  12029. lt_prog_compiler_wl='-Wl,'
  12030. lt_prog_compiler_pic='-fpic'
  12031. lt_prog_compiler_static='-Bstatic'
  12032. ;;
  12033. esac
  12034. ;;
  12035. esac
  12036. ;;
  12037. newsos6)
  12038. lt_prog_compiler_pic='-KPIC'
  12039. lt_prog_compiler_static='-Bstatic'
  12040. ;;
  12041. *nto* | *qnx*)
  12042. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12043. # it will coredump.
  12044. lt_prog_compiler_pic='-fPIC -shared'
  12045. ;;
  12046. osf3* | osf4* | osf5*)
  12047. lt_prog_compiler_wl='-Wl,'
  12048. # All OSF/1 code is PIC.
  12049. lt_prog_compiler_static='-non_shared'
  12050. ;;
  12051. rdos*)
  12052. lt_prog_compiler_static='-non_shared'
  12053. ;;
  12054. solaris*)
  12055. lt_prog_compiler_pic='-KPIC'
  12056. lt_prog_compiler_static='-Bstatic'
  12057. case $cc_basename in
  12058. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12059. lt_prog_compiler_wl='-Qoption ld ';;
  12060. *)
  12061. lt_prog_compiler_wl='-Wl,';;
  12062. esac
  12063. ;;
  12064. sunos4*)
  12065. lt_prog_compiler_wl='-Qoption ld '
  12066. lt_prog_compiler_pic='-PIC'
  12067. lt_prog_compiler_static='-Bstatic'
  12068. ;;
  12069. sysv4 | sysv4.2uw2* | sysv4.3*)
  12070. lt_prog_compiler_wl='-Wl,'
  12071. lt_prog_compiler_pic='-KPIC'
  12072. lt_prog_compiler_static='-Bstatic'
  12073. ;;
  12074. sysv4*MP*)
  12075. if test -d /usr/nec ;then
  12076. lt_prog_compiler_pic='-Kconform_pic'
  12077. lt_prog_compiler_static='-Bstatic'
  12078. fi
  12079. ;;
  12080. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12081. lt_prog_compiler_wl='-Wl,'
  12082. lt_prog_compiler_pic='-KPIC'
  12083. lt_prog_compiler_static='-Bstatic'
  12084. ;;
  12085. unicos*)
  12086. lt_prog_compiler_wl='-Wl,'
  12087. lt_prog_compiler_can_build_shared=no
  12088. ;;
  12089. uts4*)
  12090. lt_prog_compiler_pic='-pic'
  12091. lt_prog_compiler_static='-Bstatic'
  12092. ;;
  12093. *)
  12094. lt_prog_compiler_can_build_shared=no
  12095. ;;
  12096. esac
  12097. fi
  12098. case $host_os in
  12099. # For platforms which do not support PIC, -DPIC is meaningless:
  12100. *djgpp*)
  12101. lt_prog_compiler_pic=
  12102. ;;
  12103. *)
  12104. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12105. ;;
  12106. esac
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12108. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12109. if ${lt_cv_prog_compiler_pic+:} false; then :
  12110. $as_echo_n "(cached) " >&6
  12111. else
  12112. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  12113. fi
  12114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12115. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  12116. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12117. #
  12118. # Check to make sure the PIC flag actually works.
  12119. #
  12120. if test -n "$lt_prog_compiler_pic"; then
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12122. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12123. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  12124. $as_echo_n "(cached) " >&6
  12125. else
  12126. lt_cv_prog_compiler_pic_works=no
  12127. ac_outfile=conftest.$ac_objext
  12128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12129. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  12130. # Insert the option either (1) after the last *FLAGS variable, or
  12131. # (2) before a word containing "conftest.", or (3) at the end.
  12132. # Note that $ac_compile itself does not contain backslashes and begins
  12133. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12134. # The option is referenced via a variable to avoid confusing sed.
  12135. lt_compile=`echo "$ac_compile" | $SED \
  12136. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12137. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12138. -e 's:$: $lt_compiler_flag:'`
  12139. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12140. (eval "$lt_compile" 2>conftest.err)
  12141. ac_status=$?
  12142. cat conftest.err >&5
  12143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12144. if (exit $ac_status) && test -s "$ac_outfile"; then
  12145. # The compiler can only warn and ignore the option if not recognized
  12146. # So say no if there are warnings other than the usual output.
  12147. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12148. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12149. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12150. lt_cv_prog_compiler_pic_works=yes
  12151. fi
  12152. fi
  12153. $RM conftest*
  12154. fi
  12155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12156. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  12157. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  12158. case $lt_prog_compiler_pic in
  12159. "" | " "*) ;;
  12160. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12161. esac
  12162. else
  12163. lt_prog_compiler_pic=
  12164. lt_prog_compiler_can_build_shared=no
  12165. fi
  12166. fi
  12167. #
  12168. # Check to make sure the static flag actually works.
  12169. #
  12170. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12172. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12173. if ${lt_cv_prog_compiler_static_works+:} false; then :
  12174. $as_echo_n "(cached) " >&6
  12175. else
  12176. lt_cv_prog_compiler_static_works=no
  12177. save_LDFLAGS="$LDFLAGS"
  12178. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12179. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12181. # The linker can only warn and ignore the option if not recognized
  12182. # So say no if there are warnings
  12183. if test -s conftest.err; then
  12184. # Append any errors to the config.log.
  12185. cat conftest.err 1>&5
  12186. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12188. if diff conftest.exp conftest.er2 >/dev/null; then
  12189. lt_cv_prog_compiler_static_works=yes
  12190. fi
  12191. else
  12192. lt_cv_prog_compiler_static_works=yes
  12193. fi
  12194. fi
  12195. $RM -r conftest*
  12196. LDFLAGS="$save_LDFLAGS"
  12197. fi
  12198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12199. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  12200. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  12201. :
  12202. else
  12203. lt_prog_compiler_static=
  12204. fi
  12205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12206. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12207. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12208. $as_echo_n "(cached) " >&6
  12209. else
  12210. lt_cv_prog_compiler_c_o=no
  12211. $RM -r conftest 2>/dev/null
  12212. mkdir conftest
  12213. cd conftest
  12214. mkdir out
  12215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12216. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12217. # Insert the option either (1) after the last *FLAGS variable, or
  12218. # (2) before a word containing "conftest.", or (3) at the end.
  12219. # Note that $ac_compile itself does not contain backslashes and begins
  12220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12221. lt_compile=`echo "$ac_compile" | $SED \
  12222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12224. -e 's:$: $lt_compiler_flag:'`
  12225. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12226. (eval "$lt_compile" 2>out/conftest.err)
  12227. ac_status=$?
  12228. cat out/conftest.err >&5
  12229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12230. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12231. then
  12232. # The compiler can only warn and ignore the option if not recognized
  12233. # So say no if there are warnings
  12234. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12235. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12236. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12237. lt_cv_prog_compiler_c_o=yes
  12238. fi
  12239. fi
  12240. chmod u+w . 2>&5
  12241. $RM conftest*
  12242. # SGI C++ compiler will create directory out/ii_files/ for
  12243. # template instantiation
  12244. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12245. $RM out/* && rmdir out
  12246. cd ..
  12247. $RM -r conftest
  12248. $RM conftest*
  12249. fi
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12251. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12253. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12254. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12255. $as_echo_n "(cached) " >&6
  12256. else
  12257. lt_cv_prog_compiler_c_o=no
  12258. $RM -r conftest 2>/dev/null
  12259. mkdir conftest
  12260. cd conftest
  12261. mkdir out
  12262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12263. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12264. # Insert the option either (1) after the last *FLAGS variable, or
  12265. # (2) before a word containing "conftest.", or (3) at the end.
  12266. # Note that $ac_compile itself does not contain backslashes and begins
  12267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12268. lt_compile=`echo "$ac_compile" | $SED \
  12269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12271. -e 's:$: $lt_compiler_flag:'`
  12272. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12273. (eval "$lt_compile" 2>out/conftest.err)
  12274. ac_status=$?
  12275. cat out/conftest.err >&5
  12276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12277. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12278. then
  12279. # The compiler can only warn and ignore the option if not recognized
  12280. # So say no if there are warnings
  12281. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12282. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12283. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12284. lt_cv_prog_compiler_c_o=yes
  12285. fi
  12286. fi
  12287. chmod u+w . 2>&5
  12288. $RM conftest*
  12289. # SGI C++ compiler will create directory out/ii_files/ for
  12290. # template instantiation
  12291. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12292. $RM out/* && rmdir out
  12293. cd ..
  12294. $RM -r conftest
  12295. $RM conftest*
  12296. fi
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12298. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12299. hard_links="nottested"
  12300. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  12301. # do not overwrite the value of need_locks provided by the user
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12303. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12304. hard_links=yes
  12305. $RM conftest*
  12306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12307. touch conftest.a
  12308. ln conftest.a conftest.b 2>&5 || hard_links=no
  12309. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12311. $as_echo "$hard_links" >&6; }
  12312. if test "$hard_links" = no; then
  12313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12314. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12315. need_locks=warn
  12316. fi
  12317. else
  12318. need_locks=no
  12319. fi
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12321. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12322. runpath_var=
  12323. allow_undefined_flag=
  12324. always_export_symbols=no
  12325. archive_cmds=
  12326. archive_expsym_cmds=
  12327. compiler_needs_object=no
  12328. enable_shared_with_static_runtimes=no
  12329. export_dynamic_flag_spec=
  12330. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12331. hardcode_automatic=no
  12332. hardcode_direct=no
  12333. hardcode_direct_absolute=no
  12334. hardcode_libdir_flag_spec=
  12335. hardcode_libdir_separator=
  12336. hardcode_minus_L=no
  12337. hardcode_shlibpath_var=unsupported
  12338. inherit_rpath=no
  12339. link_all_deplibs=unknown
  12340. module_cmds=
  12341. module_expsym_cmds=
  12342. old_archive_from_new_cmds=
  12343. old_archive_from_expsyms_cmds=
  12344. thread_safe_flag_spec=
  12345. whole_archive_flag_spec=
  12346. # include_expsyms should be a list of space-separated symbols to be *always*
  12347. # included in the symbol list
  12348. include_expsyms=
  12349. # exclude_expsyms can be an extended regexp of symbols to exclude
  12350. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12351. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12352. # as well as any symbol that contains `d'.
  12353. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12354. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12355. # platforms (ab)use it in PIC code, but their linkers get confused if
  12356. # the symbol is explicitly referenced. Since portable code cannot
  12357. # rely on this symbol name, it's probably fine to never include it in
  12358. # preloaded symbol tables.
  12359. # Exclude shared library initialization/finalization symbols.
  12360. extract_expsyms_cmds=
  12361. case $host_os in
  12362. cygwin* | mingw* | pw32* | cegcc*)
  12363. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12364. # When not using gcc, we currently assume that we are using
  12365. # Microsoft Visual C++.
  12366. if test "$GCC" != yes; then
  12367. with_gnu_ld=no
  12368. fi
  12369. ;;
  12370. interix*)
  12371. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12372. with_gnu_ld=yes
  12373. ;;
  12374. openbsd*)
  12375. with_gnu_ld=no
  12376. ;;
  12377. esac
  12378. ld_shlibs=yes
  12379. # On some targets, GNU ld is compatible enough with the native linker
  12380. # that we're better off using the native interface for both.
  12381. lt_use_gnu_ld_interface=no
  12382. if test "$with_gnu_ld" = yes; then
  12383. case $host_os in
  12384. aix*)
  12385. # The AIX port of GNU ld has always aspired to compatibility
  12386. # with the native linker. However, as the warning in the GNU ld
  12387. # block says, versions before 2.19.5* couldn't really create working
  12388. # shared libraries, regardless of the interface used.
  12389. case `$LD -v 2>&1` in
  12390. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12391. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12392. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12393. *)
  12394. lt_use_gnu_ld_interface=yes
  12395. ;;
  12396. esac
  12397. ;;
  12398. *)
  12399. lt_use_gnu_ld_interface=yes
  12400. ;;
  12401. esac
  12402. fi
  12403. if test "$lt_use_gnu_ld_interface" = yes; then
  12404. # If archive_cmds runs LD, not CC, wlarc should be empty
  12405. wlarc='${wl}'
  12406. # Set some defaults for GNU ld with shared library support. These
  12407. # are reset later if shared libraries are not supported. Putting them
  12408. # here allows them to be overridden if necessary.
  12409. runpath_var=LD_RUN_PATH
  12410. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12411. export_dynamic_flag_spec='${wl}--export-dynamic'
  12412. # ancient GNU ld didn't support --whole-archive et. al.
  12413. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12414. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12415. else
  12416. whole_archive_flag_spec=
  12417. fi
  12418. supports_anon_versioning=no
  12419. case `$LD -v 2>&1` in
  12420. *GNU\ gold*) supports_anon_versioning=yes ;;
  12421. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12422. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12423. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12424. *\ 2.11.*) ;; # other 2.11 versions
  12425. *) supports_anon_versioning=yes ;;
  12426. esac
  12427. # See if GNU ld supports shared libraries.
  12428. case $host_os in
  12429. aix[3-9]*)
  12430. # On AIX/PPC, the GNU linker is very broken
  12431. if test "$host_cpu" != ia64; then
  12432. ld_shlibs=no
  12433. cat <<_LT_EOF 1>&2
  12434. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12435. *** to be unable to reliably create shared libraries on AIX.
  12436. *** Therefore, libtool is disabling shared libraries support. If you
  12437. *** really care for shared libraries, you may want to install binutils
  12438. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12439. *** You will then need to restart the configuration process.
  12440. _LT_EOF
  12441. fi
  12442. ;;
  12443. amigaos*)
  12444. case $host_cpu in
  12445. powerpc)
  12446. # see comment about AmigaOS4 .so support
  12447. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12448. archive_expsym_cmds=''
  12449. ;;
  12450. m68k)
  12451. 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)'
  12452. hardcode_libdir_flag_spec='-L$libdir'
  12453. hardcode_minus_L=yes
  12454. ;;
  12455. esac
  12456. ;;
  12457. beos*)
  12458. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12459. allow_undefined_flag=unsupported
  12460. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12461. # support --undefined. This deserves some investigation. FIXME
  12462. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12463. else
  12464. ld_shlibs=no
  12465. fi
  12466. ;;
  12467. cygwin* | mingw* | pw32* | cegcc*)
  12468. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12469. # as there is no search path for DLLs.
  12470. hardcode_libdir_flag_spec='-L$libdir'
  12471. export_dynamic_flag_spec='${wl}--export-all-symbols'
  12472. allow_undefined_flag=unsupported
  12473. always_export_symbols=no
  12474. enable_shared_with_static_runtimes=yes
  12475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12476. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12477. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12478. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12479. # If the export-symbols file already is a .def file (1st line
  12480. # is EXPORTS), use it as is; otherwise, prepend...
  12481. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12482. cp $export_symbols $output_objdir/$soname.def;
  12483. else
  12484. echo EXPORTS > $output_objdir/$soname.def;
  12485. cat $export_symbols >> $output_objdir/$soname.def;
  12486. fi~
  12487. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12488. else
  12489. ld_shlibs=no
  12490. fi
  12491. ;;
  12492. haiku*)
  12493. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12494. link_all_deplibs=yes
  12495. ;;
  12496. interix[3-9]*)
  12497. hardcode_direct=no
  12498. hardcode_shlibpath_var=no
  12499. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12500. export_dynamic_flag_spec='${wl}-E'
  12501. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12502. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12503. # default) and relocated if they conflict, which is a slow very memory
  12504. # consuming and fragmenting process. To avoid this, we pick a random,
  12505. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12506. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12507. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12508. 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'
  12509. ;;
  12510. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12511. tmp_diet=no
  12512. if test "$host_os" = linux-dietlibc; then
  12513. case $cc_basename in
  12514. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12515. esac
  12516. fi
  12517. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12518. && test "$tmp_diet" = no
  12519. then
  12520. tmp_addflag=' $pic_flag'
  12521. tmp_sharedflag='-shared'
  12522. case $cc_basename,$host_cpu in
  12523. pgcc*) # Portland Group C compiler
  12524. 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'
  12525. tmp_addflag=' $pic_flag'
  12526. ;;
  12527. pgf77* | pgf90* | pgf95* | pgfortran*)
  12528. # Portland Group f77 and f90 compilers
  12529. 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'
  12530. tmp_addflag=' $pic_flag -Mnomain' ;;
  12531. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12532. tmp_addflag=' -i_dynamic' ;;
  12533. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12534. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12535. ifc* | ifort*) # Intel Fortran compiler
  12536. tmp_addflag=' -nofor_main' ;;
  12537. lf95*) # Lahey Fortran 8.1
  12538. whole_archive_flag_spec=
  12539. tmp_sharedflag='--shared' ;;
  12540. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12541. tmp_sharedflag='-qmkshrobj'
  12542. tmp_addflag= ;;
  12543. nvcc*) # Cuda Compiler Driver 2.2
  12544. 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'
  12545. compiler_needs_object=yes
  12546. ;;
  12547. esac
  12548. case `$CC -V 2>&1 | sed 5q` in
  12549. *Sun\ C*) # Sun C 5.9
  12550. 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'
  12551. compiler_needs_object=yes
  12552. tmp_sharedflag='-G' ;;
  12553. *Sun\ F*) # Sun Fortran 8.3
  12554. tmp_sharedflag='-G' ;;
  12555. esac
  12556. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12557. if test "x$supports_anon_versioning" = xyes; then
  12558. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12559. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12560. echo "local: *; };" >> $output_objdir/$libname.ver~
  12561. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12562. fi
  12563. case $cc_basename in
  12564. xlf* | bgf* | bgxlf* | mpixlf*)
  12565. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12566. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12567. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12568. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  12569. if test "x$supports_anon_versioning" = xyes; then
  12570. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12571. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12572. echo "local: *; };" >> $output_objdir/$libname.ver~
  12573. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12574. fi
  12575. ;;
  12576. esac
  12577. else
  12578. ld_shlibs=no
  12579. fi
  12580. ;;
  12581. netbsd*)
  12582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12583. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12584. wlarc=
  12585. else
  12586. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12587. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12588. fi
  12589. ;;
  12590. solaris*)
  12591. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12592. ld_shlibs=no
  12593. cat <<_LT_EOF 1>&2
  12594. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12595. *** create shared libraries on Solaris systems. Therefore, libtool
  12596. *** is disabling shared libraries support. We urge you to upgrade GNU
  12597. *** binutils to release 2.9.1 or newer. Another option is to modify
  12598. *** your PATH or compiler configuration so that the native linker is
  12599. *** used, and then restart.
  12600. _LT_EOF
  12601. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12602. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12603. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12604. else
  12605. ld_shlibs=no
  12606. fi
  12607. ;;
  12608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12609. case `$LD -v 2>&1` in
  12610. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12611. ld_shlibs=no
  12612. cat <<_LT_EOF 1>&2
  12613. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12614. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12615. *** is disabling shared libraries support. We urge you to upgrade GNU
  12616. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12617. *** your PATH or compiler configuration so that the native linker is
  12618. *** used, and then restart.
  12619. _LT_EOF
  12620. ;;
  12621. *)
  12622. # For security reasons, it is highly recommended that you always
  12623. # use absolute paths for naming shared libraries, and exclude the
  12624. # DT_RUNPATH tag from executables and libraries. But doing so
  12625. # requires that you compile everything twice, which is a pain.
  12626. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12629. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12630. else
  12631. ld_shlibs=no
  12632. fi
  12633. ;;
  12634. esac
  12635. ;;
  12636. sunos4*)
  12637. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12638. wlarc=
  12639. hardcode_direct=yes
  12640. hardcode_shlibpath_var=no
  12641. ;;
  12642. *)
  12643. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12644. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12645. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12646. else
  12647. ld_shlibs=no
  12648. fi
  12649. ;;
  12650. esac
  12651. if test "$ld_shlibs" = no; then
  12652. runpath_var=
  12653. hardcode_libdir_flag_spec=
  12654. export_dynamic_flag_spec=
  12655. whole_archive_flag_spec=
  12656. fi
  12657. else
  12658. # PORTME fill in a description of your system's linker (not GNU ld)
  12659. case $host_os in
  12660. aix3*)
  12661. allow_undefined_flag=unsupported
  12662. always_export_symbols=yes
  12663. 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'
  12664. # Note: this linker hardcodes the directories in LIBPATH if there
  12665. # are no directories specified by -L.
  12666. hardcode_minus_L=yes
  12667. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12668. # Neither direct hardcoding nor static linking is supported with a
  12669. # broken collect2.
  12670. hardcode_direct=unsupported
  12671. fi
  12672. ;;
  12673. aix[4-9]*)
  12674. if test "$host_cpu" = ia64; then
  12675. # On IA64, the linker does run time linking by default, so we don't
  12676. # have to do anything special.
  12677. aix_use_runtimelinking=no
  12678. exp_sym_flag='-Bexport'
  12679. no_entry_flag=""
  12680. else
  12681. # If we're using GNU nm, then we don't want the "-C" option.
  12682. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12683. # Also, AIX nm treats weak defined symbols like other global
  12684. # defined symbols, whereas GNU nm marks them as "W".
  12685. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12686. 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'
  12687. else
  12688. 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'
  12689. fi
  12690. aix_use_runtimelinking=no
  12691. # Test if we are trying to use run time linking or normal
  12692. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12693. # need to do runtime linking.
  12694. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12695. for ld_flag in $LDFLAGS; do
  12696. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12697. aix_use_runtimelinking=yes
  12698. break
  12699. fi
  12700. done
  12701. ;;
  12702. esac
  12703. exp_sym_flag='-bexport'
  12704. no_entry_flag='-bnoentry'
  12705. fi
  12706. # When large executables or shared objects are built, AIX ld can
  12707. # have problems creating the table of contents. If linking a library
  12708. # or program results in "error TOC overflow" add -mminimal-toc to
  12709. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12710. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12711. archive_cmds=''
  12712. hardcode_direct=yes
  12713. hardcode_direct_absolute=yes
  12714. hardcode_libdir_separator=':'
  12715. link_all_deplibs=yes
  12716. file_list_spec='${wl}-f,'
  12717. if test "$GCC" = yes; then
  12718. case $host_os in aix4.[012]|aix4.[012].*)
  12719. # We only want to do this on AIX 4.2 and lower, the check
  12720. # below for broken collect2 doesn't work under 4.3+
  12721. collect2name=`${CC} -print-prog-name=collect2`
  12722. if test -f "$collect2name" &&
  12723. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12724. then
  12725. # We have reworked collect2
  12726. :
  12727. else
  12728. # We have old collect2
  12729. hardcode_direct=unsupported
  12730. # It fails to find uninstalled libraries when the uninstalled
  12731. # path is not listed in the libpath. Setting hardcode_minus_L
  12732. # to unsupported forces relinking
  12733. hardcode_minus_L=yes
  12734. hardcode_libdir_flag_spec='-L$libdir'
  12735. hardcode_libdir_separator=
  12736. fi
  12737. ;;
  12738. esac
  12739. shared_flag='-shared'
  12740. if test "$aix_use_runtimelinking" = yes; then
  12741. shared_flag="$shared_flag "'${wl}-G'
  12742. fi
  12743. else
  12744. # not using gcc
  12745. if test "$host_cpu" = ia64; then
  12746. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12747. # chokes on -Wl,-G. The following line is correct:
  12748. shared_flag='-G'
  12749. else
  12750. if test "$aix_use_runtimelinking" = yes; then
  12751. shared_flag='${wl}-G'
  12752. else
  12753. shared_flag='${wl}-bM:SRE'
  12754. fi
  12755. fi
  12756. fi
  12757. export_dynamic_flag_spec='${wl}-bexpall'
  12758. # It seems that -bexpall does not export symbols beginning with
  12759. # underscore (_), so it is better to generate a list of symbols to export.
  12760. always_export_symbols=yes
  12761. if test "$aix_use_runtimelinking" = yes; then
  12762. # Warning - without using the other runtime loading flags (-brtl),
  12763. # -berok will link without error, but may produce a broken library.
  12764. allow_undefined_flag='-berok'
  12765. # Determine the default libpath from the value encoded in an
  12766. # empty executable.
  12767. if test "${lt_cv_aix_libpath+set}" = set; then
  12768. aix_libpath=$lt_cv_aix_libpath
  12769. else
  12770. if ${lt_cv_aix_libpath_+:} false; then :
  12771. $as_echo_n "(cached) " >&6
  12772. else
  12773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12774. /* end confdefs.h. */
  12775. int
  12776. main ()
  12777. {
  12778. ;
  12779. return 0;
  12780. }
  12781. _ACEOF
  12782. if ac_fn_c_try_link "$LINENO"; then :
  12783. lt_aix_libpath_sed='
  12784. /Import File Strings/,/^$/ {
  12785. /^0/ {
  12786. s/^0 *\([^ ]*\) *$/\1/
  12787. p
  12788. }
  12789. }'
  12790. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12791. # Check for a 64-bit object if we didn't find anything.
  12792. if test -z "$lt_cv_aix_libpath_"; then
  12793. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12794. fi
  12795. fi
  12796. rm -f core conftest.err conftest.$ac_objext \
  12797. conftest$ac_exeext conftest.$ac_ext
  12798. if test -z "$lt_cv_aix_libpath_"; then
  12799. lt_cv_aix_libpath_="/usr/lib:/lib"
  12800. fi
  12801. fi
  12802. aix_libpath=$lt_cv_aix_libpath_
  12803. fi
  12804. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12805. 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"
  12806. else
  12807. if test "$host_cpu" = ia64; then
  12808. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  12809. allow_undefined_flag="-z nodefs"
  12810. 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"
  12811. else
  12812. # Determine the default libpath from the value encoded in an
  12813. # empty executable.
  12814. if test "${lt_cv_aix_libpath+set}" = set; then
  12815. aix_libpath=$lt_cv_aix_libpath
  12816. else
  12817. if ${lt_cv_aix_libpath_+:} false; then :
  12818. $as_echo_n "(cached) " >&6
  12819. else
  12820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12821. /* end confdefs.h. */
  12822. int
  12823. main ()
  12824. {
  12825. ;
  12826. return 0;
  12827. }
  12828. _ACEOF
  12829. if ac_fn_c_try_link "$LINENO"; then :
  12830. lt_aix_libpath_sed='
  12831. /Import File Strings/,/^$/ {
  12832. /^0/ {
  12833. s/^0 *\([^ ]*\) *$/\1/
  12834. p
  12835. }
  12836. }'
  12837. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12838. # Check for a 64-bit object if we didn't find anything.
  12839. if test -z "$lt_cv_aix_libpath_"; then
  12840. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12841. fi
  12842. fi
  12843. rm -f core conftest.err conftest.$ac_objext \
  12844. conftest$ac_exeext conftest.$ac_ext
  12845. if test -z "$lt_cv_aix_libpath_"; then
  12846. lt_cv_aix_libpath_="/usr/lib:/lib"
  12847. fi
  12848. fi
  12849. aix_libpath=$lt_cv_aix_libpath_
  12850. fi
  12851. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12852. # Warning - without using the other run time loading flags,
  12853. # -berok will link without error, but may produce a broken library.
  12854. no_undefined_flag=' ${wl}-bernotok'
  12855. allow_undefined_flag=' ${wl}-berok'
  12856. if test "$with_gnu_ld" = yes; then
  12857. # We only use this code for GNU lds that support --whole-archive.
  12858. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12859. else
  12860. # Exported symbols can be pulled into shared objects from archives
  12861. whole_archive_flag_spec='$convenience'
  12862. fi
  12863. archive_cmds_need_lc=yes
  12864. # This is similar to how AIX traditionally builds its shared libraries.
  12865. 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'
  12866. fi
  12867. fi
  12868. ;;
  12869. amigaos*)
  12870. case $host_cpu in
  12871. powerpc)
  12872. # see comment about AmigaOS4 .so support
  12873. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12874. archive_expsym_cmds=''
  12875. ;;
  12876. m68k)
  12877. 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)'
  12878. hardcode_libdir_flag_spec='-L$libdir'
  12879. hardcode_minus_L=yes
  12880. ;;
  12881. esac
  12882. ;;
  12883. bsdi[45]*)
  12884. export_dynamic_flag_spec=-rdynamic
  12885. ;;
  12886. cygwin* | mingw* | pw32* | cegcc*)
  12887. # When not using gcc, we currently assume that we are using
  12888. # Microsoft Visual C++.
  12889. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12890. # no search path for DLLs.
  12891. case $cc_basename in
  12892. cl*)
  12893. # Native MSVC
  12894. hardcode_libdir_flag_spec=' '
  12895. allow_undefined_flag=unsupported
  12896. always_export_symbols=yes
  12897. file_list_spec='@'
  12898. # Tell ltmain to make .lib files, not .a files.
  12899. libext=lib
  12900. # Tell ltmain to make .dll files, not .so files.
  12901. shrext_cmds=".dll"
  12902. # FIXME: Setting linknames here is a bad hack.
  12903. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  12904. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12905. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  12906. else
  12907. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  12908. fi~
  12909. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12910. linknames='
  12911. # The linker will not automatically build a static lib if we build a DLL.
  12912. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  12913. enable_shared_with_static_runtimes=yes
  12914. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12915. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12916. # Don't use ranlib
  12917. old_postinstall_cmds='chmod 644 $oldlib'
  12918. postlink_cmds='lt_outputfile="@OUTPUT@"~
  12919. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12920. case $lt_outputfile in
  12921. *.exe|*.EXE) ;;
  12922. *)
  12923. lt_outputfile="$lt_outputfile.exe"
  12924. lt_tool_outputfile="$lt_tool_outputfile.exe"
  12925. ;;
  12926. esac~
  12927. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  12928. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12929. $RM "$lt_outputfile.manifest";
  12930. fi'
  12931. ;;
  12932. *)
  12933. # Assume MSVC wrapper
  12934. hardcode_libdir_flag_spec=' '
  12935. allow_undefined_flag=unsupported
  12936. # Tell ltmain to make .lib files, not .a files.
  12937. libext=lib
  12938. # Tell ltmain to make .dll files, not .so files.
  12939. shrext_cmds=".dll"
  12940. # FIXME: Setting linknames here is a bad hack.
  12941. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  12942. # The linker will automatically build a .lib file if we build a DLL.
  12943. old_archive_from_new_cmds='true'
  12944. # FIXME: Should let the user specify the lib program.
  12945. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12946. enable_shared_with_static_runtimes=yes
  12947. ;;
  12948. esac
  12949. ;;
  12950. darwin* | rhapsody*)
  12951. archive_cmds_need_lc=no
  12952. hardcode_direct=no
  12953. hardcode_automatic=yes
  12954. hardcode_shlibpath_var=unsupported
  12955. if test "$lt_cv_ld_force_load" = "yes"; then
  12956. 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\"`'
  12957. else
  12958. whole_archive_flag_spec=''
  12959. fi
  12960. link_all_deplibs=yes
  12961. allow_undefined_flag="$_lt_dar_allow_undefined"
  12962. case $cc_basename in
  12963. ifort*) _lt_dar_can_shared=yes ;;
  12964. *) _lt_dar_can_shared=$GCC ;;
  12965. esac
  12966. if test "$_lt_dar_can_shared" = "yes"; then
  12967. output_verbose_link_cmd=func_echo_all
  12968. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  12969. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12970. 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}"
  12971. 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}"
  12972. else
  12973. ld_shlibs=no
  12974. fi
  12975. ;;
  12976. dgux*)
  12977. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12978. hardcode_libdir_flag_spec='-L$libdir'
  12979. hardcode_shlibpath_var=no
  12980. ;;
  12981. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12982. # support. Future versions do this automatically, but an explicit c++rt0.o
  12983. # does not break anything, and helps significantly (at the cost of a little
  12984. # extra space).
  12985. freebsd2.2*)
  12986. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12987. hardcode_libdir_flag_spec='-R$libdir'
  12988. hardcode_direct=yes
  12989. hardcode_shlibpath_var=no
  12990. ;;
  12991. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12992. freebsd2.*)
  12993. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12994. hardcode_direct=yes
  12995. hardcode_minus_L=yes
  12996. hardcode_shlibpath_var=no
  12997. ;;
  12998. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12999. freebsd* | dragonfly*)
  13000. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13001. hardcode_libdir_flag_spec='-R$libdir'
  13002. hardcode_direct=yes
  13003. hardcode_shlibpath_var=no
  13004. ;;
  13005. hpux9*)
  13006. if test "$GCC" = yes; then
  13007. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13008. else
  13009. 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'
  13010. fi
  13011. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13012. hardcode_libdir_separator=:
  13013. hardcode_direct=yes
  13014. # hardcode_minus_L: Not really in the search PATH,
  13015. # but as the default location of the library.
  13016. hardcode_minus_L=yes
  13017. export_dynamic_flag_spec='${wl}-E'
  13018. ;;
  13019. hpux10*)
  13020. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13021. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13022. else
  13023. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13024. fi
  13025. if test "$with_gnu_ld" = no; then
  13026. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13027. hardcode_libdir_separator=:
  13028. hardcode_direct=yes
  13029. hardcode_direct_absolute=yes
  13030. export_dynamic_flag_spec='${wl}-E'
  13031. # hardcode_minus_L: Not really in the search PATH,
  13032. # but as the default location of the library.
  13033. hardcode_minus_L=yes
  13034. fi
  13035. ;;
  13036. hpux11*)
  13037. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13038. case $host_cpu in
  13039. hppa*64*)
  13040. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13041. ;;
  13042. ia64*)
  13043. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13044. ;;
  13045. *)
  13046. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13047. ;;
  13048. esac
  13049. else
  13050. case $host_cpu in
  13051. hppa*64*)
  13052. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13053. ;;
  13054. ia64*)
  13055. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13056. ;;
  13057. *)
  13058. # Older versions of the 11.00 compiler do not understand -b yet
  13059. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13061. $as_echo_n "checking if $CC understands -b... " >&6; }
  13062. if ${lt_cv_prog_compiler__b+:} false; then :
  13063. $as_echo_n "(cached) " >&6
  13064. else
  13065. lt_cv_prog_compiler__b=no
  13066. save_LDFLAGS="$LDFLAGS"
  13067. LDFLAGS="$LDFLAGS -b"
  13068. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13069. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13070. # The linker can only warn and ignore the option if not recognized
  13071. # So say no if there are warnings
  13072. if test -s conftest.err; then
  13073. # Append any errors to the config.log.
  13074. cat conftest.err 1>&5
  13075. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13076. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13077. if diff conftest.exp conftest.er2 >/dev/null; then
  13078. lt_cv_prog_compiler__b=yes
  13079. fi
  13080. else
  13081. lt_cv_prog_compiler__b=yes
  13082. fi
  13083. fi
  13084. $RM -r conftest*
  13085. LDFLAGS="$save_LDFLAGS"
  13086. fi
  13087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13088. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  13089. if test x"$lt_cv_prog_compiler__b" = xyes; then
  13090. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13091. else
  13092. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13093. fi
  13094. ;;
  13095. esac
  13096. fi
  13097. if test "$with_gnu_ld" = no; then
  13098. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13099. hardcode_libdir_separator=:
  13100. case $host_cpu in
  13101. hppa*64*|ia64*)
  13102. hardcode_direct=no
  13103. hardcode_shlibpath_var=no
  13104. ;;
  13105. *)
  13106. hardcode_direct=yes
  13107. hardcode_direct_absolute=yes
  13108. export_dynamic_flag_spec='${wl}-E'
  13109. # hardcode_minus_L: Not really in the search PATH,
  13110. # but as the default location of the library.
  13111. hardcode_minus_L=yes
  13112. ;;
  13113. esac
  13114. fi
  13115. ;;
  13116. irix5* | irix6* | nonstopux*)
  13117. if test "$GCC" = yes; then
  13118. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13119. # Try to use the -exported_symbol ld option, if it does not
  13120. # work, assume that -exports_file does not work either and
  13121. # implicitly export all symbols.
  13122. # This should be the same for all languages, so no per-tag cache variable.
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13124. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13125. if ${lt_cv_irix_exported_symbol+:} false; then :
  13126. $as_echo_n "(cached) " >&6
  13127. else
  13128. save_LDFLAGS="$LDFLAGS"
  13129. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  13130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13131. /* end confdefs.h. */
  13132. int foo (void) { return 0; }
  13133. _ACEOF
  13134. if ac_fn_c_try_link "$LINENO"; then :
  13135. lt_cv_irix_exported_symbol=yes
  13136. else
  13137. lt_cv_irix_exported_symbol=no
  13138. fi
  13139. rm -f core conftest.err conftest.$ac_objext \
  13140. conftest$ac_exeext conftest.$ac_ext
  13141. LDFLAGS="$save_LDFLAGS"
  13142. fi
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13144. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  13145. if test "$lt_cv_irix_exported_symbol" = yes; then
  13146. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  13147. fi
  13148. else
  13149. 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'
  13150. 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'
  13151. fi
  13152. archive_cmds_need_lc='no'
  13153. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13154. hardcode_libdir_separator=:
  13155. inherit_rpath=yes
  13156. link_all_deplibs=yes
  13157. ;;
  13158. netbsd*)
  13159. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13160. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13161. else
  13162. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13163. fi
  13164. hardcode_libdir_flag_spec='-R$libdir'
  13165. hardcode_direct=yes
  13166. hardcode_shlibpath_var=no
  13167. ;;
  13168. newsos6)
  13169. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13170. hardcode_direct=yes
  13171. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13172. hardcode_libdir_separator=:
  13173. hardcode_shlibpath_var=no
  13174. ;;
  13175. *nto* | *qnx*)
  13176. ;;
  13177. openbsd*)
  13178. if test -f /usr/libexec/ld.so; then
  13179. hardcode_direct=yes
  13180. hardcode_shlibpath_var=no
  13181. hardcode_direct_absolute=yes
  13182. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13183. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13184. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13185. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13186. export_dynamic_flag_spec='${wl}-E'
  13187. else
  13188. case $host_os in
  13189. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13190. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13191. hardcode_libdir_flag_spec='-R$libdir'
  13192. ;;
  13193. *)
  13194. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13195. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13196. ;;
  13197. esac
  13198. fi
  13199. else
  13200. ld_shlibs=no
  13201. fi
  13202. ;;
  13203. os2*)
  13204. hardcode_libdir_flag_spec='-L$libdir'
  13205. hardcode_minus_L=yes
  13206. allow_undefined_flag=unsupported
  13207. 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'
  13208. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13209. ;;
  13210. osf3*)
  13211. if test "$GCC" = yes; then
  13212. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13213. 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'
  13214. else
  13215. allow_undefined_flag=' -expect_unresolved \*'
  13216. 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'
  13217. fi
  13218. archive_cmds_need_lc='no'
  13219. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13220. hardcode_libdir_separator=:
  13221. ;;
  13222. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13223. if test "$GCC" = yes; then
  13224. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13225. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13227. else
  13228. allow_undefined_flag=' -expect_unresolved \*'
  13229. 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'
  13230. 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~
  13231. $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'
  13232. # Both c and cxx compiler support -rpath directly
  13233. hardcode_libdir_flag_spec='-rpath $libdir'
  13234. fi
  13235. archive_cmds_need_lc='no'
  13236. hardcode_libdir_separator=:
  13237. ;;
  13238. solaris*)
  13239. no_undefined_flag=' -z defs'
  13240. if test "$GCC" = yes; then
  13241. wlarc='${wl}'
  13242. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13243. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13244. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13245. else
  13246. case `$CC -V 2>&1` in
  13247. *"Compilers 5.0"*)
  13248. wlarc=''
  13249. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13250. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13251. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13252. ;;
  13253. *)
  13254. wlarc='${wl}'
  13255. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13256. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13257. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13258. ;;
  13259. esac
  13260. fi
  13261. hardcode_libdir_flag_spec='-R$libdir'
  13262. hardcode_shlibpath_var=no
  13263. case $host_os in
  13264. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13265. *)
  13266. # The compiler driver will combine and reorder linker options,
  13267. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13268. # but is careful enough not to reorder.
  13269. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13270. if test "$GCC" = yes; then
  13271. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13272. else
  13273. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13274. fi
  13275. ;;
  13276. esac
  13277. link_all_deplibs=yes
  13278. ;;
  13279. sunos4*)
  13280. if test "x$host_vendor" = xsequent; then
  13281. # Use $CC to link under sequent, because it throws in some extra .o
  13282. # files that make .init and .fini sections work.
  13283. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13284. else
  13285. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13286. fi
  13287. hardcode_libdir_flag_spec='-L$libdir'
  13288. hardcode_direct=yes
  13289. hardcode_minus_L=yes
  13290. hardcode_shlibpath_var=no
  13291. ;;
  13292. sysv4)
  13293. case $host_vendor in
  13294. sni)
  13295. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13296. hardcode_direct=yes # is this really true???
  13297. ;;
  13298. siemens)
  13299. ## LD is ld it makes a PLAMLIB
  13300. ## CC just makes a GrossModule.
  13301. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13302. reload_cmds='$CC -r -o $output$reload_objs'
  13303. hardcode_direct=no
  13304. ;;
  13305. motorola)
  13306. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13307. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13308. ;;
  13309. esac
  13310. runpath_var='LD_RUN_PATH'
  13311. hardcode_shlibpath_var=no
  13312. ;;
  13313. sysv4.3*)
  13314. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13315. hardcode_shlibpath_var=no
  13316. export_dynamic_flag_spec='-Bexport'
  13317. ;;
  13318. sysv4*MP*)
  13319. if test -d /usr/nec; then
  13320. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13321. hardcode_shlibpath_var=no
  13322. runpath_var=LD_RUN_PATH
  13323. hardcode_runpath_var=yes
  13324. ld_shlibs=yes
  13325. fi
  13326. ;;
  13327. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13328. no_undefined_flag='${wl}-z,text'
  13329. archive_cmds_need_lc=no
  13330. hardcode_shlibpath_var=no
  13331. runpath_var='LD_RUN_PATH'
  13332. if test "$GCC" = yes; then
  13333. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13334. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13335. else
  13336. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13337. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13338. fi
  13339. ;;
  13340. sysv5* | sco3.2v5* | sco5v6*)
  13341. # Note: We can NOT use -z defs as we might desire, because we do not
  13342. # link with -lc, and that would cause any symbols used from libc to
  13343. # always be unresolved, which means just about no library would
  13344. # ever link correctly. If we're not using GNU ld we use -z text
  13345. # though, which does catch some bad symbols but isn't as heavy-handed
  13346. # as -z defs.
  13347. no_undefined_flag='${wl}-z,text'
  13348. allow_undefined_flag='${wl}-z,nodefs'
  13349. archive_cmds_need_lc=no
  13350. hardcode_shlibpath_var=no
  13351. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  13352. hardcode_libdir_separator=':'
  13353. link_all_deplibs=yes
  13354. export_dynamic_flag_spec='${wl}-Bexport'
  13355. runpath_var='LD_RUN_PATH'
  13356. if test "$GCC" = yes; then
  13357. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13358. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13359. else
  13360. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13361. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13362. fi
  13363. ;;
  13364. uts4*)
  13365. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13366. hardcode_libdir_flag_spec='-L$libdir'
  13367. hardcode_shlibpath_var=no
  13368. ;;
  13369. *)
  13370. ld_shlibs=no
  13371. ;;
  13372. esac
  13373. if test x$host_vendor = xsni; then
  13374. case $host in
  13375. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13376. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13377. ;;
  13378. esac
  13379. fi
  13380. fi
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13382. $as_echo "$ld_shlibs" >&6; }
  13383. test "$ld_shlibs" = no && can_build_shared=no
  13384. with_gnu_ld=$with_gnu_ld
  13385. #
  13386. # Do we need to explicitly link libc?
  13387. #
  13388. case "x$archive_cmds_need_lc" in
  13389. x|xyes)
  13390. # Assume -lc should be added
  13391. archive_cmds_need_lc=yes
  13392. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13393. case $archive_cmds in
  13394. *'~'*)
  13395. # FIXME: we may have to deal with multi-command sequences.
  13396. ;;
  13397. '$CC '*)
  13398. # Test whether the compiler implicitly links with -lc since on some
  13399. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13400. # to ld, don't add -lc before -lgcc.
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13402. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13403. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  13404. $as_echo_n "(cached) " >&6
  13405. else
  13406. $RM conftest*
  13407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13408. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13409. (eval $ac_compile) 2>&5
  13410. ac_status=$?
  13411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13412. test $ac_status = 0; } 2>conftest.err; then
  13413. soname=conftest
  13414. lib=conftest
  13415. libobjs=conftest.$ac_objext
  13416. deplibs=
  13417. wl=$lt_prog_compiler_wl
  13418. pic_flag=$lt_prog_compiler_pic
  13419. compiler_flags=-v
  13420. linker_flags=-v
  13421. verstring=
  13422. output_objdir=.
  13423. libname=conftest
  13424. lt_save_allow_undefined_flag=$allow_undefined_flag
  13425. allow_undefined_flag=
  13426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13427. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13428. ac_status=$?
  13429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13430. test $ac_status = 0; }
  13431. then
  13432. lt_cv_archive_cmds_need_lc=no
  13433. else
  13434. lt_cv_archive_cmds_need_lc=yes
  13435. fi
  13436. allow_undefined_flag=$lt_save_allow_undefined_flag
  13437. else
  13438. cat conftest.err 1>&5
  13439. fi
  13440. $RM conftest*
  13441. fi
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13443. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  13444. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13445. ;;
  13446. esac
  13447. fi
  13448. ;;
  13449. esac
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13451. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13452. if test "$GCC" = yes; then
  13453. case $host_os in
  13454. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  13455. *) lt_awk_arg="/^libraries:/" ;;
  13456. esac
  13457. case $host_os in
  13458. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  13459. *) lt_sed_strip_eq="s,=/,/,g" ;;
  13460. esac
  13461. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  13462. case $lt_search_path_spec in
  13463. *\;*)
  13464. # if the path contains ";" then we assume it to be the separator
  13465. # otherwise default to the standard path separator (i.e. ":") - it is
  13466. # assumed that no part of a normal pathname contains ";" but that should
  13467. # okay in the real world where ";" in dirpaths is itself problematic.
  13468. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  13469. ;;
  13470. *)
  13471. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  13472. ;;
  13473. esac
  13474. # Ok, now we have the path, separated by spaces, we can step through it
  13475. # and add multilib dir if necessary.
  13476. lt_tmp_lt_search_path_spec=
  13477. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13478. for lt_sys_path in $lt_search_path_spec; do
  13479. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  13480. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  13481. else
  13482. test -d "$lt_sys_path" && \
  13483. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13484. fi
  13485. done
  13486. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  13487. BEGIN {RS=" "; FS="/|\n";} {
  13488. lt_foo="";
  13489. lt_count=0;
  13490. for (lt_i = NF; lt_i > 0; lt_i--) {
  13491. if ($lt_i != "" && $lt_i != ".") {
  13492. if ($lt_i == "..") {
  13493. lt_count++;
  13494. } else {
  13495. if (lt_count == 0) {
  13496. lt_foo="/" $lt_i lt_foo;
  13497. } else {
  13498. lt_count--;
  13499. }
  13500. }
  13501. }
  13502. }
  13503. if (lt_foo != "") { lt_freq[lt_foo]++; }
  13504. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13505. }'`
  13506. # AWK program above erroneously prepends '/' to C:/dos/paths
  13507. # for these hosts.
  13508. case $host_os in
  13509. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  13510. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  13511. esac
  13512. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  13513. else
  13514. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13515. fi
  13516. library_names_spec=
  13517. libname_spec='lib$name'
  13518. soname_spec=
  13519. shrext_cmds=".so"
  13520. postinstall_cmds=
  13521. postuninstall_cmds=
  13522. finish_cmds=
  13523. finish_eval=
  13524. shlibpath_var=
  13525. shlibpath_overrides_runpath=unknown
  13526. version_type=none
  13527. dynamic_linker="$host_os ld.so"
  13528. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13529. need_lib_prefix=unknown
  13530. hardcode_into_libs=no
  13531. # when you set need_version to no, make sure it does not cause -set_version
  13532. # flags to be left without arguments
  13533. need_version=unknown
  13534. case $host_os in
  13535. aix3*)
  13536. version_type=linux # correct to gnu/linux during the next big refactor
  13537. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13538. shlibpath_var=LIBPATH
  13539. # AIX 3 has no versioning support, so we append a major version to the name.
  13540. soname_spec='${libname}${release}${shared_ext}$major'
  13541. ;;
  13542. aix[4-9]*)
  13543. version_type=linux # correct to gnu/linux during the next big refactor
  13544. need_lib_prefix=no
  13545. need_version=no
  13546. hardcode_into_libs=yes
  13547. if test "$host_cpu" = ia64; then
  13548. # AIX 5 supports IA64
  13549. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13550. shlibpath_var=LD_LIBRARY_PATH
  13551. else
  13552. # With GCC up to 2.95.x, collect2 would create an import file
  13553. # for dependence libraries. The import file would start with
  13554. # the line `#! .'. This would cause the generated library to
  13555. # depend on `.', always an invalid library. This was fixed in
  13556. # development snapshots of GCC prior to 3.0.
  13557. case $host_os in
  13558. aix4 | aix4.[01] | aix4.[01].*)
  13559. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13560. echo ' yes '
  13561. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13562. :
  13563. else
  13564. can_build_shared=no
  13565. fi
  13566. ;;
  13567. esac
  13568. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13569. # soname into executable. Probably we can add versioning support to
  13570. # collect2, so additional links can be useful in future.
  13571. if test "$aix_use_runtimelinking" = yes; then
  13572. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13573. # instead of lib<name>.a to let people know that these are not
  13574. # typical AIX shared libraries.
  13575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13576. else
  13577. # We preserve .a as extension for shared libraries through AIX4.2
  13578. # and later when we are not doing run time linking.
  13579. library_names_spec='${libname}${release}.a $libname.a'
  13580. soname_spec='${libname}${release}${shared_ext}$major'
  13581. fi
  13582. shlibpath_var=LIBPATH
  13583. fi
  13584. ;;
  13585. amigaos*)
  13586. case $host_cpu in
  13587. powerpc)
  13588. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13589. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13591. ;;
  13592. m68k)
  13593. library_names_spec='$libname.ixlibrary $libname.a'
  13594. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13595. 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'
  13596. ;;
  13597. esac
  13598. ;;
  13599. beos*)
  13600. library_names_spec='${libname}${shared_ext}'
  13601. dynamic_linker="$host_os ld.so"
  13602. shlibpath_var=LIBRARY_PATH
  13603. ;;
  13604. bsdi[45]*)
  13605. version_type=linux # correct to gnu/linux during the next big refactor
  13606. need_version=no
  13607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13608. soname_spec='${libname}${release}${shared_ext}$major'
  13609. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13610. shlibpath_var=LD_LIBRARY_PATH
  13611. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13612. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13613. # the default ld.so.conf also contains /usr/contrib/lib and
  13614. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13615. # libtool to hard-code these into programs
  13616. ;;
  13617. cygwin* | mingw* | pw32* | cegcc*)
  13618. version_type=windows
  13619. shrext_cmds=".dll"
  13620. need_version=no
  13621. need_lib_prefix=no
  13622. case $GCC,$cc_basename in
  13623. yes,*)
  13624. # gcc
  13625. library_names_spec='$libname.dll.a'
  13626. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13627. postinstall_cmds='base_file=`basename \${file}`~
  13628. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13629. dldir=$destdir/`dirname \$dlpath`~
  13630. test -d \$dldir || mkdir -p \$dldir~
  13631. $install_prog $dir/$dlname \$dldir/$dlname~
  13632. chmod a+x \$dldir/$dlname~
  13633. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13634. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13635. fi'
  13636. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13637. dlpath=$dir/\$dldll~
  13638. $RM \$dlpath'
  13639. shlibpath_overrides_runpath=yes
  13640. case $host_os in
  13641. cygwin*)
  13642. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13643. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13644. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  13645. ;;
  13646. mingw* | cegcc*)
  13647. # MinGW DLLs use traditional 'lib' prefix
  13648. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13649. ;;
  13650. pw32*)
  13651. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13652. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13653. ;;
  13654. esac
  13655. dynamic_linker='Win32 ld.exe'
  13656. ;;
  13657. *,cl*)
  13658. # Native MSVC
  13659. libname_spec='$name'
  13660. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13661. library_names_spec='${libname}.dll.lib'
  13662. case $build_os in
  13663. mingw*)
  13664. sys_lib_search_path_spec=
  13665. lt_save_ifs=$IFS
  13666. IFS=';'
  13667. for lt_path in $LIB
  13668. do
  13669. IFS=$lt_save_ifs
  13670. # Let DOS variable expansion print the short 8.3 style file name.
  13671. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13672. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13673. done
  13674. IFS=$lt_save_ifs
  13675. # Convert to MSYS style.
  13676. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13677. ;;
  13678. cygwin*)
  13679. # Convert to unix form, then to dos form, then back to unix form
  13680. # but this time dos style (no spaces!) so that the unix form looks
  13681. # like /cygdrive/c/PROGRA~1:/cygdr...
  13682. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13683. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13684. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13685. ;;
  13686. *)
  13687. sys_lib_search_path_spec="$LIB"
  13688. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13689. # It is most probably a Windows format PATH.
  13690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13691. else
  13692. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13693. fi
  13694. # FIXME: find the short name or the path components, as spaces are
  13695. # common. (e.g. "Program Files" -> "PROGRA~1")
  13696. ;;
  13697. esac
  13698. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13699. postinstall_cmds='base_file=`basename \${file}`~
  13700. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13701. dldir=$destdir/`dirname \$dlpath`~
  13702. test -d \$dldir || mkdir -p \$dldir~
  13703. $install_prog $dir/$dlname \$dldir/$dlname'
  13704. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13705. dlpath=$dir/\$dldll~
  13706. $RM \$dlpath'
  13707. shlibpath_overrides_runpath=yes
  13708. dynamic_linker='Win32 link.exe'
  13709. ;;
  13710. *)
  13711. # Assume MSVC wrapper
  13712. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13713. dynamic_linker='Win32 ld.exe'
  13714. ;;
  13715. esac
  13716. # FIXME: first we should search . and the directory the executable is in
  13717. shlibpath_var=PATH
  13718. ;;
  13719. darwin* | rhapsody*)
  13720. dynamic_linker="$host_os dyld"
  13721. version_type=darwin
  13722. need_lib_prefix=no
  13723. need_version=no
  13724. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13725. soname_spec='${libname}${release}${major}$shared_ext'
  13726. shlibpath_overrides_runpath=yes
  13727. shlibpath_var=DYLD_LIBRARY_PATH
  13728. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13729. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13730. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13731. ;;
  13732. dgux*)
  13733. version_type=linux # correct to gnu/linux during the next big refactor
  13734. need_lib_prefix=no
  13735. need_version=no
  13736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13737. soname_spec='${libname}${release}${shared_ext}$major'
  13738. shlibpath_var=LD_LIBRARY_PATH
  13739. ;;
  13740. freebsd* | dragonfly*)
  13741. # DragonFly does not have aout. When/if they implement a new
  13742. # versioning mechanism, adjust this.
  13743. if test -x /usr/bin/objformat; then
  13744. objformat=`/usr/bin/objformat`
  13745. else
  13746. case $host_os in
  13747. freebsd[23].*) objformat=aout ;;
  13748. *) objformat=elf ;;
  13749. esac
  13750. fi
  13751. version_type=freebsd-$objformat
  13752. case $version_type in
  13753. freebsd-elf*)
  13754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13755. need_version=no
  13756. need_lib_prefix=no
  13757. ;;
  13758. freebsd-*)
  13759. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13760. need_version=yes
  13761. ;;
  13762. esac
  13763. shlibpath_var=LD_LIBRARY_PATH
  13764. case $host_os in
  13765. freebsd2.*)
  13766. shlibpath_overrides_runpath=yes
  13767. ;;
  13768. freebsd3.[01]* | freebsdelf3.[01]*)
  13769. shlibpath_overrides_runpath=yes
  13770. hardcode_into_libs=yes
  13771. ;;
  13772. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13773. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13774. shlibpath_overrides_runpath=no
  13775. hardcode_into_libs=yes
  13776. ;;
  13777. *) # from 4.6 on, and DragonFly
  13778. shlibpath_overrides_runpath=yes
  13779. hardcode_into_libs=yes
  13780. ;;
  13781. esac
  13782. ;;
  13783. gnu*)
  13784. version_type=linux # correct to gnu/linux during the next big refactor
  13785. need_lib_prefix=no
  13786. need_version=no
  13787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13788. soname_spec='${libname}${release}${shared_ext}$major'
  13789. shlibpath_var=LD_LIBRARY_PATH
  13790. shlibpath_overrides_runpath=no
  13791. hardcode_into_libs=yes
  13792. ;;
  13793. haiku*)
  13794. version_type=linux # correct to gnu/linux during the next big refactor
  13795. need_lib_prefix=no
  13796. need_version=no
  13797. dynamic_linker="$host_os runtime_loader"
  13798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13799. soname_spec='${libname}${release}${shared_ext}$major'
  13800. shlibpath_var=LIBRARY_PATH
  13801. shlibpath_overrides_runpath=yes
  13802. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13803. hardcode_into_libs=yes
  13804. ;;
  13805. hpux9* | hpux10* | hpux11*)
  13806. # Give a soname corresponding to the major version so that dld.sl refuses to
  13807. # link against other versions.
  13808. version_type=sunos
  13809. need_lib_prefix=no
  13810. need_version=no
  13811. case $host_cpu in
  13812. ia64*)
  13813. shrext_cmds='.so'
  13814. hardcode_into_libs=yes
  13815. dynamic_linker="$host_os dld.so"
  13816. shlibpath_var=LD_LIBRARY_PATH
  13817. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13819. soname_spec='${libname}${release}${shared_ext}$major'
  13820. if test "X$HPUX_IA64_MODE" = X32; then
  13821. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13822. else
  13823. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13824. fi
  13825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13826. ;;
  13827. hppa*64*)
  13828. shrext_cmds='.sl'
  13829. hardcode_into_libs=yes
  13830. dynamic_linker="$host_os dld.sl"
  13831. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13832. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13834. soname_spec='${libname}${release}${shared_ext}$major'
  13835. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13836. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13837. ;;
  13838. *)
  13839. shrext_cmds='.sl'
  13840. dynamic_linker="$host_os dld.sl"
  13841. shlibpath_var=SHLIB_PATH
  13842. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13844. soname_spec='${libname}${release}${shared_ext}$major'
  13845. ;;
  13846. esac
  13847. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13848. postinstall_cmds='chmod 555 $lib'
  13849. # or fails outright, so override atomically:
  13850. install_override_mode=555
  13851. ;;
  13852. interix[3-9]*)
  13853. version_type=linux # correct to gnu/linux during the next big refactor
  13854. need_lib_prefix=no
  13855. need_version=no
  13856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13857. soname_spec='${libname}${release}${shared_ext}$major'
  13858. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13859. shlibpath_var=LD_LIBRARY_PATH
  13860. shlibpath_overrides_runpath=no
  13861. hardcode_into_libs=yes
  13862. ;;
  13863. irix5* | irix6* | nonstopux*)
  13864. case $host_os in
  13865. nonstopux*) version_type=nonstopux ;;
  13866. *)
  13867. if test "$lt_cv_prog_gnu_ld" = yes; then
  13868. version_type=linux # correct to gnu/linux during the next big refactor
  13869. else
  13870. version_type=irix
  13871. fi ;;
  13872. esac
  13873. need_lib_prefix=no
  13874. need_version=no
  13875. soname_spec='${libname}${release}${shared_ext}$major'
  13876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13877. case $host_os in
  13878. irix5* | nonstopux*)
  13879. libsuff= shlibsuff=
  13880. ;;
  13881. *)
  13882. case $LD in # libtool.m4 will add one of these switches to LD
  13883. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13884. libsuff= shlibsuff= libmagic=32-bit;;
  13885. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13886. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13887. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13888. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13889. *) libsuff= shlibsuff= libmagic=never-match;;
  13890. esac
  13891. ;;
  13892. esac
  13893. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13894. shlibpath_overrides_runpath=no
  13895. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13896. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13897. hardcode_into_libs=yes
  13898. ;;
  13899. # No shared lib support for Linux oldld, aout, or coff.
  13900. linux*oldld* | linux*aout* | linux*coff*)
  13901. dynamic_linker=no
  13902. ;;
  13903. # This must be glibc/ELF.
  13904. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13905. version_type=linux # correct to gnu/linux during the next big refactor
  13906. need_lib_prefix=no
  13907. need_version=no
  13908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13909. soname_spec='${libname}${release}${shared_ext}$major'
  13910. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13911. shlibpath_var=LD_LIBRARY_PATH
  13912. shlibpath_overrides_runpath=no
  13913. # Some binutils ld are patched to set DT_RUNPATH
  13914. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13915. $as_echo_n "(cached) " >&6
  13916. else
  13917. lt_cv_shlibpath_overrides_runpath=no
  13918. save_LDFLAGS=$LDFLAGS
  13919. save_libdir=$libdir
  13920. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13921. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13923. /* end confdefs.h. */
  13924. int
  13925. main ()
  13926. {
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. if ac_fn_c_try_link "$LINENO"; then :
  13932. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13933. lt_cv_shlibpath_overrides_runpath=yes
  13934. fi
  13935. fi
  13936. rm -f core conftest.err conftest.$ac_objext \
  13937. conftest$ac_exeext conftest.$ac_ext
  13938. LDFLAGS=$save_LDFLAGS
  13939. libdir=$save_libdir
  13940. fi
  13941. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13942. # This implies no fast_install, which is unacceptable.
  13943. # Some rework will be needed to allow for fast_install
  13944. # before this can be enabled.
  13945. hardcode_into_libs=yes
  13946. # Append ld.so.conf contents to the search path
  13947. if test -f /etc/ld.so.conf; then
  13948. 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' ' '`
  13949. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13950. fi
  13951. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13952. # powerpc, because MkLinux only supported shared libraries with the
  13953. # GNU dynamic linker. Since this was broken with cross compilers,
  13954. # most powerpc-linux boxes support dynamic linking these days and
  13955. # people can always --disable-shared, the test was removed, and we
  13956. # assume the GNU/Linux dynamic linker is in use.
  13957. dynamic_linker='GNU/Linux ld.so'
  13958. ;;
  13959. netbsd*)
  13960. version_type=sunos
  13961. need_lib_prefix=no
  13962. need_version=no
  13963. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13966. dynamic_linker='NetBSD (a.out) ld.so'
  13967. else
  13968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13969. soname_spec='${libname}${release}${shared_ext}$major'
  13970. dynamic_linker='NetBSD ld.elf_so'
  13971. fi
  13972. shlibpath_var=LD_LIBRARY_PATH
  13973. shlibpath_overrides_runpath=yes
  13974. hardcode_into_libs=yes
  13975. ;;
  13976. newsos6)
  13977. version_type=linux # correct to gnu/linux during the next big refactor
  13978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13979. shlibpath_var=LD_LIBRARY_PATH
  13980. shlibpath_overrides_runpath=yes
  13981. ;;
  13982. *nto* | *qnx*)
  13983. version_type=qnx
  13984. need_lib_prefix=no
  13985. need_version=no
  13986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13987. soname_spec='${libname}${release}${shared_ext}$major'
  13988. shlibpath_var=LD_LIBRARY_PATH
  13989. shlibpath_overrides_runpath=no
  13990. hardcode_into_libs=yes
  13991. dynamic_linker='ldqnx.so'
  13992. ;;
  13993. openbsd*)
  13994. version_type=sunos
  13995. sys_lib_dlsearch_path_spec="/usr/lib"
  13996. need_lib_prefix=no
  13997. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13998. case $host_os in
  13999. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14000. *) need_version=no ;;
  14001. esac
  14002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14003. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14004. shlibpath_var=LD_LIBRARY_PATH
  14005. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14006. case $host_os in
  14007. openbsd2.[89] | openbsd2.[89].*)
  14008. shlibpath_overrides_runpath=no
  14009. ;;
  14010. *)
  14011. shlibpath_overrides_runpath=yes
  14012. ;;
  14013. esac
  14014. else
  14015. shlibpath_overrides_runpath=yes
  14016. fi
  14017. ;;
  14018. os2*)
  14019. libname_spec='$name'
  14020. shrext_cmds=".dll"
  14021. need_lib_prefix=no
  14022. library_names_spec='$libname${shared_ext} $libname.a'
  14023. dynamic_linker='OS/2 ld.exe'
  14024. shlibpath_var=LIBPATH
  14025. ;;
  14026. osf3* | osf4* | osf5*)
  14027. version_type=osf
  14028. need_lib_prefix=no
  14029. need_version=no
  14030. soname_spec='${libname}${release}${shared_ext}$major'
  14031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14032. shlibpath_var=LD_LIBRARY_PATH
  14033. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14034. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14035. ;;
  14036. rdos*)
  14037. dynamic_linker=no
  14038. ;;
  14039. solaris*)
  14040. version_type=linux # correct to gnu/linux during the next big refactor
  14041. need_lib_prefix=no
  14042. need_version=no
  14043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14044. soname_spec='${libname}${release}${shared_ext}$major'
  14045. shlibpath_var=LD_LIBRARY_PATH
  14046. shlibpath_overrides_runpath=yes
  14047. hardcode_into_libs=yes
  14048. # ldd complains unless libraries are executable
  14049. postinstall_cmds='chmod +x $lib'
  14050. ;;
  14051. sunos4*)
  14052. version_type=sunos
  14053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14054. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14055. shlibpath_var=LD_LIBRARY_PATH
  14056. shlibpath_overrides_runpath=yes
  14057. if test "$with_gnu_ld" = yes; then
  14058. need_lib_prefix=no
  14059. fi
  14060. need_version=yes
  14061. ;;
  14062. sysv4 | sysv4.3*)
  14063. version_type=linux # correct to gnu/linux during the next big refactor
  14064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14065. soname_spec='${libname}${release}${shared_ext}$major'
  14066. shlibpath_var=LD_LIBRARY_PATH
  14067. case $host_vendor in
  14068. sni)
  14069. shlibpath_overrides_runpath=no
  14070. need_lib_prefix=no
  14071. runpath_var=LD_RUN_PATH
  14072. ;;
  14073. siemens)
  14074. need_lib_prefix=no
  14075. ;;
  14076. motorola)
  14077. need_lib_prefix=no
  14078. need_version=no
  14079. shlibpath_overrides_runpath=no
  14080. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14081. ;;
  14082. esac
  14083. ;;
  14084. sysv4*MP*)
  14085. if test -d /usr/nec ;then
  14086. version_type=linux # correct to gnu/linux during the next big refactor
  14087. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14088. soname_spec='$libname${shared_ext}.$major'
  14089. shlibpath_var=LD_LIBRARY_PATH
  14090. fi
  14091. ;;
  14092. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14093. version_type=freebsd-elf
  14094. need_lib_prefix=no
  14095. need_version=no
  14096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14097. soname_spec='${libname}${release}${shared_ext}$major'
  14098. shlibpath_var=LD_LIBRARY_PATH
  14099. shlibpath_overrides_runpath=yes
  14100. hardcode_into_libs=yes
  14101. if test "$with_gnu_ld" = yes; then
  14102. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14103. else
  14104. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14105. case $host_os in
  14106. sco3.2v5*)
  14107. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14108. ;;
  14109. esac
  14110. fi
  14111. sys_lib_dlsearch_path_spec='/usr/lib'
  14112. ;;
  14113. tpf*)
  14114. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14115. version_type=linux # correct to gnu/linux during the next big refactor
  14116. need_lib_prefix=no
  14117. need_version=no
  14118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14119. shlibpath_var=LD_LIBRARY_PATH
  14120. shlibpath_overrides_runpath=no
  14121. hardcode_into_libs=yes
  14122. ;;
  14123. uts4*)
  14124. version_type=linux # correct to gnu/linux during the next big refactor
  14125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14126. soname_spec='${libname}${release}${shared_ext}$major'
  14127. shlibpath_var=LD_LIBRARY_PATH
  14128. ;;
  14129. *)
  14130. dynamic_linker=no
  14131. ;;
  14132. esac
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14134. $as_echo "$dynamic_linker" >&6; }
  14135. test "$dynamic_linker" = no && can_build_shared=no
  14136. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14137. if test "$GCC" = yes; then
  14138. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14139. fi
  14140. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14141. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14142. fi
  14143. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14144. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14145. fi
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14147. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14148. hardcode_action=
  14149. if test -n "$hardcode_libdir_flag_spec" ||
  14150. test -n "$runpath_var" ||
  14151. test "X$hardcode_automatic" = "Xyes" ; then
  14152. # We can hardcode non-existent directories.
  14153. if test "$hardcode_direct" != no &&
  14154. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14155. # have to relink, otherwise we might link with an installed library
  14156. # when we should be linking with a yet-to-be-installed one
  14157. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14158. test "$hardcode_minus_L" != no; then
  14159. # Linking always hardcodes the temporary library directory.
  14160. hardcode_action=relink
  14161. else
  14162. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14163. hardcode_action=immediate
  14164. fi
  14165. else
  14166. # We cannot hardcode anything, or else we can only hardcode existing
  14167. # directories.
  14168. hardcode_action=unsupported
  14169. fi
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14171. $as_echo "$hardcode_action" >&6; }
  14172. if test "$hardcode_action" = relink ||
  14173. test "$inherit_rpath" = yes; then
  14174. # Fast installation is not supported
  14175. enable_fast_install=no
  14176. elif test "$shlibpath_overrides_runpath" = yes ||
  14177. test "$enable_shared" = no; then
  14178. # Fast installation is not necessary
  14179. enable_fast_install=needless
  14180. fi
  14181. if test "x$enable_dlopen" != xyes; then
  14182. enable_dlopen=unknown
  14183. enable_dlopen_self=unknown
  14184. enable_dlopen_self_static=unknown
  14185. else
  14186. lt_cv_dlopen=no
  14187. lt_cv_dlopen_libs=
  14188. case $host_os in
  14189. beos*)
  14190. lt_cv_dlopen="load_add_on"
  14191. lt_cv_dlopen_libs=
  14192. lt_cv_dlopen_self=yes
  14193. ;;
  14194. mingw* | pw32* | cegcc*)
  14195. lt_cv_dlopen="LoadLibrary"
  14196. lt_cv_dlopen_libs=
  14197. ;;
  14198. cygwin*)
  14199. lt_cv_dlopen="dlopen"
  14200. lt_cv_dlopen_libs=
  14201. ;;
  14202. darwin*)
  14203. # if libdl is installed we need to link against it
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14205. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14206. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14207. $as_echo_n "(cached) " >&6
  14208. else
  14209. ac_check_lib_save_LIBS=$LIBS
  14210. LIBS="-ldl $LIBS"
  14211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14212. /* end confdefs.h. */
  14213. /* Override any GCC internal prototype to avoid an error.
  14214. Use char because int might match the return type of a GCC
  14215. builtin and then its argument prototype would still apply. */
  14216. #ifdef __cplusplus
  14217. extern "C"
  14218. #endif
  14219. char dlopen ();
  14220. int
  14221. main ()
  14222. {
  14223. return dlopen ();
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_link "$LINENO"; then :
  14229. ac_cv_lib_dl_dlopen=yes
  14230. else
  14231. ac_cv_lib_dl_dlopen=no
  14232. fi
  14233. rm -f core conftest.err conftest.$ac_objext \
  14234. conftest$ac_exeext conftest.$ac_ext
  14235. LIBS=$ac_check_lib_save_LIBS
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14238. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14239. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14240. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14241. else
  14242. lt_cv_dlopen="dyld"
  14243. lt_cv_dlopen_libs=
  14244. lt_cv_dlopen_self=yes
  14245. fi
  14246. ;;
  14247. *)
  14248. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14249. if test "x$ac_cv_func_shl_load" = xyes; then :
  14250. lt_cv_dlopen="shl_load"
  14251. else
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14253. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  14254. if ${ac_cv_lib_dld_shl_load+:} false; then :
  14255. $as_echo_n "(cached) " >&6
  14256. else
  14257. ac_check_lib_save_LIBS=$LIBS
  14258. LIBS="-ldld $LIBS"
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. /* Override any GCC internal prototype to avoid an error.
  14262. Use char because int might match the return type of a GCC
  14263. builtin and then its argument prototype would still apply. */
  14264. #ifdef __cplusplus
  14265. extern "C"
  14266. #endif
  14267. char shl_load ();
  14268. int
  14269. main ()
  14270. {
  14271. return shl_load ();
  14272. ;
  14273. return 0;
  14274. }
  14275. _ACEOF
  14276. if ac_fn_c_try_link "$LINENO"; then :
  14277. ac_cv_lib_dld_shl_load=yes
  14278. else
  14279. ac_cv_lib_dld_shl_load=no
  14280. fi
  14281. rm -f core conftest.err conftest.$ac_objext \
  14282. conftest$ac_exeext conftest.$ac_ext
  14283. LIBS=$ac_check_lib_save_LIBS
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14286. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14287. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  14288. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  14289. else
  14290. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  14291. if test "x$ac_cv_func_dlopen" = xyes; then :
  14292. lt_cv_dlopen="dlopen"
  14293. else
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14295. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14296. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14297. $as_echo_n "(cached) " >&6
  14298. else
  14299. ac_check_lib_save_LIBS=$LIBS
  14300. LIBS="-ldl $LIBS"
  14301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14302. /* end confdefs.h. */
  14303. /* Override any GCC internal prototype to avoid an error.
  14304. Use char because int might match the return type of a GCC
  14305. builtin and then its argument prototype would still apply. */
  14306. #ifdef __cplusplus
  14307. extern "C"
  14308. #endif
  14309. char dlopen ();
  14310. int
  14311. main ()
  14312. {
  14313. return dlopen ();
  14314. ;
  14315. return 0;
  14316. }
  14317. _ACEOF
  14318. if ac_fn_c_try_link "$LINENO"; then :
  14319. ac_cv_lib_dl_dlopen=yes
  14320. else
  14321. ac_cv_lib_dl_dlopen=no
  14322. fi
  14323. rm -f core conftest.err conftest.$ac_objext \
  14324. conftest$ac_exeext conftest.$ac_ext
  14325. LIBS=$ac_check_lib_save_LIBS
  14326. fi
  14327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14328. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14329. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14330. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14331. else
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14333. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14334. if ${ac_cv_lib_svld_dlopen+:} false; then :
  14335. $as_echo_n "(cached) " >&6
  14336. else
  14337. ac_check_lib_save_LIBS=$LIBS
  14338. LIBS="-lsvld $LIBS"
  14339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14340. /* end confdefs.h. */
  14341. /* Override any GCC internal prototype to avoid an error.
  14342. Use char because int might match the return type of a GCC
  14343. builtin and then its argument prototype would still apply. */
  14344. #ifdef __cplusplus
  14345. extern "C"
  14346. #endif
  14347. char dlopen ();
  14348. int
  14349. main ()
  14350. {
  14351. return dlopen ();
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_link "$LINENO"; then :
  14357. ac_cv_lib_svld_dlopen=yes
  14358. else
  14359. ac_cv_lib_svld_dlopen=no
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext \
  14362. conftest$ac_exeext conftest.$ac_ext
  14363. LIBS=$ac_check_lib_save_LIBS
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14366. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14367. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  14368. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  14369. else
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14371. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  14372. if ${ac_cv_lib_dld_dld_link+:} false; then :
  14373. $as_echo_n "(cached) " >&6
  14374. else
  14375. ac_check_lib_save_LIBS=$LIBS
  14376. LIBS="-ldld $LIBS"
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. /* Override any GCC internal prototype to avoid an error.
  14380. Use char because int might match the return type of a GCC
  14381. builtin and then its argument prototype would still apply. */
  14382. #ifdef __cplusplus
  14383. extern "C"
  14384. #endif
  14385. char dld_link ();
  14386. int
  14387. main ()
  14388. {
  14389. return dld_link ();
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. if ac_fn_c_try_link "$LINENO"; then :
  14395. ac_cv_lib_dld_dld_link=yes
  14396. else
  14397. ac_cv_lib_dld_dld_link=no
  14398. fi
  14399. rm -f core conftest.err conftest.$ac_objext \
  14400. conftest$ac_exeext conftest.$ac_ext
  14401. LIBS=$ac_check_lib_save_LIBS
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14404. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14405. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  14406. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  14407. fi
  14408. fi
  14409. fi
  14410. fi
  14411. fi
  14412. fi
  14413. ;;
  14414. esac
  14415. if test "x$lt_cv_dlopen" != xno; then
  14416. enable_dlopen=yes
  14417. else
  14418. enable_dlopen=no
  14419. fi
  14420. case $lt_cv_dlopen in
  14421. dlopen)
  14422. save_CPPFLAGS="$CPPFLAGS"
  14423. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14424. save_LDFLAGS="$LDFLAGS"
  14425. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14426. save_LIBS="$LIBS"
  14427. LIBS="$lt_cv_dlopen_libs $LIBS"
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  14429. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  14430. if ${lt_cv_dlopen_self+:} false; then :
  14431. $as_echo_n "(cached) " >&6
  14432. else
  14433. if test "$cross_compiling" = yes; then :
  14434. lt_cv_dlopen_self=cross
  14435. else
  14436. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14437. lt_status=$lt_dlunknown
  14438. cat > conftest.$ac_ext <<_LT_EOF
  14439. #line $LINENO "configure"
  14440. #include "confdefs.h"
  14441. #if HAVE_DLFCN_H
  14442. #include <dlfcn.h>
  14443. #endif
  14444. #include <stdio.h>
  14445. #ifdef RTLD_GLOBAL
  14446. # define LT_DLGLOBAL RTLD_GLOBAL
  14447. #else
  14448. # ifdef DL_GLOBAL
  14449. # define LT_DLGLOBAL DL_GLOBAL
  14450. # else
  14451. # define LT_DLGLOBAL 0
  14452. # endif
  14453. #endif
  14454. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14455. find out it does not work in some platform. */
  14456. #ifndef LT_DLLAZY_OR_NOW
  14457. # ifdef RTLD_LAZY
  14458. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14459. # else
  14460. # ifdef DL_LAZY
  14461. # define LT_DLLAZY_OR_NOW DL_LAZY
  14462. # else
  14463. # ifdef RTLD_NOW
  14464. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14465. # else
  14466. # ifdef DL_NOW
  14467. # define LT_DLLAZY_OR_NOW DL_NOW
  14468. # else
  14469. # define LT_DLLAZY_OR_NOW 0
  14470. # endif
  14471. # endif
  14472. # endif
  14473. # endif
  14474. #endif
  14475. /* When -fvisbility=hidden is used, assume the code has been annotated
  14476. correspondingly for the symbols needed. */
  14477. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14478. int fnord () __attribute__((visibility("default")));
  14479. #endif
  14480. int fnord () { return 42; }
  14481. int main ()
  14482. {
  14483. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14484. int status = $lt_dlunknown;
  14485. if (self)
  14486. {
  14487. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14488. else
  14489. {
  14490. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14491. else puts (dlerror ());
  14492. }
  14493. /* dlclose (self); */
  14494. }
  14495. else
  14496. puts (dlerror ());
  14497. return status;
  14498. }
  14499. _LT_EOF
  14500. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14501. (eval $ac_link) 2>&5
  14502. ac_status=$?
  14503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14504. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  14505. (./conftest; exit; ) >&5 2>/dev/null
  14506. lt_status=$?
  14507. case x$lt_status in
  14508. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14509. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14510. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14511. esac
  14512. else :
  14513. # compilation failed
  14514. lt_cv_dlopen_self=no
  14515. fi
  14516. fi
  14517. rm -fr conftest*
  14518. fi
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  14520. $as_echo "$lt_cv_dlopen_self" >&6; }
  14521. if test "x$lt_cv_dlopen_self" = xyes; then
  14522. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  14524. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  14525. if ${lt_cv_dlopen_self_static+:} false; then :
  14526. $as_echo_n "(cached) " >&6
  14527. else
  14528. if test "$cross_compiling" = yes; then :
  14529. lt_cv_dlopen_self_static=cross
  14530. else
  14531. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14532. lt_status=$lt_dlunknown
  14533. cat > conftest.$ac_ext <<_LT_EOF
  14534. #line $LINENO "configure"
  14535. #include "confdefs.h"
  14536. #if HAVE_DLFCN_H
  14537. #include <dlfcn.h>
  14538. #endif
  14539. #include <stdio.h>
  14540. #ifdef RTLD_GLOBAL
  14541. # define LT_DLGLOBAL RTLD_GLOBAL
  14542. #else
  14543. # ifdef DL_GLOBAL
  14544. # define LT_DLGLOBAL DL_GLOBAL
  14545. # else
  14546. # define LT_DLGLOBAL 0
  14547. # endif
  14548. #endif
  14549. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14550. find out it does not work in some platform. */
  14551. #ifndef LT_DLLAZY_OR_NOW
  14552. # ifdef RTLD_LAZY
  14553. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14554. # else
  14555. # ifdef DL_LAZY
  14556. # define LT_DLLAZY_OR_NOW DL_LAZY
  14557. # else
  14558. # ifdef RTLD_NOW
  14559. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14560. # else
  14561. # ifdef DL_NOW
  14562. # define LT_DLLAZY_OR_NOW DL_NOW
  14563. # else
  14564. # define LT_DLLAZY_OR_NOW 0
  14565. # endif
  14566. # endif
  14567. # endif
  14568. # endif
  14569. #endif
  14570. /* When -fvisbility=hidden is used, assume the code has been annotated
  14571. correspondingly for the symbols needed. */
  14572. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14573. int fnord () __attribute__((visibility("default")));
  14574. #endif
  14575. int fnord () { return 42; }
  14576. int main ()
  14577. {
  14578. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14579. int status = $lt_dlunknown;
  14580. if (self)
  14581. {
  14582. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14583. else
  14584. {
  14585. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14586. else puts (dlerror ());
  14587. }
  14588. /* dlclose (self); */
  14589. }
  14590. else
  14591. puts (dlerror ());
  14592. return status;
  14593. }
  14594. _LT_EOF
  14595. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14596. (eval $ac_link) 2>&5
  14597. ac_status=$?
  14598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14599. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  14600. (./conftest; exit; ) >&5 2>/dev/null
  14601. lt_status=$?
  14602. case x$lt_status in
  14603. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14604. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14605. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  14606. esac
  14607. else :
  14608. # compilation failed
  14609. lt_cv_dlopen_self_static=no
  14610. fi
  14611. fi
  14612. rm -fr conftest*
  14613. fi
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  14615. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  14616. fi
  14617. CPPFLAGS="$save_CPPFLAGS"
  14618. LDFLAGS="$save_LDFLAGS"
  14619. LIBS="$save_LIBS"
  14620. ;;
  14621. esac
  14622. case $lt_cv_dlopen_self in
  14623. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14624. *) enable_dlopen_self=unknown ;;
  14625. esac
  14626. case $lt_cv_dlopen_self_static in
  14627. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14628. *) enable_dlopen_self_static=unknown ;;
  14629. esac
  14630. fi
  14631. striplib=
  14632. old_striplib=
  14633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  14634. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  14635. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14636. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14637. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14639. $as_echo "yes" >&6; }
  14640. else
  14641. # FIXME - insert some real tests, host_os isn't really good enough
  14642. case $host_os in
  14643. darwin*)
  14644. if test -n "$STRIP" ; then
  14645. striplib="$STRIP -x"
  14646. old_striplib="$STRIP -S"
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14648. $as_echo "yes" >&6; }
  14649. else
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14651. $as_echo "no" >&6; }
  14652. fi
  14653. ;;
  14654. *)
  14655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14656. $as_echo "no" >&6; }
  14657. ;;
  14658. esac
  14659. fi
  14660. # Report which library types will actually be built
  14661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  14662. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  14663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  14664. $as_echo "$can_build_shared" >&6; }
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  14666. $as_echo_n "checking whether to build shared libraries... " >&6; }
  14667. test "$can_build_shared" = "no" && enable_shared=no
  14668. # On AIX, shared libraries and static libraries use the same namespace, and
  14669. # are all built from PIC.
  14670. case $host_os in
  14671. aix3*)
  14672. test "$enable_shared" = yes && enable_static=no
  14673. if test -n "$RANLIB"; then
  14674. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14675. postinstall_cmds='$RANLIB $lib'
  14676. fi
  14677. ;;
  14678. aix[4-9]*)
  14679. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  14680. test "$enable_shared" = yes && enable_static=no
  14681. fi
  14682. ;;
  14683. esac
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  14685. $as_echo "$enable_shared" >&6; }
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  14687. $as_echo_n "checking whether to build static libraries... " >&6; }
  14688. # Make sure either enable_shared or enable_static is yes.
  14689. test "$enable_shared" = yes || enable_static=yes
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  14691. $as_echo "$enable_static" >&6; }
  14692. fi
  14693. ac_ext=c
  14694. ac_cpp='$CPP $CPPFLAGS'
  14695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14698. CC="$lt_save_CC"
  14699. ac_config_commands="$ac_config_commands libtool"
  14700. # Only expand once:
  14701. # Define a configure option for an alternate module directory
  14702. # Check whether --with-xorg-module-dir was given.
  14703. if test "${with_xorg_module_dir+set}" = set; then :
  14704. withval=$with_xorg_module_dir; moduledir="$withval"
  14705. else
  14706. moduledir="$libdir/xorg/modules"
  14707. fi
  14708. # Check whether --enable-dri was given.
  14709. if test "${enable_dri+set}" = set; then :
  14710. enableval=$enable_dri; DRI="$enableval"
  14711. else
  14712. DRI=auto
  14713. fi
  14714. # Check whether --enable-exa was given.
  14715. if test "${enable_exa+set}" = set; then :
  14716. enableval=$enable_exa; EXA="$enableval"
  14717. else
  14718. EXA=yes
  14719. fi
  14720. # Store the list of server defined optional extensions in REQUIRED_MODULES
  14721. SAVE_CFLAGS="$CFLAGS"
  14722. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  14723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14724. /* end confdefs.h. */
  14725. #include "xorg-server.h"
  14726. #if !defined RANDR
  14727. #error RANDR not defined
  14728. #endif
  14729. int
  14730. main ()
  14731. {
  14732. ;
  14733. return 0;
  14734. }
  14735. _ACEOF
  14736. if ac_fn_c_try_compile "$LINENO"; then :
  14737. _EXT_CHECK=yes
  14738. else
  14739. _EXT_CHECK=no
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14742. CFLAGS="$SAVE_CFLAGS"
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
  14744. $as_echo_n "checking if RANDR is defined... " >&6; }
  14745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  14746. $as_echo "$_EXT_CHECK" >&6; }
  14747. if test "$_EXT_CHECK" != no; then
  14748. REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
  14749. fi
  14750. SAVE_CFLAGS="$CFLAGS"
  14751. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  14752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14753. /* end confdefs.h. */
  14754. #include "xorg-server.h"
  14755. #if !defined RENDER
  14756. #error RENDER not defined
  14757. #endif
  14758. int
  14759. main ()
  14760. {
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_compile "$LINENO"; then :
  14766. _EXT_CHECK=yes
  14767. else
  14768. _EXT_CHECK=no
  14769. fi
  14770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14771. CFLAGS="$SAVE_CFLAGS"
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
  14773. $as_echo_n "checking if RENDER is defined... " >&6; }
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  14775. $as_echo "$_EXT_CHECK" >&6; }
  14776. if test "$_EXT_CHECK" != no; then
  14777. REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
  14778. fi
  14779. SAVE_CFLAGS="$CFLAGS"
  14780. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  14781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14782. /* end confdefs.h. */
  14783. #include "xorg-server.h"
  14784. #if !defined XV
  14785. #error XV not defined
  14786. #endif
  14787. int
  14788. main ()
  14789. {
  14790. ;
  14791. return 0;
  14792. }
  14793. _ACEOF
  14794. if ac_fn_c_try_compile "$LINENO"; then :
  14795. _EXT_CHECK=yes
  14796. else
  14797. _EXT_CHECK=no
  14798. fi
  14799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14800. CFLAGS="$SAVE_CFLAGS"
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
  14802. $as_echo_n "checking if XV is defined... " >&6; }
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  14804. $as_echo "$_EXT_CHECK" >&6; }
  14805. if test "$_EXT_CHECK" != no; then
  14806. REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
  14807. fi
  14808. SAVE_CFLAGS="$CFLAGS"
  14809. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. #include "xorg-server.h"
  14813. #if !defined DPMSExtension
  14814. #error DPMSExtension not defined
  14815. #endif
  14816. int
  14817. main ()
  14818. {
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_compile "$LINENO"; then :
  14824. _EXT_CHECK=yes
  14825. else
  14826. _EXT_CHECK=no
  14827. fi
  14828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14829. CFLAGS="$SAVE_CFLAGS"
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
  14831. $as_echo_n "checking if DPMSExtension is defined... " >&6; }
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  14833. $as_echo "$_EXT_CHECK" >&6; }
  14834. if test "$_EXT_CHECK" != no; then
  14835. REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
  14836. fi
  14837. # Obtain compiler/linker options for the driver dependencies
  14838. pkg_failed=no
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
  14840. $as_echo_n "checking for XORG... " >&6; }
  14841. if test -n "$XORG_CFLAGS"; then
  14842. pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
  14843. elif test -n "$PKG_CONFIG"; then
  14844. if test -n "$PKG_CONFIG" && \
  14845. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
  14846. ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
  14847. ac_status=$?
  14848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14849. test $ac_status = 0; }; then
  14850. pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
  14851. test "x$?" != "x0" && pkg_failed=yes
  14852. else
  14853. pkg_failed=yes
  14854. fi
  14855. else
  14856. pkg_failed=untried
  14857. fi
  14858. if test -n "$XORG_LIBS"; then
  14859. pkg_cv_XORG_LIBS="$XORG_LIBS"
  14860. elif test -n "$PKG_CONFIG"; then
  14861. if test -n "$PKG_CONFIG" && \
  14862. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
  14863. ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
  14864. ac_status=$?
  14865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14866. test $ac_status = 0; }; then
  14867. pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
  14868. test "x$?" != "x0" && pkg_failed=yes
  14869. else
  14870. pkg_failed=yes
  14871. fi
  14872. else
  14873. pkg_failed=untried
  14874. fi
  14875. if test $pkg_failed = yes; then
  14876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14877. $as_echo "no" >&6; }
  14878. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14879. _pkg_short_errors_supported=yes
  14880. else
  14881. _pkg_short_errors_supported=no
  14882. fi
  14883. if test $_pkg_short_errors_supported = yes; then
  14884. XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
  14885. else
  14886. XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
  14887. fi
  14888. # Put the nasty error message in config.log where it belongs
  14889. echo "$XORG_PKG_ERRORS" >&5
  14890. as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
  14891. $XORG_PKG_ERRORS
  14892. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14893. installed software in a non-standard prefix.
  14894. Alternatively, you may set the environment variables XORG_CFLAGS
  14895. and XORG_LIBS to avoid the need to call pkg-config.
  14896. See the pkg-config man page for more details." "$LINENO" 5
  14897. elif test $pkg_failed = untried; then
  14898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14899. $as_echo "no" >&6; }
  14900. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14902. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14903. is in your PATH or set the PKG_CONFIG environment variable to the full
  14904. path to pkg-config.
  14905. Alternatively, you may set the environment variables XORG_CFLAGS
  14906. and XORG_LIBS to avoid the need to call pkg-config.
  14907. See the pkg-config man page for more details.
  14908. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14909. See \`config.log' for more details" "$LINENO" 5; }
  14910. else
  14911. XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
  14912. XORG_LIBS=$pkg_cv_XORG_LIBS
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14914. $as_echo "yes" >&6; }
  14915. fi
  14916. pkg_failed=no
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
  14918. $as_echo_n "checking for XEXT... " >&6; }
  14919. if test -n "$XEXT_CFLAGS"; then
  14920. pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
  14921. elif test -n "$PKG_CONFIG"; then
  14922. if test -n "$PKG_CONFIG" && \
  14923. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
  14924. ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
  14925. ac_status=$?
  14926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14927. test $ac_status = 0; }; then
  14928. pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
  14929. test "x$?" != "x0" && pkg_failed=yes
  14930. else
  14931. pkg_failed=yes
  14932. fi
  14933. else
  14934. pkg_failed=untried
  14935. fi
  14936. if test -n "$XEXT_LIBS"; then
  14937. pkg_cv_XEXT_LIBS="$XEXT_LIBS"
  14938. elif test -n "$PKG_CONFIG"; then
  14939. if test -n "$PKG_CONFIG" && \
  14940. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
  14941. ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
  14942. ac_status=$?
  14943. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14944. test $ac_status = 0; }; then
  14945. pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
  14946. test "x$?" != "x0" && pkg_failed=yes
  14947. else
  14948. pkg_failed=yes
  14949. fi
  14950. else
  14951. pkg_failed=untried
  14952. fi
  14953. if test $pkg_failed = yes; then
  14954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14955. $as_echo "no" >&6; }
  14956. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14957. _pkg_short_errors_supported=yes
  14958. else
  14959. _pkg_short_errors_supported=no
  14960. fi
  14961. if test $_pkg_short_errors_supported = yes; then
  14962. XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
  14963. else
  14964. XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
  14965. fi
  14966. # Put the nasty error message in config.log where it belongs
  14967. echo "$XEXT_PKG_ERRORS" >&5
  14968. HAVE_XEXTPROTO_71="no"
  14969. elif test $pkg_failed = untried; then
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14971. $as_echo "no" >&6; }
  14972. HAVE_XEXTPROTO_71="no"
  14973. else
  14974. XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
  14975. XEXT_LIBS=$pkg_cv_XEXT_LIBS
  14976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14977. $as_echo "yes" >&6; }
  14978. HAVE_XEXTPROTO_71="yes";
  14979. $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
  14980. fi
  14981. if test "$HAVE_XEXTPROTO_71" = "yes" ; then
  14982. HAVE_XEXTPROTO_71_TRUE=
  14983. HAVE_XEXTPROTO_71_FALSE='#'
  14984. else
  14985. HAVE_XEXTPROTO_71_TRUE='#'
  14986. HAVE_XEXTPROTO_71_FALSE=
  14987. fi
  14988. sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
  14989. # Checks for libraries.
  14990. if test "$DRI" != no; then
  14991. as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
  14992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
  14993. $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
  14994. if eval \${$as_ac_File+:} false; then :
  14995. $as_echo_n "(cached) " >&6
  14996. else
  14997. test "$cross_compiling" = yes &&
  14998. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  14999. if test -r "${sdkdir}/dri.h"; then
  15000. eval "$as_ac_File=yes"
  15001. else
  15002. eval "$as_ac_File=no"
  15003. fi
  15004. fi
  15005. eval ac_res=\$$as_ac_File
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15007. $as_echo "$ac_res" >&6; }
  15008. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  15009. have_dri_h="yes"
  15010. else
  15011. have_dri_h="no"
  15012. fi
  15013. as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
  15014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
  15015. $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
  15016. if eval \${$as_ac_File+:} false; then :
  15017. $as_echo_n "(cached) " >&6
  15018. else
  15019. test "$cross_compiling" = yes &&
  15020. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  15021. if test -r "${sdkdir}/sarea.h"; then
  15022. eval "$as_ac_File=yes"
  15023. else
  15024. eval "$as_ac_File=no"
  15025. fi
  15026. fi
  15027. eval ac_res=\$$as_ac_File
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15029. $as_echo "$ac_res" >&6; }
  15030. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  15031. have_sarea_h="yes"
  15032. else
  15033. have_sarea_h="no"
  15034. fi
  15035. as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
  15037. $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
  15038. if eval \${$as_ac_File+:} false; then :
  15039. $as_echo_n "(cached) " >&6
  15040. else
  15041. test "$cross_compiling" = yes &&
  15042. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  15043. if test -r "${sdkdir}/dristruct.h"; then
  15044. eval "$as_ac_File=yes"
  15045. else
  15046. eval "$as_ac_File=no"
  15047. fi
  15048. fi
  15049. eval ac_res=\$$as_ac_File
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15051. $as_echo "$ac_res" >&6; }
  15052. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  15053. have_dristruct_h="yes"
  15054. else
  15055. have_dristruct_h="no"
  15056. fi
  15057. as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
  15059. $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
  15060. if eval \${$as_ac_File+:} false; then :
  15061. $as_echo_n "(cached) " >&6
  15062. else
  15063. test "$cross_compiling" = yes &&
  15064. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  15065. if test -r "${sdkdir}/damage.h"; then
  15066. eval "$as_ac_File=yes"
  15067. else
  15068. eval "$as_ac_File=no"
  15069. fi
  15070. fi
  15071. eval ac_res=\$$as_ac_File
  15072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15073. $as_echo "$ac_res" >&6; }
  15074. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  15075. have_damage_h="yes"
  15076. else
  15077. have_damage_h="no"
  15078. fi
  15079. fi
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
  15081. $as_echo_n "checking whether to include DRI support... " >&6; }
  15082. if test x$DRI = xauto; then
  15083. if test "$have_dri_h" = yes -a \
  15084. "$have_sarea_h" = yes -a \
  15085. "$have_dristruct_h" = yes; then
  15086. DRI="yes"
  15087. else
  15088. DRI="no"
  15089. fi
  15090. fi
  15091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
  15092. $as_echo "$DRI" >&6; }
  15093. if test x$DRI = xyes; then
  15094. DRI_TRUE=
  15095. DRI_FALSE='#'
  15096. else
  15097. DRI_TRUE='#'
  15098. DRI_FALSE=
  15099. fi
  15100. if test "$DRI" = yes; then
  15101. pkg_failed=no
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
  15103. $as_echo_n "checking for DRI... " >&6; }
  15104. if test -n "$DRI_CFLAGS"; then
  15105. pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
  15106. elif test -n "$PKG_CONFIG"; then
  15107. if test -n "$PKG_CONFIG" && \
  15108. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
  15109. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
  15110. ac_status=$?
  15111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15112. test $ac_status = 0; }; then
  15113. pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
  15114. test "x$?" != "x0" && pkg_failed=yes
  15115. else
  15116. pkg_failed=yes
  15117. fi
  15118. else
  15119. pkg_failed=untried
  15120. fi
  15121. if test -n "$DRI_LIBS"; then
  15122. pkg_cv_DRI_LIBS="$DRI_LIBS"
  15123. elif test -n "$PKG_CONFIG"; then
  15124. if test -n "$PKG_CONFIG" && \
  15125. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
  15126. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
  15127. ac_status=$?
  15128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15129. test $ac_status = 0; }; then
  15130. pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
  15131. test "x$?" != "x0" && pkg_failed=yes
  15132. else
  15133. pkg_failed=yes
  15134. fi
  15135. else
  15136. pkg_failed=untried
  15137. fi
  15138. if test $pkg_failed = yes; then
  15139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15140. $as_echo "no" >&6; }
  15141. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15142. _pkg_short_errors_supported=yes
  15143. else
  15144. _pkg_short_errors_supported=no
  15145. fi
  15146. if test $_pkg_short_errors_supported = yes; then
  15147. DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
  15148. else
  15149. DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
  15150. fi
  15151. # Put the nasty error message in config.log where it belongs
  15152. echo "$DRI_PKG_ERRORS" >&5
  15153. as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
  15154. $DRI_PKG_ERRORS
  15155. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15156. installed software in a non-standard prefix.
  15157. Alternatively, you may set the environment variables DRI_CFLAGS
  15158. and DRI_LIBS to avoid the need to call pkg-config.
  15159. See the pkg-config man page for more details." "$LINENO" 5
  15160. elif test $pkg_failed = untried; then
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15162. $as_echo "no" >&6; }
  15163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15165. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15166. is in your PATH or set the PKG_CONFIG environment variable to the full
  15167. path to pkg-config.
  15168. Alternatively, you may set the environment variables DRI_CFLAGS
  15169. and DRI_LIBS to avoid the need to call pkg-config.
  15170. See the pkg-config man page for more details.
  15171. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15172. See \`config.log' for more details" "$LINENO" 5; }
  15173. else
  15174. DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
  15175. DRI_LIBS=$pkg_cv_DRI_LIBS
  15176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15177. $as_echo "yes" >&6; }
  15178. fi
  15179. $as_echo "#define XF86DRI 1" >>confdefs.h
  15180. $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
  15181. fi
  15182. # Note that this is sort of inverted from drivers/ati/Imakefile in
  15183. # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not
  15184. # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah,
  15185. # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
  15186. # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a
  15187. # little-endian, undirected PIO space of at least 64kB.
  15188. # AVOID_DGA: ???
  15189. # ATI_TV_OUT: This only works on x86.
  15190. ATIMISC_CPIO=no
  15191. ATIMISC_DGA=yes
  15192. ATIMISC_TV_OUT=no
  15193. case $host_cpu in
  15194. i*86)
  15195. ATIMISC_TV_OUT=yes
  15196. ATIMISC_CPIO=yes
  15197. ;;
  15198. x86_64|amd64|alpha|ia64)
  15199. ATIMISC_CPIO=yes
  15200. ;;
  15201. sparc)
  15202. ATIMISC_DGA=no
  15203. ;;
  15204. *)
  15205. ;;
  15206. esac
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5
  15208. $as_echo_n "checking whether to include PIO support... " >&6; }
  15209. if test "x$ATIMISC_CPIO" = xyes; then
  15210. ATIMISC_CPIO_TRUE=
  15211. ATIMISC_CPIO_FALSE='#'
  15212. else
  15213. ATIMISC_CPIO_TRUE='#'
  15214. ATIMISC_CPIO_FALSE=
  15215. fi
  15216. if test "x$ATIMISC_CPIO" = xyes; then
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5
  15218. $as_echo "yes, PIO" >&6; }
  15219. else
  15220. $as_echo "#define AVOID_CPIO 1" >>confdefs.h
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5
  15222. $as_echo "no, MMIO" >&6; }
  15223. fi
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
  15225. $as_echo_n "checking whether to include DGA support... " >&6; }
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5
  15227. $as_echo "$ATIMISC_DGA" >&6; }
  15228. if test "x$ATIMISC_DGA" = xyes; then
  15229. ATIMISC_DGA_TRUE=
  15230. ATIMISC_DGA_FALSE='#'
  15231. else
  15232. ATIMISC_DGA_TRUE='#'
  15233. ATIMISC_DGA_FALSE=
  15234. fi
  15235. if ! test "x$ATIMISC_DGA" = xyes; then
  15236. $as_echo "#define AVOID_DGA 1" >>confdefs.h
  15237. fi
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5
  15239. $as_echo_n "checking whether to include TV Out support... " >&6; }
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5
  15241. $as_echo "$ATIMISC_TV_OUT" >&6; }
  15242. if test "x$ATIMISC_TV_OUT" = xyes; then
  15243. ATIMISC_TV_OUT_TRUE=
  15244. ATIMISC_TV_OUT_FALSE='#'
  15245. else
  15246. ATIMISC_TV_OUT_TRUE='#'
  15247. ATIMISC_TV_OUT_FALSE=
  15248. fi
  15249. if test "x$ATIMISC_TV_OUT" = xyes; then
  15250. $as_echo "#define TV_OUT 1" >>confdefs.h
  15251. fi
  15252. # Properly handle EXA.
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
  15254. $as_echo_n "checking whether to enable EXA support... " >&6; }
  15255. if test "x$EXA" = xyes; then
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15257. $as_echo "yes" >&6; }
  15258. SAVE_CPPFLAGS="$CPPFLAGS"
  15259. CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
  15260. ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
  15261. if test "x$ac_cv_header_exa_h" = xyes; then :
  15262. have_exa_h="yes"
  15263. else
  15264. have_exa_h="no"
  15265. fi
  15266. CPPFLAGS="$SAVE_CPPFLAGS"
  15267. else
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15269. $as_echo "no" >&6; }
  15270. fi
  15271. SAVE_CPPFLAGS="$CPPFLAGS"
  15272. CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
  15273. if test "x$have_exa_h" = xyes; then
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
  15275. $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
  15276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15277. /* end confdefs.h. */
  15278. #include "exa.h"
  15279. #if EXA_VERSION_MAJOR < 2
  15280. #error OLD EXA!
  15281. #endif
  15282. int
  15283. main ()
  15284. {
  15285. ;
  15286. return 0;
  15287. }
  15288. _ACEOF
  15289. if ac_fn_c_try_cpp "$LINENO"; then :
  15290. USE_EXA=yes
  15291. else
  15292. USE_EXA=no
  15293. fi
  15294. rm -f conftest.err conftest.i conftest.$ac_ext
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
  15296. $as_echo "$USE_EXA" >&6; }
  15297. if test "x$USE_EXA" = xyes; then
  15298. $as_echo "#define USE_EXA 1" >>confdefs.h
  15299. fi
  15300. fi
  15301. # Check whether --enable-xaa was given.
  15302. if test "${enable_xaa+set}" = set; then :
  15303. enableval=$enable_xaa; XAA="$enableval"
  15304. else
  15305. XAA=auto
  15306. fi
  15307. if test "x$XAA" != xno; then
  15308. save_CFLAGS=$CFLAGS
  15309. save_CPPFLAGS=$CPPFLAGS
  15310. CFLAGS=$XORG_CFLAGS
  15311. CPPFLAGS="$XORG_CFLAGS"
  15312. for ac_header in xaa.h
  15313. do :
  15314. ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
  15315. if test "x$ac_cv_header_xaa_h" = xyes; then :
  15316. cat >>confdefs.h <<_ACEOF
  15317. #define HAVE_XAA_H 1
  15318. _ACEOF
  15319. XAA=yes
  15320. else
  15321. XAA=no
  15322. fi
  15323. done
  15324. CFLAGS=$save_CFLAGS
  15325. CPPFLAGS=$save_CPPFLAGS
  15326. fi
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
  15328. $as_echo_n "checking whether to include XAA support... " >&6; }
  15329. if test "x$XAA" = xyes; then
  15330. XAA_TRUE=
  15331. XAA_FALSE='#'
  15332. else
  15333. XAA_TRUE='#'
  15334. XAA_FALSE=
  15335. fi
  15336. if test "x$XAA" = xyes; then
  15337. $as_echo "#define USE_XAA test \"x\$XAA\" = xyes" >>confdefs.h
  15338. fi
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
  15340. $as_echo "$XAA" >&6; }
  15341. ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
  15342. "
  15343. if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
  15344. XSERVER_LIBPCIACCESS=yes
  15345. else
  15346. XSERVER_LIBPCIACCESS=no
  15347. fi
  15348. CPPFLAGS="$SAVE_CPPFLAGS"
  15349. if test "x$USE_EXA" = xyes; then
  15350. USE_EXA_TRUE=
  15351. USE_EXA_FALSE='#'
  15352. else
  15353. USE_EXA_TRUE='#'
  15354. USE_EXA_FALSE=
  15355. fi
  15356. if test "x$XSERVER_LIBPCIACCESS" = xyes; then
  15357. pkg_failed=no
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
  15359. $as_echo_n "checking for PCIACCESS... " >&6; }
  15360. if test -n "$PCIACCESS_CFLAGS"; then
  15361. pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
  15362. elif test -n "$PKG_CONFIG"; then
  15363. if test -n "$PKG_CONFIG" && \
  15364. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
  15365. ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
  15366. ac_status=$?
  15367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15368. test $ac_status = 0; }; then
  15369. pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
  15370. test "x$?" != "x0" && pkg_failed=yes
  15371. else
  15372. pkg_failed=yes
  15373. fi
  15374. else
  15375. pkg_failed=untried
  15376. fi
  15377. if test -n "$PCIACCESS_LIBS"; then
  15378. pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
  15379. elif test -n "$PKG_CONFIG"; then
  15380. if test -n "$PKG_CONFIG" && \
  15381. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
  15382. ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
  15383. ac_status=$?
  15384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15385. test $ac_status = 0; }; then
  15386. pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
  15387. test "x$?" != "x0" && pkg_failed=yes
  15388. else
  15389. pkg_failed=yes
  15390. fi
  15391. else
  15392. pkg_failed=untried
  15393. fi
  15394. if test $pkg_failed = yes; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15396. $as_echo "no" >&6; }
  15397. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15398. _pkg_short_errors_supported=yes
  15399. else
  15400. _pkg_short_errors_supported=no
  15401. fi
  15402. if test $_pkg_short_errors_supported = yes; then
  15403. PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
  15404. else
  15405. PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
  15406. fi
  15407. # Put the nasty error message in config.log where it belongs
  15408. echo "$PCIACCESS_PKG_ERRORS" >&5
  15409. as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
  15410. $PCIACCESS_PKG_ERRORS
  15411. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15412. installed software in a non-standard prefix.
  15413. Alternatively, you may set the environment variables PCIACCESS_CFLAGS
  15414. and PCIACCESS_LIBS to avoid the need to call pkg-config.
  15415. See the pkg-config man page for more details." "$LINENO" 5
  15416. elif test $pkg_failed = untried; then
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15418. $as_echo "no" >&6; }
  15419. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15421. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15422. is in your PATH or set the PKG_CONFIG environment variable to the full
  15423. path to pkg-config.
  15424. Alternatively, you may set the environment variables PCIACCESS_CFLAGS
  15425. and PCIACCESS_LIBS to avoid the need to call pkg-config.
  15426. See the pkg-config man page for more details.
  15427. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15428. See \`config.log' for more details" "$LINENO" 5; }
  15429. else
  15430. PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
  15431. PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15433. $as_echo "yes" >&6; }
  15434. fi
  15435. XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
  15436. fi
  15437. if test "x$XSERVER_LIBPCIACCESS" = xyes; then
  15438. XSERVER_LIBPCIACCESS_TRUE=
  15439. XSERVER_LIBPCIACCESS_FALSE='#'
  15440. else
  15441. XSERVER_LIBPCIACCESS_TRUE='#'
  15442. XSERVER_LIBPCIACCESS_FALSE=
  15443. fi
  15444. DRIVER_NAME=mach64
  15445. { $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
  15446. or install the ati wrapper as well:
  15447. git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
  15448. " >&5
  15449. $as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
  15450. or install the ati wrapper as well:
  15451. git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
  15452. " >&6;}
  15453. ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
  15454. cat >confcache <<\_ACEOF
  15455. # This file is a shell script that caches the results of configure
  15456. # tests run on this system so they can be shared between configure
  15457. # scripts and configure runs, see configure's option --config-cache.
  15458. # It is not useful on other systems. If it contains results you don't
  15459. # want to keep, you may remove or edit it.
  15460. #
  15461. # config.status only pays attention to the cache file if you give it
  15462. # the --recheck option to rerun configure.
  15463. #
  15464. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15465. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15466. # following values.
  15467. _ACEOF
  15468. # The following way of writing the cache mishandles newlines in values,
  15469. # but we know of no workaround that is simple, portable, and efficient.
  15470. # So, we kill variables containing newlines.
  15471. # Ultrix sh set writes to stderr and can't be redirected directly,
  15472. # and sets the high bit in the cache file unless we assign to the vars.
  15473. (
  15474. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15475. eval ac_val=\$$ac_var
  15476. case $ac_val in #(
  15477. *${as_nl}*)
  15478. case $ac_var in #(
  15479. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15480. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15481. esac
  15482. case $ac_var in #(
  15483. _ | IFS | as_nl) ;; #(
  15484. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15485. *) { eval $ac_var=; unset $ac_var;} ;;
  15486. esac ;;
  15487. esac
  15488. done
  15489. (set) 2>&1 |
  15490. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15491. *${as_nl}ac_space=\ *)
  15492. # `set' does not quote correctly, so add quotes: double-quote
  15493. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15494. sed -n \
  15495. "s/'/'\\\\''/g;
  15496. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15497. ;; #(
  15498. *)
  15499. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15500. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15501. ;;
  15502. esac |
  15503. sort
  15504. ) |
  15505. sed '
  15506. /^ac_cv_env_/b end
  15507. t clear
  15508. :clear
  15509. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15510. t end
  15511. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15512. :end' >>confcache
  15513. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15514. if test -w "$cache_file"; then
  15515. if test "x$cache_file" != "x/dev/null"; then
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15517. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15518. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15519. cat confcache >"$cache_file"
  15520. else
  15521. case $cache_file in #(
  15522. */* | ?:*)
  15523. mv -f confcache "$cache_file"$$ &&
  15524. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15525. *)
  15526. mv -f confcache "$cache_file" ;;
  15527. esac
  15528. fi
  15529. fi
  15530. else
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15532. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15533. fi
  15534. fi
  15535. rm -f confcache
  15536. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15537. # Let make expand exec_prefix.
  15538. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15539. DEFS=-DHAVE_CONFIG_H
  15540. ac_libobjs=
  15541. ac_ltlibobjs=
  15542. U=
  15543. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15544. # 1. Remove the extension, and $U if already installed.
  15545. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15546. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15547. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15548. # will be set to the directory where LIBOBJS objects are built.
  15549. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15550. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15551. done
  15552. LIBOBJS=$ac_libobjs
  15553. LTLIBOBJS=$ac_ltlibobjs
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15555. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15556. if test -n "$am_sleep_pid"; then
  15557. # Hide warnings about reused PIDs.
  15558. wait $am_sleep_pid 2>/dev/null
  15559. fi
  15560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15561. $as_echo "done" >&6; }
  15562. if test -n "$EXEEXT"; then
  15563. am__EXEEXT_TRUE=
  15564. am__EXEEXT_FALSE='#'
  15565. else
  15566. am__EXEEXT_TRUE='#'
  15567. am__EXEEXT_FALSE=
  15568. fi
  15569. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  15570. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  15571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15572. fi
  15573. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15574. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15576. fi
  15577. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15578. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15579. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15580. fi
  15581. if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
  15582. as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
  15583. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15584. fi
  15585. if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
  15586. as_fn_error $? "conditional \"DRI\" was never defined.
  15587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15588. fi
  15589. if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
  15590. as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined.
  15591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15592. fi
  15593. if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
  15594. as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined.
  15595. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15596. fi
  15597. if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
  15598. as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined.
  15599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15600. fi
  15601. if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
  15602. as_fn_error $? "conditional \"XAA\" was never defined.
  15603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15604. fi
  15605. if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
  15606. as_fn_error $? "conditional \"USE_EXA\" was never defined.
  15607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15608. fi
  15609. if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
  15610. as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
  15611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15612. fi
  15613. : "${CONFIG_STATUS=./config.status}"
  15614. ac_write_fail=0
  15615. ac_clean_files_save=$ac_clean_files
  15616. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15618. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15619. as_write_fail=0
  15620. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15621. #! $SHELL
  15622. # Generated by $as_me.
  15623. # Run this file to recreate the current configuration.
  15624. # Compiler output produced by configure, useful for debugging
  15625. # configure, is in config.log if it exists.
  15626. debug=false
  15627. ac_cs_recheck=false
  15628. ac_cs_silent=false
  15629. SHELL=\${CONFIG_SHELL-$SHELL}
  15630. export SHELL
  15631. _ASEOF
  15632. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15633. ## -------------------- ##
  15634. ## M4sh Initialization. ##
  15635. ## -------------------- ##
  15636. # Be more Bourne compatible
  15637. DUALCASE=1; export DUALCASE # for MKS sh
  15638. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15639. emulate sh
  15640. NULLCMD=:
  15641. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15642. # is contrary to our usage. Disable this feature.
  15643. alias -g '${1+"$@"}'='"$@"'
  15644. setopt NO_GLOB_SUBST
  15645. else
  15646. case `(set -o) 2>/dev/null` in #(
  15647. *posix*) :
  15648. set -o posix ;; #(
  15649. *) :
  15650. ;;
  15651. esac
  15652. fi
  15653. as_nl='
  15654. '
  15655. export as_nl
  15656. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15657. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15658. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15659. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15660. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15661. # but without wasting forks for bash or zsh.
  15662. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15663. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15664. as_echo='print -r --'
  15665. as_echo_n='print -rn --'
  15666. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15667. as_echo='printf %s\n'
  15668. as_echo_n='printf %s'
  15669. else
  15670. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15671. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15672. as_echo_n='/usr/ucb/echo -n'
  15673. else
  15674. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15675. as_echo_n_body='eval
  15676. arg=$1;
  15677. case $arg in #(
  15678. *"$as_nl"*)
  15679. expr "X$arg" : "X\\(.*\\)$as_nl";
  15680. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15681. esac;
  15682. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15683. '
  15684. export as_echo_n_body
  15685. as_echo_n='sh -c $as_echo_n_body as_echo'
  15686. fi
  15687. export as_echo_body
  15688. as_echo='sh -c $as_echo_body as_echo'
  15689. fi
  15690. # The user is always right.
  15691. if test "${PATH_SEPARATOR+set}" != set; then
  15692. PATH_SEPARATOR=:
  15693. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15694. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15695. PATH_SEPARATOR=';'
  15696. }
  15697. fi
  15698. # IFS
  15699. # We need space, tab and new line, in precisely that order. Quoting is
  15700. # there to prevent editors from complaining about space-tab.
  15701. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15702. # splitting by setting IFS to empty value.)
  15703. IFS=" "" $as_nl"
  15704. # Find who we are. Look in the path if we contain no directory separator.
  15705. as_myself=
  15706. case $0 in #((
  15707. *[\\/]* ) as_myself=$0 ;;
  15708. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15709. for as_dir in $PATH
  15710. do
  15711. IFS=$as_save_IFS
  15712. test -z "$as_dir" && as_dir=.
  15713. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15714. done
  15715. IFS=$as_save_IFS
  15716. ;;
  15717. esac
  15718. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15719. # in which case we are not to be found in the path.
  15720. if test "x$as_myself" = x; then
  15721. as_myself=$0
  15722. fi
  15723. if test ! -f "$as_myself"; then
  15724. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15725. exit 1
  15726. fi
  15727. # Unset variables that we do not need and which cause bugs (e.g. in
  15728. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15729. # suppresses any "Segmentation fault" message there. '((' could
  15730. # trigger a bug in pdksh 5.2.14.
  15731. for as_var in BASH_ENV ENV MAIL MAILPATH
  15732. do eval test x\${$as_var+set} = xset \
  15733. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15734. done
  15735. PS1='$ '
  15736. PS2='> '
  15737. PS4='+ '
  15738. # NLS nuisances.
  15739. LC_ALL=C
  15740. export LC_ALL
  15741. LANGUAGE=C
  15742. export LANGUAGE
  15743. # CDPATH.
  15744. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15745. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15746. # ----------------------------------------
  15747. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15748. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15749. # script with STATUS, using 1 if that was 0.
  15750. as_fn_error ()
  15751. {
  15752. as_status=$1; test $as_status -eq 0 && as_status=1
  15753. if test "$4"; then
  15754. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15755. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15756. fi
  15757. $as_echo "$as_me: error: $2" >&2
  15758. as_fn_exit $as_status
  15759. } # as_fn_error
  15760. # as_fn_set_status STATUS
  15761. # -----------------------
  15762. # Set $? to STATUS, without forking.
  15763. as_fn_set_status ()
  15764. {
  15765. return $1
  15766. } # as_fn_set_status
  15767. # as_fn_exit STATUS
  15768. # -----------------
  15769. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15770. as_fn_exit ()
  15771. {
  15772. set +e
  15773. as_fn_set_status $1
  15774. exit $1
  15775. } # as_fn_exit
  15776. # as_fn_unset VAR
  15777. # ---------------
  15778. # Portably unset VAR.
  15779. as_fn_unset ()
  15780. {
  15781. { eval $1=; unset $1;}
  15782. }
  15783. as_unset=as_fn_unset
  15784. # as_fn_append VAR VALUE
  15785. # ----------------------
  15786. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15787. # advantage of any shell optimizations that allow amortized linear growth over
  15788. # repeated appends, instead of the typical quadratic growth present in naive
  15789. # implementations.
  15790. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15791. eval 'as_fn_append ()
  15792. {
  15793. eval $1+=\$2
  15794. }'
  15795. else
  15796. as_fn_append ()
  15797. {
  15798. eval $1=\$$1\$2
  15799. }
  15800. fi # as_fn_append
  15801. # as_fn_arith ARG...
  15802. # ------------------
  15803. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15804. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15805. # must be portable across $(()) and expr.
  15806. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15807. eval 'as_fn_arith ()
  15808. {
  15809. as_val=$(( $* ))
  15810. }'
  15811. else
  15812. as_fn_arith ()
  15813. {
  15814. as_val=`expr "$@" || test $? -eq 1`
  15815. }
  15816. fi # as_fn_arith
  15817. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15818. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15819. as_expr=expr
  15820. else
  15821. as_expr=false
  15822. fi
  15823. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15824. as_basename=basename
  15825. else
  15826. as_basename=false
  15827. fi
  15828. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15829. as_dirname=dirname
  15830. else
  15831. as_dirname=false
  15832. fi
  15833. as_me=`$as_basename -- "$0" ||
  15834. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15835. X"$0" : 'X\(//\)$' \| \
  15836. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15837. $as_echo X/"$0" |
  15838. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15839. s//\1/
  15840. q
  15841. }
  15842. /^X\/\(\/\/\)$/{
  15843. s//\1/
  15844. q
  15845. }
  15846. /^X\/\(\/\).*/{
  15847. s//\1/
  15848. q
  15849. }
  15850. s/.*/./; q'`
  15851. # Avoid depending upon Character Ranges.
  15852. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15853. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15854. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15855. as_cr_digits='0123456789'
  15856. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15857. ECHO_C= ECHO_N= ECHO_T=
  15858. case `echo -n x` in #(((((
  15859. -n*)
  15860. case `echo 'xy\c'` in
  15861. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15862. xy) ECHO_C='\c';;
  15863. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15864. ECHO_T=' ';;
  15865. esac;;
  15866. *)
  15867. ECHO_N='-n';;
  15868. esac
  15869. rm -f conf$$ conf$$.exe conf$$.file
  15870. if test -d conf$$.dir; then
  15871. rm -f conf$$.dir/conf$$.file
  15872. else
  15873. rm -f conf$$.dir
  15874. mkdir conf$$.dir 2>/dev/null
  15875. fi
  15876. if (echo >conf$$.file) 2>/dev/null; then
  15877. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15878. as_ln_s='ln -s'
  15879. # ... but there are two gotchas:
  15880. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15881. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15882. # In both cases, we have to default to `cp -pR'.
  15883. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15884. as_ln_s='cp -pR'
  15885. elif ln conf$$.file conf$$ 2>/dev/null; then
  15886. as_ln_s=ln
  15887. else
  15888. as_ln_s='cp -pR'
  15889. fi
  15890. else
  15891. as_ln_s='cp -pR'
  15892. fi
  15893. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15894. rmdir conf$$.dir 2>/dev/null
  15895. # as_fn_mkdir_p
  15896. # -------------
  15897. # Create "$as_dir" as a directory, including parents if necessary.
  15898. as_fn_mkdir_p ()
  15899. {
  15900. case $as_dir in #(
  15901. -*) as_dir=./$as_dir;;
  15902. esac
  15903. test -d "$as_dir" || eval $as_mkdir_p || {
  15904. as_dirs=
  15905. while :; do
  15906. case $as_dir in #(
  15907. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15908. *) as_qdir=$as_dir;;
  15909. esac
  15910. as_dirs="'$as_qdir' $as_dirs"
  15911. as_dir=`$as_dirname -- "$as_dir" ||
  15912. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15913. X"$as_dir" : 'X\(//\)[^/]' \| \
  15914. X"$as_dir" : 'X\(//\)$' \| \
  15915. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15916. $as_echo X"$as_dir" |
  15917. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15918. s//\1/
  15919. q
  15920. }
  15921. /^X\(\/\/\)[^/].*/{
  15922. s//\1/
  15923. q
  15924. }
  15925. /^X\(\/\/\)$/{
  15926. s//\1/
  15927. q
  15928. }
  15929. /^X\(\/\).*/{
  15930. s//\1/
  15931. q
  15932. }
  15933. s/.*/./; q'`
  15934. test -d "$as_dir" && break
  15935. done
  15936. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15937. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15938. } # as_fn_mkdir_p
  15939. if mkdir -p . 2>/dev/null; then
  15940. as_mkdir_p='mkdir -p "$as_dir"'
  15941. else
  15942. test -d ./-p && rmdir ./-p
  15943. as_mkdir_p=false
  15944. fi
  15945. # as_fn_executable_p FILE
  15946. # -----------------------
  15947. # Test if FILE is an executable regular file.
  15948. as_fn_executable_p ()
  15949. {
  15950. test -f "$1" && test -x "$1"
  15951. } # as_fn_executable_p
  15952. as_test_x='test -x'
  15953. as_executable_p=as_fn_executable_p
  15954. # Sed expression to map a string onto a valid CPP name.
  15955. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15956. # Sed expression to map a string onto a valid variable name.
  15957. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15958. exec 6>&1
  15959. ## ----------------------------------- ##
  15960. ## Main body of $CONFIG_STATUS script. ##
  15961. ## ----------------------------------- ##
  15962. _ASEOF
  15963. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15965. # Save the log message, to keep $0 and so on meaningful, and to
  15966. # report actual input values of CONFIG_FILES etc. instead of their
  15967. # values after options handling.
  15968. ac_log="
  15969. This file was extended by xf86-video-mach64 $as_me 6.9.5, which was
  15970. generated by GNU Autoconf 2.69. Invocation command line was
  15971. CONFIG_FILES = $CONFIG_FILES
  15972. CONFIG_HEADERS = $CONFIG_HEADERS
  15973. CONFIG_LINKS = $CONFIG_LINKS
  15974. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15975. $ $0 $@
  15976. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15977. "
  15978. _ACEOF
  15979. case $ac_config_files in *"
  15980. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15981. esac
  15982. case $ac_config_headers in *"
  15983. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15984. esac
  15985. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15986. # Files that config.status was made for.
  15987. config_files="$ac_config_files"
  15988. config_headers="$ac_config_headers"
  15989. config_commands="$ac_config_commands"
  15990. _ACEOF
  15991. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15992. ac_cs_usage="\
  15993. \`$as_me' instantiates files and other configuration actions
  15994. from templates according to the current configuration. Unless the files
  15995. and actions are specified as TAGs, all are instantiated by default.
  15996. Usage: $0 [OPTION]... [TAG]...
  15997. -h, --help print this help, then exit
  15998. -V, --version print version number and configuration settings, then exit
  15999. --config print configuration, then exit
  16000. -q, --quiet, --silent
  16001. do not print progress messages
  16002. -d, --debug don't remove temporary files
  16003. --recheck update $as_me by reconfiguring in the same conditions
  16004. --file=FILE[:TEMPLATE]
  16005. instantiate the configuration file FILE
  16006. --header=FILE[:TEMPLATE]
  16007. instantiate the configuration header FILE
  16008. Configuration files:
  16009. $config_files
  16010. Configuration headers:
  16011. $config_headers
  16012. Configuration commands:
  16013. $config_commands
  16014. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  16015. _ACEOF
  16016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16017. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16018. ac_cs_version="\\
  16019. xf86-video-mach64 config.status 6.9.5
  16020. configured by $0, generated by GNU Autoconf 2.69,
  16021. with options \\"\$ac_cs_config\\"
  16022. Copyright (C) 2012 Free Software Foundation, Inc.
  16023. This config.status script is free software; the Free Software Foundation
  16024. gives unlimited permission to copy, distribute and modify it."
  16025. ac_pwd='$ac_pwd'
  16026. srcdir='$srcdir'
  16027. INSTALL='$INSTALL'
  16028. MKDIR_P='$MKDIR_P'
  16029. AWK='$AWK'
  16030. test -n "\$AWK" || AWK=awk
  16031. _ACEOF
  16032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16033. # The default lists apply if the user does not specify any file.
  16034. ac_need_defaults=:
  16035. while test $# != 0
  16036. do
  16037. case $1 in
  16038. --*=?*)
  16039. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16040. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16041. ac_shift=:
  16042. ;;
  16043. --*=)
  16044. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16045. ac_optarg=
  16046. ac_shift=:
  16047. ;;
  16048. *)
  16049. ac_option=$1
  16050. ac_optarg=$2
  16051. ac_shift=shift
  16052. ;;
  16053. esac
  16054. case $ac_option in
  16055. # Handling of the options.
  16056. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16057. ac_cs_recheck=: ;;
  16058. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16059. $as_echo "$ac_cs_version"; exit ;;
  16060. --config | --confi | --conf | --con | --co | --c )
  16061. $as_echo "$ac_cs_config"; exit ;;
  16062. --debug | --debu | --deb | --de | --d | -d )
  16063. debug=: ;;
  16064. --file | --fil | --fi | --f )
  16065. $ac_shift
  16066. case $ac_optarg in
  16067. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16068. '') as_fn_error $? "missing file argument" ;;
  16069. esac
  16070. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16071. ac_need_defaults=false;;
  16072. --header | --heade | --head | --hea )
  16073. $ac_shift
  16074. case $ac_optarg in
  16075. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16076. esac
  16077. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16078. ac_need_defaults=false;;
  16079. --he | --h)
  16080. # Conflict between --help and --header
  16081. as_fn_error $? "ambiguous option: \`$1'
  16082. Try \`$0 --help' for more information.";;
  16083. --help | --hel | -h )
  16084. $as_echo "$ac_cs_usage"; exit ;;
  16085. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16086. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16087. ac_cs_silent=: ;;
  16088. # This is an error.
  16089. -*) as_fn_error $? "unrecognized option: \`$1'
  16090. Try \`$0 --help' for more information." ;;
  16091. *) as_fn_append ac_config_targets " $1"
  16092. ac_need_defaults=false ;;
  16093. esac
  16094. shift
  16095. done
  16096. ac_configure_extra_args=
  16097. if $ac_cs_silent; then
  16098. exec 6>/dev/null
  16099. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16100. fi
  16101. _ACEOF
  16102. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16103. if \$ac_cs_recheck; then
  16104. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16105. shift
  16106. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16107. CONFIG_SHELL='$SHELL'
  16108. export CONFIG_SHELL
  16109. exec "\$@"
  16110. fi
  16111. _ACEOF
  16112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16113. exec 5>>config.log
  16114. {
  16115. echo
  16116. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16117. ## Running $as_me. ##
  16118. _ASBOX
  16119. $as_echo "$ac_log"
  16120. } >&5
  16121. _ACEOF
  16122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16123. #
  16124. # INIT-COMMANDS
  16125. #
  16126. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16127. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16128. # if CDPATH is set.
  16129. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16130. sed_quote_subst='$sed_quote_subst'
  16131. double_quote_subst='$double_quote_subst'
  16132. delay_variable_subst='$delay_variable_subst'
  16133. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16134. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16135. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16136. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16137. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16138. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16139. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16140. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16141. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16142. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16143. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16144. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16145. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16146. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16147. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16148. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16149. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16150. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16151. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16152. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16153. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16154. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16155. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16156. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16157. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16158. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16159. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16160. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16161. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16162. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16163. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16164. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16165. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16166. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16167. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16168. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16169. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16170. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16171. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16172. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16173. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16174. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16175. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16176. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16177. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16178. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16179. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16180. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16181. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16182. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16183. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16184. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16185. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16186. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16187. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16188. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16189. 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"`'
  16190. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16191. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16192. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16193. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16194. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16195. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16196. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16197. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16198. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16199. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16200. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16201. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16202. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16203. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16204. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16205. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16206. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16207. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16208. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16209. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16210. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16211. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16212. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16213. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16214. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16215. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16216. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16217. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16218. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16219. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16220. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16221. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16222. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16223. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16224. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16225. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16226. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16227. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16228. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16229. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16230. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16231. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16232. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16233. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16234. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16235. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16236. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16237. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16238. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16239. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16240. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16241. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16242. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16243. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16244. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16245. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16246. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16247. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16248. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16249. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16250. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16251. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16252. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16253. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16254. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16255. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16256. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16257. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16258. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16259. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16260. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16261. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16262. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16263. LTCC='$LTCC'
  16264. LTCFLAGS='$LTCFLAGS'
  16265. compiler='$compiler_DEFAULT'
  16266. # A function that is used when there is no print builtin or printf.
  16267. func_fallback_echo ()
  16268. {
  16269. eval 'cat <<_LTECHO_EOF
  16270. \$1
  16271. _LTECHO_EOF'
  16272. }
  16273. # Quote evaled strings.
  16274. for var in SHELL \
  16275. ECHO \
  16276. PATH_SEPARATOR \
  16277. SED \
  16278. GREP \
  16279. EGREP \
  16280. FGREP \
  16281. LD \
  16282. NM \
  16283. LN_S \
  16284. lt_SP2NL \
  16285. lt_NL2SP \
  16286. reload_flag \
  16287. OBJDUMP \
  16288. deplibs_check_method \
  16289. file_magic_cmd \
  16290. file_magic_glob \
  16291. want_nocaseglob \
  16292. DLLTOOL \
  16293. sharedlib_from_linklib_cmd \
  16294. AR \
  16295. AR_FLAGS \
  16296. archiver_list_spec \
  16297. STRIP \
  16298. RANLIB \
  16299. CC \
  16300. CFLAGS \
  16301. compiler \
  16302. lt_cv_sys_global_symbol_pipe \
  16303. lt_cv_sys_global_symbol_to_cdecl \
  16304. lt_cv_sys_global_symbol_to_c_name_address \
  16305. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16306. nm_file_list_spec \
  16307. lt_prog_compiler_no_builtin_flag \
  16308. lt_prog_compiler_pic \
  16309. lt_prog_compiler_wl \
  16310. lt_prog_compiler_static \
  16311. lt_cv_prog_compiler_c_o \
  16312. need_locks \
  16313. MANIFEST_TOOL \
  16314. DSYMUTIL \
  16315. NMEDIT \
  16316. LIPO \
  16317. OTOOL \
  16318. OTOOL64 \
  16319. shrext_cmds \
  16320. export_dynamic_flag_spec \
  16321. whole_archive_flag_spec \
  16322. compiler_needs_object \
  16323. with_gnu_ld \
  16324. allow_undefined_flag \
  16325. no_undefined_flag \
  16326. hardcode_libdir_flag_spec \
  16327. hardcode_libdir_separator \
  16328. exclude_expsyms \
  16329. include_expsyms \
  16330. file_list_spec \
  16331. variables_saved_for_relink \
  16332. libname_spec \
  16333. library_names_spec \
  16334. soname_spec \
  16335. install_override_mode \
  16336. finish_eval \
  16337. old_striplib \
  16338. striplib; do
  16339. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16340. *[\\\\\\\`\\"\\\$]*)
  16341. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16342. ;;
  16343. *)
  16344. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16345. ;;
  16346. esac
  16347. done
  16348. # Double-quote double-evaled strings.
  16349. for var in reload_cmds \
  16350. old_postinstall_cmds \
  16351. old_postuninstall_cmds \
  16352. old_archive_cmds \
  16353. extract_expsyms_cmds \
  16354. old_archive_from_new_cmds \
  16355. old_archive_from_expsyms_cmds \
  16356. archive_cmds \
  16357. archive_expsym_cmds \
  16358. module_cmds \
  16359. module_expsym_cmds \
  16360. export_symbols_cmds \
  16361. prelink_cmds \
  16362. postlink_cmds \
  16363. postinstall_cmds \
  16364. postuninstall_cmds \
  16365. finish_cmds \
  16366. sys_lib_search_path_spec \
  16367. sys_lib_dlsearch_path_spec; do
  16368. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16369. *[\\\\\\\`\\"\\\$]*)
  16370. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16371. ;;
  16372. *)
  16373. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16374. ;;
  16375. esac
  16376. done
  16377. ac_aux_dir='$ac_aux_dir'
  16378. xsi_shell='$xsi_shell'
  16379. lt_shell_append='$lt_shell_append'
  16380. # See if we are running on zsh, and set the options which allow our
  16381. # commands through without removal of \ escapes INIT.
  16382. if test -n "\${ZSH_VERSION+set}" ; then
  16383. setopt NO_GLOB_SUBST
  16384. fi
  16385. PACKAGE='$PACKAGE'
  16386. VERSION='$VERSION'
  16387. TIMESTAMP='$TIMESTAMP'
  16388. RM='$RM'
  16389. ofile='$ofile'
  16390. _ACEOF
  16391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16392. # Handling of arguments.
  16393. for ac_config_target in $ac_config_targets
  16394. do
  16395. case $ac_config_target in
  16396. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16397. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16398. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16399. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16400. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16401. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  16402. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16403. esac
  16404. done
  16405. # If the user did not use the arguments to specify the items to instantiate,
  16406. # then the envvar interface is used. Set only those that are not.
  16407. # We use the long form for the default assignment because of an extremely
  16408. # bizarre bug on SunOS 4.1.3.
  16409. if $ac_need_defaults; then
  16410. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16411. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16412. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16413. fi
  16414. # Have a temporary directory for convenience. Make it in the build tree
  16415. # simply because there is no reason against having it here, and in addition,
  16416. # creating and moving files from /tmp can sometimes cause problems.
  16417. # Hook for its removal unless debugging.
  16418. # Note that there is a small window in which the directory will not be cleaned:
  16419. # after its creation but before its name has been assigned to `$tmp'.
  16420. $debug ||
  16421. {
  16422. tmp= ac_tmp=
  16423. trap 'exit_status=$?
  16424. : "${ac_tmp:=$tmp}"
  16425. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16426. ' 0
  16427. trap 'as_fn_exit 1' 1 2 13 15
  16428. }
  16429. # Create a (secure) tmp directory for tmp files.
  16430. {
  16431. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16432. test -d "$tmp"
  16433. } ||
  16434. {
  16435. tmp=./conf$$-$RANDOM
  16436. (umask 077 && mkdir "$tmp")
  16437. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16438. ac_tmp=$tmp
  16439. # Set up the scripts for CONFIG_FILES section.
  16440. # No need to generate them if there are no CONFIG_FILES.
  16441. # This happens for instance with `./config.status config.h'.
  16442. if test -n "$CONFIG_FILES"; then
  16443. ac_cr=`echo X | tr X '\015'`
  16444. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16445. # But we know of no other shell where ac_cr would be empty at this
  16446. # point, so we can use a bashism as a fallback.
  16447. if test "x$ac_cr" = x; then
  16448. eval ac_cr=\$\'\\r\'
  16449. fi
  16450. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16451. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16452. ac_cs_awk_cr='\\r'
  16453. else
  16454. ac_cs_awk_cr=$ac_cr
  16455. fi
  16456. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16457. _ACEOF
  16458. {
  16459. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16460. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16461. echo "_ACEOF"
  16462. } >conf$$subs.sh ||
  16463. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16464. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16465. ac_delim='%!_!# '
  16466. for ac_last_try in false false false false false :; do
  16467. . ./conf$$subs.sh ||
  16468. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16469. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16470. if test $ac_delim_n = $ac_delim_num; then
  16471. break
  16472. elif $ac_last_try; then
  16473. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16474. else
  16475. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16476. fi
  16477. done
  16478. rm -f conf$$subs.sh
  16479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16480. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16481. _ACEOF
  16482. sed -n '
  16483. h
  16484. s/^/S["/; s/!.*/"]=/
  16485. p
  16486. g
  16487. s/^[^!]*!//
  16488. :repl
  16489. t repl
  16490. s/'"$ac_delim"'$//
  16491. t delim
  16492. :nl
  16493. h
  16494. s/\(.\{148\}\)..*/\1/
  16495. t more1
  16496. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16497. p
  16498. n
  16499. b repl
  16500. :more1
  16501. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16502. p
  16503. g
  16504. s/.\{148\}//
  16505. t nl
  16506. :delim
  16507. h
  16508. s/\(.\{148\}\)..*/\1/
  16509. t more2
  16510. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16511. p
  16512. b
  16513. :more2
  16514. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16515. p
  16516. g
  16517. s/.\{148\}//
  16518. t delim
  16519. ' <conf$$subs.awk | sed '
  16520. /^[^""]/{
  16521. N
  16522. s/\n//
  16523. }
  16524. ' >>$CONFIG_STATUS || ac_write_fail=1
  16525. rm -f conf$$subs.awk
  16526. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16527. _ACAWK
  16528. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16529. for (key in S) S_is_set[key] = 1
  16530. FS = ""
  16531. }
  16532. {
  16533. line = $ 0
  16534. nfields = split(line, field, "@")
  16535. substed = 0
  16536. len = length(field[1])
  16537. for (i = 2; i < nfields; i++) {
  16538. key = field[i]
  16539. keylen = length(key)
  16540. if (S_is_set[key]) {
  16541. value = S[key]
  16542. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16543. len += length(value) + length(field[++i])
  16544. substed = 1
  16545. } else
  16546. len += 1 + keylen
  16547. }
  16548. print line
  16549. }
  16550. _ACAWK
  16551. _ACEOF
  16552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16553. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16554. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16555. else
  16556. cat
  16557. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16558. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16559. _ACEOF
  16560. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16561. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16562. # trailing colons and then remove the whole line if VPATH becomes empty
  16563. # (actually we leave an empty line to preserve line numbers).
  16564. if test "x$srcdir" = x.; then
  16565. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16566. h
  16567. s///
  16568. s/^/:/
  16569. s/[ ]*$/:/
  16570. s/:\$(srcdir):/:/g
  16571. s/:\${srcdir}:/:/g
  16572. s/:@srcdir@:/:/g
  16573. s/^:*//
  16574. s/:*$//
  16575. x
  16576. s/\(=[ ]*\).*/\1/
  16577. G
  16578. s/\n//
  16579. s/^[^=]*=[ ]*$//
  16580. }'
  16581. fi
  16582. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16583. fi # test -n "$CONFIG_FILES"
  16584. # Set up the scripts for CONFIG_HEADERS section.
  16585. # No need to generate them if there are no CONFIG_HEADERS.
  16586. # This happens for instance with `./config.status Makefile'.
  16587. if test -n "$CONFIG_HEADERS"; then
  16588. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16589. BEGIN {
  16590. _ACEOF
  16591. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16592. # here-document in config.status, that substitutes the proper values into
  16593. # config.h.in to produce config.h.
  16594. # Create a delimiter string that does not exist in confdefs.h, to ease
  16595. # handling of long lines.
  16596. ac_delim='%!_!# '
  16597. for ac_last_try in false false :; do
  16598. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16599. if test -z "$ac_tt"; then
  16600. break
  16601. elif $ac_last_try; then
  16602. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16603. else
  16604. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16605. fi
  16606. done
  16607. # For the awk script, D is an array of macro values keyed by name,
  16608. # likewise P contains macro parameters if any. Preserve backslash
  16609. # newline sequences.
  16610. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16611. sed -n '
  16612. s/.\{148\}/&'"$ac_delim"'/g
  16613. t rset
  16614. :rset
  16615. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16616. t def
  16617. d
  16618. :def
  16619. s/\\$//
  16620. t bsnl
  16621. s/["\\]/\\&/g
  16622. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16623. D["\1"]=" \3"/p
  16624. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16625. d
  16626. :bsnl
  16627. s/["\\]/\\&/g
  16628. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16629. D["\1"]=" \3\\\\\\n"\\/p
  16630. t cont
  16631. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16632. t cont
  16633. d
  16634. :cont
  16635. n
  16636. s/.\{148\}/&'"$ac_delim"'/g
  16637. t clear
  16638. :clear
  16639. s/\\$//
  16640. t bsnlc
  16641. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16642. d
  16643. :bsnlc
  16644. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16645. b cont
  16646. ' <confdefs.h | sed '
  16647. s/'"$ac_delim"'/"\\\
  16648. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16650. for (key in D) D_is_set[key] = 1
  16651. FS = ""
  16652. }
  16653. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16654. line = \$ 0
  16655. split(line, arg, " ")
  16656. if (arg[1] == "#") {
  16657. defundef = arg[2]
  16658. mac1 = arg[3]
  16659. } else {
  16660. defundef = substr(arg[1], 2)
  16661. mac1 = arg[2]
  16662. }
  16663. split(mac1, mac2, "(") #)
  16664. macro = mac2[1]
  16665. prefix = substr(line, 1, index(line, defundef) - 1)
  16666. if (D_is_set[macro]) {
  16667. # Preserve the white space surrounding the "#".
  16668. print prefix "define", macro P[macro] D[macro]
  16669. next
  16670. } else {
  16671. # Replace #undef with comments. This is necessary, for example,
  16672. # in the case of _POSIX_SOURCE, which is predefined and required
  16673. # on some systems where configure will not decide to define it.
  16674. if (defundef == "undef") {
  16675. print "/*", prefix defundef, macro, "*/"
  16676. next
  16677. }
  16678. }
  16679. }
  16680. { print }
  16681. _ACAWK
  16682. _ACEOF
  16683. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16684. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16685. fi # test -n "$CONFIG_HEADERS"
  16686. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16687. shift
  16688. for ac_tag
  16689. do
  16690. case $ac_tag in
  16691. :[FHLC]) ac_mode=$ac_tag; continue;;
  16692. esac
  16693. case $ac_mode$ac_tag in
  16694. :[FHL]*:*);;
  16695. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16696. :[FH]-) ac_tag=-:-;;
  16697. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16698. esac
  16699. ac_save_IFS=$IFS
  16700. IFS=:
  16701. set x $ac_tag
  16702. IFS=$ac_save_IFS
  16703. shift
  16704. ac_file=$1
  16705. shift
  16706. case $ac_mode in
  16707. :L) ac_source=$1;;
  16708. :[FH])
  16709. ac_file_inputs=
  16710. for ac_f
  16711. do
  16712. case $ac_f in
  16713. -) ac_f="$ac_tmp/stdin";;
  16714. *) # Look for the file first in the build tree, then in the source tree
  16715. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16716. # because $ac_f cannot contain `:'.
  16717. test -f "$ac_f" ||
  16718. case $ac_f in
  16719. [\\/$]*) false;;
  16720. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16721. esac ||
  16722. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16723. esac
  16724. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16725. as_fn_append ac_file_inputs " '$ac_f'"
  16726. done
  16727. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16728. # use $as_me), people would be surprised to read:
  16729. # /* config.h. Generated by config.status. */
  16730. configure_input='Generated from '`
  16731. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16732. `' by configure.'
  16733. if test x"$ac_file" != x-; then
  16734. configure_input="$ac_file. $configure_input"
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16736. $as_echo "$as_me: creating $ac_file" >&6;}
  16737. fi
  16738. # Neutralize special characters interpreted by sed in replacement strings.
  16739. case $configure_input in #(
  16740. *\&* | *\|* | *\\* )
  16741. ac_sed_conf_input=`$as_echo "$configure_input" |
  16742. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16743. *) ac_sed_conf_input=$configure_input;;
  16744. esac
  16745. case $ac_tag in
  16746. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16747. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16748. esac
  16749. ;;
  16750. esac
  16751. ac_dir=`$as_dirname -- "$ac_file" ||
  16752. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16753. X"$ac_file" : 'X\(//\)[^/]' \| \
  16754. X"$ac_file" : 'X\(//\)$' \| \
  16755. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16756. $as_echo X"$ac_file" |
  16757. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16758. s//\1/
  16759. q
  16760. }
  16761. /^X\(\/\/\)[^/].*/{
  16762. s//\1/
  16763. q
  16764. }
  16765. /^X\(\/\/\)$/{
  16766. s//\1/
  16767. q
  16768. }
  16769. /^X\(\/\).*/{
  16770. s//\1/
  16771. q
  16772. }
  16773. s/.*/./; q'`
  16774. as_dir="$ac_dir"; as_fn_mkdir_p
  16775. ac_builddir=.
  16776. case "$ac_dir" in
  16777. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16778. *)
  16779. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16780. # A ".." for each directory in $ac_dir_suffix.
  16781. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16782. case $ac_top_builddir_sub in
  16783. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16784. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16785. esac ;;
  16786. esac
  16787. ac_abs_top_builddir=$ac_pwd
  16788. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16789. # for backward compatibility:
  16790. ac_top_builddir=$ac_top_build_prefix
  16791. case $srcdir in
  16792. .) # We are building in place.
  16793. ac_srcdir=.
  16794. ac_top_srcdir=$ac_top_builddir_sub
  16795. ac_abs_top_srcdir=$ac_pwd ;;
  16796. [\\/]* | ?:[\\/]* ) # Absolute name.
  16797. ac_srcdir=$srcdir$ac_dir_suffix;
  16798. ac_top_srcdir=$srcdir
  16799. ac_abs_top_srcdir=$srcdir ;;
  16800. *) # Relative name.
  16801. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16802. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16803. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16804. esac
  16805. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16806. case $ac_mode in
  16807. :F)
  16808. #
  16809. # CONFIG_FILE
  16810. #
  16811. case $INSTALL in
  16812. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16813. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16814. esac
  16815. ac_MKDIR_P=$MKDIR_P
  16816. case $MKDIR_P in
  16817. [\\/$]* | ?:[\\/]* ) ;;
  16818. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16819. esac
  16820. _ACEOF
  16821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16822. # If the template does not know about datarootdir, expand it.
  16823. # FIXME: This hack should be removed a few years after 2.60.
  16824. ac_datarootdir_hack=; ac_datarootdir_seen=
  16825. ac_sed_dataroot='
  16826. /datarootdir/ {
  16827. p
  16828. q
  16829. }
  16830. /@datadir@/p
  16831. /@docdir@/p
  16832. /@infodir@/p
  16833. /@localedir@/p
  16834. /@mandir@/p'
  16835. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16836. *datarootdir*) ac_datarootdir_seen=yes;;
  16837. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16839. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16840. _ACEOF
  16841. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16842. ac_datarootdir_hack='
  16843. s&@datadir@&$datadir&g
  16844. s&@docdir@&$docdir&g
  16845. s&@infodir@&$infodir&g
  16846. s&@localedir@&$localedir&g
  16847. s&@mandir@&$mandir&g
  16848. s&\\\${datarootdir}&$datarootdir&g' ;;
  16849. esac
  16850. _ACEOF
  16851. # Neutralize VPATH when `$srcdir' = `.'.
  16852. # Shell code in configure.ac might set extrasub.
  16853. # FIXME: do we really want to maintain this feature?
  16854. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16855. ac_sed_extra="$ac_vpsub
  16856. $extrasub
  16857. _ACEOF
  16858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16859. :t
  16860. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16861. s|@configure_input@|$ac_sed_conf_input|;t t
  16862. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16863. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16864. s&@srcdir@&$ac_srcdir&;t t
  16865. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16866. s&@top_srcdir@&$ac_top_srcdir&;t t
  16867. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16868. s&@builddir@&$ac_builddir&;t t
  16869. s&@abs_builddir@&$ac_abs_builddir&;t t
  16870. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16871. s&@INSTALL@&$ac_INSTALL&;t t
  16872. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16873. $ac_datarootdir_hack
  16874. "
  16875. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16876. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16877. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16878. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16879. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16880. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16882. which seems to be undefined. Please make sure it is defined" >&5
  16883. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16884. which seems to be undefined. Please make sure it is defined" >&2;}
  16885. rm -f "$ac_tmp/stdin"
  16886. case $ac_file in
  16887. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16888. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16889. esac \
  16890. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16891. ;;
  16892. :H)
  16893. #
  16894. # CONFIG_HEADER
  16895. #
  16896. if test x"$ac_file" != x-; then
  16897. {
  16898. $as_echo "/* $configure_input */" \
  16899. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16900. } >"$ac_tmp/config.h" \
  16901. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16902. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16903. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16904. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16905. else
  16906. rm -f "$ac_file"
  16907. mv "$ac_tmp/config.h" "$ac_file" \
  16908. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16909. fi
  16910. else
  16911. $as_echo "/* $configure_input */" \
  16912. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16913. || as_fn_error $? "could not create -" "$LINENO" 5
  16914. fi
  16915. # Compute "$ac_file"'s index in $config_headers.
  16916. _am_arg="$ac_file"
  16917. _am_stamp_count=1
  16918. for _am_header in $config_headers :; do
  16919. case $_am_header in
  16920. $_am_arg | $_am_arg:* )
  16921. break ;;
  16922. * )
  16923. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16924. esac
  16925. done
  16926. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16927. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16928. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16929. X"$_am_arg" : 'X\(//\)$' \| \
  16930. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16931. $as_echo X"$_am_arg" |
  16932. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16933. s//\1/
  16934. q
  16935. }
  16936. /^X\(\/\/\)[^/].*/{
  16937. s//\1/
  16938. q
  16939. }
  16940. /^X\(\/\/\)$/{
  16941. s//\1/
  16942. q
  16943. }
  16944. /^X\(\/\).*/{
  16945. s//\1/
  16946. q
  16947. }
  16948. s/.*/./; q'`/stamp-h$_am_stamp_count
  16949. ;;
  16950. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16951. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16952. ;;
  16953. esac
  16954. case $ac_file$ac_mode in
  16955. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16956. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16957. # are listed without --file. Let's play safe and only enable the eval
  16958. # if we detect the quoting.
  16959. case $CONFIG_FILES in
  16960. *\'*) eval set x "$CONFIG_FILES" ;;
  16961. *) set x $CONFIG_FILES ;;
  16962. esac
  16963. shift
  16964. for mf
  16965. do
  16966. # Strip MF so we end up with the name of the file.
  16967. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16968. # Check whether this is an Automake generated Makefile or not.
  16969. # We used to match only the files named 'Makefile.in', but
  16970. # some people rename them; so instead we look at the file content.
  16971. # Grep'ing the first line is not enough: some people post-process
  16972. # each Makefile.in and add a new line on top of each file to say so.
  16973. # Grep'ing the whole file is not good either: AIX grep has a line
  16974. # limit of 2048, but all sed's we know have understand at least 4000.
  16975. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16976. dirpart=`$as_dirname -- "$mf" ||
  16977. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16978. X"$mf" : 'X\(//\)[^/]' \| \
  16979. X"$mf" : 'X\(//\)$' \| \
  16980. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16981. $as_echo X"$mf" |
  16982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16983. s//\1/
  16984. q
  16985. }
  16986. /^X\(\/\/\)[^/].*/{
  16987. s//\1/
  16988. q
  16989. }
  16990. /^X\(\/\/\)$/{
  16991. s//\1/
  16992. q
  16993. }
  16994. /^X\(\/\).*/{
  16995. s//\1/
  16996. q
  16997. }
  16998. s/.*/./; q'`
  16999. else
  17000. continue
  17001. fi
  17002. # Extract the definition of DEPDIR, am__include, and am__quote
  17003. # from the Makefile without running 'make'.
  17004. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17005. test -z "$DEPDIR" && continue
  17006. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17007. test -z "am__include" && continue
  17008. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17009. # Find all dependency output files, they are included files with
  17010. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17011. # simplest approach to changing $(DEPDIR) to its actual value in the
  17012. # expansion.
  17013. for file in `sed -n "
  17014. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17015. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17016. # Make sure the directory exists.
  17017. test -f "$dirpart/$file" && continue
  17018. fdir=`$as_dirname -- "$file" ||
  17019. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17020. X"$file" : 'X\(//\)[^/]' \| \
  17021. X"$file" : 'X\(//\)$' \| \
  17022. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17023. $as_echo X"$file" |
  17024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17025. s//\1/
  17026. q
  17027. }
  17028. /^X\(\/\/\)[^/].*/{
  17029. s//\1/
  17030. q
  17031. }
  17032. /^X\(\/\/\)$/{
  17033. s//\1/
  17034. q
  17035. }
  17036. /^X\(\/\).*/{
  17037. s//\1/
  17038. q
  17039. }
  17040. s/.*/./; q'`
  17041. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17042. # echo "creating $dirpart/$file"
  17043. echo '# dummy' > "$dirpart/$file"
  17044. done
  17045. done
  17046. }
  17047. ;;
  17048. "libtool":C)
  17049. # See if we are running on zsh, and set the options which allow our
  17050. # commands through without removal of \ escapes.
  17051. if test -n "${ZSH_VERSION+set}" ; then
  17052. setopt NO_GLOB_SUBST
  17053. fi
  17054. cfgfile="${ofile}T"
  17055. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17056. $RM "$cfgfile"
  17057. cat <<_LT_EOF >> "$cfgfile"
  17058. #! $SHELL
  17059. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17060. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17061. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17062. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17063. #
  17064. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17065. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  17066. # Foundation, Inc.
  17067. # Written by Gordon Matzigkeit, 1996
  17068. #
  17069. # This file is part of GNU Libtool.
  17070. #
  17071. # GNU Libtool is free software; you can redistribute it and/or
  17072. # modify it under the terms of the GNU General Public License as
  17073. # published by the Free Software Foundation; either version 2 of
  17074. # the License, or (at your option) any later version.
  17075. #
  17076. # As a special exception to the GNU General Public License,
  17077. # if you distribute this file as part of a program or library that
  17078. # is built using GNU Libtool, you may include this file under the
  17079. # same distribution terms that you use for the rest of that program.
  17080. #
  17081. # GNU Libtool is distributed in the hope that it will be useful,
  17082. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17083. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17084. # GNU General Public License for more details.
  17085. #
  17086. # You should have received a copy of the GNU General Public License
  17087. # along with GNU Libtool; see the file COPYING. If not, a copy
  17088. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17089. # obtained by writing to the Free Software Foundation, Inc.,
  17090. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17091. # The names of the tagged configurations supported by this script.
  17092. available_tags=""
  17093. # ### BEGIN LIBTOOL CONFIG
  17094. # Whether or not to build static libraries.
  17095. build_old_libs=$enable_static
  17096. # Which release of libtool.m4 was used?
  17097. macro_version=$macro_version
  17098. macro_revision=$macro_revision
  17099. # Whether or not to build shared libraries.
  17100. build_libtool_libs=$enable_shared
  17101. # What type of objects to build.
  17102. pic_mode=$pic_mode
  17103. # Whether or not to optimize for fast installation.
  17104. fast_install=$enable_fast_install
  17105. # Shell to use when invoking shell scripts.
  17106. SHELL=$lt_SHELL
  17107. # An echo program that protects backslashes.
  17108. ECHO=$lt_ECHO
  17109. # The PATH separator for the build system.
  17110. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17111. # The host system.
  17112. host_alias=$host_alias
  17113. host=$host
  17114. host_os=$host_os
  17115. # The build system.
  17116. build_alias=$build_alias
  17117. build=$build
  17118. build_os=$build_os
  17119. # A sed program that does not truncate output.
  17120. SED=$lt_SED
  17121. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17122. Xsed="\$SED -e 1s/^X//"
  17123. # A grep program that handles long lines.
  17124. GREP=$lt_GREP
  17125. # An ERE matcher.
  17126. EGREP=$lt_EGREP
  17127. # A literal string matcher.
  17128. FGREP=$lt_FGREP
  17129. # A BSD- or MS-compatible name lister.
  17130. NM=$lt_NM
  17131. # Whether we need soft or hard links.
  17132. LN_S=$lt_LN_S
  17133. # What is the maximum length of a command?
  17134. max_cmd_len=$max_cmd_len
  17135. # Object file suffix (normally "o").
  17136. objext=$ac_objext
  17137. # Executable file suffix (normally "").
  17138. exeext=$exeext
  17139. # whether the shell understands "unset".
  17140. lt_unset=$lt_unset
  17141. # turn spaces into newlines.
  17142. SP2NL=$lt_lt_SP2NL
  17143. # turn newlines into spaces.
  17144. NL2SP=$lt_lt_NL2SP
  17145. # convert \$build file names to \$host format.
  17146. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17147. # convert \$build files to toolchain format.
  17148. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17149. # An object symbol dumper.
  17150. OBJDUMP=$lt_OBJDUMP
  17151. # Method to check whether dependent libraries are shared objects.
  17152. deplibs_check_method=$lt_deplibs_check_method
  17153. # Command to use when deplibs_check_method = "file_magic".
  17154. file_magic_cmd=$lt_file_magic_cmd
  17155. # How to find potential files when deplibs_check_method = "file_magic".
  17156. file_magic_glob=$lt_file_magic_glob
  17157. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17158. want_nocaseglob=$lt_want_nocaseglob
  17159. # DLL creation program.
  17160. DLLTOOL=$lt_DLLTOOL
  17161. # Command to associate shared and link libraries.
  17162. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17163. # The archiver.
  17164. AR=$lt_AR
  17165. # Flags to create an archive.
  17166. AR_FLAGS=$lt_AR_FLAGS
  17167. # How to feed a file listing to the archiver.
  17168. archiver_list_spec=$lt_archiver_list_spec
  17169. # A symbol stripping program.
  17170. STRIP=$lt_STRIP
  17171. # Commands used to install an old-style archive.
  17172. RANLIB=$lt_RANLIB
  17173. old_postinstall_cmds=$lt_old_postinstall_cmds
  17174. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17175. # Whether to use a lock for old archive extraction.
  17176. lock_old_archive_extraction=$lock_old_archive_extraction
  17177. # A C compiler.
  17178. LTCC=$lt_CC
  17179. # LTCC compiler flags.
  17180. LTCFLAGS=$lt_CFLAGS
  17181. # Take the output of nm and produce a listing of raw symbols and C names.
  17182. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17183. # Transform the output of nm in a proper C declaration.
  17184. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17185. # Transform the output of nm in a C name address pair.
  17186. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17187. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17188. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17189. # Specify filename containing input files for \$NM.
  17190. nm_file_list_spec=$lt_nm_file_list_spec
  17191. # The root where to search for dependent libraries,and in which our libraries should be installed.
  17192. lt_sysroot=$lt_sysroot
  17193. # The name of the directory that contains temporary libtool files.
  17194. objdir=$objdir
  17195. # Used to examine libraries when file_magic_cmd begins with "file".
  17196. MAGIC_CMD=$MAGIC_CMD
  17197. # Must we lock files when doing compilation?
  17198. need_locks=$lt_need_locks
  17199. # Manifest tool.
  17200. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17201. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17202. DSYMUTIL=$lt_DSYMUTIL
  17203. # Tool to change global to local symbols on Mac OS X.
  17204. NMEDIT=$lt_NMEDIT
  17205. # Tool to manipulate fat objects and archives on Mac OS X.
  17206. LIPO=$lt_LIPO
  17207. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17208. OTOOL=$lt_OTOOL
  17209. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17210. OTOOL64=$lt_OTOOL64
  17211. # Old archive suffix (normally "a").
  17212. libext=$libext
  17213. # Shared library suffix (normally ".so").
  17214. shrext_cmds=$lt_shrext_cmds
  17215. # The commands to extract the exported symbol list from a shared archive.
  17216. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17217. # Variables whose values should be saved in libtool wrapper scripts and
  17218. # restored at link time.
  17219. variables_saved_for_relink=$lt_variables_saved_for_relink
  17220. # Do we need the "lib" prefix for modules?
  17221. need_lib_prefix=$need_lib_prefix
  17222. # Do we need a version for libraries?
  17223. need_version=$need_version
  17224. # Library versioning type.
  17225. version_type=$version_type
  17226. # Shared library runtime path variable.
  17227. runpath_var=$runpath_var
  17228. # Shared library path variable.
  17229. shlibpath_var=$shlibpath_var
  17230. # Is shlibpath searched before the hard-coded library search path?
  17231. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17232. # Format of library name prefix.
  17233. libname_spec=$lt_libname_spec
  17234. # List of archive names. First name is the real one, the rest are links.
  17235. # The last name is the one that the linker finds with -lNAME
  17236. library_names_spec=$lt_library_names_spec
  17237. # The coded name of the library, if different from the real name.
  17238. soname_spec=$lt_soname_spec
  17239. # Permission mode override for installation of shared libraries.
  17240. install_override_mode=$lt_install_override_mode
  17241. # Command to use after installation of a shared archive.
  17242. postinstall_cmds=$lt_postinstall_cmds
  17243. # Command to use after uninstallation of a shared archive.
  17244. postuninstall_cmds=$lt_postuninstall_cmds
  17245. # Commands used to finish a libtool library installation in a directory.
  17246. finish_cmds=$lt_finish_cmds
  17247. # As "finish_cmds", except a single script fragment to be evaled but
  17248. # not shown.
  17249. finish_eval=$lt_finish_eval
  17250. # Whether we should hardcode library paths into libraries.
  17251. hardcode_into_libs=$hardcode_into_libs
  17252. # Compile-time system search path for libraries.
  17253. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17254. # Run-time system search path for libraries.
  17255. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17256. # Whether dlopen is supported.
  17257. dlopen_support=$enable_dlopen
  17258. # Whether dlopen of programs is supported.
  17259. dlopen_self=$enable_dlopen_self
  17260. # Whether dlopen of statically linked programs is supported.
  17261. dlopen_self_static=$enable_dlopen_self_static
  17262. # Commands to strip libraries.
  17263. old_striplib=$lt_old_striplib
  17264. striplib=$lt_striplib
  17265. # The linker used to build libraries.
  17266. LD=$lt_LD
  17267. # How to create reloadable object files.
  17268. reload_flag=$lt_reload_flag
  17269. reload_cmds=$lt_reload_cmds
  17270. # Commands used to build an old-style archive.
  17271. old_archive_cmds=$lt_old_archive_cmds
  17272. # A language specific compiler.
  17273. CC=$lt_compiler
  17274. # Is the compiler the GNU compiler?
  17275. with_gcc=$GCC
  17276. # Compiler flag to turn off builtin functions.
  17277. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17278. # Additional compiler flags for building library objects.
  17279. pic_flag=$lt_lt_prog_compiler_pic
  17280. # How to pass a linker flag through the compiler.
  17281. wl=$lt_lt_prog_compiler_wl
  17282. # Compiler flag to prevent dynamic linking.
  17283. link_static_flag=$lt_lt_prog_compiler_static
  17284. # Does compiler simultaneously support -c and -o options?
  17285. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17286. # Whether or not to add -lc for building shared libraries.
  17287. build_libtool_need_lc=$archive_cmds_need_lc
  17288. # Whether or not to disallow shared libs when runtime libs are static.
  17289. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17290. # Compiler flag to allow reflexive dlopens.
  17291. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17292. # Compiler flag to generate shared objects directly from archives.
  17293. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17294. # Whether the compiler copes with passing no objects directly.
  17295. compiler_needs_object=$lt_compiler_needs_object
  17296. # Create an old-style archive from a shared archive.
  17297. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17298. # Create a temporary old-style archive to link instead of a shared archive.
  17299. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17300. # Commands used to build a shared archive.
  17301. archive_cmds=$lt_archive_cmds
  17302. archive_expsym_cmds=$lt_archive_expsym_cmds
  17303. # Commands used to build a loadable module if different from building
  17304. # a shared archive.
  17305. module_cmds=$lt_module_cmds
  17306. module_expsym_cmds=$lt_module_expsym_cmds
  17307. # Whether we are building with GNU ld or not.
  17308. with_gnu_ld=$lt_with_gnu_ld
  17309. # Flag that allows shared libraries with undefined symbols to be built.
  17310. allow_undefined_flag=$lt_allow_undefined_flag
  17311. # Flag that enforces no undefined symbols.
  17312. no_undefined_flag=$lt_no_undefined_flag
  17313. # Flag to hardcode \$libdir into a binary during linking.
  17314. # This must work even if \$libdir does not exist
  17315. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17316. # Whether we need a single "-rpath" flag with a separated argument.
  17317. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17318. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17319. # DIR into the resulting binary.
  17320. hardcode_direct=$hardcode_direct
  17321. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17322. # DIR into the resulting binary and the resulting library dependency is
  17323. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17324. # library is relocated.
  17325. hardcode_direct_absolute=$hardcode_direct_absolute
  17326. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17327. # into the resulting binary.
  17328. hardcode_minus_L=$hardcode_minus_L
  17329. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17330. # into the resulting binary.
  17331. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17332. # Set to "yes" if building a shared library automatically hardcodes DIR
  17333. # into the library and all subsequent libraries and executables linked
  17334. # against it.
  17335. hardcode_automatic=$hardcode_automatic
  17336. # Set to yes if linker adds runtime paths of dependent libraries
  17337. # to runtime path list.
  17338. inherit_rpath=$inherit_rpath
  17339. # Whether libtool must link a program against all its dependency libraries.
  17340. link_all_deplibs=$link_all_deplibs
  17341. # Set to "yes" if exported symbols are required.
  17342. always_export_symbols=$always_export_symbols
  17343. # The commands to list exported symbols.
  17344. export_symbols_cmds=$lt_export_symbols_cmds
  17345. # Symbols that should not be listed in the preloaded symbols.
  17346. exclude_expsyms=$lt_exclude_expsyms
  17347. # Symbols that must always be exported.
  17348. include_expsyms=$lt_include_expsyms
  17349. # Commands necessary for linking programs (against libraries) with templates.
  17350. prelink_cmds=$lt_prelink_cmds
  17351. # Commands necessary for finishing linking programs.
  17352. postlink_cmds=$lt_postlink_cmds
  17353. # Specify filename containing input files.
  17354. file_list_spec=$lt_file_list_spec
  17355. # How to hardcode a shared library path into an executable.
  17356. hardcode_action=$hardcode_action
  17357. # ### END LIBTOOL CONFIG
  17358. _LT_EOF
  17359. case $host_os in
  17360. aix3*)
  17361. cat <<\_LT_EOF >> "$cfgfile"
  17362. # AIX sometimes has problems with the GCC collect2 program. For some
  17363. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17364. # vanish in a puff of smoke.
  17365. if test "X${COLLECT_NAMES+set}" != Xset; then
  17366. COLLECT_NAMES=
  17367. export COLLECT_NAMES
  17368. fi
  17369. _LT_EOF
  17370. ;;
  17371. esac
  17372. ltmain="$ac_aux_dir/ltmain.sh"
  17373. # We use sed instead of cat because bash on DJGPP gets confused if
  17374. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17375. # text mode, it properly converts lines to CR/LF. This bash problem
  17376. # is reportedly fixed, but why not run on old versions too?
  17377. sed '$q' "$ltmain" >> "$cfgfile" \
  17378. || (rm -f "$cfgfile"; exit 1)
  17379. if test x"$xsi_shell" = xyes; then
  17380. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17381. func_dirname ()\
  17382. {\
  17383. \ case ${1} in\
  17384. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17385. \ * ) func_dirname_result="${3}" ;;\
  17386. \ esac\
  17387. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17388. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17389. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17390. test 0 -eq $? || _lt_function_replace_fail=:
  17391. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17392. func_basename ()\
  17393. {\
  17394. \ func_basename_result="${1##*/}"\
  17395. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17396. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17397. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17398. test 0 -eq $? || _lt_function_replace_fail=:
  17399. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17400. func_dirname_and_basename ()\
  17401. {\
  17402. \ case ${1} in\
  17403. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17404. \ * ) func_dirname_result="${3}" ;;\
  17405. \ esac\
  17406. \ func_basename_result="${1##*/}"\
  17407. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17408. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17409. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17410. test 0 -eq $? || _lt_function_replace_fail=:
  17411. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17412. func_stripname ()\
  17413. {\
  17414. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17415. \ # positional parameters, so assign one to ordinary parameter first.\
  17416. \ func_stripname_result=${3}\
  17417. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17418. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17419. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17420. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17421. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17422. test 0 -eq $? || _lt_function_replace_fail=:
  17423. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17424. func_split_long_opt ()\
  17425. {\
  17426. \ func_split_long_opt_name=${1%%=*}\
  17427. \ func_split_long_opt_arg=${1#*=}\
  17428. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17431. test 0 -eq $? || _lt_function_replace_fail=:
  17432. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17433. func_split_short_opt ()\
  17434. {\
  17435. \ func_split_short_opt_arg=${1#??}\
  17436. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17437. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17438. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17439. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17440. test 0 -eq $? || _lt_function_replace_fail=:
  17441. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17442. func_lo2o ()\
  17443. {\
  17444. \ case ${1} in\
  17445. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17446. \ *) func_lo2o_result=${1} ;;\
  17447. \ esac\
  17448. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17449. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17450. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17451. test 0 -eq $? || _lt_function_replace_fail=:
  17452. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17453. func_xform ()\
  17454. {\
  17455. func_xform_result=${1%.*}.lo\
  17456. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17457. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17458. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17459. test 0 -eq $? || _lt_function_replace_fail=:
  17460. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17461. func_arith ()\
  17462. {\
  17463. func_arith_result=$(( $* ))\
  17464. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17465. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17466. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17467. test 0 -eq $? || _lt_function_replace_fail=:
  17468. sed -e '/^func_len ()$/,/^} # func_len /c\
  17469. func_len ()\
  17470. {\
  17471. func_len_result=${#1}\
  17472. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17473. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17474. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17475. test 0 -eq $? || _lt_function_replace_fail=:
  17476. fi
  17477. if test x"$lt_shell_append" = xyes; then
  17478. sed -e '/^func_append ()$/,/^} # func_append /c\
  17479. func_append ()\
  17480. {\
  17481. eval "${1}+=\\${2}"\
  17482. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17483. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17484. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17485. test 0 -eq $? || _lt_function_replace_fail=:
  17486. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17487. func_append_quoted ()\
  17488. {\
  17489. \ func_quote_for_eval "${2}"\
  17490. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17491. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17492. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17493. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17494. test 0 -eq $? || _lt_function_replace_fail=:
  17495. # Save a `func_append' function call where possible by direct use of '+='
  17496. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17497. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17498. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17499. test 0 -eq $? || _lt_function_replace_fail=:
  17500. else
  17501. # Save a `func_append' function call even when '+=' is not available
  17502. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17503. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17504. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17505. test 0 -eq $? || _lt_function_replace_fail=:
  17506. fi
  17507. if test x"$_lt_function_replace_fail" = x":"; then
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17509. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17510. fi
  17511. mv -f "$cfgfile" "$ofile" ||
  17512. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17513. chmod +x "$ofile"
  17514. ;;
  17515. esac
  17516. done # for ac_tag
  17517. as_fn_exit 0
  17518. _ACEOF
  17519. ac_clean_files=$ac_clean_files_save
  17520. test $ac_write_fail = 0 ||
  17521. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17522. # configure is writing to config.log, and then calls config.status.
  17523. # config.status does its own redirection, appending to config.log.
  17524. # Unfortunately, on DOS this fails, as config.log is still kept open
  17525. # by configure, so config.status won't be able to write to it; its
  17526. # output is simply discarded. So we exec the FD to /dev/null,
  17527. # effectively closing config.log, so it can be properly (re)opened and
  17528. # appended to by config.status. When coming back to configure, we
  17529. # need to make the FD available again.
  17530. if test "$no_create" != yes; then
  17531. ac_cs_success=:
  17532. ac_config_status_args=
  17533. test "$silent" = yes &&
  17534. ac_config_status_args="$ac_config_status_args --quiet"
  17535. exec 5>/dev/null
  17536. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17537. exec 5>>config.log
  17538. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17539. # would make configure fail if this is the last instruction.
  17540. $ac_cs_success || as_fn_exit 1
  17541. fi
  17542. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17544. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17545. fi