configure 342 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xinput 1.6.1.
  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. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xinput'
  535. PACKAGE_TARNAME='xinput'
  536. PACKAGE_VERSION='1.6.1'
  537. PACKAGE_STRING='xinput 1.6.1'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XI22_LIBS
  581. XI22_CFLAGS
  582. XI21_LIBS
  583. XI21_CFLAGS
  584. HAVE_XI2
  585. HAVE_XI2_FALSE
  586. HAVE_XI2_TRUE
  587. XI2_LIBS
  588. XI2_CFLAGS
  589. XINPUT_LIBS
  590. XINPUT_CFLAGS
  591. AM_BACKSLASH
  592. AM_DEFAULT_VERBOSITY
  593. AM_DEFAULT_V
  594. AM_V
  595. MAN_SUBSTS
  596. XORG_MAN_PAGE
  597. ADMIN_MAN_DIR
  598. DRIVER_MAN_DIR
  599. MISC_MAN_DIR
  600. FILE_MAN_DIR
  601. LIB_MAN_DIR
  602. APP_MAN_DIR
  603. ADMIN_MAN_SUFFIX
  604. DRIVER_MAN_SUFFIX
  605. MISC_MAN_SUFFIX
  606. FILE_MAN_SUFFIX
  607. LIB_MAN_SUFFIX
  608. APP_MAN_SUFFIX
  609. SED
  610. host_os
  611. host_vendor
  612. host_cpu
  613. host
  614. build_os
  615. build_vendor
  616. build_cpu
  617. build
  618. INSTALL_CMD
  619. PKG_CONFIG_LIBDIR
  620. PKG_CONFIG_PATH
  621. PKG_CONFIG
  622. CHANGELOG_CMD
  623. STRICT_CFLAGS
  624. CWARNFLAGS
  625. BASE_CFLAGS
  626. EGREP
  627. GREP
  628. CPP
  629. am__fastdepCC_FALSE
  630. am__fastdepCC_TRUE
  631. CCDEPMODE
  632. am__nodep
  633. AMDEPBACKSLASH
  634. AMDEP_FALSE
  635. AMDEP_TRUE
  636. am__quote
  637. am__include
  638. DEPDIR
  639. OBJEXT
  640. EXEEXT
  641. ac_ct_CC
  642. CPPFLAGS
  643. LDFLAGS
  644. CFLAGS
  645. CC
  646. MAINT
  647. MAINTAINER_MODE_FALSE
  648. MAINTAINER_MODE_TRUE
  649. am__untar
  650. am__tar
  651. AMTAR
  652. am__leading_dot
  653. SET_MAKE
  654. AWK
  655. mkdir_p
  656. MKDIR_P
  657. INSTALL_STRIP_PROGRAM
  658. STRIP
  659. install_sh
  660. MAKEINFO
  661. AUTOHEADER
  662. AUTOMAKE
  663. AUTOCONF
  664. ACLOCAL
  665. VERSION
  666. PACKAGE
  667. CYGPATH_W
  668. am__isrc
  669. INSTALL_DATA
  670. INSTALL_SCRIPT
  671. INSTALL_PROGRAM
  672. target_alias
  673. host_alias
  674. build_alias
  675. LIBS
  676. ECHO_T
  677. ECHO_N
  678. ECHO_C
  679. DEFS
  680. mandir
  681. localedir
  682. libdir
  683. psdir
  684. pdfdir
  685. dvidir
  686. htmldir
  687. infodir
  688. docdir
  689. oldincludedir
  690. includedir
  691. localstatedir
  692. sharedstatedir
  693. sysconfdir
  694. datadir
  695. datarootdir
  696. libexecdir
  697. sbindir
  698. bindir
  699. program_transform_name
  700. prefix
  701. exec_prefix
  702. PACKAGE_URL
  703. PACKAGE_BUGREPORT
  704. PACKAGE_STRING
  705. PACKAGE_VERSION
  706. PACKAGE_TARNAME
  707. PACKAGE_NAME
  708. PATH_SEPARATOR
  709. SHELL'
  710. ac_subst_files=''
  711. ac_user_opts='
  712. enable_option_checking
  713. enable_maintainer_mode
  714. enable_dependency_tracking
  715. enable_selective_werror
  716. enable_strict_compilation
  717. enable_silent_rules
  718. '
  719. ac_precious_vars='build_alias
  720. host_alias
  721. target_alias
  722. CC
  723. CFLAGS
  724. LDFLAGS
  725. LIBS
  726. CPPFLAGS
  727. CPP
  728. PKG_CONFIG
  729. PKG_CONFIG_PATH
  730. PKG_CONFIG_LIBDIR
  731. XINPUT_CFLAGS
  732. XINPUT_LIBS
  733. XI2_CFLAGS
  734. XI2_LIBS
  735. XI21_CFLAGS
  736. XI21_LIBS
  737. XI22_CFLAGS
  738. XI22_LIBS'
  739. # Initialize some variables set by options.
  740. ac_init_help=
  741. ac_init_version=false
  742. ac_unrecognized_opts=
  743. ac_unrecognized_sep=
  744. # The variables have the same names as the options, with
  745. # dashes changed to underlines.
  746. cache_file=/dev/null
  747. exec_prefix=NONE
  748. no_create=
  749. no_recursion=
  750. prefix=NONE
  751. program_prefix=NONE
  752. program_suffix=NONE
  753. program_transform_name=s,x,x,
  754. silent=
  755. site=
  756. srcdir=
  757. verbose=
  758. x_includes=NONE
  759. x_libraries=NONE
  760. # Installation directory options.
  761. # These are left unexpanded so users can "make install exec_prefix=/foo"
  762. # and all the variables that are supposed to be based on exec_prefix
  763. # by default will actually change.
  764. # Use braces instead of parens because sh, perl, etc. also accept them.
  765. # (The list follows the same order as the GNU Coding Standards.)
  766. bindir='${exec_prefix}/bin'
  767. sbindir='${exec_prefix}/sbin'
  768. libexecdir='${exec_prefix}/libexec'
  769. datarootdir='${prefix}/share'
  770. datadir='${datarootdir}'
  771. sysconfdir='${prefix}/etc'
  772. sharedstatedir='${prefix}/com'
  773. localstatedir='${prefix}/var'
  774. includedir='${prefix}/include'
  775. oldincludedir='/usr/include'
  776. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  777. infodir='${datarootdir}/info'
  778. htmldir='${docdir}'
  779. dvidir='${docdir}'
  780. pdfdir='${docdir}'
  781. psdir='${docdir}'
  782. libdir='${exec_prefix}/lib'
  783. localedir='${datarootdir}/locale'
  784. mandir='${datarootdir}/man'
  785. ac_prev=
  786. ac_dashdash=
  787. for ac_option
  788. do
  789. # If the previous option needs an argument, assign it.
  790. if test -n "$ac_prev"; then
  791. eval $ac_prev=\$ac_option
  792. ac_prev=
  793. continue
  794. fi
  795. case $ac_option in
  796. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  797. *=) ac_optarg= ;;
  798. *) ac_optarg=yes ;;
  799. esac
  800. # Accept the important Cygnus configure options, so we can diagnose typos.
  801. case $ac_dashdash$ac_option in
  802. --)
  803. ac_dashdash=yes ;;
  804. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  805. ac_prev=bindir ;;
  806. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  807. bindir=$ac_optarg ;;
  808. -build | --build | --buil | --bui | --bu)
  809. ac_prev=build_alias ;;
  810. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  811. build_alias=$ac_optarg ;;
  812. -cache-file | --cache-file | --cache-fil | --cache-fi \
  813. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  814. ac_prev=cache_file ;;
  815. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  816. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  817. cache_file=$ac_optarg ;;
  818. --config-cache | -C)
  819. cache_file=config.cache ;;
  820. -datadir | --datadir | --datadi | --datad)
  821. ac_prev=datadir ;;
  822. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  823. datadir=$ac_optarg ;;
  824. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  825. | --dataroo | --dataro | --datar)
  826. ac_prev=datarootdir ;;
  827. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  828. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  829. datarootdir=$ac_optarg ;;
  830. -disable-* | --disable-*)
  831. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  832. # Reject names that are not valid shell variable names.
  833. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  834. as_fn_error $? "invalid feature name: $ac_useropt"
  835. ac_useropt_orig=$ac_useropt
  836. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  837. case $ac_user_opts in
  838. *"
  839. "enable_$ac_useropt"
  840. "*) ;;
  841. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  842. ac_unrecognized_sep=', ';;
  843. esac
  844. eval enable_$ac_useropt=no ;;
  845. -docdir | --docdir | --docdi | --doc | --do)
  846. ac_prev=docdir ;;
  847. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  848. docdir=$ac_optarg ;;
  849. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  850. ac_prev=dvidir ;;
  851. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  852. dvidir=$ac_optarg ;;
  853. -enable-* | --enable-*)
  854. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  855. # Reject names that are not valid shell variable names.
  856. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  857. as_fn_error $? "invalid feature name: $ac_useropt"
  858. ac_useropt_orig=$ac_useropt
  859. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  860. case $ac_user_opts in
  861. *"
  862. "enable_$ac_useropt"
  863. "*) ;;
  864. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  865. ac_unrecognized_sep=', ';;
  866. esac
  867. eval enable_$ac_useropt=\$ac_optarg ;;
  868. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  869. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  870. | --exec | --exe | --ex)
  871. ac_prev=exec_prefix ;;
  872. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  873. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  874. | --exec=* | --exe=* | --ex=*)
  875. exec_prefix=$ac_optarg ;;
  876. -gas | --gas | --ga | --g)
  877. # Obsolete; use --with-gas.
  878. with_gas=yes ;;
  879. -help | --help | --hel | --he | -h)
  880. ac_init_help=long ;;
  881. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  882. ac_init_help=recursive ;;
  883. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  884. ac_init_help=short ;;
  885. -host | --host | --hos | --ho)
  886. ac_prev=host_alias ;;
  887. -host=* | --host=* | --hos=* | --ho=*)
  888. host_alias=$ac_optarg ;;
  889. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  890. ac_prev=htmldir ;;
  891. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  892. | --ht=*)
  893. htmldir=$ac_optarg ;;
  894. -includedir | --includedir | --includedi | --included | --include \
  895. | --includ | --inclu | --incl | --inc)
  896. ac_prev=includedir ;;
  897. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  898. | --includ=* | --inclu=* | --incl=* | --inc=*)
  899. includedir=$ac_optarg ;;
  900. -infodir | --infodir | --infodi | --infod | --info | --inf)
  901. ac_prev=infodir ;;
  902. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  903. infodir=$ac_optarg ;;
  904. -libdir | --libdir | --libdi | --libd)
  905. ac_prev=libdir ;;
  906. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  907. libdir=$ac_optarg ;;
  908. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  909. | --libexe | --libex | --libe)
  910. ac_prev=libexecdir ;;
  911. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  912. | --libexe=* | --libex=* | --libe=*)
  913. libexecdir=$ac_optarg ;;
  914. -localedir | --localedir | --localedi | --localed | --locale)
  915. ac_prev=localedir ;;
  916. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  917. localedir=$ac_optarg ;;
  918. -localstatedir | --localstatedir | --localstatedi | --localstated \
  919. | --localstate | --localstat | --localsta | --localst | --locals)
  920. ac_prev=localstatedir ;;
  921. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  922. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  923. localstatedir=$ac_optarg ;;
  924. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  925. ac_prev=mandir ;;
  926. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  927. mandir=$ac_optarg ;;
  928. -nfp | --nfp | --nf)
  929. # Obsolete; use --without-fp.
  930. with_fp=no ;;
  931. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  932. | --no-cr | --no-c | -n)
  933. no_create=yes ;;
  934. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  935. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  936. no_recursion=yes ;;
  937. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  938. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  939. | --oldin | --oldi | --old | --ol | --o)
  940. ac_prev=oldincludedir ;;
  941. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  942. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  943. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  944. oldincludedir=$ac_optarg ;;
  945. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  946. ac_prev=prefix ;;
  947. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  948. prefix=$ac_optarg ;;
  949. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  950. | --program-pre | --program-pr | --program-p)
  951. ac_prev=program_prefix ;;
  952. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  953. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  954. program_prefix=$ac_optarg ;;
  955. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  956. | --program-suf | --program-su | --program-s)
  957. ac_prev=program_suffix ;;
  958. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  959. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  960. program_suffix=$ac_optarg ;;
  961. -program-transform-name | --program-transform-name \
  962. | --program-transform-nam | --program-transform-na \
  963. | --program-transform-n | --program-transform- \
  964. | --program-transform | --program-transfor \
  965. | --program-transfo | --program-transf \
  966. | --program-trans | --program-tran \
  967. | --progr-tra | --program-tr | --program-t)
  968. ac_prev=program_transform_name ;;
  969. -program-transform-name=* | --program-transform-name=* \
  970. | --program-transform-nam=* | --program-transform-na=* \
  971. | --program-transform-n=* | --program-transform-=* \
  972. | --program-transform=* | --program-transfor=* \
  973. | --program-transfo=* | --program-transf=* \
  974. | --program-trans=* | --program-tran=* \
  975. | --progr-tra=* | --program-tr=* | --program-t=*)
  976. program_transform_name=$ac_optarg ;;
  977. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  978. ac_prev=pdfdir ;;
  979. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  980. pdfdir=$ac_optarg ;;
  981. -psdir | --psdir | --psdi | --psd | --ps)
  982. ac_prev=psdir ;;
  983. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  984. psdir=$ac_optarg ;;
  985. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  986. | -silent | --silent | --silen | --sile | --sil)
  987. silent=yes ;;
  988. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  989. ac_prev=sbindir ;;
  990. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  991. | --sbi=* | --sb=*)
  992. sbindir=$ac_optarg ;;
  993. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  994. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  995. | --sharedst | --shareds | --shared | --share | --shar \
  996. | --sha | --sh)
  997. ac_prev=sharedstatedir ;;
  998. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  999. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1000. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1001. | --sha=* | --sh=*)
  1002. sharedstatedir=$ac_optarg ;;
  1003. -site | --site | --sit)
  1004. ac_prev=site ;;
  1005. -site=* | --site=* | --sit=*)
  1006. site=$ac_optarg ;;
  1007. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1008. ac_prev=srcdir ;;
  1009. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1010. srcdir=$ac_optarg ;;
  1011. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1012. | --syscon | --sysco | --sysc | --sys | --sy)
  1013. ac_prev=sysconfdir ;;
  1014. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1015. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1016. sysconfdir=$ac_optarg ;;
  1017. -target | --target | --targe | --targ | --tar | --ta | --t)
  1018. ac_prev=target_alias ;;
  1019. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1020. target_alias=$ac_optarg ;;
  1021. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1022. verbose=yes ;;
  1023. -version | --version | --versio | --versi | --vers | -V)
  1024. ac_init_version=: ;;
  1025. -with-* | --with-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid package name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "with_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval with_$ac_useropt=\$ac_optarg ;;
  1040. -without-* | --without-*)
  1041. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1042. # Reject names that are not valid shell variable names.
  1043. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1044. as_fn_error $? "invalid package name: $ac_useropt"
  1045. ac_useropt_orig=$ac_useropt
  1046. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1047. case $ac_user_opts in
  1048. *"
  1049. "with_$ac_useropt"
  1050. "*) ;;
  1051. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1052. ac_unrecognized_sep=', ';;
  1053. esac
  1054. eval with_$ac_useropt=no ;;
  1055. --x)
  1056. # Obsolete; use --with-x.
  1057. with_x=yes ;;
  1058. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1059. | --x-incl | --x-inc | --x-in | --x-i)
  1060. ac_prev=x_includes ;;
  1061. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1062. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1063. x_includes=$ac_optarg ;;
  1064. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1065. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1066. ac_prev=x_libraries ;;
  1067. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1068. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1069. x_libraries=$ac_optarg ;;
  1070. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1071. Try \`$0 --help' for more information"
  1072. ;;
  1073. *=*)
  1074. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1075. # Reject names that are not valid shell variable names.
  1076. case $ac_envvar in #(
  1077. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1078. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1079. esac
  1080. eval $ac_envvar=\$ac_optarg
  1081. export $ac_envvar ;;
  1082. *)
  1083. # FIXME: should be removed in autoconf 3.0.
  1084. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1085. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1086. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1087. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1088. ;;
  1089. esac
  1090. done
  1091. if test -n "$ac_prev"; then
  1092. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1093. as_fn_error $? "missing argument to $ac_option"
  1094. fi
  1095. if test -n "$ac_unrecognized_opts"; then
  1096. case $enable_option_checking in
  1097. no) ;;
  1098. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1099. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1100. esac
  1101. fi
  1102. # Check all directory arguments for consistency.
  1103. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1104. datadir sysconfdir sharedstatedir localstatedir includedir \
  1105. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1106. libdir localedir mandir
  1107. do
  1108. eval ac_val=\$$ac_var
  1109. # Remove trailing slashes.
  1110. case $ac_val in
  1111. */ )
  1112. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1113. eval $ac_var=\$ac_val;;
  1114. esac
  1115. # Be sure to have absolute directory names.
  1116. case $ac_val in
  1117. [\\/$]* | ?:[\\/]* ) continue;;
  1118. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1119. esac
  1120. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1121. done
  1122. # There might be people who depend on the old broken behavior: `$host'
  1123. # used to hold the argument of --host etc.
  1124. # FIXME: To remove some day.
  1125. build=$build_alias
  1126. host=$host_alias
  1127. target=$target_alias
  1128. # FIXME: To remove some day.
  1129. if test "x$host_alias" != x; then
  1130. if test "x$build_alias" = x; then
  1131. cross_compiling=maybe
  1132. elif test "x$build_alias" != "x$host_alias"; then
  1133. cross_compiling=yes
  1134. fi
  1135. fi
  1136. ac_tool_prefix=
  1137. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1138. test "$silent" = yes && exec 6>/dev/null
  1139. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1140. ac_ls_di=`ls -di .` &&
  1141. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1142. as_fn_error $? "working directory cannot be determined"
  1143. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1144. as_fn_error $? "pwd does not report name of working directory"
  1145. # Find the source files, if location was not specified.
  1146. if test -z "$srcdir"; then
  1147. ac_srcdir_defaulted=yes
  1148. # Try the directory containing this script, then the parent directory.
  1149. ac_confdir=`$as_dirname -- "$as_myself" ||
  1150. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1151. X"$as_myself" : 'X\(//\)[^/]' \| \
  1152. X"$as_myself" : 'X\(//\)$' \| \
  1153. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1154. $as_echo X"$as_myself" |
  1155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)[^/].*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\).*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. s/.*/./; q'`
  1172. srcdir=$ac_confdir
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. srcdir=..
  1175. fi
  1176. else
  1177. ac_srcdir_defaulted=no
  1178. fi
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1181. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1182. fi
  1183. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1184. ac_abs_confdir=`(
  1185. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1186. pwd)`
  1187. # When building in place, set srcdir=.
  1188. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1189. srcdir=.
  1190. fi
  1191. # Remove unnecessary trailing slashes from srcdir.
  1192. # Double slashes in file names in object file debugging info
  1193. # mess up M-x gdb in Emacs.
  1194. case $srcdir in
  1195. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1196. esac
  1197. for ac_var in $ac_precious_vars; do
  1198. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_env_${ac_var}_value=\$${ac_var}
  1200. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1202. done
  1203. #
  1204. # Report the --help message.
  1205. #
  1206. if test "$ac_init_help" = "long"; then
  1207. # Omit some internal or obsolete options to make the list less imposing.
  1208. # This message is too long to be a string in the A/UX 3.1 sh.
  1209. cat <<_ACEOF
  1210. \`configure' configures xinput 1.6.1 to adapt to many kinds of systems.
  1211. Usage: $0 [OPTION]... [VAR=VALUE]...
  1212. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1213. VAR=VALUE. See below for descriptions of some of the useful variables.
  1214. Defaults for the options are specified in brackets.
  1215. Configuration:
  1216. -h, --help display this help and exit
  1217. --help=short display options specific to this package
  1218. --help=recursive display the short help of all the included packages
  1219. -V, --version display version information and exit
  1220. -q, --quiet, --silent do not print \`checking ...' messages
  1221. --cache-file=FILE cache test results in FILE [disabled]
  1222. -C, --config-cache alias for \`--cache-file=config.cache'
  1223. -n, --no-create do not create output files
  1224. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1225. Installation directories:
  1226. --prefix=PREFIX install architecture-independent files in PREFIX
  1227. [$ac_default_prefix]
  1228. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1229. [PREFIX]
  1230. By default, \`make install' will install all the files in
  1231. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1232. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1233. for instance \`--prefix=\$HOME'.
  1234. For better control, use the options below.
  1235. Fine tuning of the installation directories:
  1236. --bindir=DIR user executables [EPREFIX/bin]
  1237. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1238. --libexecdir=DIR program executables [EPREFIX/libexec]
  1239. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1240. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1241. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1242. --libdir=DIR object code libraries [EPREFIX/lib]
  1243. --includedir=DIR C header files [PREFIX/include]
  1244. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1245. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1246. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1247. --infodir=DIR info documentation [DATAROOTDIR/info]
  1248. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1249. --mandir=DIR man documentation [DATAROOTDIR/man]
  1250. --docdir=DIR documentation root [DATAROOTDIR/doc/xinput]
  1251. --htmldir=DIR html documentation [DOCDIR]
  1252. --dvidir=DIR dvi documentation [DOCDIR]
  1253. --pdfdir=DIR pdf documentation [DOCDIR]
  1254. --psdir=DIR ps documentation [DOCDIR]
  1255. _ACEOF
  1256. cat <<\_ACEOF
  1257. Program names:
  1258. --program-prefix=PREFIX prepend PREFIX to installed program names
  1259. --program-suffix=SUFFIX append SUFFIX to installed program names
  1260. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1261. System types:
  1262. --build=BUILD configure for building on BUILD [guessed]
  1263. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. case $ac_init_help in
  1268. short | recursive ) echo "Configuration of xinput 1.6.1:";;
  1269. esac
  1270. cat <<\_ACEOF
  1271. Optional Features:
  1272. --disable-option-checking ignore unrecognized --enable/--with options
  1273. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1274. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1275. --enable-maintainer-mode
  1276. enable make rules and dependencies not useful (and
  1277. sometimes confusing) to the casual installer
  1278. --enable-dependency-tracking
  1279. do not reject slow dependency extractors
  1280. --disable-dependency-tracking
  1281. speeds up one-time build
  1282. --disable-selective-werror
  1283. Turn off selective compiler errors. (default:
  1284. enabled)
  1285. --enable-strict-compilation
  1286. Enable all warnings from compiler and make them
  1287. errors (default: disabled)
  1288. --enable-silent-rules less verbose build output (undo: "make V=1")
  1289. --disable-silent-rules verbose build output (undo: "make V=0")
  1290. Some influential environment variables:
  1291. CC C compiler command
  1292. CFLAGS C compiler flags
  1293. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1294. nonstandard directory <lib dir>
  1295. LIBS libraries to pass to the linker, e.g. -l<library>
  1296. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1297. you have headers in a nonstandard directory <include dir>
  1298. CPP C preprocessor
  1299. PKG_CONFIG path to pkg-config utility
  1300. PKG_CONFIG_PATH
  1301. directories to add to pkg-config's search path
  1302. PKG_CONFIG_LIBDIR
  1303. path overriding pkg-config's built-in search path
  1304. XINPUT_CFLAGS
  1305. C compiler flags for XINPUT, overriding pkg-config
  1306. XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
  1307. XI2_CFLAGS C compiler flags for XI2, overriding pkg-config
  1308. XI2_LIBS linker flags for XI2, overriding pkg-config
  1309. XI21_CFLAGS C compiler flags for XI21, overriding pkg-config
  1310. XI21_LIBS linker flags for XI21, overriding pkg-config
  1311. XI22_CFLAGS C compiler flags for XI22, overriding pkg-config
  1312. XI22_LIBS linker flags for XI22, overriding pkg-config
  1313. Use these variables to override the choices made by `configure' or to help
  1314. it to find libraries and programs with nonstandard names/locations.
  1315. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1316. _ACEOF
  1317. ac_status=$?
  1318. fi
  1319. if test "$ac_init_help" = "recursive"; then
  1320. # If there are subdirs, report their specific --help.
  1321. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1322. test -d "$ac_dir" ||
  1323. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1324. continue
  1325. ac_builddir=.
  1326. case "$ac_dir" in
  1327. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *)
  1329. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1330. # A ".." for each directory in $ac_dir_suffix.
  1331. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1332. case $ac_top_builddir_sub in
  1333. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1335. esac ;;
  1336. esac
  1337. ac_abs_top_builddir=$ac_pwd
  1338. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1339. # for backward compatibility:
  1340. ac_top_builddir=$ac_top_build_prefix
  1341. case $srcdir in
  1342. .) # We are building in place.
  1343. ac_srcdir=.
  1344. ac_top_srcdir=$ac_top_builddir_sub
  1345. ac_abs_top_srcdir=$ac_pwd ;;
  1346. [\\/]* | ?:[\\/]* ) # Absolute name.
  1347. ac_srcdir=$srcdir$ac_dir_suffix;
  1348. ac_top_srcdir=$srcdir
  1349. ac_abs_top_srcdir=$srcdir ;;
  1350. *) # Relative name.
  1351. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1352. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1353. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1354. esac
  1355. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1356. cd "$ac_dir" || { ac_status=$?; continue; }
  1357. # Check for guested configure.
  1358. if test -f "$ac_srcdir/configure.gnu"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1361. elif test -f "$ac_srcdir/configure"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure" --help=recursive
  1364. else
  1365. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1366. fi || ac_status=$?
  1367. cd "$ac_pwd" || { ac_status=$?; break; }
  1368. done
  1369. fi
  1370. test -n "$ac_init_help" && exit $ac_status
  1371. if $ac_init_version; then
  1372. cat <<\_ACEOF
  1373. xinput configure 1.6.1
  1374. generated by GNU Autoconf 2.69
  1375. Copyright (C) 2012 Free Software Foundation, Inc.
  1376. This configure script is free software; the Free Software Foundation
  1377. gives unlimited permission to copy, distribute and modify it.
  1378. _ACEOF
  1379. exit
  1380. fi
  1381. ## ------------------------ ##
  1382. ## Autoconf initialization. ##
  1383. ## ------------------------ ##
  1384. # ac_fn_c_try_compile LINENO
  1385. # --------------------------
  1386. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1387. ac_fn_c_try_compile ()
  1388. {
  1389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1390. rm -f conftest.$ac_objext
  1391. if { { ac_try="$ac_compile"
  1392. case "(($ac_try" in
  1393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1394. *) ac_try_echo=$ac_try;;
  1395. esac
  1396. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1397. $as_echo "$ac_try_echo"; } >&5
  1398. (eval "$ac_compile") 2>conftest.err
  1399. ac_status=$?
  1400. if test -s conftest.err; then
  1401. grep -v '^ *+' conftest.err >conftest.er1
  1402. cat conftest.er1 >&5
  1403. mv -f conftest.er1 conftest.err
  1404. fi
  1405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1406. test $ac_status = 0; } && {
  1407. test -z "$ac_c_werror_flag" ||
  1408. test ! -s conftest.err
  1409. } && test -s conftest.$ac_objext; then :
  1410. ac_retval=0
  1411. else
  1412. $as_echo "$as_me: failed program was:" >&5
  1413. sed 's/^/| /' conftest.$ac_ext >&5
  1414. ac_retval=1
  1415. fi
  1416. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1417. as_fn_set_status $ac_retval
  1418. } # ac_fn_c_try_compile
  1419. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1420. # ---------------------------------------------
  1421. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1422. # accordingly.
  1423. ac_fn_c_check_decl ()
  1424. {
  1425. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1426. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1427. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1429. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1430. if eval \${$3+:} false; then :
  1431. $as_echo_n "(cached) " >&6
  1432. else
  1433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1434. /* end confdefs.h. */
  1435. $4
  1436. int
  1437. main ()
  1438. {
  1439. #ifndef $as_decl_name
  1440. #ifdef __cplusplus
  1441. (void) $as_decl_use;
  1442. #else
  1443. (void) $as_decl_name;
  1444. #endif
  1445. #endif
  1446. ;
  1447. return 0;
  1448. }
  1449. _ACEOF
  1450. if ac_fn_c_try_compile "$LINENO"; then :
  1451. eval "$3=yes"
  1452. else
  1453. eval "$3=no"
  1454. fi
  1455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1456. fi
  1457. eval ac_res=\$$3
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1459. $as_echo "$ac_res" >&6; }
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. } # ac_fn_c_check_decl
  1462. # ac_fn_c_try_cpp LINENO
  1463. # ----------------------
  1464. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1465. ac_fn_c_try_cpp ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1469. case "(($ac_try" in
  1470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1471. *) ac_try_echo=$ac_try;;
  1472. esac
  1473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1474. $as_echo "$ac_try_echo"; } >&5
  1475. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1476. ac_status=$?
  1477. if test -s conftest.err; then
  1478. grep -v '^ *+' conftest.err >conftest.er1
  1479. cat conftest.er1 >&5
  1480. mv -f conftest.er1 conftest.err
  1481. fi
  1482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1483. test $ac_status = 0; } > conftest.i && {
  1484. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1485. test ! -s conftest.err
  1486. }; then :
  1487. ac_retval=0
  1488. else
  1489. $as_echo "$as_me: failed program was:" >&5
  1490. sed 's/^/| /' conftest.$ac_ext >&5
  1491. ac_retval=1
  1492. fi
  1493. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1494. as_fn_set_status $ac_retval
  1495. } # ac_fn_c_try_cpp
  1496. # ac_fn_c_try_run LINENO
  1497. # ----------------------
  1498. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1499. # that executables *can* be run.
  1500. ac_fn_c_try_run ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. if { { ac_try="$ac_link"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_link") 2>&5
  1511. ac_status=$?
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1514. { { case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_try") 2>&5
  1521. ac_status=$?
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; }; }; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: program exited with status $ac_status" >&5
  1527. $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_retval=$ac_status
  1530. fi
  1531. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. as_fn_set_status $ac_retval
  1534. } # ac_fn_c_try_run
  1535. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1536. # -------------------------------------------------------
  1537. # Tests whether HEADER exists and can be compiled using the include files in
  1538. # INCLUDES, setting the cache variable VAR accordingly.
  1539. ac_fn_c_check_header_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1543. $as_echo_n "checking for $2... " >&6; }
  1544. if eval \${$3+:} false; then :
  1545. $as_echo_n "(cached) " >&6
  1546. else
  1547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1548. /* end confdefs.h. */
  1549. $4
  1550. #include <$2>
  1551. _ACEOF
  1552. if ac_fn_c_try_compile "$LINENO"; then :
  1553. eval "$3=yes"
  1554. else
  1555. eval "$3=no"
  1556. fi
  1557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_c_check_header_compile
  1564. # ac_fn_c_try_link LINENO
  1565. # -----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1567. ac_fn_c_try_link ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. rm -f conftest.$ac_objext conftest$ac_exeext
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>conftest.err
  1579. ac_status=$?
  1580. if test -s conftest.err; then
  1581. grep -v '^ *+' conftest.err >conftest.er1
  1582. cat conftest.er1 >&5
  1583. mv -f conftest.er1 conftest.err
  1584. fi
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && {
  1587. test -z "$ac_c_werror_flag" ||
  1588. test ! -s conftest.err
  1589. } && test -s conftest$ac_exeext && {
  1590. test "$cross_compiling" = yes ||
  1591. test -x conftest$ac_exeext
  1592. }; then :
  1593. ac_retval=0
  1594. else
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=1
  1598. fi
  1599. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1600. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1601. # interfere with the next link command; also delete a directory that is
  1602. # left behind by Apple's compiler. We do this before executing the actions.
  1603. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. as_fn_set_status $ac_retval
  1606. } # ac_fn_c_try_link
  1607. cat >config.log <<_ACEOF
  1608. This file contains any messages produced by compilers while
  1609. running configure, to aid debugging if configure makes a mistake.
  1610. It was created by xinput $as_me 1.6.1, which was
  1611. generated by GNU Autoconf 2.69. Invocation command line was
  1612. $ $0 $@
  1613. _ACEOF
  1614. exec 5>>config.log
  1615. {
  1616. cat <<_ASUNAME
  1617. ## --------- ##
  1618. ## Platform. ##
  1619. ## --------- ##
  1620. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1621. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1622. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1623. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1624. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1625. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1626. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1627. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1628. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1629. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1630. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1631. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1632. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1633. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1634. _ASUNAME
  1635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1636. for as_dir in $PATH
  1637. do
  1638. IFS=$as_save_IFS
  1639. test -z "$as_dir" && as_dir=.
  1640. $as_echo "PATH: $as_dir"
  1641. done
  1642. IFS=$as_save_IFS
  1643. } >&5
  1644. cat >&5 <<_ACEOF
  1645. ## ----------- ##
  1646. ## Core tests. ##
  1647. ## ----------- ##
  1648. _ACEOF
  1649. # Keep a trace of the command line.
  1650. # Strip out --no-create and --no-recursion so they do not pile up.
  1651. # Strip out --silent because we don't want to record it for future runs.
  1652. # Also quote any args containing shell meta-characters.
  1653. # Make two passes to allow for proper duplicate-argument suppression.
  1654. ac_configure_args=
  1655. ac_configure_args0=
  1656. ac_configure_args1=
  1657. ac_must_keep_next=false
  1658. for ac_pass in 1 2
  1659. do
  1660. for ac_arg
  1661. do
  1662. case $ac_arg in
  1663. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1664. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1665. | -silent | --silent | --silen | --sile | --sil)
  1666. continue ;;
  1667. *\'*)
  1668. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1669. esac
  1670. case $ac_pass in
  1671. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1672. 2)
  1673. as_fn_append ac_configure_args1 " '$ac_arg'"
  1674. if test $ac_must_keep_next = true; then
  1675. ac_must_keep_next=false # Got value, back to normal.
  1676. else
  1677. case $ac_arg in
  1678. *=* | --config-cache | -C | -disable-* | --disable-* \
  1679. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1680. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1681. | -with-* | --with-* | -without-* | --without-* | --x)
  1682. case "$ac_configure_args0 " in
  1683. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1684. esac
  1685. ;;
  1686. -* ) ac_must_keep_next=true ;;
  1687. esac
  1688. fi
  1689. as_fn_append ac_configure_args " '$ac_arg'"
  1690. ;;
  1691. esac
  1692. done
  1693. done
  1694. { ac_configure_args0=; unset ac_configure_args0;}
  1695. { ac_configure_args1=; unset ac_configure_args1;}
  1696. # When interrupted or exit'd, cleanup temporary files, and complete
  1697. # config.log. We remove comments because anyway the quotes in there
  1698. # would cause problems or look ugly.
  1699. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1700. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1701. trap 'exit_status=$?
  1702. # Save into config.log some information that might help in debugging.
  1703. {
  1704. echo
  1705. $as_echo "## ---------------- ##
  1706. ## Cache variables. ##
  1707. ## ---------------- ##"
  1708. echo
  1709. # The following way of writing the cache mishandles newlines in values,
  1710. (
  1711. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1712. eval ac_val=\$$ac_var
  1713. case $ac_val in #(
  1714. *${as_nl}*)
  1715. case $ac_var in #(
  1716. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1717. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1718. esac
  1719. case $ac_var in #(
  1720. _ | IFS | as_nl) ;; #(
  1721. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1722. *) { eval $ac_var=; unset $ac_var;} ;;
  1723. esac ;;
  1724. esac
  1725. done
  1726. (set) 2>&1 |
  1727. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1728. *${as_nl}ac_space=\ *)
  1729. sed -n \
  1730. "s/'\''/'\''\\\\'\'''\''/g;
  1731. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1732. ;; #(
  1733. *)
  1734. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1735. ;;
  1736. esac |
  1737. sort
  1738. )
  1739. echo
  1740. $as_echo "## ----------------- ##
  1741. ## Output variables. ##
  1742. ## ----------------- ##"
  1743. echo
  1744. for ac_var in $ac_subst_vars
  1745. do
  1746. eval ac_val=\$$ac_var
  1747. case $ac_val in
  1748. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1749. esac
  1750. $as_echo "$ac_var='\''$ac_val'\''"
  1751. done | sort
  1752. echo
  1753. if test -n "$ac_subst_files"; then
  1754. $as_echo "## ------------------- ##
  1755. ## File substitutions. ##
  1756. ## ------------------- ##"
  1757. echo
  1758. for ac_var in $ac_subst_files
  1759. do
  1760. eval ac_val=\$$ac_var
  1761. case $ac_val in
  1762. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1763. esac
  1764. $as_echo "$ac_var='\''$ac_val'\''"
  1765. done | sort
  1766. echo
  1767. fi
  1768. if test -s confdefs.h; then
  1769. $as_echo "## ----------- ##
  1770. ## confdefs.h. ##
  1771. ## ----------- ##"
  1772. echo
  1773. cat confdefs.h
  1774. echo
  1775. fi
  1776. test "$ac_signal" != 0 &&
  1777. $as_echo "$as_me: caught signal $ac_signal"
  1778. $as_echo "$as_me: exit $exit_status"
  1779. } >&5
  1780. rm -f core *.core core.conftest.* &&
  1781. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1782. exit $exit_status
  1783. ' 0
  1784. for ac_signal in 1 2 13 15; do
  1785. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1786. done
  1787. ac_signal=0
  1788. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1789. rm -f -r conftest* confdefs.h
  1790. $as_echo "/* confdefs.h */" > confdefs.h
  1791. # Predefined preprocessor variables.
  1792. cat >>confdefs.h <<_ACEOF
  1793. #define PACKAGE_NAME "$PACKAGE_NAME"
  1794. _ACEOF
  1795. cat >>confdefs.h <<_ACEOF
  1796. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1797. _ACEOF
  1798. cat >>confdefs.h <<_ACEOF
  1799. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1800. _ACEOF
  1801. cat >>confdefs.h <<_ACEOF
  1802. #define PACKAGE_STRING "$PACKAGE_STRING"
  1803. _ACEOF
  1804. cat >>confdefs.h <<_ACEOF
  1805. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1806. _ACEOF
  1807. cat >>confdefs.h <<_ACEOF
  1808. #define PACKAGE_URL "$PACKAGE_URL"
  1809. _ACEOF
  1810. # Let the site file select an alternate cache file if it wants to.
  1811. # Prefer an explicitly selected file to automatically selected ones.
  1812. ac_site_file1=NONE
  1813. ac_site_file2=NONE
  1814. if test -n "$CONFIG_SITE"; then
  1815. # We do not want a PATH search for config.site.
  1816. case $CONFIG_SITE in #((
  1817. -*) ac_site_file1=./$CONFIG_SITE;;
  1818. */*) ac_site_file1=$CONFIG_SITE;;
  1819. *) ac_site_file1=./$CONFIG_SITE;;
  1820. esac
  1821. elif test "x$prefix" != xNONE; then
  1822. ac_site_file1=$prefix/share/config.site
  1823. ac_site_file2=$prefix/etc/config.site
  1824. else
  1825. ac_site_file1=$ac_default_prefix/share/config.site
  1826. ac_site_file2=$ac_default_prefix/etc/config.site
  1827. fi
  1828. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1829. do
  1830. test "x$ac_site_file" = xNONE && continue
  1831. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1833. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1834. sed 's/^/| /' "$ac_site_file" >&5
  1835. . "$ac_site_file" \
  1836. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1837. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1838. as_fn_error $? "failed to load site script $ac_site_file
  1839. See \`config.log' for more details" "$LINENO" 5; }
  1840. fi
  1841. done
  1842. if test -r "$cache_file"; then
  1843. # Some versions of bash will fail to source /dev/null (special files
  1844. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1845. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1847. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1848. case $cache_file in
  1849. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1850. *) . "./$cache_file";;
  1851. esac
  1852. fi
  1853. else
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1855. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1856. >$cache_file
  1857. fi
  1858. # Check that the precious variables saved in the cache have kept the same
  1859. # value.
  1860. ac_cache_corrupted=false
  1861. for ac_var in $ac_precious_vars; do
  1862. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1863. eval ac_new_set=\$ac_env_${ac_var}_set
  1864. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1865. eval ac_new_val=\$ac_env_${ac_var}_value
  1866. case $ac_old_set,$ac_new_set in
  1867. set,)
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1869. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1870. ac_cache_corrupted=: ;;
  1871. ,set)
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1873. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1874. ac_cache_corrupted=: ;;
  1875. ,);;
  1876. *)
  1877. if test "x$ac_old_val" != "x$ac_new_val"; then
  1878. # differences in whitespace do not lead to failure.
  1879. ac_old_val_w=`echo x $ac_old_val`
  1880. ac_new_val_w=`echo x $ac_new_val`
  1881. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1883. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1884. ac_cache_corrupted=:
  1885. else
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1887. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1888. eval $ac_var=\$ac_old_val
  1889. fi
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1891. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1893. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1894. fi;;
  1895. esac
  1896. # Pass precious variables to config.status.
  1897. if test "$ac_new_set" = set; then
  1898. case $ac_new_val in
  1899. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1900. *) ac_arg=$ac_var=$ac_new_val ;;
  1901. esac
  1902. case " $ac_configure_args " in
  1903. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1904. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1905. esac
  1906. fi
  1907. done
  1908. if $ac_cache_corrupted; then
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1912. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1913. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1914. fi
  1915. ## -------------------- ##
  1916. ## Main body of script. ##
  1917. ## -------------------- ##
  1918. ac_ext=c
  1919. ac_cpp='$CPP $CPPFLAGS'
  1920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1923. ac_config_headers="$ac_config_headers config.h"
  1924. # Initialize Automake
  1925. am__api_version='1.12'
  1926. ac_aux_dir=
  1927. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1928. if test -f "$ac_dir/install-sh"; then
  1929. ac_aux_dir=$ac_dir
  1930. ac_install_sh="$ac_aux_dir/install-sh -c"
  1931. break
  1932. elif test -f "$ac_dir/install.sh"; then
  1933. ac_aux_dir=$ac_dir
  1934. ac_install_sh="$ac_aux_dir/install.sh -c"
  1935. break
  1936. elif test -f "$ac_dir/shtool"; then
  1937. ac_aux_dir=$ac_dir
  1938. ac_install_sh="$ac_aux_dir/shtool install -c"
  1939. break
  1940. fi
  1941. done
  1942. if test -z "$ac_aux_dir"; then
  1943. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1944. fi
  1945. # These three variables are undocumented and unsupported,
  1946. # and are intended to be withdrawn in a future Autoconf release.
  1947. # They can cause serious problems if a builder's source tree is in a directory
  1948. # whose full name contains unusual characters.
  1949. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1950. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1951. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1952. # Find a good install program. We prefer a C program (faster),
  1953. # so one script is as good as another. But avoid the broken or
  1954. # incompatible versions:
  1955. # SysV /etc/install, /usr/sbin/install
  1956. # SunOS /usr/etc/install
  1957. # IRIX /sbin/install
  1958. # AIX /bin/install
  1959. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1960. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1961. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1962. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1963. # OS/2's system install, which has a completely different semantic
  1964. # ./install, which can be erroneously created by make from ./install.sh.
  1965. # Reject install programs that cannot install multiple files.
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1967. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1968. if test -z "$INSTALL"; then
  1969. if ${ac_cv_path_install+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1973. for as_dir in $PATH
  1974. do
  1975. IFS=$as_save_IFS
  1976. test -z "$as_dir" && as_dir=.
  1977. # Account for people who put trailing slashes in PATH elements.
  1978. case $as_dir/ in #((
  1979. ./ | .// | /[cC]/* | \
  1980. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1981. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1982. /usr/ucb/* ) ;;
  1983. *)
  1984. # OSF1 and SCO ODT 3.0 have their own names for install.
  1985. # Don't use installbsd from OSF since it installs stuff as root
  1986. # by default.
  1987. for ac_prog in ginstall scoinst install; do
  1988. for ac_exec_ext in '' $ac_executable_extensions; do
  1989. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1990. if test $ac_prog = install &&
  1991. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1992. # AIX install. It has an incompatible calling convention.
  1993. :
  1994. elif test $ac_prog = install &&
  1995. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1996. # program-specific install script used by HP pwplus--don't use.
  1997. :
  1998. else
  1999. rm -rf conftest.one conftest.two conftest.dir
  2000. echo one > conftest.one
  2001. echo two > conftest.two
  2002. mkdir conftest.dir
  2003. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2004. test -s conftest.one && test -s conftest.two &&
  2005. test -s conftest.dir/conftest.one &&
  2006. test -s conftest.dir/conftest.two
  2007. then
  2008. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2009. break 3
  2010. fi
  2011. fi
  2012. fi
  2013. done
  2014. done
  2015. ;;
  2016. esac
  2017. done
  2018. IFS=$as_save_IFS
  2019. rm -rf conftest.one conftest.two conftest.dir
  2020. fi
  2021. if test "${ac_cv_path_install+set}" = set; then
  2022. INSTALL=$ac_cv_path_install
  2023. else
  2024. # As a last resort, use the slow shell script. Don't cache a
  2025. # value for INSTALL within a source directory, because that will
  2026. # break other packages using the cache if that directory is
  2027. # removed, or if the value is a relative name.
  2028. INSTALL=$ac_install_sh
  2029. fi
  2030. fi
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2032. $as_echo "$INSTALL" >&6; }
  2033. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2034. # It thinks the first close brace ends the variable substitution.
  2035. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2036. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2037. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2039. $as_echo_n "checking whether build environment is sane... " >&6; }
  2040. # Reject unsafe characters in $srcdir or the absolute working directory
  2041. # name. Accept space and tab only in the latter.
  2042. am_lf='
  2043. '
  2044. case `pwd` in
  2045. *[\\\"\#\$\&\'\`$am_lf]*)
  2046. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2047. esac
  2048. case $srcdir in
  2049. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2050. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2051. esac
  2052. # Do 'set' in a subshell so we don't clobber the current shell's
  2053. # arguments. Must try -L first in case configure is actually a
  2054. # symlink; some systems play weird games with the mod time of symlinks
  2055. # (eg FreeBSD returns the mod time of the symlink's containing
  2056. # directory).
  2057. if (
  2058. am_has_slept=no
  2059. for am_try in 1 2; do
  2060. echo "timestamp, slept: $am_has_slept" > conftest.file
  2061. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2062. if test "$*" = "X"; then
  2063. # -L didn't work.
  2064. set X `ls -t "$srcdir/configure" conftest.file`
  2065. fi
  2066. if test "$*" != "X $srcdir/configure conftest.file" \
  2067. && test "$*" != "X conftest.file $srcdir/configure"; then
  2068. # If neither matched, then we have a broken ls. This can happen
  2069. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2070. # broken ls alias from the environment. This has actually
  2071. # happened. Such a system could not be considered "sane".
  2072. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2073. alias in your environment" "$LINENO" 5
  2074. fi
  2075. if test "$2" = conftest.file || test $am_try -eq 2; then
  2076. break
  2077. fi
  2078. # Just in case.
  2079. sleep 1
  2080. am_has_slept=yes
  2081. done
  2082. test "$2" = conftest.file
  2083. )
  2084. then
  2085. # Ok.
  2086. :
  2087. else
  2088. as_fn_error $? "newly created file is older than distributed files!
  2089. Check your system clock" "$LINENO" 5
  2090. fi
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2092. $as_echo "yes" >&6; }
  2093. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2094. # generated files are strictly newer.
  2095. am_sleep_pid=
  2096. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2097. ( sleep 1 ) &
  2098. am_sleep_pid=$!
  2099. fi
  2100. rm -f conftest.file
  2101. test "$program_prefix" != NONE &&
  2102. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2103. # Use a double $ so make ignores it.
  2104. test "$program_suffix" != NONE &&
  2105. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2106. # Double any \ or $.
  2107. # By default was `s,x,x', remove it if useless.
  2108. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2109. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2110. # expand $ac_aux_dir to an absolute path
  2111. am_aux_dir=`cd $ac_aux_dir && pwd`
  2112. if test x"${MISSING+set}" != xset; then
  2113. case $am_aux_dir in
  2114. *\ * | *\ *)
  2115. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2116. *)
  2117. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2118. esac
  2119. fi
  2120. # Use eval to expand $SHELL
  2121. if eval "$MISSING --run true"; then
  2122. am_missing_run="$MISSING --run "
  2123. else
  2124. am_missing_run=
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2126. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2127. fi
  2128. if test x"${install_sh}" != xset; then
  2129. case $am_aux_dir in
  2130. *\ * | *\ *)
  2131. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2132. *)
  2133. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2134. esac
  2135. fi
  2136. # Installed binaries are usually stripped using 'strip' when the user
  2137. # run "make install-strip". However 'strip' might not be the right
  2138. # tool to use in cross-compilation environments, therefore Automake
  2139. # will honor the 'STRIP' environment variable to overrule this program.
  2140. if test "$cross_compiling" != no; then
  2141. if test -n "$ac_tool_prefix"; then
  2142. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2143. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2145. $as_echo_n "checking for $ac_word... " >&6; }
  2146. if ${ac_cv_prog_STRIP+:} false; then :
  2147. $as_echo_n "(cached) " >&6
  2148. else
  2149. if test -n "$STRIP"; then
  2150. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2151. else
  2152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2153. for as_dir in $PATH
  2154. do
  2155. IFS=$as_save_IFS
  2156. test -z "$as_dir" && as_dir=.
  2157. for ac_exec_ext in '' $ac_executable_extensions; do
  2158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2159. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2161. break 2
  2162. fi
  2163. done
  2164. done
  2165. IFS=$as_save_IFS
  2166. fi
  2167. fi
  2168. STRIP=$ac_cv_prog_STRIP
  2169. if test -n "$STRIP"; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2171. $as_echo "$STRIP" >&6; }
  2172. else
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2174. $as_echo "no" >&6; }
  2175. fi
  2176. fi
  2177. if test -z "$ac_cv_prog_STRIP"; then
  2178. ac_ct_STRIP=$STRIP
  2179. # Extract the first word of "strip", so it can be a program name with args.
  2180. set dummy strip; ac_word=$2
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2182. $as_echo_n "checking for $ac_word... " >&6; }
  2183. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2184. $as_echo_n "(cached) " >&6
  2185. else
  2186. if test -n "$ac_ct_STRIP"; then
  2187. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2188. else
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. for ac_exec_ext in '' $ac_executable_extensions; do
  2195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2196. ac_cv_prog_ac_ct_STRIP="strip"
  2197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2198. break 2
  2199. fi
  2200. done
  2201. done
  2202. IFS=$as_save_IFS
  2203. fi
  2204. fi
  2205. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2206. if test -n "$ac_ct_STRIP"; then
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2208. $as_echo "$ac_ct_STRIP" >&6; }
  2209. else
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2211. $as_echo "no" >&6; }
  2212. fi
  2213. if test "x$ac_ct_STRIP" = x; then
  2214. STRIP=":"
  2215. else
  2216. case $cross_compiling:$ac_tool_warned in
  2217. yes:)
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2220. ac_tool_warned=yes ;;
  2221. esac
  2222. STRIP=$ac_ct_STRIP
  2223. fi
  2224. else
  2225. STRIP="$ac_cv_prog_STRIP"
  2226. fi
  2227. fi
  2228. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2230. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2231. if test -z "$MKDIR_P"; then
  2232. if ${ac_cv_path_mkdir+:} false; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2236. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2237. do
  2238. IFS=$as_save_IFS
  2239. test -z "$as_dir" && as_dir=.
  2240. for ac_prog in mkdir gmkdir; do
  2241. for ac_exec_ext in '' $ac_executable_extensions; do
  2242. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2243. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2244. 'mkdir (GNU coreutils) '* | \
  2245. 'mkdir (coreutils) '* | \
  2246. 'mkdir (fileutils) '4.1*)
  2247. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2248. break 3;;
  2249. esac
  2250. done
  2251. done
  2252. done
  2253. IFS=$as_save_IFS
  2254. fi
  2255. test -d ./--version && rmdir ./--version
  2256. if test "${ac_cv_path_mkdir+set}" = set; then
  2257. MKDIR_P="$ac_cv_path_mkdir -p"
  2258. else
  2259. # As a last resort, use the slow shell script. Don't cache a
  2260. # value for MKDIR_P within a source directory, because that will
  2261. # break other packages using the cache if that directory is
  2262. # removed, or if the value is a relative name.
  2263. MKDIR_P="$ac_install_sh -d"
  2264. fi
  2265. fi
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2267. $as_echo "$MKDIR_P" >&6; }
  2268. for ac_prog in gawk mawk nawk awk
  2269. do
  2270. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2271. set dummy $ac_prog; ac_word=$2
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2273. $as_echo_n "checking for $ac_word... " >&6; }
  2274. if ${ac_cv_prog_AWK+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test -n "$AWK"; then
  2278. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2287. ac_cv_prog_AWK="$ac_prog"
  2288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2289. break 2
  2290. fi
  2291. done
  2292. done
  2293. IFS=$as_save_IFS
  2294. fi
  2295. fi
  2296. AWK=$ac_cv_prog_AWK
  2297. if test -n "$AWK"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2299. $as_echo "$AWK" >&6; }
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. fi
  2304. test -n "$AWK" && break
  2305. done
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2307. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2308. set x ${MAKE-make}
  2309. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2310. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. cat >conftest.make <<\_ACEOF
  2314. SHELL = /bin/sh
  2315. all:
  2316. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2317. _ACEOF
  2318. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2319. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2320. *@@@%%%=?*=@@@%%%*)
  2321. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2322. *)
  2323. eval ac_cv_prog_make_${ac_make}_set=no;;
  2324. esac
  2325. rm -f conftest.make
  2326. fi
  2327. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2329. $as_echo "yes" >&6; }
  2330. SET_MAKE=
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2333. $as_echo "no" >&6; }
  2334. SET_MAKE="MAKE=${MAKE-make}"
  2335. fi
  2336. rm -rf .tst 2>/dev/null
  2337. mkdir .tst 2>/dev/null
  2338. if test -d .tst; then
  2339. am__leading_dot=.
  2340. else
  2341. am__leading_dot=_
  2342. fi
  2343. rmdir .tst 2>/dev/null
  2344. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2345. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2346. # is not polluted with repeated "-I."
  2347. am__isrc=' -I$(srcdir)'
  2348. # test to see if srcdir already configured
  2349. if test -f $srcdir/config.status; then
  2350. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2351. fi
  2352. fi
  2353. # test whether we have cygpath
  2354. if test -z "$CYGPATH_W"; then
  2355. if (cygpath --version) >/dev/null 2>/dev/null; then
  2356. CYGPATH_W='cygpath -w'
  2357. else
  2358. CYGPATH_W=echo
  2359. fi
  2360. fi
  2361. # Define the identity of the package.
  2362. PACKAGE='xinput'
  2363. VERSION='1.6.1'
  2364. cat >>confdefs.h <<_ACEOF
  2365. #define PACKAGE "$PACKAGE"
  2366. _ACEOF
  2367. cat >>confdefs.h <<_ACEOF
  2368. #define VERSION "$VERSION"
  2369. _ACEOF
  2370. # Some tools Automake needs.
  2371. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2372. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2373. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2374. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2375. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2376. # For better backward compatibility. To be removed once Automake 1.9.x
  2377. # dies out for good. For more background, see:
  2378. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2379. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2380. mkdir_p='$(MKDIR_P)'
  2381. # We need awk for the "check" target. The system "awk" is bad on
  2382. # some platforms.
  2383. # Always define AMTAR for backward compatibility. Yes, it's still used
  2384. # in the wild :-( We should find a proper way to deprecate it ...
  2385. AMTAR='$${TAR-tar}'
  2386. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2388. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2389. # Check whether --enable-maintainer-mode was given.
  2390. if test "${enable_maintainer_mode+set}" = set; then :
  2391. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2392. else
  2393. USE_MAINTAINER_MODE=no
  2394. fi
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2396. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2397. if test $USE_MAINTAINER_MODE = yes; then
  2398. MAINTAINER_MODE_TRUE=
  2399. MAINTAINER_MODE_FALSE='#'
  2400. else
  2401. MAINTAINER_MODE_TRUE='#'
  2402. MAINTAINER_MODE_FALSE=
  2403. fi
  2404. MAINT=$MAINTAINER_MODE_TRUE
  2405. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2406. DEPDIR="${am__leading_dot}deps"
  2407. ac_config_commands="$ac_config_commands depfiles"
  2408. am_make=${MAKE-make}
  2409. cat > confinc << 'END'
  2410. am__doit:
  2411. @echo this is the am__doit target
  2412. .PHONY: am__doit
  2413. END
  2414. # If we don't find an include directive, just comment out the code.
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2416. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2417. am__include="#"
  2418. am__quote=
  2419. _am_result=none
  2420. # First try GNU make style include.
  2421. echo "include confinc" > confmf
  2422. # Ignore all kinds of additional output from 'make'.
  2423. case `$am_make -s -f confmf 2> /dev/null` in #(
  2424. *the\ am__doit\ target*)
  2425. am__include=include
  2426. am__quote=
  2427. _am_result=GNU
  2428. ;;
  2429. esac
  2430. # Now try BSD make style include.
  2431. if test "$am__include" = "#"; then
  2432. echo '.include "confinc"' > confmf
  2433. case `$am_make -s -f confmf 2> /dev/null` in #(
  2434. *the\ am__doit\ target*)
  2435. am__include=.include
  2436. am__quote="\""
  2437. _am_result=BSD
  2438. ;;
  2439. esac
  2440. fi
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2442. $as_echo "$_am_result" >&6; }
  2443. rm -f confinc confmf
  2444. # Check whether --enable-dependency-tracking was given.
  2445. if test "${enable_dependency_tracking+set}" = set; then :
  2446. enableval=$enable_dependency_tracking;
  2447. fi
  2448. if test "x$enable_dependency_tracking" != xno; then
  2449. am_depcomp="$ac_aux_dir/depcomp"
  2450. AMDEPBACKSLASH='\'
  2451. am__nodep='_no'
  2452. fi
  2453. if test "x$enable_dependency_tracking" != xno; then
  2454. AMDEP_TRUE=
  2455. AMDEP_FALSE='#'
  2456. else
  2457. AMDEP_TRUE='#'
  2458. AMDEP_FALSE=
  2459. fi
  2460. ac_ext=c
  2461. ac_cpp='$CPP $CPPFLAGS'
  2462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2465. if test -n "$ac_tool_prefix"; then
  2466. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2467. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2469. $as_echo_n "checking for $ac_word... " >&6; }
  2470. if ${ac_cv_prog_CC+:} false; then :
  2471. $as_echo_n "(cached) " >&6
  2472. else
  2473. if test -n "$CC"; then
  2474. ac_cv_prog_CC="$CC" # Let the user override the test.
  2475. else
  2476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2477. for as_dir in $PATH
  2478. do
  2479. IFS=$as_save_IFS
  2480. test -z "$as_dir" && as_dir=.
  2481. for ac_exec_ext in '' $ac_executable_extensions; do
  2482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2483. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. fi
  2491. fi
  2492. CC=$ac_cv_prog_CC
  2493. if test -n "$CC"; then
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2495. $as_echo "$CC" >&6; }
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2498. $as_echo "no" >&6; }
  2499. fi
  2500. fi
  2501. if test -z "$ac_cv_prog_CC"; then
  2502. ac_ct_CC=$CC
  2503. # Extract the first word of "gcc", so it can be a program name with args.
  2504. set dummy gcc; ac_word=$2
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2506. $as_echo_n "checking for $ac_word... " >&6; }
  2507. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2508. $as_echo_n "(cached) " >&6
  2509. else
  2510. if test -n "$ac_ct_CC"; then
  2511. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2512. else
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516. IFS=$as_save_IFS
  2517. test -z "$as_dir" && as_dir=.
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2520. ac_cv_prog_ac_ct_CC="gcc"
  2521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. IFS=$as_save_IFS
  2527. fi
  2528. fi
  2529. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2530. if test -n "$ac_ct_CC"; then
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2532. $as_echo "$ac_ct_CC" >&6; }
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2535. $as_echo "no" >&6; }
  2536. fi
  2537. if test "x$ac_ct_CC" = x; then
  2538. CC=""
  2539. else
  2540. case $cross_compiling:$ac_tool_warned in
  2541. yes:)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2544. ac_tool_warned=yes ;;
  2545. esac
  2546. CC=$ac_ct_CC
  2547. fi
  2548. else
  2549. CC="$ac_cv_prog_CC"
  2550. fi
  2551. if test -z "$CC"; then
  2552. if test -n "$ac_tool_prefix"; then
  2553. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2554. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2556. $as_echo_n "checking for $ac_word... " >&6; }
  2557. if ${ac_cv_prog_CC+:} false; then :
  2558. $as_echo_n "(cached) " >&6
  2559. else
  2560. if test -n "$CC"; then
  2561. ac_cv_prog_CC="$CC" # Let the user override the test.
  2562. else
  2563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2564. for as_dir in $PATH
  2565. do
  2566. IFS=$as_save_IFS
  2567. test -z "$as_dir" && as_dir=.
  2568. for ac_exec_ext in '' $ac_executable_extensions; do
  2569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2570. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2572. break 2
  2573. fi
  2574. done
  2575. done
  2576. IFS=$as_save_IFS
  2577. fi
  2578. fi
  2579. CC=$ac_cv_prog_CC
  2580. if test -n "$CC"; then
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2582. $as_echo "$CC" >&6; }
  2583. else
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2585. $as_echo "no" >&6; }
  2586. fi
  2587. fi
  2588. fi
  2589. if test -z "$CC"; then
  2590. # Extract the first word of "cc", so it can be a program name with args.
  2591. set dummy cc; ac_word=$2
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2593. $as_echo_n "checking for $ac_word... " >&6; }
  2594. if ${ac_cv_prog_CC+:} false; then :
  2595. $as_echo_n "(cached) " >&6
  2596. else
  2597. if test -n "$CC"; then
  2598. ac_cv_prog_CC="$CC" # Let the user override the test.
  2599. else
  2600. ac_prog_rejected=no
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2608. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2609. ac_prog_rejected=yes
  2610. continue
  2611. fi
  2612. ac_cv_prog_CC="cc"
  2613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2614. break 2
  2615. fi
  2616. done
  2617. done
  2618. IFS=$as_save_IFS
  2619. if test $ac_prog_rejected = yes; then
  2620. # We found a bogon in the path, so make sure we never use it.
  2621. set dummy $ac_cv_prog_CC
  2622. shift
  2623. if test $# != 0; then
  2624. # We chose a different compiler from the bogus one.
  2625. # However, it has the same basename, so the bogon will be chosen
  2626. # first if we set CC to just the basename; use the full file name.
  2627. shift
  2628. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2629. fi
  2630. fi
  2631. fi
  2632. fi
  2633. CC=$ac_cv_prog_CC
  2634. if test -n "$CC"; then
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2636. $as_echo "$CC" >&6; }
  2637. else
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2639. $as_echo "no" >&6; }
  2640. fi
  2641. fi
  2642. if test -z "$CC"; then
  2643. if test -n "$ac_tool_prefix"; then
  2644. for ac_prog in cl.exe
  2645. do
  2646. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2647. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2649. $as_echo_n "checking for $ac_word... " >&6; }
  2650. if ${ac_cv_prog_CC+:} false; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. if test -n "$CC"; then
  2654. ac_cv_prog_CC="$CC" # Let the user override the test.
  2655. else
  2656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2657. for as_dir in $PATH
  2658. do
  2659. IFS=$as_save_IFS
  2660. test -z "$as_dir" && as_dir=.
  2661. for ac_exec_ext in '' $ac_executable_extensions; do
  2662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2663. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665. break 2
  2666. fi
  2667. done
  2668. done
  2669. IFS=$as_save_IFS
  2670. fi
  2671. fi
  2672. CC=$ac_cv_prog_CC
  2673. if test -n "$CC"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2675. $as_echo "$CC" >&6; }
  2676. else
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680. test -n "$CC" && break
  2681. done
  2682. fi
  2683. if test -z "$CC"; then
  2684. ac_ct_CC=$CC
  2685. for ac_prog in cl.exe
  2686. do
  2687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2688. set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$ac_ct_CC"; then
  2695. ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2714. if test -n "$ac_ct_CC"; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2716. $as_echo "$ac_ct_CC" >&6; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2719. $as_echo "no" >&6; }
  2720. fi
  2721. test -n "$ac_ct_CC" && break
  2722. done
  2723. if test "x$ac_ct_CC" = x; then
  2724. CC=""
  2725. else
  2726. case $cross_compiling:$ac_tool_warned in
  2727. yes:)
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2729. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2730. ac_tool_warned=yes ;;
  2731. esac
  2732. CC=$ac_ct_CC
  2733. fi
  2734. fi
  2735. fi
  2736. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2737. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2738. as_fn_error $? "no acceptable C compiler found in \$PATH
  2739. See \`config.log' for more details" "$LINENO" 5; }
  2740. # Provide some information about the compiler.
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2742. set X $ac_compile
  2743. ac_compiler=$2
  2744. for ac_option in --version -v -V -qversion; do
  2745. { { ac_try="$ac_compiler $ac_option >&5"
  2746. case "(($ac_try" in
  2747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2748. *) ac_try_echo=$ac_try;;
  2749. esac
  2750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2751. $as_echo "$ac_try_echo"; } >&5
  2752. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2753. ac_status=$?
  2754. if test -s conftest.err; then
  2755. sed '10a\
  2756. ... rest of stderr output deleted ...
  2757. 10q' conftest.err >conftest.er1
  2758. cat conftest.er1 >&5
  2759. fi
  2760. rm -f conftest.er1 conftest.err
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2762. test $ac_status = 0; }
  2763. done
  2764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2765. /* end confdefs.h. */
  2766. int
  2767. main ()
  2768. {
  2769. ;
  2770. return 0;
  2771. }
  2772. _ACEOF
  2773. ac_clean_files_save=$ac_clean_files
  2774. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2775. # Try to create an executable without -o first, disregard a.out.
  2776. # It will help us diagnose broken compilers, and finding out an intuition
  2777. # of exeext.
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2779. $as_echo_n "checking whether the C compiler works... " >&6; }
  2780. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2781. # The possible output files:
  2782. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2783. ac_rmfiles=
  2784. for ac_file in $ac_files
  2785. do
  2786. case $ac_file in
  2787. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2788. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2789. esac
  2790. done
  2791. rm -f $ac_rmfiles
  2792. if { { ac_try="$ac_link_default"
  2793. case "(($ac_try" in
  2794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2795. *) ac_try_echo=$ac_try;;
  2796. esac
  2797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2798. $as_echo "$ac_try_echo"; } >&5
  2799. (eval "$ac_link_default") 2>&5
  2800. ac_status=$?
  2801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2802. test $ac_status = 0; }; then :
  2803. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2804. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2805. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2806. # so that the user can short-circuit this test for compilers unknown to
  2807. # Autoconf.
  2808. for ac_file in $ac_files ''
  2809. do
  2810. test -f "$ac_file" || continue
  2811. case $ac_file in
  2812. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2813. ;;
  2814. [ab].out )
  2815. # We found the default executable, but exeext='' is most
  2816. # certainly right.
  2817. break;;
  2818. *.* )
  2819. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2820. then :; else
  2821. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2822. fi
  2823. # We set ac_cv_exeext here because the later test for it is not
  2824. # safe: cross compilers may not add the suffix if given an `-o'
  2825. # argument, so we may need to know it at that point already.
  2826. # Even if this section looks crufty: it has the advantage of
  2827. # actually working.
  2828. break;;
  2829. * )
  2830. break;;
  2831. esac
  2832. done
  2833. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2834. else
  2835. ac_file=''
  2836. fi
  2837. if test -z "$ac_file"; then :
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. $as_echo "$as_me: failed program was:" >&5
  2841. sed 's/^/| /' conftest.$ac_ext >&5
  2842. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2844. as_fn_error 77 "C compiler cannot create executables
  2845. See \`config.log' for more details" "$LINENO" 5; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2848. $as_echo "yes" >&6; }
  2849. fi
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2851. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2853. $as_echo "$ac_file" >&6; }
  2854. ac_exeext=$ac_cv_exeext
  2855. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2856. ac_clean_files=$ac_clean_files_save
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2858. $as_echo_n "checking for suffix of executables... " >&6; }
  2859. if { { ac_try="$ac_link"
  2860. case "(($ac_try" in
  2861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2862. *) ac_try_echo=$ac_try;;
  2863. esac
  2864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2865. $as_echo "$ac_try_echo"; } >&5
  2866. (eval "$ac_link") 2>&5
  2867. ac_status=$?
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2869. test $ac_status = 0; }; then :
  2870. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2871. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2872. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2873. # `rm'.
  2874. for ac_file in conftest.exe conftest conftest.*; do
  2875. test -f "$ac_file" || continue
  2876. case $ac_file in
  2877. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2878. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2879. break;;
  2880. * ) break;;
  2881. esac
  2882. done
  2883. else
  2884. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2886. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2887. See \`config.log' for more details" "$LINENO" 5; }
  2888. fi
  2889. rm -f conftest conftest$ac_cv_exeext
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2891. $as_echo "$ac_cv_exeext" >&6; }
  2892. rm -f conftest.$ac_ext
  2893. EXEEXT=$ac_cv_exeext
  2894. ac_exeext=$EXEEXT
  2895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2896. /* end confdefs.h. */
  2897. #include <stdio.h>
  2898. int
  2899. main ()
  2900. {
  2901. FILE *f = fopen ("conftest.out", "w");
  2902. return ferror (f) || fclose (f) != 0;
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. ac_clean_files="$ac_clean_files conftest.out"
  2908. # Check that the compiler produces executables we can run. If not, either
  2909. # the compiler is broken, or we cross compile.
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2911. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2912. if test "$cross_compiling" != yes; then
  2913. { { ac_try="$ac_link"
  2914. case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo"; } >&5
  2920. (eval "$ac_link") 2>&5
  2921. ac_status=$?
  2922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2923. test $ac_status = 0; }
  2924. if { ac_try='./conftest$ac_cv_exeext'
  2925. { { case "(($ac_try" in
  2926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2927. *) ac_try_echo=$ac_try;;
  2928. esac
  2929. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2930. $as_echo "$ac_try_echo"; } >&5
  2931. (eval "$ac_try") 2>&5
  2932. ac_status=$?
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2934. test $ac_status = 0; }; }; then
  2935. cross_compiling=no
  2936. else
  2937. if test "$cross_compiling" = maybe; then
  2938. cross_compiling=yes
  2939. else
  2940. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2941. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2942. as_fn_error $? "cannot run C compiled programs.
  2943. If you meant to cross compile, use \`--host'.
  2944. See \`config.log' for more details" "$LINENO" 5; }
  2945. fi
  2946. fi
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2949. $as_echo "$cross_compiling" >&6; }
  2950. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2951. ac_clean_files=$ac_clean_files_save
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2953. $as_echo_n "checking for suffix of object files... " >&6; }
  2954. if ${ac_cv_objext+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2958. /* end confdefs.h. */
  2959. int
  2960. main ()
  2961. {
  2962. ;
  2963. return 0;
  2964. }
  2965. _ACEOF
  2966. rm -f conftest.o conftest.obj
  2967. if { { ac_try="$ac_compile"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2973. $as_echo "$ac_try_echo"; } >&5
  2974. (eval "$ac_compile") 2>&5
  2975. ac_status=$?
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2977. test $ac_status = 0; }; then :
  2978. for ac_file in conftest.o conftest.obj conftest.*; do
  2979. test -f "$ac_file" || continue;
  2980. case $ac_file in
  2981. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2982. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2983. break;;
  2984. esac
  2985. done
  2986. else
  2987. $as_echo "$as_me: failed program was:" >&5
  2988. sed 's/^/| /' conftest.$ac_ext >&5
  2989. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2992. See \`config.log' for more details" "$LINENO" 5; }
  2993. fi
  2994. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2995. fi
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2997. $as_echo "$ac_cv_objext" >&6; }
  2998. OBJEXT=$ac_cv_objext
  2999. ac_objext=$OBJEXT
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3001. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3002. if ${ac_cv_c_compiler_gnu+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3006. /* end confdefs.h. */
  3007. int
  3008. main ()
  3009. {
  3010. #ifndef __GNUC__
  3011. choke me
  3012. #endif
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. if ac_fn_c_try_compile "$LINENO"; then :
  3018. ac_compiler_gnu=yes
  3019. else
  3020. ac_compiler_gnu=no
  3021. fi
  3022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3023. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3026. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3027. if test $ac_compiler_gnu = yes; then
  3028. GCC=yes
  3029. else
  3030. GCC=
  3031. fi
  3032. ac_test_CFLAGS=${CFLAGS+set}
  3033. ac_save_CFLAGS=$CFLAGS
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3035. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3036. if ${ac_cv_prog_cc_g+:} false; then :
  3037. $as_echo_n "(cached) " >&6
  3038. else
  3039. ac_save_c_werror_flag=$ac_c_werror_flag
  3040. ac_c_werror_flag=yes
  3041. ac_cv_prog_cc_g=no
  3042. CFLAGS="-g"
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. int
  3046. main ()
  3047. {
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. if ac_fn_c_try_compile "$LINENO"; then :
  3053. ac_cv_prog_cc_g=yes
  3054. else
  3055. CFLAGS=""
  3056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3057. /* end confdefs.h. */
  3058. int
  3059. main ()
  3060. {
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. if ac_fn_c_try_compile "$LINENO"; then :
  3066. else
  3067. ac_c_werror_flag=$ac_save_c_werror_flag
  3068. CFLAGS="-g"
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. if ac_fn_c_try_compile "$LINENO"; then :
  3079. ac_cv_prog_cc_g=yes
  3080. fi
  3081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3082. fi
  3083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3084. fi
  3085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3086. ac_c_werror_flag=$ac_save_c_werror_flag
  3087. fi
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3089. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3090. if test "$ac_test_CFLAGS" = set; then
  3091. CFLAGS=$ac_save_CFLAGS
  3092. elif test $ac_cv_prog_cc_g = yes; then
  3093. if test "$GCC" = yes; then
  3094. CFLAGS="-g -O2"
  3095. else
  3096. CFLAGS="-g"
  3097. fi
  3098. else
  3099. if test "$GCC" = yes; then
  3100. CFLAGS="-O2"
  3101. else
  3102. CFLAGS=
  3103. fi
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3106. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3107. if ${ac_cv_prog_cc_c89+:} false; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. ac_cv_prog_cc_c89=no
  3111. ac_save_CC=$CC
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. #include <stdarg.h>
  3115. #include <stdio.h>
  3116. struct stat;
  3117. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3118. struct buf { int x; };
  3119. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3120. static char *e (p, i)
  3121. char **p;
  3122. int i;
  3123. {
  3124. return p[i];
  3125. }
  3126. static char *f (char * (*g) (char **, int), char **p, ...)
  3127. {
  3128. char *s;
  3129. va_list v;
  3130. va_start (v,p);
  3131. s = g (p, va_arg (v,int));
  3132. va_end (v);
  3133. return s;
  3134. }
  3135. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3136. function prototypes and stuff, but not '\xHH' hex character constants.
  3137. These don't provoke an error unfortunately, instead are silently treated
  3138. as 'x'. The following induces an error, until -std is added to get
  3139. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3140. array size at least. It's necessary to write '\x00'==0 to get something
  3141. that's true only with -std. */
  3142. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3143. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3144. inside strings and character constants. */
  3145. #define FOO(x) 'x'
  3146. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3147. int test (int i, double x);
  3148. struct s1 {int (*f) (int a);};
  3149. struct s2 {int (*f) (double a);};
  3150. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3151. int argc;
  3152. char **argv;
  3153. int
  3154. main ()
  3155. {
  3156. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3162. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3163. do
  3164. CC="$ac_save_CC $ac_arg"
  3165. if ac_fn_c_try_compile "$LINENO"; then :
  3166. ac_cv_prog_cc_c89=$ac_arg
  3167. fi
  3168. rm -f core conftest.err conftest.$ac_objext
  3169. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3170. done
  3171. rm -f conftest.$ac_ext
  3172. CC=$ac_save_CC
  3173. fi
  3174. # AC_CACHE_VAL
  3175. case "x$ac_cv_prog_cc_c89" in
  3176. x)
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3178. $as_echo "none needed" >&6; } ;;
  3179. xno)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3181. $as_echo "unsupported" >&6; } ;;
  3182. *)
  3183. CC="$CC $ac_cv_prog_cc_c89"
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3185. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3186. esac
  3187. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3188. fi
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. depcc="$CC" am_compiler_list=
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3196. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3197. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3201. # We make a subdir and do the tests there. Otherwise we can end up
  3202. # making bogus files that we don't know about and never remove. For
  3203. # instance it was reported that on HP-UX the gcc test will end up
  3204. # making a dummy file named 'D' -- because '-MD' means "put the output
  3205. # in D".
  3206. rm -rf conftest.dir
  3207. mkdir conftest.dir
  3208. # Copy depcomp to subdir because otherwise we won't find it if we're
  3209. # using a relative directory.
  3210. cp "$am_depcomp" conftest.dir
  3211. cd conftest.dir
  3212. # We will build objects and dependencies in a subdirectory because
  3213. # it helps to detect inapplicable dependency modes. For instance
  3214. # both Tru64's cc and ICC support -MD to output dependencies as a
  3215. # side effect of compilation, but ICC will put the dependencies in
  3216. # the current directory while Tru64 will put them in the object
  3217. # directory.
  3218. mkdir sub
  3219. am_cv_CC_dependencies_compiler_type=none
  3220. if test "$am_compiler_list" = ""; then
  3221. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3222. fi
  3223. am__universal=false
  3224. case " $depcc " in #(
  3225. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3226. esac
  3227. for depmode in $am_compiler_list; do
  3228. # Setup a source with many dependencies, because some compilers
  3229. # like to wrap large dependency lists on column 80 (with \), and
  3230. # we should not choose a depcomp mode which is confused by this.
  3231. #
  3232. # We need to recreate these files for each test, as the compiler may
  3233. # overwrite some of them when testing with obscure command lines.
  3234. # This happens at least with the AIX C compiler.
  3235. : > sub/conftest.c
  3236. for i in 1 2 3 4 5 6; do
  3237. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3238. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3239. # Solaris 10 /bin/sh.
  3240. echo '/* dummy */' > sub/conftst$i.h
  3241. done
  3242. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3243. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3244. # mode. It turns out that the SunPro C++ compiler does not properly
  3245. # handle '-M -o', and we need to detect this. Also, some Intel
  3246. # versions had trouble with output in subdirs.
  3247. am__obj=sub/conftest.${OBJEXT-o}
  3248. am__minus_obj="-o $am__obj"
  3249. case $depmode in
  3250. gcc)
  3251. # This depmode causes a compiler race in universal mode.
  3252. test "$am__universal" = false || continue
  3253. ;;
  3254. nosideeffect)
  3255. # After this tag, mechanisms are not by side-effect, so they'll
  3256. # only be used when explicitly requested.
  3257. if test "x$enable_dependency_tracking" = xyes; then
  3258. continue
  3259. else
  3260. break
  3261. fi
  3262. ;;
  3263. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3264. # This compiler won't grok '-c -o', but also, the minuso test has
  3265. # not run yet. These depmodes are late enough in the game, and
  3266. # so weak that their functioning should not be impacted.
  3267. am__obj=conftest.${OBJEXT-o}
  3268. am__minus_obj=
  3269. ;;
  3270. none) break ;;
  3271. esac
  3272. if depmode=$depmode \
  3273. source=sub/conftest.c object=$am__obj \
  3274. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3275. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3276. >/dev/null 2>conftest.err &&
  3277. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3278. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3279. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3280. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3281. # icc doesn't choke on unknown options, it will just issue warnings
  3282. # or remarks (even with -Werror). So we grep stderr for any message
  3283. # that says an option was ignored or not supported.
  3284. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3285. # icc: Command line warning: ignoring option '-M'; no argument required
  3286. # The diagnosis changed in icc 8.0:
  3287. # icc: Command line remark: option '-MP' not supported
  3288. if (grep 'ignoring option' conftest.err ||
  3289. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3290. am_cv_CC_dependencies_compiler_type=$depmode
  3291. break
  3292. fi
  3293. fi
  3294. done
  3295. cd ..
  3296. rm -rf conftest.dir
  3297. else
  3298. am_cv_CC_dependencies_compiler_type=none
  3299. fi
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3302. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3303. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3304. if
  3305. test "x$enable_dependency_tracking" != xno \
  3306. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3307. am__fastdepCC_TRUE=
  3308. am__fastdepCC_FALSE='#'
  3309. else
  3310. am__fastdepCC_TRUE='#'
  3311. am__fastdepCC_FALSE=
  3312. fi
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3314. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3315. if ${ac_cv_prog_cc_c99+:} false; then :
  3316. $as_echo_n "(cached) " >&6
  3317. else
  3318. ac_cv_prog_cc_c99=no
  3319. ac_save_CC=$CC
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. #include <stdarg.h>
  3323. #include <stdbool.h>
  3324. #include <stdlib.h>
  3325. #include <wchar.h>
  3326. #include <stdio.h>
  3327. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3328. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3329. #define showlist(...) puts (#__VA_ARGS__)
  3330. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3331. static void
  3332. test_varargs_macros (void)
  3333. {
  3334. int x = 1234;
  3335. int y = 5678;
  3336. debug ("Flag");
  3337. debug ("X = %d\n", x);
  3338. showlist (The first, second, and third items.);
  3339. report (x>y, "x is %d but y is %d", x, y);
  3340. }
  3341. // Check long long types.
  3342. #define BIG64 18446744073709551615ull
  3343. #define BIG32 4294967295ul
  3344. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3345. #if !BIG_OK
  3346. your preprocessor is broken;
  3347. #endif
  3348. #if BIG_OK
  3349. #else
  3350. your preprocessor is broken;
  3351. #endif
  3352. static long long int bignum = -9223372036854775807LL;
  3353. static unsigned long long int ubignum = BIG64;
  3354. struct incomplete_array
  3355. {
  3356. int datasize;
  3357. double data[];
  3358. };
  3359. struct named_init {
  3360. int number;
  3361. const wchar_t *name;
  3362. double average;
  3363. };
  3364. typedef const char *ccp;
  3365. static inline int
  3366. test_restrict (ccp restrict text)
  3367. {
  3368. // See if C++-style comments work.
  3369. // Iterate through items via the restricted pointer.
  3370. // Also check for declarations in for loops.
  3371. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3372. continue;
  3373. return 0;
  3374. }
  3375. // Check varargs and va_copy.
  3376. static void
  3377. test_varargs (const char *format, ...)
  3378. {
  3379. va_list args;
  3380. va_start (args, format);
  3381. va_list args_copy;
  3382. va_copy (args_copy, args);
  3383. const char *str;
  3384. int number;
  3385. float fnumber;
  3386. while (*format)
  3387. {
  3388. switch (*format++)
  3389. {
  3390. case 's': // string
  3391. str = va_arg (args_copy, const char *);
  3392. break;
  3393. case 'd': // int
  3394. number = va_arg (args_copy, int);
  3395. break;
  3396. case 'f': // float
  3397. fnumber = va_arg (args_copy, double);
  3398. break;
  3399. default:
  3400. break;
  3401. }
  3402. }
  3403. va_end (args_copy);
  3404. va_end (args);
  3405. }
  3406. int
  3407. main ()
  3408. {
  3409. // Check bool.
  3410. _Bool success = false;
  3411. // Check restrict.
  3412. if (test_restrict ("String literal") == 0)
  3413. success = true;
  3414. char *restrict newvar = "Another string";
  3415. // Check varargs.
  3416. test_varargs ("s, d' f .", "string", 65, 34.234);
  3417. test_varargs_macros ();
  3418. // Check flexible array members.
  3419. struct incomplete_array *ia =
  3420. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3421. ia->datasize = 10;
  3422. for (int i = 0; i < ia->datasize; ++i)
  3423. ia->data[i] = i * 1.234;
  3424. // Check named initializers.
  3425. struct named_init ni = {
  3426. .number = 34,
  3427. .name = L"Test wide string",
  3428. .average = 543.34343,
  3429. };
  3430. ni.number = 58;
  3431. int dynamic_array[ni.number];
  3432. dynamic_array[ni.number - 1] = 543;
  3433. // work around unused variable warnings
  3434. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3435. || dynamic_array[ni.number - 1] != 543);
  3436. ;
  3437. return 0;
  3438. }
  3439. _ACEOF
  3440. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3441. do
  3442. CC="$ac_save_CC $ac_arg"
  3443. if ac_fn_c_try_compile "$LINENO"; then :
  3444. ac_cv_prog_cc_c99=$ac_arg
  3445. fi
  3446. rm -f core conftest.err conftest.$ac_objext
  3447. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3448. done
  3449. rm -f conftest.$ac_ext
  3450. CC=$ac_save_CC
  3451. fi
  3452. # AC_CACHE_VAL
  3453. case "x$ac_cv_prog_cc_c99" in
  3454. x)
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3456. $as_echo "none needed" >&6; } ;;
  3457. xno)
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3459. $as_echo "unsupported" >&6; } ;;
  3460. *)
  3461. CC="$CC $ac_cv_prog_cc_c99"
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3463. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3464. esac
  3465. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3466. fi
  3467. ac_ext=c
  3468. ac_cpp='$CPP $CPPFLAGS'
  3469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3473. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3474. # On Suns, sometimes $CPP names a directory.
  3475. if test -n "$CPP" && test -d "$CPP"; then
  3476. CPP=
  3477. fi
  3478. if test -z "$CPP"; then
  3479. if ${ac_cv_prog_CPP+:} false; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. # Double quotes because CPP needs to be expanded
  3483. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3484. do
  3485. ac_preproc_ok=false
  3486. for ac_c_preproc_warn_flag in '' yes
  3487. do
  3488. # Use a header file that comes with gcc, so configuring glibc
  3489. # with a fresh cross-compiler works.
  3490. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3491. # <limits.h> exists even on freestanding compilers.
  3492. # On the NeXT, cc -E runs the code through the compiler's parser,
  3493. # not just through cpp. "Syntax error" is here to catch this case.
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. #ifdef __STDC__
  3497. # include <limits.h>
  3498. #else
  3499. # include <assert.h>
  3500. #endif
  3501. Syntax error
  3502. _ACEOF
  3503. if ac_fn_c_try_cpp "$LINENO"; then :
  3504. else
  3505. # Broken: fails on valid input.
  3506. continue
  3507. fi
  3508. rm -f conftest.err conftest.i conftest.$ac_ext
  3509. # OK, works on sane cases. Now check whether nonexistent headers
  3510. # can be detected and how.
  3511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3512. /* end confdefs.h. */
  3513. #include <ac_nonexistent.h>
  3514. _ACEOF
  3515. if ac_fn_c_try_cpp "$LINENO"; then :
  3516. # Broken: success on invalid input.
  3517. continue
  3518. else
  3519. # Passes both tests.
  3520. ac_preproc_ok=:
  3521. break
  3522. fi
  3523. rm -f conftest.err conftest.i conftest.$ac_ext
  3524. done
  3525. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3526. rm -f conftest.i conftest.err conftest.$ac_ext
  3527. if $ac_preproc_ok; then :
  3528. break
  3529. fi
  3530. done
  3531. ac_cv_prog_CPP=$CPP
  3532. fi
  3533. CPP=$ac_cv_prog_CPP
  3534. else
  3535. ac_cv_prog_CPP=$CPP
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3538. $as_echo "$CPP" >&6; }
  3539. ac_preproc_ok=false
  3540. for ac_c_preproc_warn_flag in '' yes
  3541. do
  3542. # Use a header file that comes with gcc, so configuring glibc
  3543. # with a fresh cross-compiler works.
  3544. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3545. # <limits.h> exists even on freestanding compilers.
  3546. # On the NeXT, cc -E runs the code through the compiler's parser,
  3547. # not just through cpp. "Syntax error" is here to catch this case.
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. #ifdef __STDC__
  3551. # include <limits.h>
  3552. #else
  3553. # include <assert.h>
  3554. #endif
  3555. Syntax error
  3556. _ACEOF
  3557. if ac_fn_c_try_cpp "$LINENO"; then :
  3558. else
  3559. # Broken: fails on valid input.
  3560. continue
  3561. fi
  3562. rm -f conftest.err conftest.i conftest.$ac_ext
  3563. # OK, works on sane cases. Now check whether nonexistent headers
  3564. # can be detected and how.
  3565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3566. /* end confdefs.h. */
  3567. #include <ac_nonexistent.h>
  3568. _ACEOF
  3569. if ac_fn_c_try_cpp "$LINENO"; then :
  3570. # Broken: success on invalid input.
  3571. continue
  3572. else
  3573. # Passes both tests.
  3574. ac_preproc_ok=:
  3575. break
  3576. fi
  3577. rm -f conftest.err conftest.i conftest.$ac_ext
  3578. done
  3579. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3580. rm -f conftest.i conftest.err conftest.$ac_ext
  3581. if $ac_preproc_ok; then :
  3582. else
  3583. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3584. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3585. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3586. See \`config.log' for more details" "$LINENO" 5; }
  3587. fi
  3588. ac_ext=c
  3589. ac_cpp='$CPP $CPPFLAGS'
  3590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3594. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3595. if ${ac_cv_path_GREP+:} false; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. if test -z "$GREP"; then
  3599. ac_path_GREP_found=false
  3600. # Loop through the user's path and test for each of PROGNAME-LIST
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for ac_prog in grep ggrep; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3609. as_fn_executable_p "$ac_path_GREP" || continue
  3610. # Check for GNU ac_path_GREP and select it if it is found.
  3611. # Check for GNU $ac_path_GREP
  3612. case `"$ac_path_GREP" --version 2>&1` in
  3613. *GNU*)
  3614. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3615. *)
  3616. ac_count=0
  3617. $as_echo_n 0123456789 >"conftest.in"
  3618. while :
  3619. do
  3620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3621. mv "conftest.tmp" "conftest.in"
  3622. cp "conftest.in" "conftest.nl"
  3623. $as_echo 'GREP' >> "conftest.nl"
  3624. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3626. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3627. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3628. # Best one so far, save it but keep looking for a better one
  3629. ac_cv_path_GREP="$ac_path_GREP"
  3630. ac_path_GREP_max=$ac_count
  3631. fi
  3632. # 10*(2^10) chars as input seems more than enough
  3633. test $ac_count -gt 10 && break
  3634. done
  3635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3636. esac
  3637. $ac_path_GREP_found && break 3
  3638. done
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. if test -z "$ac_cv_path_GREP"; then
  3643. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3644. fi
  3645. else
  3646. ac_cv_path_GREP=$GREP
  3647. fi
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3650. $as_echo "$ac_cv_path_GREP" >&6; }
  3651. GREP="$ac_cv_path_GREP"
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3653. $as_echo_n "checking for egrep... " >&6; }
  3654. if ${ac_cv_path_EGREP+:} false; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3658. then ac_cv_path_EGREP="$GREP -E"
  3659. else
  3660. if test -z "$EGREP"; then
  3661. ac_path_EGREP_found=false
  3662. # Loop through the user's path and test for each of PROGNAME-LIST
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_prog in egrep; do
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3671. as_fn_executable_p "$ac_path_EGREP" || continue
  3672. # Check for GNU ac_path_EGREP and select it if it is found.
  3673. # Check for GNU $ac_path_EGREP
  3674. case `"$ac_path_EGREP" --version 2>&1` in
  3675. *GNU*)
  3676. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3677. *)
  3678. ac_count=0
  3679. $as_echo_n 0123456789 >"conftest.in"
  3680. while :
  3681. do
  3682. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3683. mv "conftest.tmp" "conftest.in"
  3684. cp "conftest.in" "conftest.nl"
  3685. $as_echo 'EGREP' >> "conftest.nl"
  3686. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3687. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3688. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3689. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3690. # Best one so far, save it but keep looking for a better one
  3691. ac_cv_path_EGREP="$ac_path_EGREP"
  3692. ac_path_EGREP_max=$ac_count
  3693. fi
  3694. # 10*(2^10) chars as input seems more than enough
  3695. test $ac_count -gt 10 && break
  3696. done
  3697. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3698. esac
  3699. $ac_path_EGREP_found && break 3
  3700. done
  3701. done
  3702. done
  3703. IFS=$as_save_IFS
  3704. if test -z "$ac_cv_path_EGREP"; then
  3705. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3706. fi
  3707. else
  3708. ac_cv_path_EGREP=$EGREP
  3709. fi
  3710. fi
  3711. fi
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3713. $as_echo "$ac_cv_path_EGREP" >&6; }
  3714. EGREP="$ac_cv_path_EGREP"
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3716. $as_echo_n "checking for ANSI C header files... " >&6; }
  3717. if ${ac_cv_header_stdc+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. #include <stdlib.h>
  3723. #include <stdarg.h>
  3724. #include <string.h>
  3725. #include <float.h>
  3726. int
  3727. main ()
  3728. {
  3729. ;
  3730. return 0;
  3731. }
  3732. _ACEOF
  3733. if ac_fn_c_try_compile "$LINENO"; then :
  3734. ac_cv_header_stdc=yes
  3735. else
  3736. ac_cv_header_stdc=no
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3739. if test $ac_cv_header_stdc = yes; then
  3740. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. #include <string.h>
  3744. _ACEOF
  3745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3746. $EGREP "memchr" >/dev/null 2>&1; then :
  3747. else
  3748. ac_cv_header_stdc=no
  3749. fi
  3750. rm -f conftest*
  3751. fi
  3752. if test $ac_cv_header_stdc = yes; then
  3753. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3755. /* end confdefs.h. */
  3756. #include <stdlib.h>
  3757. _ACEOF
  3758. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3759. $EGREP "free" >/dev/null 2>&1; then :
  3760. else
  3761. ac_cv_header_stdc=no
  3762. fi
  3763. rm -f conftest*
  3764. fi
  3765. if test $ac_cv_header_stdc = yes; then
  3766. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3767. if test "$cross_compiling" = yes; then :
  3768. :
  3769. else
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. #include <ctype.h>
  3773. #include <stdlib.h>
  3774. #if ((' ' & 0x0FF) == 0x020)
  3775. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3776. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3777. #else
  3778. # define ISLOWER(c) \
  3779. (('a' <= (c) && (c) <= 'i') \
  3780. || ('j' <= (c) && (c) <= 'r') \
  3781. || ('s' <= (c) && (c) <= 'z'))
  3782. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3783. #endif
  3784. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3785. int
  3786. main ()
  3787. {
  3788. int i;
  3789. for (i = 0; i < 256; i++)
  3790. if (XOR (islower (i), ISLOWER (i))
  3791. || toupper (i) != TOUPPER (i))
  3792. return 2;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. if ac_fn_c_try_run "$LINENO"; then :
  3797. else
  3798. ac_cv_header_stdc=no
  3799. fi
  3800. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3801. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3802. fi
  3803. fi
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3806. $as_echo "$ac_cv_header_stdc" >&6; }
  3807. if test $ac_cv_header_stdc = yes; then
  3808. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3809. fi
  3810. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3811. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3812. inttypes.h stdint.h unistd.h
  3813. do :
  3814. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3815. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3816. "
  3817. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3818. cat >>confdefs.h <<_ACEOF
  3819. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3820. _ACEOF
  3821. fi
  3822. done
  3823. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3824. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3825. CLANGCC="yes"
  3826. else
  3827. CLANGCC="no"
  3828. fi
  3829. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3830. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3831. INTELCC="yes"
  3832. else
  3833. INTELCC="no"
  3834. fi
  3835. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3836. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3837. SUNCC="yes"
  3838. else
  3839. SUNCC="no"
  3840. fi
  3841. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3842. if test -n "$ac_tool_prefix"; then
  3843. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3844. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3846. $as_echo_n "checking for $ac_word... " >&6; }
  3847. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. case $PKG_CONFIG in
  3851. [\\/]* | ?:[\\/]*)
  3852. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3853. ;;
  3854. *)
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_exec_ext in '' $ac_executable_extensions; do
  3861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3862. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3864. break 2
  3865. fi
  3866. done
  3867. done
  3868. IFS=$as_save_IFS
  3869. ;;
  3870. esac
  3871. fi
  3872. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3873. if test -n "$PKG_CONFIG"; then
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3875. $as_echo "$PKG_CONFIG" >&6; }
  3876. else
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3878. $as_echo "no" >&6; }
  3879. fi
  3880. fi
  3881. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3882. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3883. # Extract the first word of "pkg-config", so it can be a program name with args.
  3884. set dummy pkg-config; ac_word=$2
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3886. $as_echo_n "checking for $ac_word... " >&6; }
  3887. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3888. $as_echo_n "(cached) " >&6
  3889. else
  3890. case $ac_pt_PKG_CONFIG in
  3891. [\\/]* | ?:[\\/]*)
  3892. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3893. ;;
  3894. *)
  3895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3896. for as_dir in $PATH
  3897. do
  3898. IFS=$as_save_IFS
  3899. test -z "$as_dir" && as_dir=.
  3900. for ac_exec_ext in '' $ac_executable_extensions; do
  3901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3902. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3904. break 2
  3905. fi
  3906. done
  3907. done
  3908. IFS=$as_save_IFS
  3909. ;;
  3910. esac
  3911. fi
  3912. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3913. if test -n "$ac_pt_PKG_CONFIG"; then
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3915. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3916. else
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3918. $as_echo "no" >&6; }
  3919. fi
  3920. if test "x$ac_pt_PKG_CONFIG" = x; then
  3921. PKG_CONFIG=""
  3922. else
  3923. case $cross_compiling:$ac_tool_warned in
  3924. yes:)
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3927. ac_tool_warned=yes ;;
  3928. esac
  3929. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3930. fi
  3931. else
  3932. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3933. fi
  3934. fi
  3935. if test -n "$PKG_CONFIG"; then
  3936. _pkg_min_version=0.9.0
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3938. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3939. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3941. $as_echo "yes" >&6; }
  3942. else
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3944. $as_echo "no" >&6; }
  3945. PKG_CONFIG=""
  3946. fi
  3947. fi
  3948. # Make sure we can run config.sub.
  3949. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3950. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3952. $as_echo_n "checking build system type... " >&6; }
  3953. if ${ac_cv_build+:} false; then :
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. ac_build_alias=$build_alias
  3957. test "x$ac_build_alias" = x &&
  3958. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3959. test "x$ac_build_alias" = x &&
  3960. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3961. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3962. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3965. $as_echo "$ac_cv_build" >&6; }
  3966. case $ac_cv_build in
  3967. *-*-*) ;;
  3968. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3969. esac
  3970. build=$ac_cv_build
  3971. ac_save_IFS=$IFS; IFS='-'
  3972. set x $ac_cv_build
  3973. shift
  3974. build_cpu=$1
  3975. build_vendor=$2
  3976. shift; shift
  3977. # Remember, the first character of IFS is used to create $*,
  3978. # except with old shells:
  3979. build_os=$*
  3980. IFS=$ac_save_IFS
  3981. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3983. $as_echo_n "checking host system type... " >&6; }
  3984. if ${ac_cv_host+:} false; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. if test "x$host_alias" = x; then
  3988. ac_cv_host=$ac_cv_build
  3989. else
  3990. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3991. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3992. fi
  3993. fi
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3995. $as_echo "$ac_cv_host" >&6; }
  3996. case $ac_cv_host in
  3997. *-*-*) ;;
  3998. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3999. esac
  4000. host=$ac_cv_host
  4001. ac_save_IFS=$IFS; IFS='-'
  4002. set x $ac_cv_host
  4003. shift
  4004. host_cpu=$1
  4005. host_vendor=$2
  4006. shift; shift
  4007. # Remember, the first character of IFS is used to create $*,
  4008. # except with old shells:
  4009. host_os=$*
  4010. IFS=$ac_save_IFS
  4011. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4013. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4014. if ${ac_cv_path_SED+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4018. for ac_i in 1 2 3 4 5 6 7; do
  4019. ac_script="$ac_script$as_nl$ac_script"
  4020. done
  4021. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4022. { ac_script=; unset ac_script;}
  4023. if test -z "$SED"; then
  4024. ac_path_SED_found=false
  4025. # Loop through the user's path and test for each of PROGNAME-LIST
  4026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4027. for as_dir in $PATH
  4028. do
  4029. IFS=$as_save_IFS
  4030. test -z "$as_dir" && as_dir=.
  4031. for ac_prog in sed gsed; do
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4034. as_fn_executable_p "$ac_path_SED" || continue
  4035. # Check for GNU ac_path_SED and select it if it is found.
  4036. # Check for GNU $ac_path_SED
  4037. case `"$ac_path_SED" --version 2>&1` in
  4038. *GNU*)
  4039. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4040. *)
  4041. ac_count=0
  4042. $as_echo_n 0123456789 >"conftest.in"
  4043. while :
  4044. do
  4045. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4046. mv "conftest.tmp" "conftest.in"
  4047. cp "conftest.in" "conftest.nl"
  4048. $as_echo '' >> "conftest.nl"
  4049. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4050. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4051. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4052. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4053. # Best one so far, save it but keep looking for a better one
  4054. ac_cv_path_SED="$ac_path_SED"
  4055. ac_path_SED_max=$ac_count
  4056. fi
  4057. # 10*(2^10) chars as input seems more than enough
  4058. test $ac_count -gt 10 && break
  4059. done
  4060. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4061. esac
  4062. $ac_path_SED_found && break 3
  4063. done
  4064. done
  4065. done
  4066. IFS=$as_save_IFS
  4067. if test -z "$ac_cv_path_SED"; then
  4068. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4069. fi
  4070. else
  4071. ac_cv_path_SED=$SED
  4072. fi
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4075. $as_echo "$ac_cv_path_SED" >&6; }
  4076. SED="$ac_cv_path_SED"
  4077. rm -f conftest.sed
  4078. # Check whether --enable-selective-werror was given.
  4079. if test "${enable_selective_werror+set}" = set; then :
  4080. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4081. else
  4082. SELECTIVE_WERROR=yes
  4083. fi
  4084. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4085. if test "x$SUNCC" = "xyes"; then
  4086. BASE_CFLAGS="-v"
  4087. else
  4088. BASE_CFLAGS=""
  4089. fi
  4090. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4091. xorg_testset_save_CFLAGS="$CFLAGS"
  4092. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4093. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4095. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4096. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4097. $as_echo_n "(cached) " >&6
  4098. else
  4099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end confdefs.h. */
  4101. int i;
  4102. _ACEOF
  4103. if ac_fn_c_try_compile "$LINENO"; then :
  4104. xorg_cv_cc_flag_unknown_warning_option=yes
  4105. else
  4106. xorg_cv_cc_flag_unknown_warning_option=no
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4111. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4112. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4113. CFLAGS="$xorg_testset_save_CFLAGS"
  4114. fi
  4115. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4116. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4117. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4118. fi
  4119. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4121. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4122. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. int i;
  4128. _ACEOF
  4129. if ac_fn_c_try_compile "$LINENO"; then :
  4130. xorg_cv_cc_flag_unused_command_line_argument=yes
  4131. else
  4132. xorg_cv_cc_flag_unused_command_line_argument=no
  4133. fi
  4134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4135. fi
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4137. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4138. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4139. CFLAGS="$xorg_testset_save_CFLAGS"
  4140. fi
  4141. found="no"
  4142. if test $found = "no" ; then
  4143. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4145. fi
  4146. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4147. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4148. fi
  4149. CFLAGS="$CFLAGS -Wall"
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4151. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4152. cacheid=xorg_cv_cc_flag__Wall
  4153. if eval \${$cacheid+:} false; then :
  4154. $as_echo_n "(cached) " >&6
  4155. else
  4156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4157. /* end confdefs.h. */
  4158. int i;
  4159. int
  4160. main ()
  4161. {
  4162. ;
  4163. return 0;
  4164. }
  4165. _ACEOF
  4166. if ac_fn_c_try_link "$LINENO"; then :
  4167. eval $cacheid=yes
  4168. else
  4169. eval $cacheid=no
  4170. fi
  4171. rm -f core conftest.err conftest.$ac_objext \
  4172. conftest$ac_exeext conftest.$ac_ext
  4173. fi
  4174. CFLAGS="$xorg_testset_save_CFLAGS"
  4175. eval supported=\$$cacheid
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4177. $as_echo "$supported" >&6; }
  4178. if test "$supported" = "yes" ; then
  4179. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4180. found="yes"
  4181. fi
  4182. fi
  4183. xorg_testset_save_CFLAGS="$CFLAGS"
  4184. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4185. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4187. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4188. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4192. /* end confdefs.h. */
  4193. int i;
  4194. _ACEOF
  4195. if ac_fn_c_try_compile "$LINENO"; then :
  4196. xorg_cv_cc_flag_unknown_warning_option=yes
  4197. else
  4198. xorg_cv_cc_flag_unknown_warning_option=no
  4199. fi
  4200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4203. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4204. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4205. CFLAGS="$xorg_testset_save_CFLAGS"
  4206. fi
  4207. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4208. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4209. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4210. fi
  4211. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4213. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4214. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4218. /* end confdefs.h. */
  4219. int i;
  4220. _ACEOF
  4221. if ac_fn_c_try_compile "$LINENO"; then :
  4222. xorg_cv_cc_flag_unused_command_line_argument=yes
  4223. else
  4224. xorg_cv_cc_flag_unused_command_line_argument=no
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4229. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4230. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4231. CFLAGS="$xorg_testset_save_CFLAGS"
  4232. fi
  4233. found="no"
  4234. if test $found = "no" ; then
  4235. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4237. fi
  4238. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4239. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4240. fi
  4241. CFLAGS="$CFLAGS -Wpointer-arith"
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4243. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4244. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4245. if eval \${$cacheid+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4249. /* end confdefs.h. */
  4250. int i;
  4251. int
  4252. main ()
  4253. {
  4254. ;
  4255. return 0;
  4256. }
  4257. _ACEOF
  4258. if ac_fn_c_try_link "$LINENO"; then :
  4259. eval $cacheid=yes
  4260. else
  4261. eval $cacheid=no
  4262. fi
  4263. rm -f core conftest.err conftest.$ac_objext \
  4264. conftest$ac_exeext conftest.$ac_ext
  4265. fi
  4266. CFLAGS="$xorg_testset_save_CFLAGS"
  4267. eval supported=\$$cacheid
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4269. $as_echo "$supported" >&6; }
  4270. if test "$supported" = "yes" ; then
  4271. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4272. found="yes"
  4273. fi
  4274. fi
  4275. xorg_testset_save_CFLAGS="$CFLAGS"
  4276. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4277. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4279. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4280. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. int i;
  4286. _ACEOF
  4287. if ac_fn_c_try_compile "$LINENO"; then :
  4288. xorg_cv_cc_flag_unknown_warning_option=yes
  4289. else
  4290. xorg_cv_cc_flag_unknown_warning_option=no
  4291. fi
  4292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4293. fi
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4295. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4296. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4297. CFLAGS="$xorg_testset_save_CFLAGS"
  4298. fi
  4299. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4300. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4301. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4302. fi
  4303. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4305. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4306. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4310. /* end confdefs.h. */
  4311. int i;
  4312. _ACEOF
  4313. if ac_fn_c_try_compile "$LINENO"; then :
  4314. xorg_cv_cc_flag_unused_command_line_argument=yes
  4315. else
  4316. xorg_cv_cc_flag_unused_command_line_argument=no
  4317. fi
  4318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4321. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4322. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4323. CFLAGS="$xorg_testset_save_CFLAGS"
  4324. fi
  4325. found="no"
  4326. if test $found = "no" ; then
  4327. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4329. fi
  4330. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4331. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4332. fi
  4333. CFLAGS="$CFLAGS -Wmissing-declarations"
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4335. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4336. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4337. if eval \${$cacheid+:} false; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end confdefs.h. */
  4342. int i;
  4343. int
  4344. main ()
  4345. {
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_link "$LINENO"; then :
  4351. eval $cacheid=yes
  4352. else
  4353. eval $cacheid=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext \
  4356. conftest$ac_exeext conftest.$ac_ext
  4357. fi
  4358. CFLAGS="$xorg_testset_save_CFLAGS"
  4359. eval supported=\$$cacheid
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4361. $as_echo "$supported" >&6; }
  4362. if test "$supported" = "yes" ; then
  4363. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4364. found="yes"
  4365. fi
  4366. fi
  4367. xorg_testset_save_CFLAGS="$CFLAGS"
  4368. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4369. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4371. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4372. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4376. /* end confdefs.h. */
  4377. int i;
  4378. _ACEOF
  4379. if ac_fn_c_try_compile "$LINENO"; then :
  4380. xorg_cv_cc_flag_unknown_warning_option=yes
  4381. else
  4382. xorg_cv_cc_flag_unknown_warning_option=no
  4383. fi
  4384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4387. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4388. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4389. CFLAGS="$xorg_testset_save_CFLAGS"
  4390. fi
  4391. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4392. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4393. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4394. fi
  4395. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4397. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4398. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. int i;
  4404. _ACEOF
  4405. if ac_fn_c_try_compile "$LINENO"; then :
  4406. xorg_cv_cc_flag_unused_command_line_argument=yes
  4407. else
  4408. xorg_cv_cc_flag_unused_command_line_argument=no
  4409. fi
  4410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4413. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4414. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4415. CFLAGS="$xorg_testset_save_CFLAGS"
  4416. fi
  4417. found="no"
  4418. if test $found = "no" ; then
  4419. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4420. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4421. fi
  4422. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4423. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4424. fi
  4425. CFLAGS="$CFLAGS -Wformat=2"
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4427. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4428. cacheid=xorg_cv_cc_flag__Wformat_2
  4429. if eval \${$cacheid+:} false; then :
  4430. $as_echo_n "(cached) " >&6
  4431. else
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. int i;
  4435. int
  4436. main ()
  4437. {
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. if ac_fn_c_try_link "$LINENO"; then :
  4443. eval $cacheid=yes
  4444. else
  4445. eval $cacheid=no
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext \
  4448. conftest$ac_exeext conftest.$ac_ext
  4449. fi
  4450. CFLAGS="$xorg_testset_save_CFLAGS"
  4451. eval supported=\$$cacheid
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4453. $as_echo "$supported" >&6; }
  4454. if test "$supported" = "yes" ; then
  4455. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4456. found="yes"
  4457. fi
  4458. fi
  4459. if test $found = "no" ; then
  4460. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4461. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4462. fi
  4463. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4464. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4465. fi
  4466. CFLAGS="$CFLAGS -Wformat"
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4468. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4469. cacheid=xorg_cv_cc_flag__Wformat
  4470. if eval \${$cacheid+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4474. /* end confdefs.h. */
  4475. int i;
  4476. int
  4477. main ()
  4478. {
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. if ac_fn_c_try_link "$LINENO"; then :
  4484. eval $cacheid=yes
  4485. else
  4486. eval $cacheid=no
  4487. fi
  4488. rm -f core conftest.err conftest.$ac_objext \
  4489. conftest$ac_exeext conftest.$ac_ext
  4490. fi
  4491. CFLAGS="$xorg_testset_save_CFLAGS"
  4492. eval supported=\$$cacheid
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4494. $as_echo "$supported" >&6; }
  4495. if test "$supported" = "yes" ; then
  4496. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4497. found="yes"
  4498. fi
  4499. fi
  4500. xorg_testset_save_CFLAGS="$CFLAGS"
  4501. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4504. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4505. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. int i;
  4511. _ACEOF
  4512. if ac_fn_c_try_compile "$LINENO"; then :
  4513. xorg_cv_cc_flag_unknown_warning_option=yes
  4514. else
  4515. xorg_cv_cc_flag_unknown_warning_option=no
  4516. fi
  4517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4520. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4521. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4522. CFLAGS="$xorg_testset_save_CFLAGS"
  4523. fi
  4524. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4525. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4526. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4527. fi
  4528. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4530. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4531. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4535. /* end confdefs.h. */
  4536. int i;
  4537. _ACEOF
  4538. if ac_fn_c_try_compile "$LINENO"; then :
  4539. xorg_cv_cc_flag_unused_command_line_argument=yes
  4540. else
  4541. xorg_cv_cc_flag_unused_command_line_argument=no
  4542. fi
  4543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4546. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4547. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4548. CFLAGS="$xorg_testset_save_CFLAGS"
  4549. fi
  4550. found="no"
  4551. if test $found = "no" ; then
  4552. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4553. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4554. fi
  4555. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4556. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4557. fi
  4558. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4560. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4561. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4562. if eval \${$cacheid+:} false; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4566. /* end confdefs.h. */
  4567. int i;
  4568. int
  4569. main ()
  4570. {
  4571. ;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. if ac_fn_c_try_link "$LINENO"; then :
  4576. eval $cacheid=yes
  4577. else
  4578. eval $cacheid=no
  4579. fi
  4580. rm -f core conftest.err conftest.$ac_objext \
  4581. conftest$ac_exeext conftest.$ac_ext
  4582. fi
  4583. CFLAGS="$xorg_testset_save_CFLAGS"
  4584. eval supported=\$$cacheid
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4586. $as_echo "$supported" >&6; }
  4587. if test "$supported" = "yes" ; then
  4588. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4589. found="yes"
  4590. fi
  4591. fi
  4592. xorg_testset_save_CFLAGS="$CFLAGS"
  4593. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4594. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4596. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4597. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4601. /* end confdefs.h. */
  4602. int i;
  4603. _ACEOF
  4604. if ac_fn_c_try_compile "$LINENO"; then :
  4605. xorg_cv_cc_flag_unknown_warning_option=yes
  4606. else
  4607. xorg_cv_cc_flag_unknown_warning_option=no
  4608. fi
  4609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4610. fi
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4612. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4613. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4614. CFLAGS="$xorg_testset_save_CFLAGS"
  4615. fi
  4616. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4617. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4618. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4619. fi
  4620. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4622. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4623. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end confdefs.h. */
  4628. int i;
  4629. _ACEOF
  4630. if ac_fn_c_try_compile "$LINENO"; then :
  4631. xorg_cv_cc_flag_unused_command_line_argument=yes
  4632. else
  4633. xorg_cv_cc_flag_unused_command_line_argument=no
  4634. fi
  4635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. fi
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4638. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4639. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4640. CFLAGS="$xorg_testset_save_CFLAGS"
  4641. fi
  4642. found="no"
  4643. if test $found = "no" ; then
  4644. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4645. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4646. fi
  4647. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4648. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4649. fi
  4650. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4652. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4653. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4654. if eval \${$cacheid+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end confdefs.h. */
  4659. int i;
  4660. int
  4661. main ()
  4662. {
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_c_try_link "$LINENO"; then :
  4668. eval $cacheid=yes
  4669. else
  4670. eval $cacheid=no
  4671. fi
  4672. rm -f core conftest.err conftest.$ac_objext \
  4673. conftest$ac_exeext conftest.$ac_ext
  4674. fi
  4675. CFLAGS="$xorg_testset_save_CFLAGS"
  4676. eval supported=\$$cacheid
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4678. $as_echo "$supported" >&6; }
  4679. if test "$supported" = "yes" ; then
  4680. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4681. found="yes"
  4682. fi
  4683. fi
  4684. xorg_testset_save_CFLAGS="$CFLAGS"
  4685. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4686. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4688. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4689. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. int i;
  4695. _ACEOF
  4696. if ac_fn_c_try_compile "$LINENO"; then :
  4697. xorg_cv_cc_flag_unknown_warning_option=yes
  4698. else
  4699. xorg_cv_cc_flag_unknown_warning_option=no
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4704. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4705. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4706. CFLAGS="$xorg_testset_save_CFLAGS"
  4707. fi
  4708. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4709. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4710. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4711. fi
  4712. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4714. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4715. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. int i;
  4721. _ACEOF
  4722. if ac_fn_c_try_compile "$LINENO"; then :
  4723. xorg_cv_cc_flag_unused_command_line_argument=yes
  4724. else
  4725. xorg_cv_cc_flag_unused_command_line_argument=no
  4726. fi
  4727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4728. fi
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4730. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4731. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4732. CFLAGS="$xorg_testset_save_CFLAGS"
  4733. fi
  4734. found="no"
  4735. if test $found = "no" ; then
  4736. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4737. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4738. fi
  4739. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4740. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4741. fi
  4742. CFLAGS="$CFLAGS -Wnested-externs"
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4744. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4745. cacheid=xorg_cv_cc_flag__Wnested_externs
  4746. if eval \${$cacheid+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4750. /* end confdefs.h. */
  4751. int i;
  4752. int
  4753. main ()
  4754. {
  4755. ;
  4756. return 0;
  4757. }
  4758. _ACEOF
  4759. if ac_fn_c_try_link "$LINENO"; then :
  4760. eval $cacheid=yes
  4761. else
  4762. eval $cacheid=no
  4763. fi
  4764. rm -f core conftest.err conftest.$ac_objext \
  4765. conftest$ac_exeext conftest.$ac_ext
  4766. fi
  4767. CFLAGS="$xorg_testset_save_CFLAGS"
  4768. eval supported=\$$cacheid
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4770. $as_echo "$supported" >&6; }
  4771. if test "$supported" = "yes" ; then
  4772. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4773. found="yes"
  4774. fi
  4775. fi
  4776. xorg_testset_save_CFLAGS="$CFLAGS"
  4777. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4778. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4780. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4781. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. int i;
  4787. _ACEOF
  4788. if ac_fn_c_try_compile "$LINENO"; then :
  4789. xorg_cv_cc_flag_unknown_warning_option=yes
  4790. else
  4791. xorg_cv_cc_flag_unknown_warning_option=no
  4792. fi
  4793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4794. fi
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4796. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4797. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4798. CFLAGS="$xorg_testset_save_CFLAGS"
  4799. fi
  4800. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4801. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4802. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4803. fi
  4804. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4806. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4807. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4808. $as_echo_n "(cached) " >&6
  4809. else
  4810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4811. /* end confdefs.h. */
  4812. int i;
  4813. _ACEOF
  4814. if ac_fn_c_try_compile "$LINENO"; then :
  4815. xorg_cv_cc_flag_unused_command_line_argument=yes
  4816. else
  4817. xorg_cv_cc_flag_unused_command_line_argument=no
  4818. fi
  4819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4820. fi
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4822. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4823. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4824. CFLAGS="$xorg_testset_save_CFLAGS"
  4825. fi
  4826. found="no"
  4827. if test $found = "no" ; then
  4828. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4829. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4830. fi
  4831. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4832. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4833. fi
  4834. CFLAGS="$CFLAGS -Wbad-function-cast"
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4836. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4837. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4838. if eval \${$cacheid+:} false; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4842. /* end confdefs.h. */
  4843. int i;
  4844. int
  4845. main ()
  4846. {
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. if ac_fn_c_try_link "$LINENO"; then :
  4852. eval $cacheid=yes
  4853. else
  4854. eval $cacheid=no
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext \
  4857. conftest$ac_exeext conftest.$ac_ext
  4858. fi
  4859. CFLAGS="$xorg_testset_save_CFLAGS"
  4860. eval supported=\$$cacheid
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4862. $as_echo "$supported" >&6; }
  4863. if test "$supported" = "yes" ; then
  4864. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4865. found="yes"
  4866. fi
  4867. fi
  4868. xorg_testset_save_CFLAGS="$CFLAGS"
  4869. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4870. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4872. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4873. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4877. /* end confdefs.h. */
  4878. int i;
  4879. _ACEOF
  4880. if ac_fn_c_try_compile "$LINENO"; then :
  4881. xorg_cv_cc_flag_unknown_warning_option=yes
  4882. else
  4883. xorg_cv_cc_flag_unknown_warning_option=no
  4884. fi
  4885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4886. fi
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4888. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4889. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4890. CFLAGS="$xorg_testset_save_CFLAGS"
  4891. fi
  4892. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4893. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4894. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4895. fi
  4896. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4898. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4899. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4903. /* end confdefs.h. */
  4904. int i;
  4905. _ACEOF
  4906. if ac_fn_c_try_compile "$LINENO"; then :
  4907. xorg_cv_cc_flag_unused_command_line_argument=yes
  4908. else
  4909. xorg_cv_cc_flag_unused_command_line_argument=no
  4910. fi
  4911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4914. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4915. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4916. CFLAGS="$xorg_testset_save_CFLAGS"
  4917. fi
  4918. found="no"
  4919. if test $found = "no" ; then
  4920. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4921. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4922. fi
  4923. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4924. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4925. fi
  4926. CFLAGS="$CFLAGS -Wold-style-definition"
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4928. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4929. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4930. if eval \${$cacheid+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4934. /* end confdefs.h. */
  4935. int i;
  4936. int
  4937. main ()
  4938. {
  4939. ;
  4940. return 0;
  4941. }
  4942. _ACEOF
  4943. if ac_fn_c_try_link "$LINENO"; then :
  4944. eval $cacheid=yes
  4945. else
  4946. eval $cacheid=no
  4947. fi
  4948. rm -f core conftest.err conftest.$ac_objext \
  4949. conftest$ac_exeext conftest.$ac_ext
  4950. fi
  4951. CFLAGS="$xorg_testset_save_CFLAGS"
  4952. eval supported=\$$cacheid
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4954. $as_echo "$supported" >&6; }
  4955. if test "$supported" = "yes" ; then
  4956. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4957. found="yes"
  4958. fi
  4959. fi
  4960. if test $found = "no" ; then
  4961. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4962. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4963. fi
  4964. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4965. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4966. fi
  4967. CFLAGS="$CFLAGS -fd"
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  4969. $as_echo_n "checking if $CC supports -fd... " >&6; }
  4970. cacheid=xorg_cv_cc_flag__fd
  4971. if eval \${$cacheid+:} false; then :
  4972. $as_echo_n "(cached) " >&6
  4973. else
  4974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4975. /* end confdefs.h. */
  4976. int i;
  4977. int
  4978. main ()
  4979. {
  4980. ;
  4981. return 0;
  4982. }
  4983. _ACEOF
  4984. if ac_fn_c_try_link "$LINENO"; then :
  4985. eval $cacheid=yes
  4986. else
  4987. eval $cacheid=no
  4988. fi
  4989. rm -f core conftest.err conftest.$ac_objext \
  4990. conftest$ac_exeext conftest.$ac_ext
  4991. fi
  4992. CFLAGS="$xorg_testset_save_CFLAGS"
  4993. eval supported=\$$cacheid
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4995. $as_echo "$supported" >&6; }
  4996. if test "$supported" = "yes" ; then
  4997. BASE_CFLAGS="$BASE_CFLAGS -fd"
  4998. found="yes"
  4999. fi
  5000. fi
  5001. xorg_testset_save_CFLAGS="$CFLAGS"
  5002. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5003. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5005. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5006. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5007. $as_echo_n "(cached) " >&6
  5008. else
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. int i;
  5012. _ACEOF
  5013. if ac_fn_c_try_compile "$LINENO"; then :
  5014. xorg_cv_cc_flag_unknown_warning_option=yes
  5015. else
  5016. xorg_cv_cc_flag_unknown_warning_option=no
  5017. fi
  5018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5019. fi
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5021. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5022. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5023. CFLAGS="$xorg_testset_save_CFLAGS"
  5024. fi
  5025. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5026. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5027. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5028. fi
  5029. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5031. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5032. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5036. /* end confdefs.h. */
  5037. int i;
  5038. _ACEOF
  5039. if ac_fn_c_try_compile "$LINENO"; then :
  5040. xorg_cv_cc_flag_unused_command_line_argument=yes
  5041. else
  5042. xorg_cv_cc_flag_unused_command_line_argument=no
  5043. fi
  5044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. fi
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5047. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5048. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5049. CFLAGS="$xorg_testset_save_CFLAGS"
  5050. fi
  5051. found="no"
  5052. if test $found = "no" ; then
  5053. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5054. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5055. fi
  5056. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5057. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5058. fi
  5059. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5061. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5062. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5063. if eval \${$cacheid+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int i;
  5069. int
  5070. main ()
  5071. {
  5072. ;
  5073. return 0;
  5074. }
  5075. _ACEOF
  5076. if ac_fn_c_try_link "$LINENO"; then :
  5077. eval $cacheid=yes
  5078. else
  5079. eval $cacheid=no
  5080. fi
  5081. rm -f core conftest.err conftest.$ac_objext \
  5082. conftest$ac_exeext conftest.$ac_ext
  5083. fi
  5084. CFLAGS="$xorg_testset_save_CFLAGS"
  5085. eval supported=\$$cacheid
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5087. $as_echo "$supported" >&6; }
  5088. if test "$supported" = "yes" ; then
  5089. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5090. found="yes"
  5091. fi
  5092. fi
  5093. # This chunk adds additional warnings that could catch undesired effects.
  5094. xorg_testset_save_CFLAGS="$CFLAGS"
  5095. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5096. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5098. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5099. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5103. /* end confdefs.h. */
  5104. int i;
  5105. _ACEOF
  5106. if ac_fn_c_try_compile "$LINENO"; then :
  5107. xorg_cv_cc_flag_unknown_warning_option=yes
  5108. else
  5109. xorg_cv_cc_flag_unknown_warning_option=no
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5114. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5115. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5116. CFLAGS="$xorg_testset_save_CFLAGS"
  5117. fi
  5118. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5119. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5120. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5121. fi
  5122. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5124. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5125. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5129. /* end confdefs.h. */
  5130. int i;
  5131. _ACEOF
  5132. if ac_fn_c_try_compile "$LINENO"; then :
  5133. xorg_cv_cc_flag_unused_command_line_argument=yes
  5134. else
  5135. xorg_cv_cc_flag_unused_command_line_argument=no
  5136. fi
  5137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5138. fi
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5140. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5141. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5142. CFLAGS="$xorg_testset_save_CFLAGS"
  5143. fi
  5144. found="no"
  5145. if test $found = "no" ; then
  5146. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5147. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5148. fi
  5149. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5150. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5151. fi
  5152. CFLAGS="$CFLAGS -Wunused"
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5154. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5155. cacheid=xorg_cv_cc_flag__Wunused
  5156. if eval \${$cacheid+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5160. /* end confdefs.h. */
  5161. int i;
  5162. int
  5163. main ()
  5164. {
  5165. ;
  5166. return 0;
  5167. }
  5168. _ACEOF
  5169. if ac_fn_c_try_link "$LINENO"; then :
  5170. eval $cacheid=yes
  5171. else
  5172. eval $cacheid=no
  5173. fi
  5174. rm -f core conftest.err conftest.$ac_objext \
  5175. conftest$ac_exeext conftest.$ac_ext
  5176. fi
  5177. CFLAGS="$xorg_testset_save_CFLAGS"
  5178. eval supported=\$$cacheid
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5180. $as_echo "$supported" >&6; }
  5181. if test "$supported" = "yes" ; then
  5182. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5183. found="yes"
  5184. fi
  5185. fi
  5186. xorg_testset_save_CFLAGS="$CFLAGS"
  5187. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5188. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5190. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5191. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5195. /* end confdefs.h. */
  5196. int i;
  5197. _ACEOF
  5198. if ac_fn_c_try_compile "$LINENO"; then :
  5199. xorg_cv_cc_flag_unknown_warning_option=yes
  5200. else
  5201. xorg_cv_cc_flag_unknown_warning_option=no
  5202. fi
  5203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5204. fi
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5206. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5207. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5208. CFLAGS="$xorg_testset_save_CFLAGS"
  5209. fi
  5210. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5211. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5212. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5213. fi
  5214. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5216. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5217. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5218. $as_echo_n "(cached) " >&6
  5219. else
  5220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5221. /* end confdefs.h. */
  5222. int i;
  5223. _ACEOF
  5224. if ac_fn_c_try_compile "$LINENO"; then :
  5225. xorg_cv_cc_flag_unused_command_line_argument=yes
  5226. else
  5227. xorg_cv_cc_flag_unused_command_line_argument=no
  5228. fi
  5229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5230. fi
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5232. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5233. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5234. CFLAGS="$xorg_testset_save_CFLAGS"
  5235. fi
  5236. found="no"
  5237. if test $found = "no" ; then
  5238. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5239. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5240. fi
  5241. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5242. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5243. fi
  5244. CFLAGS="$CFLAGS -Wuninitialized"
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5246. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5247. cacheid=xorg_cv_cc_flag__Wuninitialized
  5248. if eval \${$cacheid+:} false; then :
  5249. $as_echo_n "(cached) " >&6
  5250. else
  5251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5252. /* end confdefs.h. */
  5253. int i;
  5254. int
  5255. main ()
  5256. {
  5257. ;
  5258. return 0;
  5259. }
  5260. _ACEOF
  5261. if ac_fn_c_try_link "$LINENO"; then :
  5262. eval $cacheid=yes
  5263. else
  5264. eval $cacheid=no
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext \
  5267. conftest$ac_exeext conftest.$ac_ext
  5268. fi
  5269. CFLAGS="$xorg_testset_save_CFLAGS"
  5270. eval supported=\$$cacheid
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5272. $as_echo "$supported" >&6; }
  5273. if test "$supported" = "yes" ; then
  5274. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5275. found="yes"
  5276. fi
  5277. fi
  5278. xorg_testset_save_CFLAGS="$CFLAGS"
  5279. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5280. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5282. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5283. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5287. /* end confdefs.h. */
  5288. int i;
  5289. _ACEOF
  5290. if ac_fn_c_try_compile "$LINENO"; then :
  5291. xorg_cv_cc_flag_unknown_warning_option=yes
  5292. else
  5293. xorg_cv_cc_flag_unknown_warning_option=no
  5294. fi
  5295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5296. fi
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5298. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5299. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5300. CFLAGS="$xorg_testset_save_CFLAGS"
  5301. fi
  5302. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5303. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5304. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5305. fi
  5306. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5308. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5309. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5310. $as_echo_n "(cached) " >&6
  5311. else
  5312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5313. /* end confdefs.h. */
  5314. int i;
  5315. _ACEOF
  5316. if ac_fn_c_try_compile "$LINENO"; then :
  5317. xorg_cv_cc_flag_unused_command_line_argument=yes
  5318. else
  5319. xorg_cv_cc_flag_unused_command_line_argument=no
  5320. fi
  5321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5324. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5325. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5326. CFLAGS="$xorg_testset_save_CFLAGS"
  5327. fi
  5328. found="no"
  5329. if test $found = "no" ; then
  5330. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5331. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5332. fi
  5333. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5334. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5335. fi
  5336. CFLAGS="$CFLAGS -Wshadow"
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5338. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5339. cacheid=xorg_cv_cc_flag__Wshadow
  5340. if eval \${$cacheid+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5344. /* end confdefs.h. */
  5345. int i;
  5346. int
  5347. main ()
  5348. {
  5349. ;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. if ac_fn_c_try_link "$LINENO"; then :
  5354. eval $cacheid=yes
  5355. else
  5356. eval $cacheid=no
  5357. fi
  5358. rm -f core conftest.err conftest.$ac_objext \
  5359. conftest$ac_exeext conftest.$ac_ext
  5360. fi
  5361. CFLAGS="$xorg_testset_save_CFLAGS"
  5362. eval supported=\$$cacheid
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5364. $as_echo "$supported" >&6; }
  5365. if test "$supported" = "yes" ; then
  5366. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5367. found="yes"
  5368. fi
  5369. fi
  5370. xorg_testset_save_CFLAGS="$CFLAGS"
  5371. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5372. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5374. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5375. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5376. $as_echo_n "(cached) " >&6
  5377. else
  5378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5379. /* end confdefs.h. */
  5380. int i;
  5381. _ACEOF
  5382. if ac_fn_c_try_compile "$LINENO"; then :
  5383. xorg_cv_cc_flag_unknown_warning_option=yes
  5384. else
  5385. xorg_cv_cc_flag_unknown_warning_option=no
  5386. fi
  5387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5388. fi
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5390. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5391. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5392. CFLAGS="$xorg_testset_save_CFLAGS"
  5393. fi
  5394. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5395. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5396. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5397. fi
  5398. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5400. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5401. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5402. $as_echo_n "(cached) " >&6
  5403. else
  5404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5405. /* end confdefs.h. */
  5406. int i;
  5407. _ACEOF
  5408. if ac_fn_c_try_compile "$LINENO"; then :
  5409. xorg_cv_cc_flag_unused_command_line_argument=yes
  5410. else
  5411. xorg_cv_cc_flag_unused_command_line_argument=no
  5412. fi
  5413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5416. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5417. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5418. CFLAGS="$xorg_testset_save_CFLAGS"
  5419. fi
  5420. found="no"
  5421. if test $found = "no" ; then
  5422. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5423. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5424. fi
  5425. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5426. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5427. fi
  5428. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5430. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5431. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5432. if eval \${$cacheid+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5436. /* end confdefs.h. */
  5437. int i;
  5438. int
  5439. main ()
  5440. {
  5441. ;
  5442. return 0;
  5443. }
  5444. _ACEOF
  5445. if ac_fn_c_try_link "$LINENO"; then :
  5446. eval $cacheid=yes
  5447. else
  5448. eval $cacheid=no
  5449. fi
  5450. rm -f core conftest.err conftest.$ac_objext \
  5451. conftest$ac_exeext conftest.$ac_ext
  5452. fi
  5453. CFLAGS="$xorg_testset_save_CFLAGS"
  5454. eval supported=\$$cacheid
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5456. $as_echo "$supported" >&6; }
  5457. if test "$supported" = "yes" ; then
  5458. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5459. found="yes"
  5460. fi
  5461. fi
  5462. xorg_testset_save_CFLAGS="$CFLAGS"
  5463. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5464. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5466. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5467. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5471. /* end confdefs.h. */
  5472. int i;
  5473. _ACEOF
  5474. if ac_fn_c_try_compile "$LINENO"; then :
  5475. xorg_cv_cc_flag_unknown_warning_option=yes
  5476. else
  5477. xorg_cv_cc_flag_unknown_warning_option=no
  5478. fi
  5479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5480. fi
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5482. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5483. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5484. CFLAGS="$xorg_testset_save_CFLAGS"
  5485. fi
  5486. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5487. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5488. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5489. fi
  5490. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5492. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5493. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5497. /* end confdefs.h. */
  5498. int i;
  5499. _ACEOF
  5500. if ac_fn_c_try_compile "$LINENO"; then :
  5501. xorg_cv_cc_flag_unused_command_line_argument=yes
  5502. else
  5503. xorg_cv_cc_flag_unused_command_line_argument=no
  5504. fi
  5505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5506. fi
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5508. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5509. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5510. CFLAGS="$xorg_testset_save_CFLAGS"
  5511. fi
  5512. found="no"
  5513. if test $found = "no" ; then
  5514. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5515. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5516. fi
  5517. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5518. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5519. fi
  5520. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5522. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5523. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5524. if eval \${$cacheid+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5528. /* end confdefs.h. */
  5529. int i;
  5530. int
  5531. main ()
  5532. {
  5533. ;
  5534. return 0;
  5535. }
  5536. _ACEOF
  5537. if ac_fn_c_try_link "$LINENO"; then :
  5538. eval $cacheid=yes
  5539. else
  5540. eval $cacheid=no
  5541. fi
  5542. rm -f core conftest.err conftest.$ac_objext \
  5543. conftest$ac_exeext conftest.$ac_ext
  5544. fi
  5545. CFLAGS="$xorg_testset_save_CFLAGS"
  5546. eval supported=\$$cacheid
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5548. $as_echo "$supported" >&6; }
  5549. if test "$supported" = "yes" ; then
  5550. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5551. found="yes"
  5552. fi
  5553. fi
  5554. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5555. xorg_testset_save_CFLAGS="$CFLAGS"
  5556. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5557. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5559. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5560. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5561. $as_echo_n "(cached) " >&6
  5562. else
  5563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h. */
  5565. int i;
  5566. _ACEOF
  5567. if ac_fn_c_try_compile "$LINENO"; then :
  5568. xorg_cv_cc_flag_unknown_warning_option=yes
  5569. else
  5570. xorg_cv_cc_flag_unknown_warning_option=no
  5571. fi
  5572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5573. fi
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5575. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5576. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5577. CFLAGS="$xorg_testset_save_CFLAGS"
  5578. fi
  5579. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5580. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5581. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5582. fi
  5583. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5585. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5586. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5590. /* end confdefs.h. */
  5591. int i;
  5592. _ACEOF
  5593. if ac_fn_c_try_compile "$LINENO"; then :
  5594. xorg_cv_cc_flag_unused_command_line_argument=yes
  5595. else
  5596. xorg_cv_cc_flag_unused_command_line_argument=no
  5597. fi
  5598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5599. fi
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5601. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5602. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5603. CFLAGS="$xorg_testset_save_CFLAGS"
  5604. fi
  5605. found="no"
  5606. if test $found = "no" ; then
  5607. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5608. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5609. fi
  5610. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5611. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5612. fi
  5613. CFLAGS="$CFLAGS -Wlogical-op"
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5615. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5616. cacheid=xorg_cv_cc_flag__Wlogical_op
  5617. if eval \${$cacheid+:} false; then :
  5618. $as_echo_n "(cached) " >&6
  5619. else
  5620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5621. /* end confdefs.h. */
  5622. int i;
  5623. int
  5624. main ()
  5625. {
  5626. ;
  5627. return 0;
  5628. }
  5629. _ACEOF
  5630. if ac_fn_c_try_link "$LINENO"; then :
  5631. eval $cacheid=yes
  5632. else
  5633. eval $cacheid=no
  5634. fi
  5635. rm -f core conftest.err conftest.$ac_objext \
  5636. conftest$ac_exeext conftest.$ac_ext
  5637. fi
  5638. CFLAGS="$xorg_testset_save_CFLAGS"
  5639. eval supported=\$$cacheid
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5641. $as_echo "$supported" >&6; }
  5642. if test "$supported" = "yes" ; then
  5643. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5644. found="yes"
  5645. fi
  5646. fi
  5647. # These are currently disabled because they are noisy. They will be enabled
  5648. # in the future once the codebase is sufficiently modernized to silence
  5649. # them. For now, I don't want them to drown out the other warnings.
  5650. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5651. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5652. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5653. # Turn some warnings into errors, so we don't accidently get successful builds
  5654. # when there are problems that should be fixed.
  5655. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5656. xorg_testset_save_CFLAGS="$CFLAGS"
  5657. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5658. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5660. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5661. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5665. /* end confdefs.h. */
  5666. int i;
  5667. _ACEOF
  5668. if ac_fn_c_try_compile "$LINENO"; then :
  5669. xorg_cv_cc_flag_unknown_warning_option=yes
  5670. else
  5671. xorg_cv_cc_flag_unknown_warning_option=no
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5674. fi
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5676. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5677. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5678. CFLAGS="$xorg_testset_save_CFLAGS"
  5679. fi
  5680. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5681. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5682. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5683. fi
  5684. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5686. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5687. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5688. $as_echo_n "(cached) " >&6
  5689. else
  5690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5691. /* end confdefs.h. */
  5692. int i;
  5693. _ACEOF
  5694. if ac_fn_c_try_compile "$LINENO"; then :
  5695. xorg_cv_cc_flag_unused_command_line_argument=yes
  5696. else
  5697. xorg_cv_cc_flag_unused_command_line_argument=no
  5698. fi
  5699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5700. fi
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5702. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5703. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5704. CFLAGS="$xorg_testset_save_CFLAGS"
  5705. fi
  5706. found="no"
  5707. if test $found = "no" ; then
  5708. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5709. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5710. fi
  5711. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5712. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5713. fi
  5714. CFLAGS="$CFLAGS -Werror=implicit"
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5716. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5717. cacheid=xorg_cv_cc_flag__Werror_implicit
  5718. if eval \${$cacheid+:} false; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5722. /* end confdefs.h. */
  5723. int i;
  5724. int
  5725. main ()
  5726. {
  5727. ;
  5728. return 0;
  5729. }
  5730. _ACEOF
  5731. if ac_fn_c_try_link "$LINENO"; then :
  5732. eval $cacheid=yes
  5733. else
  5734. eval $cacheid=no
  5735. fi
  5736. rm -f core conftest.err conftest.$ac_objext \
  5737. conftest$ac_exeext conftest.$ac_ext
  5738. fi
  5739. CFLAGS="$xorg_testset_save_CFLAGS"
  5740. eval supported=\$$cacheid
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5742. $as_echo "$supported" >&6; }
  5743. if test "$supported" = "yes" ; then
  5744. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5745. found="yes"
  5746. fi
  5747. fi
  5748. if test $found = "no" ; then
  5749. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5750. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5751. fi
  5752. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5753. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5754. fi
  5755. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5757. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5758. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5759. if eval \${$cacheid+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5763. /* end confdefs.h. */
  5764. int i;
  5765. int
  5766. main ()
  5767. {
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. if ac_fn_c_try_link "$LINENO"; then :
  5773. eval $cacheid=yes
  5774. else
  5775. eval $cacheid=no
  5776. fi
  5777. rm -f core conftest.err conftest.$ac_objext \
  5778. conftest$ac_exeext conftest.$ac_ext
  5779. fi
  5780. CFLAGS="$xorg_testset_save_CFLAGS"
  5781. eval supported=\$$cacheid
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5783. $as_echo "$supported" >&6; }
  5784. if test "$supported" = "yes" ; then
  5785. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5786. found="yes"
  5787. fi
  5788. fi
  5789. xorg_testset_save_CFLAGS="$CFLAGS"
  5790. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5791. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5793. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5794. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5798. /* end confdefs.h. */
  5799. int i;
  5800. _ACEOF
  5801. if ac_fn_c_try_compile "$LINENO"; then :
  5802. xorg_cv_cc_flag_unknown_warning_option=yes
  5803. else
  5804. xorg_cv_cc_flag_unknown_warning_option=no
  5805. fi
  5806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5807. fi
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5809. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5810. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5811. CFLAGS="$xorg_testset_save_CFLAGS"
  5812. fi
  5813. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5814. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5815. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5816. fi
  5817. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5819. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5820. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5824. /* end confdefs.h. */
  5825. int i;
  5826. _ACEOF
  5827. if ac_fn_c_try_compile "$LINENO"; then :
  5828. xorg_cv_cc_flag_unused_command_line_argument=yes
  5829. else
  5830. xorg_cv_cc_flag_unused_command_line_argument=no
  5831. fi
  5832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5833. fi
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5835. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5836. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5837. CFLAGS="$xorg_testset_save_CFLAGS"
  5838. fi
  5839. found="no"
  5840. if test $found = "no" ; then
  5841. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5842. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5843. fi
  5844. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5845. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5846. fi
  5847. CFLAGS="$CFLAGS -Werror=nonnull"
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5849. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5850. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5851. if eval \${$cacheid+:} false; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5855. /* end confdefs.h. */
  5856. int i;
  5857. int
  5858. main ()
  5859. {
  5860. ;
  5861. return 0;
  5862. }
  5863. _ACEOF
  5864. if ac_fn_c_try_link "$LINENO"; then :
  5865. eval $cacheid=yes
  5866. else
  5867. eval $cacheid=no
  5868. fi
  5869. rm -f core conftest.err conftest.$ac_objext \
  5870. conftest$ac_exeext conftest.$ac_ext
  5871. fi
  5872. CFLAGS="$xorg_testset_save_CFLAGS"
  5873. eval supported=\$$cacheid
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5875. $as_echo "$supported" >&6; }
  5876. if test "$supported" = "yes" ; then
  5877. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5878. found="yes"
  5879. fi
  5880. fi
  5881. xorg_testset_save_CFLAGS="$CFLAGS"
  5882. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5883. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5885. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5886. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5890. /* end confdefs.h. */
  5891. int i;
  5892. _ACEOF
  5893. if ac_fn_c_try_compile "$LINENO"; then :
  5894. xorg_cv_cc_flag_unknown_warning_option=yes
  5895. else
  5896. xorg_cv_cc_flag_unknown_warning_option=no
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5899. fi
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5901. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5902. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5903. CFLAGS="$xorg_testset_save_CFLAGS"
  5904. fi
  5905. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5906. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5907. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5908. fi
  5909. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5911. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5912. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5916. /* end confdefs.h. */
  5917. int i;
  5918. _ACEOF
  5919. if ac_fn_c_try_compile "$LINENO"; then :
  5920. xorg_cv_cc_flag_unused_command_line_argument=yes
  5921. else
  5922. xorg_cv_cc_flag_unused_command_line_argument=no
  5923. fi
  5924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5925. fi
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5927. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5928. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5929. CFLAGS="$xorg_testset_save_CFLAGS"
  5930. fi
  5931. found="no"
  5932. if test $found = "no" ; then
  5933. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5934. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5935. fi
  5936. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5937. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5938. fi
  5939. CFLAGS="$CFLAGS -Werror=init-self"
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5941. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5942. cacheid=xorg_cv_cc_flag__Werror_init_self
  5943. if eval \${$cacheid+:} false; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end confdefs.h. */
  5948. int i;
  5949. int
  5950. main ()
  5951. {
  5952. ;
  5953. return 0;
  5954. }
  5955. _ACEOF
  5956. if ac_fn_c_try_link "$LINENO"; then :
  5957. eval $cacheid=yes
  5958. else
  5959. eval $cacheid=no
  5960. fi
  5961. rm -f core conftest.err conftest.$ac_objext \
  5962. conftest$ac_exeext conftest.$ac_ext
  5963. fi
  5964. CFLAGS="$xorg_testset_save_CFLAGS"
  5965. eval supported=\$$cacheid
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5967. $as_echo "$supported" >&6; }
  5968. if test "$supported" = "yes" ; then
  5969. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5970. found="yes"
  5971. fi
  5972. fi
  5973. xorg_testset_save_CFLAGS="$CFLAGS"
  5974. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5975. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5977. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5978. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5982. /* end confdefs.h. */
  5983. int i;
  5984. _ACEOF
  5985. if ac_fn_c_try_compile "$LINENO"; then :
  5986. xorg_cv_cc_flag_unknown_warning_option=yes
  5987. else
  5988. xorg_cv_cc_flag_unknown_warning_option=no
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5991. fi
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5993. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5994. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5995. CFLAGS="$xorg_testset_save_CFLAGS"
  5996. fi
  5997. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5998. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5999. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6000. fi
  6001. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6003. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6004. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6008. /* end confdefs.h. */
  6009. int i;
  6010. _ACEOF
  6011. if ac_fn_c_try_compile "$LINENO"; then :
  6012. xorg_cv_cc_flag_unused_command_line_argument=yes
  6013. else
  6014. xorg_cv_cc_flag_unused_command_line_argument=no
  6015. fi
  6016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6017. fi
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6019. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6020. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6021. CFLAGS="$xorg_testset_save_CFLAGS"
  6022. fi
  6023. found="no"
  6024. if test $found = "no" ; then
  6025. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6026. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6027. fi
  6028. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6029. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6030. fi
  6031. CFLAGS="$CFLAGS -Werror=main"
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6033. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6034. cacheid=xorg_cv_cc_flag__Werror_main
  6035. if eval \${$cacheid+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6039. /* end confdefs.h. */
  6040. int i;
  6041. int
  6042. main ()
  6043. {
  6044. ;
  6045. return 0;
  6046. }
  6047. _ACEOF
  6048. if ac_fn_c_try_link "$LINENO"; then :
  6049. eval $cacheid=yes
  6050. else
  6051. eval $cacheid=no
  6052. fi
  6053. rm -f core conftest.err conftest.$ac_objext \
  6054. conftest$ac_exeext conftest.$ac_ext
  6055. fi
  6056. CFLAGS="$xorg_testset_save_CFLAGS"
  6057. eval supported=\$$cacheid
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6059. $as_echo "$supported" >&6; }
  6060. if test "$supported" = "yes" ; then
  6061. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6062. found="yes"
  6063. fi
  6064. fi
  6065. xorg_testset_save_CFLAGS="$CFLAGS"
  6066. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6067. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6069. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6070. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end confdefs.h. */
  6075. int i;
  6076. _ACEOF
  6077. if ac_fn_c_try_compile "$LINENO"; then :
  6078. xorg_cv_cc_flag_unknown_warning_option=yes
  6079. else
  6080. xorg_cv_cc_flag_unknown_warning_option=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6083. fi
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6085. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6086. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6087. CFLAGS="$xorg_testset_save_CFLAGS"
  6088. fi
  6089. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6090. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6091. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6092. fi
  6093. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6095. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6096. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6097. $as_echo_n "(cached) " >&6
  6098. else
  6099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6100. /* end confdefs.h. */
  6101. int i;
  6102. _ACEOF
  6103. if ac_fn_c_try_compile "$LINENO"; then :
  6104. xorg_cv_cc_flag_unused_command_line_argument=yes
  6105. else
  6106. xorg_cv_cc_flag_unused_command_line_argument=no
  6107. fi
  6108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6109. fi
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6111. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6112. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6113. CFLAGS="$xorg_testset_save_CFLAGS"
  6114. fi
  6115. found="no"
  6116. if test $found = "no" ; then
  6117. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6118. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6119. fi
  6120. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6121. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6122. fi
  6123. CFLAGS="$CFLAGS -Werror=missing-braces"
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6125. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6126. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6127. if eval \${$cacheid+:} false; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. int i;
  6133. int
  6134. main ()
  6135. {
  6136. ;
  6137. return 0;
  6138. }
  6139. _ACEOF
  6140. if ac_fn_c_try_link "$LINENO"; then :
  6141. eval $cacheid=yes
  6142. else
  6143. eval $cacheid=no
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext \
  6146. conftest$ac_exeext conftest.$ac_ext
  6147. fi
  6148. CFLAGS="$xorg_testset_save_CFLAGS"
  6149. eval supported=\$$cacheid
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6151. $as_echo "$supported" >&6; }
  6152. if test "$supported" = "yes" ; then
  6153. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6154. found="yes"
  6155. fi
  6156. fi
  6157. xorg_testset_save_CFLAGS="$CFLAGS"
  6158. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6159. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6161. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6162. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6166. /* end confdefs.h. */
  6167. int i;
  6168. _ACEOF
  6169. if ac_fn_c_try_compile "$LINENO"; then :
  6170. xorg_cv_cc_flag_unknown_warning_option=yes
  6171. else
  6172. xorg_cv_cc_flag_unknown_warning_option=no
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6175. fi
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6177. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6178. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6179. CFLAGS="$xorg_testset_save_CFLAGS"
  6180. fi
  6181. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6182. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6183. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6184. fi
  6185. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6187. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6188. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6192. /* end confdefs.h. */
  6193. int i;
  6194. _ACEOF
  6195. if ac_fn_c_try_compile "$LINENO"; then :
  6196. xorg_cv_cc_flag_unused_command_line_argument=yes
  6197. else
  6198. xorg_cv_cc_flag_unused_command_line_argument=no
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6203. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6204. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6205. CFLAGS="$xorg_testset_save_CFLAGS"
  6206. fi
  6207. found="no"
  6208. if test $found = "no" ; then
  6209. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6210. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6211. fi
  6212. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6213. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6214. fi
  6215. CFLAGS="$CFLAGS -Werror=sequence-point"
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6217. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6218. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6219. if eval \${$cacheid+:} false; then :
  6220. $as_echo_n "(cached) " >&6
  6221. else
  6222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6223. /* end confdefs.h. */
  6224. int i;
  6225. int
  6226. main ()
  6227. {
  6228. ;
  6229. return 0;
  6230. }
  6231. _ACEOF
  6232. if ac_fn_c_try_link "$LINENO"; then :
  6233. eval $cacheid=yes
  6234. else
  6235. eval $cacheid=no
  6236. fi
  6237. rm -f core conftest.err conftest.$ac_objext \
  6238. conftest$ac_exeext conftest.$ac_ext
  6239. fi
  6240. CFLAGS="$xorg_testset_save_CFLAGS"
  6241. eval supported=\$$cacheid
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6243. $as_echo "$supported" >&6; }
  6244. if test "$supported" = "yes" ; then
  6245. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6246. found="yes"
  6247. fi
  6248. fi
  6249. xorg_testset_save_CFLAGS="$CFLAGS"
  6250. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6251. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6253. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6254. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6258. /* end confdefs.h. */
  6259. int i;
  6260. _ACEOF
  6261. if ac_fn_c_try_compile "$LINENO"; then :
  6262. xorg_cv_cc_flag_unknown_warning_option=yes
  6263. else
  6264. xorg_cv_cc_flag_unknown_warning_option=no
  6265. fi
  6266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6269. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6270. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6271. CFLAGS="$xorg_testset_save_CFLAGS"
  6272. fi
  6273. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6274. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6275. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6276. fi
  6277. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6279. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6280. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6284. /* end confdefs.h. */
  6285. int i;
  6286. _ACEOF
  6287. if ac_fn_c_try_compile "$LINENO"; then :
  6288. xorg_cv_cc_flag_unused_command_line_argument=yes
  6289. else
  6290. xorg_cv_cc_flag_unused_command_line_argument=no
  6291. fi
  6292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6295. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6296. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6297. CFLAGS="$xorg_testset_save_CFLAGS"
  6298. fi
  6299. found="no"
  6300. if test $found = "no" ; then
  6301. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6302. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6303. fi
  6304. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6305. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6306. fi
  6307. CFLAGS="$CFLAGS -Werror=return-type"
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6309. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6310. cacheid=xorg_cv_cc_flag__Werror_return_type
  6311. if eval \${$cacheid+:} false; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. int i;
  6317. int
  6318. main ()
  6319. {
  6320. ;
  6321. return 0;
  6322. }
  6323. _ACEOF
  6324. if ac_fn_c_try_link "$LINENO"; then :
  6325. eval $cacheid=yes
  6326. else
  6327. eval $cacheid=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. fi
  6332. CFLAGS="$xorg_testset_save_CFLAGS"
  6333. eval supported=\$$cacheid
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6335. $as_echo "$supported" >&6; }
  6336. if test "$supported" = "yes" ; then
  6337. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6338. found="yes"
  6339. fi
  6340. fi
  6341. if test $found = "no" ; then
  6342. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6343. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6344. fi
  6345. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6346. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6347. fi
  6348. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6350. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6351. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6352. if eval \${$cacheid+:} false; then :
  6353. $as_echo_n "(cached) " >&6
  6354. else
  6355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6356. /* end confdefs.h. */
  6357. int i;
  6358. int
  6359. main ()
  6360. {
  6361. ;
  6362. return 0;
  6363. }
  6364. _ACEOF
  6365. if ac_fn_c_try_link "$LINENO"; then :
  6366. eval $cacheid=yes
  6367. else
  6368. eval $cacheid=no
  6369. fi
  6370. rm -f core conftest.err conftest.$ac_objext \
  6371. conftest$ac_exeext conftest.$ac_ext
  6372. fi
  6373. CFLAGS="$xorg_testset_save_CFLAGS"
  6374. eval supported=\$$cacheid
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6376. $as_echo "$supported" >&6; }
  6377. if test "$supported" = "yes" ; then
  6378. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6379. found="yes"
  6380. fi
  6381. fi
  6382. xorg_testset_save_CFLAGS="$CFLAGS"
  6383. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6384. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6386. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6387. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6391. /* end confdefs.h. */
  6392. int i;
  6393. _ACEOF
  6394. if ac_fn_c_try_compile "$LINENO"; then :
  6395. xorg_cv_cc_flag_unknown_warning_option=yes
  6396. else
  6397. xorg_cv_cc_flag_unknown_warning_option=no
  6398. fi
  6399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6400. fi
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6402. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6403. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6404. CFLAGS="$xorg_testset_save_CFLAGS"
  6405. fi
  6406. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6407. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6408. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6409. fi
  6410. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6412. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6413. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6417. /* end confdefs.h. */
  6418. int i;
  6419. _ACEOF
  6420. if ac_fn_c_try_compile "$LINENO"; then :
  6421. xorg_cv_cc_flag_unused_command_line_argument=yes
  6422. else
  6423. xorg_cv_cc_flag_unused_command_line_argument=no
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6426. fi
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6428. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6429. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6430. CFLAGS="$xorg_testset_save_CFLAGS"
  6431. fi
  6432. found="no"
  6433. if test $found = "no" ; then
  6434. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6435. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6436. fi
  6437. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6438. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6439. fi
  6440. CFLAGS="$CFLAGS -Werror=trigraphs"
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6442. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6443. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6444. if eval \${$cacheid+:} false; then :
  6445. $as_echo_n "(cached) " >&6
  6446. else
  6447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6448. /* end confdefs.h. */
  6449. int i;
  6450. int
  6451. main ()
  6452. {
  6453. ;
  6454. return 0;
  6455. }
  6456. _ACEOF
  6457. if ac_fn_c_try_link "$LINENO"; then :
  6458. eval $cacheid=yes
  6459. else
  6460. eval $cacheid=no
  6461. fi
  6462. rm -f core conftest.err conftest.$ac_objext \
  6463. conftest$ac_exeext conftest.$ac_ext
  6464. fi
  6465. CFLAGS="$xorg_testset_save_CFLAGS"
  6466. eval supported=\$$cacheid
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6468. $as_echo "$supported" >&6; }
  6469. if test "$supported" = "yes" ; then
  6470. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6471. found="yes"
  6472. fi
  6473. fi
  6474. xorg_testset_save_CFLAGS="$CFLAGS"
  6475. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6476. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6478. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6479. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6483. /* end confdefs.h. */
  6484. int i;
  6485. _ACEOF
  6486. if ac_fn_c_try_compile "$LINENO"; then :
  6487. xorg_cv_cc_flag_unknown_warning_option=yes
  6488. else
  6489. xorg_cv_cc_flag_unknown_warning_option=no
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6492. fi
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6494. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6495. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6496. CFLAGS="$xorg_testset_save_CFLAGS"
  6497. fi
  6498. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6499. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6500. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6501. fi
  6502. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6504. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6505. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6509. /* end confdefs.h. */
  6510. int i;
  6511. _ACEOF
  6512. if ac_fn_c_try_compile "$LINENO"; then :
  6513. xorg_cv_cc_flag_unused_command_line_argument=yes
  6514. else
  6515. xorg_cv_cc_flag_unused_command_line_argument=no
  6516. fi
  6517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6518. fi
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6520. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6521. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6522. CFLAGS="$xorg_testset_save_CFLAGS"
  6523. fi
  6524. found="no"
  6525. if test $found = "no" ; then
  6526. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6527. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6528. fi
  6529. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6530. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6531. fi
  6532. CFLAGS="$CFLAGS -Werror=array-bounds"
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6534. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6535. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6536. if eval \${$cacheid+:} false; then :
  6537. $as_echo_n "(cached) " >&6
  6538. else
  6539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6540. /* end confdefs.h. */
  6541. int i;
  6542. int
  6543. main ()
  6544. {
  6545. ;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. if ac_fn_c_try_link "$LINENO"; then :
  6550. eval $cacheid=yes
  6551. else
  6552. eval $cacheid=no
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext \
  6555. conftest$ac_exeext conftest.$ac_ext
  6556. fi
  6557. CFLAGS="$xorg_testset_save_CFLAGS"
  6558. eval supported=\$$cacheid
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6560. $as_echo "$supported" >&6; }
  6561. if test "$supported" = "yes" ; then
  6562. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6563. found="yes"
  6564. fi
  6565. fi
  6566. xorg_testset_save_CFLAGS="$CFLAGS"
  6567. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6568. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6570. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6571. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6575. /* end confdefs.h. */
  6576. int i;
  6577. _ACEOF
  6578. if ac_fn_c_try_compile "$LINENO"; then :
  6579. xorg_cv_cc_flag_unknown_warning_option=yes
  6580. else
  6581. xorg_cv_cc_flag_unknown_warning_option=no
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6584. fi
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6586. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6587. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6588. CFLAGS="$xorg_testset_save_CFLAGS"
  6589. fi
  6590. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6591. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6592. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6593. fi
  6594. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6596. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6597. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6601. /* end confdefs.h. */
  6602. int i;
  6603. _ACEOF
  6604. if ac_fn_c_try_compile "$LINENO"; then :
  6605. xorg_cv_cc_flag_unused_command_line_argument=yes
  6606. else
  6607. xorg_cv_cc_flag_unused_command_line_argument=no
  6608. fi
  6609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6610. fi
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6612. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6613. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6614. CFLAGS="$xorg_testset_save_CFLAGS"
  6615. fi
  6616. found="no"
  6617. if test $found = "no" ; then
  6618. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6619. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6620. fi
  6621. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6622. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6623. fi
  6624. CFLAGS="$CFLAGS -Werror=write-strings"
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6626. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6627. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6628. if eval \${$cacheid+:} false; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6632. /* end confdefs.h. */
  6633. int i;
  6634. int
  6635. main ()
  6636. {
  6637. ;
  6638. return 0;
  6639. }
  6640. _ACEOF
  6641. if ac_fn_c_try_link "$LINENO"; then :
  6642. eval $cacheid=yes
  6643. else
  6644. eval $cacheid=no
  6645. fi
  6646. rm -f core conftest.err conftest.$ac_objext \
  6647. conftest$ac_exeext conftest.$ac_ext
  6648. fi
  6649. CFLAGS="$xorg_testset_save_CFLAGS"
  6650. eval supported=\$$cacheid
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6652. $as_echo "$supported" >&6; }
  6653. if test "$supported" = "yes" ; then
  6654. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6655. found="yes"
  6656. fi
  6657. fi
  6658. xorg_testset_save_CFLAGS="$CFLAGS"
  6659. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6660. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6662. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6663. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6664. $as_echo_n "(cached) " >&6
  6665. else
  6666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6667. /* end confdefs.h. */
  6668. int i;
  6669. _ACEOF
  6670. if ac_fn_c_try_compile "$LINENO"; then :
  6671. xorg_cv_cc_flag_unknown_warning_option=yes
  6672. else
  6673. xorg_cv_cc_flag_unknown_warning_option=no
  6674. fi
  6675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6676. fi
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6678. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6679. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6680. CFLAGS="$xorg_testset_save_CFLAGS"
  6681. fi
  6682. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6683. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6684. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6685. fi
  6686. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6688. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6689. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6690. $as_echo_n "(cached) " >&6
  6691. else
  6692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6693. /* end confdefs.h. */
  6694. int i;
  6695. _ACEOF
  6696. if ac_fn_c_try_compile "$LINENO"; then :
  6697. xorg_cv_cc_flag_unused_command_line_argument=yes
  6698. else
  6699. xorg_cv_cc_flag_unused_command_line_argument=no
  6700. fi
  6701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6702. fi
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6704. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6705. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6706. CFLAGS="$xorg_testset_save_CFLAGS"
  6707. fi
  6708. found="no"
  6709. if test $found = "no" ; then
  6710. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6711. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6712. fi
  6713. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6714. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6715. fi
  6716. CFLAGS="$CFLAGS -Werror=address"
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6718. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6719. cacheid=xorg_cv_cc_flag__Werror_address
  6720. if eval \${$cacheid+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6724. /* end confdefs.h. */
  6725. int i;
  6726. int
  6727. main ()
  6728. {
  6729. ;
  6730. return 0;
  6731. }
  6732. _ACEOF
  6733. if ac_fn_c_try_link "$LINENO"; then :
  6734. eval $cacheid=yes
  6735. else
  6736. eval $cacheid=no
  6737. fi
  6738. rm -f core conftest.err conftest.$ac_objext \
  6739. conftest$ac_exeext conftest.$ac_ext
  6740. fi
  6741. CFLAGS="$xorg_testset_save_CFLAGS"
  6742. eval supported=\$$cacheid
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6744. $as_echo "$supported" >&6; }
  6745. if test "$supported" = "yes" ; then
  6746. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6747. found="yes"
  6748. fi
  6749. fi
  6750. xorg_testset_save_CFLAGS="$CFLAGS"
  6751. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6752. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6754. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6755. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end confdefs.h. */
  6760. int i;
  6761. _ACEOF
  6762. if ac_fn_c_try_compile "$LINENO"; then :
  6763. xorg_cv_cc_flag_unknown_warning_option=yes
  6764. else
  6765. xorg_cv_cc_flag_unknown_warning_option=no
  6766. fi
  6767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6768. fi
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6770. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6771. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6772. CFLAGS="$xorg_testset_save_CFLAGS"
  6773. fi
  6774. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6775. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6776. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6777. fi
  6778. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6780. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6781. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6785. /* end confdefs.h. */
  6786. int i;
  6787. _ACEOF
  6788. if ac_fn_c_try_compile "$LINENO"; then :
  6789. xorg_cv_cc_flag_unused_command_line_argument=yes
  6790. else
  6791. xorg_cv_cc_flag_unused_command_line_argument=no
  6792. fi
  6793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6794. fi
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6796. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6797. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6798. CFLAGS="$xorg_testset_save_CFLAGS"
  6799. fi
  6800. found="no"
  6801. if test $found = "no" ; then
  6802. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6803. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6804. fi
  6805. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6806. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6807. fi
  6808. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6810. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6811. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6812. if eval \${$cacheid+:} false; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6816. /* end confdefs.h. */
  6817. int i;
  6818. int
  6819. main ()
  6820. {
  6821. ;
  6822. return 0;
  6823. }
  6824. _ACEOF
  6825. if ac_fn_c_try_link "$LINENO"; then :
  6826. eval $cacheid=yes
  6827. else
  6828. eval $cacheid=no
  6829. fi
  6830. rm -f core conftest.err conftest.$ac_objext \
  6831. conftest$ac_exeext conftest.$ac_ext
  6832. fi
  6833. CFLAGS="$xorg_testset_save_CFLAGS"
  6834. eval supported=\$$cacheid
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6836. $as_echo "$supported" >&6; }
  6837. if test "$supported" = "yes" ; then
  6838. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6839. found="yes"
  6840. fi
  6841. fi
  6842. if test $found = "no" ; then
  6843. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6844. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6845. fi
  6846. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6847. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6848. fi
  6849. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6851. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6852. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6853. if eval \${$cacheid+:} false; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6857. /* end confdefs.h. */
  6858. int i;
  6859. int
  6860. main ()
  6861. {
  6862. ;
  6863. return 0;
  6864. }
  6865. _ACEOF
  6866. if ac_fn_c_try_link "$LINENO"; then :
  6867. eval $cacheid=yes
  6868. else
  6869. eval $cacheid=no
  6870. fi
  6871. rm -f core conftest.err conftest.$ac_objext \
  6872. conftest$ac_exeext conftest.$ac_ext
  6873. fi
  6874. CFLAGS="$xorg_testset_save_CFLAGS"
  6875. eval supported=\$$cacheid
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6877. $as_echo "$supported" >&6; }
  6878. if test "$supported" = "yes" ; then
  6879. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6880. found="yes"
  6881. fi
  6882. fi
  6883. xorg_testset_save_CFLAGS="$CFLAGS"
  6884. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6885. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6887. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6888. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6892. /* end confdefs.h. */
  6893. int i;
  6894. _ACEOF
  6895. if ac_fn_c_try_compile "$LINENO"; then :
  6896. xorg_cv_cc_flag_unknown_warning_option=yes
  6897. else
  6898. xorg_cv_cc_flag_unknown_warning_option=no
  6899. fi
  6900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6901. fi
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6903. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6904. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6905. CFLAGS="$xorg_testset_save_CFLAGS"
  6906. fi
  6907. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6908. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6909. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6910. fi
  6911. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6913. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6914. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6918. /* end confdefs.h. */
  6919. int i;
  6920. _ACEOF
  6921. if ac_fn_c_try_compile "$LINENO"; then :
  6922. xorg_cv_cc_flag_unused_command_line_argument=yes
  6923. else
  6924. xorg_cv_cc_flag_unused_command_line_argument=no
  6925. fi
  6926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6929. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6930. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6931. CFLAGS="$xorg_testset_save_CFLAGS"
  6932. fi
  6933. found="no"
  6934. if test $found = "no" ; then
  6935. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6936. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6937. fi
  6938. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6939. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6940. fi
  6941. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6943. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6944. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6945. if eval \${$cacheid+:} false; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. int i;
  6951. int
  6952. main ()
  6953. {
  6954. ;
  6955. return 0;
  6956. }
  6957. _ACEOF
  6958. if ac_fn_c_try_link "$LINENO"; then :
  6959. eval $cacheid=yes
  6960. else
  6961. eval $cacheid=no
  6962. fi
  6963. rm -f core conftest.err conftest.$ac_objext \
  6964. conftest$ac_exeext conftest.$ac_ext
  6965. fi
  6966. CFLAGS="$xorg_testset_save_CFLAGS"
  6967. eval supported=\$$cacheid
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6969. $as_echo "$supported" >&6; }
  6970. if test "$supported" = "yes" ; then
  6971. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6972. found="yes"
  6973. fi
  6974. fi
  6975. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6976. else
  6977. { $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
  6978. $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;}
  6979. xorg_testset_save_CFLAGS="$CFLAGS"
  6980. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6983. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6984. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6988. /* end confdefs.h. */
  6989. int i;
  6990. _ACEOF
  6991. if ac_fn_c_try_compile "$LINENO"; then :
  6992. xorg_cv_cc_flag_unknown_warning_option=yes
  6993. else
  6994. xorg_cv_cc_flag_unknown_warning_option=no
  6995. fi
  6996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6997. fi
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6999. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7000. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7001. CFLAGS="$xorg_testset_save_CFLAGS"
  7002. fi
  7003. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7004. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7005. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7006. fi
  7007. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7009. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7010. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end confdefs.h. */
  7015. int i;
  7016. _ACEOF
  7017. if ac_fn_c_try_compile "$LINENO"; then :
  7018. xorg_cv_cc_flag_unused_command_line_argument=yes
  7019. else
  7020. xorg_cv_cc_flag_unused_command_line_argument=no
  7021. fi
  7022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7025. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7026. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7027. CFLAGS="$xorg_testset_save_CFLAGS"
  7028. fi
  7029. found="no"
  7030. if test $found = "no" ; then
  7031. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7032. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7033. fi
  7034. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7035. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7036. fi
  7037. CFLAGS="$CFLAGS -Wimplicit"
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7039. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7040. cacheid=xorg_cv_cc_flag__Wimplicit
  7041. if eval \${$cacheid+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7045. /* end confdefs.h. */
  7046. int i;
  7047. int
  7048. main ()
  7049. {
  7050. ;
  7051. return 0;
  7052. }
  7053. _ACEOF
  7054. if ac_fn_c_try_link "$LINENO"; then :
  7055. eval $cacheid=yes
  7056. else
  7057. eval $cacheid=no
  7058. fi
  7059. rm -f core conftest.err conftest.$ac_objext \
  7060. conftest$ac_exeext conftest.$ac_ext
  7061. fi
  7062. CFLAGS="$xorg_testset_save_CFLAGS"
  7063. eval supported=\$$cacheid
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7065. $as_echo "$supported" >&6; }
  7066. if test "$supported" = "yes" ; then
  7067. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7068. found="yes"
  7069. fi
  7070. fi
  7071. xorg_testset_save_CFLAGS="$CFLAGS"
  7072. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7073. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7075. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7076. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7080. /* end confdefs.h. */
  7081. int i;
  7082. _ACEOF
  7083. if ac_fn_c_try_compile "$LINENO"; then :
  7084. xorg_cv_cc_flag_unknown_warning_option=yes
  7085. else
  7086. xorg_cv_cc_flag_unknown_warning_option=no
  7087. fi
  7088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7089. fi
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7091. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7092. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7093. CFLAGS="$xorg_testset_save_CFLAGS"
  7094. fi
  7095. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7096. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7097. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7098. fi
  7099. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7101. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7102. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7106. /* end confdefs.h. */
  7107. int i;
  7108. _ACEOF
  7109. if ac_fn_c_try_compile "$LINENO"; then :
  7110. xorg_cv_cc_flag_unused_command_line_argument=yes
  7111. else
  7112. xorg_cv_cc_flag_unused_command_line_argument=no
  7113. fi
  7114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7115. fi
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7117. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7118. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7119. CFLAGS="$xorg_testset_save_CFLAGS"
  7120. fi
  7121. found="no"
  7122. if test $found = "no" ; then
  7123. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7124. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7125. fi
  7126. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7127. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7128. fi
  7129. CFLAGS="$CFLAGS -Wnonnull"
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7131. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7132. cacheid=xorg_cv_cc_flag__Wnonnull
  7133. if eval \${$cacheid+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7137. /* end confdefs.h. */
  7138. int i;
  7139. int
  7140. main ()
  7141. {
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_link "$LINENO"; then :
  7147. eval $cacheid=yes
  7148. else
  7149. eval $cacheid=no
  7150. fi
  7151. rm -f core conftest.err conftest.$ac_objext \
  7152. conftest$ac_exeext conftest.$ac_ext
  7153. fi
  7154. CFLAGS="$xorg_testset_save_CFLAGS"
  7155. eval supported=\$$cacheid
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7157. $as_echo "$supported" >&6; }
  7158. if test "$supported" = "yes" ; then
  7159. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7160. found="yes"
  7161. fi
  7162. fi
  7163. xorg_testset_save_CFLAGS="$CFLAGS"
  7164. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7165. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7167. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7168. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7169. $as_echo_n "(cached) " >&6
  7170. else
  7171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7172. /* end confdefs.h. */
  7173. int i;
  7174. _ACEOF
  7175. if ac_fn_c_try_compile "$LINENO"; then :
  7176. xorg_cv_cc_flag_unknown_warning_option=yes
  7177. else
  7178. xorg_cv_cc_flag_unknown_warning_option=no
  7179. fi
  7180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7181. fi
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7183. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7184. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7185. CFLAGS="$xorg_testset_save_CFLAGS"
  7186. fi
  7187. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7188. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7189. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7190. fi
  7191. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7193. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7194. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7198. /* end confdefs.h. */
  7199. int i;
  7200. _ACEOF
  7201. if ac_fn_c_try_compile "$LINENO"; then :
  7202. xorg_cv_cc_flag_unused_command_line_argument=yes
  7203. else
  7204. xorg_cv_cc_flag_unused_command_line_argument=no
  7205. fi
  7206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7207. fi
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7209. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7210. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7211. CFLAGS="$xorg_testset_save_CFLAGS"
  7212. fi
  7213. found="no"
  7214. if test $found = "no" ; then
  7215. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7216. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7217. fi
  7218. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7219. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7220. fi
  7221. CFLAGS="$CFLAGS -Winit-self"
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7223. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7224. cacheid=xorg_cv_cc_flag__Winit_self
  7225. if eval \${$cacheid+:} false; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7229. /* end confdefs.h. */
  7230. int i;
  7231. int
  7232. main ()
  7233. {
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. if ac_fn_c_try_link "$LINENO"; then :
  7239. eval $cacheid=yes
  7240. else
  7241. eval $cacheid=no
  7242. fi
  7243. rm -f core conftest.err conftest.$ac_objext \
  7244. conftest$ac_exeext conftest.$ac_ext
  7245. fi
  7246. CFLAGS="$xorg_testset_save_CFLAGS"
  7247. eval supported=\$$cacheid
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7249. $as_echo "$supported" >&6; }
  7250. if test "$supported" = "yes" ; then
  7251. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7252. found="yes"
  7253. fi
  7254. fi
  7255. xorg_testset_save_CFLAGS="$CFLAGS"
  7256. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7257. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7259. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7260. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7261. $as_echo_n "(cached) " >&6
  7262. else
  7263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7264. /* end confdefs.h. */
  7265. int i;
  7266. _ACEOF
  7267. if ac_fn_c_try_compile "$LINENO"; then :
  7268. xorg_cv_cc_flag_unknown_warning_option=yes
  7269. else
  7270. xorg_cv_cc_flag_unknown_warning_option=no
  7271. fi
  7272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7275. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7276. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7277. CFLAGS="$xorg_testset_save_CFLAGS"
  7278. fi
  7279. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7280. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7281. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7282. fi
  7283. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7285. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7286. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7290. /* end confdefs.h. */
  7291. int i;
  7292. _ACEOF
  7293. if ac_fn_c_try_compile "$LINENO"; then :
  7294. xorg_cv_cc_flag_unused_command_line_argument=yes
  7295. else
  7296. xorg_cv_cc_flag_unused_command_line_argument=no
  7297. fi
  7298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7299. fi
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7301. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7302. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7303. CFLAGS="$xorg_testset_save_CFLAGS"
  7304. fi
  7305. found="no"
  7306. if test $found = "no" ; then
  7307. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7308. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7309. fi
  7310. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7311. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7312. fi
  7313. CFLAGS="$CFLAGS -Wmain"
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7315. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7316. cacheid=xorg_cv_cc_flag__Wmain
  7317. if eval \${$cacheid+:} false; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7321. /* end confdefs.h. */
  7322. int i;
  7323. int
  7324. main ()
  7325. {
  7326. ;
  7327. return 0;
  7328. }
  7329. _ACEOF
  7330. if ac_fn_c_try_link "$LINENO"; then :
  7331. eval $cacheid=yes
  7332. else
  7333. eval $cacheid=no
  7334. fi
  7335. rm -f core conftest.err conftest.$ac_objext \
  7336. conftest$ac_exeext conftest.$ac_ext
  7337. fi
  7338. CFLAGS="$xorg_testset_save_CFLAGS"
  7339. eval supported=\$$cacheid
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7341. $as_echo "$supported" >&6; }
  7342. if test "$supported" = "yes" ; then
  7343. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7344. found="yes"
  7345. fi
  7346. fi
  7347. xorg_testset_save_CFLAGS="$CFLAGS"
  7348. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7349. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7351. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7352. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7356. /* end confdefs.h. */
  7357. int i;
  7358. _ACEOF
  7359. if ac_fn_c_try_compile "$LINENO"; then :
  7360. xorg_cv_cc_flag_unknown_warning_option=yes
  7361. else
  7362. xorg_cv_cc_flag_unknown_warning_option=no
  7363. fi
  7364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7365. fi
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7367. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7368. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7369. CFLAGS="$xorg_testset_save_CFLAGS"
  7370. fi
  7371. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7372. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7373. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7374. fi
  7375. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7377. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7378. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7382. /* end confdefs.h. */
  7383. int i;
  7384. _ACEOF
  7385. if ac_fn_c_try_compile "$LINENO"; then :
  7386. xorg_cv_cc_flag_unused_command_line_argument=yes
  7387. else
  7388. xorg_cv_cc_flag_unused_command_line_argument=no
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7393. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7394. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7395. CFLAGS="$xorg_testset_save_CFLAGS"
  7396. fi
  7397. found="no"
  7398. if test $found = "no" ; then
  7399. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7400. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7401. fi
  7402. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7403. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7404. fi
  7405. CFLAGS="$CFLAGS -Wmissing-braces"
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7407. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7408. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7409. if eval \${$cacheid+:} false; then :
  7410. $as_echo_n "(cached) " >&6
  7411. else
  7412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7413. /* end confdefs.h. */
  7414. int i;
  7415. int
  7416. main ()
  7417. {
  7418. ;
  7419. return 0;
  7420. }
  7421. _ACEOF
  7422. if ac_fn_c_try_link "$LINENO"; then :
  7423. eval $cacheid=yes
  7424. else
  7425. eval $cacheid=no
  7426. fi
  7427. rm -f core conftest.err conftest.$ac_objext \
  7428. conftest$ac_exeext conftest.$ac_ext
  7429. fi
  7430. CFLAGS="$xorg_testset_save_CFLAGS"
  7431. eval supported=\$$cacheid
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7433. $as_echo "$supported" >&6; }
  7434. if test "$supported" = "yes" ; then
  7435. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7436. found="yes"
  7437. fi
  7438. fi
  7439. xorg_testset_save_CFLAGS="$CFLAGS"
  7440. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7441. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7443. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7444. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7448. /* end confdefs.h. */
  7449. int i;
  7450. _ACEOF
  7451. if ac_fn_c_try_compile "$LINENO"; then :
  7452. xorg_cv_cc_flag_unknown_warning_option=yes
  7453. else
  7454. xorg_cv_cc_flag_unknown_warning_option=no
  7455. fi
  7456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7459. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7460. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7461. CFLAGS="$xorg_testset_save_CFLAGS"
  7462. fi
  7463. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7464. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7465. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7466. fi
  7467. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7469. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7470. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7471. $as_echo_n "(cached) " >&6
  7472. else
  7473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7474. /* end confdefs.h. */
  7475. int i;
  7476. _ACEOF
  7477. if ac_fn_c_try_compile "$LINENO"; then :
  7478. xorg_cv_cc_flag_unused_command_line_argument=yes
  7479. else
  7480. xorg_cv_cc_flag_unused_command_line_argument=no
  7481. fi
  7482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7483. fi
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7485. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7486. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7487. CFLAGS="$xorg_testset_save_CFLAGS"
  7488. fi
  7489. found="no"
  7490. if test $found = "no" ; then
  7491. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7492. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7493. fi
  7494. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7495. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7496. fi
  7497. CFLAGS="$CFLAGS -Wsequence-point"
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7499. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7500. cacheid=xorg_cv_cc_flag__Wsequence_point
  7501. if eval \${$cacheid+:} false; then :
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7505. /* end confdefs.h. */
  7506. int i;
  7507. int
  7508. main ()
  7509. {
  7510. ;
  7511. return 0;
  7512. }
  7513. _ACEOF
  7514. if ac_fn_c_try_link "$LINENO"; then :
  7515. eval $cacheid=yes
  7516. else
  7517. eval $cacheid=no
  7518. fi
  7519. rm -f core conftest.err conftest.$ac_objext \
  7520. conftest$ac_exeext conftest.$ac_ext
  7521. fi
  7522. CFLAGS="$xorg_testset_save_CFLAGS"
  7523. eval supported=\$$cacheid
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7525. $as_echo "$supported" >&6; }
  7526. if test "$supported" = "yes" ; then
  7527. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7528. found="yes"
  7529. fi
  7530. fi
  7531. xorg_testset_save_CFLAGS="$CFLAGS"
  7532. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7533. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7535. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7536. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7537. $as_echo_n "(cached) " >&6
  7538. else
  7539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7540. /* end confdefs.h. */
  7541. int i;
  7542. _ACEOF
  7543. if ac_fn_c_try_compile "$LINENO"; then :
  7544. xorg_cv_cc_flag_unknown_warning_option=yes
  7545. else
  7546. xorg_cv_cc_flag_unknown_warning_option=no
  7547. fi
  7548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7551. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7552. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7553. CFLAGS="$xorg_testset_save_CFLAGS"
  7554. fi
  7555. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7556. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7557. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7558. fi
  7559. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7561. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7562. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7566. /* end confdefs.h. */
  7567. int i;
  7568. _ACEOF
  7569. if ac_fn_c_try_compile "$LINENO"; then :
  7570. xorg_cv_cc_flag_unused_command_line_argument=yes
  7571. else
  7572. xorg_cv_cc_flag_unused_command_line_argument=no
  7573. fi
  7574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7575. fi
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7577. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7578. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7579. CFLAGS="$xorg_testset_save_CFLAGS"
  7580. fi
  7581. found="no"
  7582. if test $found = "no" ; then
  7583. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7584. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7585. fi
  7586. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7587. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7588. fi
  7589. CFLAGS="$CFLAGS -Wreturn-type"
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7591. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7592. cacheid=xorg_cv_cc_flag__Wreturn_type
  7593. if eval \${$cacheid+:} false; then :
  7594. $as_echo_n "(cached) " >&6
  7595. else
  7596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7597. /* end confdefs.h. */
  7598. int i;
  7599. int
  7600. main ()
  7601. {
  7602. ;
  7603. return 0;
  7604. }
  7605. _ACEOF
  7606. if ac_fn_c_try_link "$LINENO"; then :
  7607. eval $cacheid=yes
  7608. else
  7609. eval $cacheid=no
  7610. fi
  7611. rm -f core conftest.err conftest.$ac_objext \
  7612. conftest$ac_exeext conftest.$ac_ext
  7613. fi
  7614. CFLAGS="$xorg_testset_save_CFLAGS"
  7615. eval supported=\$$cacheid
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7617. $as_echo "$supported" >&6; }
  7618. if test "$supported" = "yes" ; then
  7619. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7620. found="yes"
  7621. fi
  7622. fi
  7623. xorg_testset_save_CFLAGS="$CFLAGS"
  7624. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7625. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7627. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7628. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7629. $as_echo_n "(cached) " >&6
  7630. else
  7631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7632. /* end confdefs.h. */
  7633. int i;
  7634. _ACEOF
  7635. if ac_fn_c_try_compile "$LINENO"; then :
  7636. xorg_cv_cc_flag_unknown_warning_option=yes
  7637. else
  7638. xorg_cv_cc_flag_unknown_warning_option=no
  7639. fi
  7640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7641. fi
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7643. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7644. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7645. CFLAGS="$xorg_testset_save_CFLAGS"
  7646. fi
  7647. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7648. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7649. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7650. fi
  7651. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7653. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7654. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7655. $as_echo_n "(cached) " >&6
  7656. else
  7657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7658. /* end confdefs.h. */
  7659. int i;
  7660. _ACEOF
  7661. if ac_fn_c_try_compile "$LINENO"; then :
  7662. xorg_cv_cc_flag_unused_command_line_argument=yes
  7663. else
  7664. xorg_cv_cc_flag_unused_command_line_argument=no
  7665. fi
  7666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7667. fi
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7669. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7670. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7671. CFLAGS="$xorg_testset_save_CFLAGS"
  7672. fi
  7673. found="no"
  7674. if test $found = "no" ; then
  7675. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7676. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7677. fi
  7678. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7679. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7680. fi
  7681. CFLAGS="$CFLAGS -Wtrigraphs"
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7683. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7684. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7685. if eval \${$cacheid+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7689. /* end confdefs.h. */
  7690. int i;
  7691. int
  7692. main ()
  7693. {
  7694. ;
  7695. return 0;
  7696. }
  7697. _ACEOF
  7698. if ac_fn_c_try_link "$LINENO"; then :
  7699. eval $cacheid=yes
  7700. else
  7701. eval $cacheid=no
  7702. fi
  7703. rm -f core conftest.err conftest.$ac_objext \
  7704. conftest$ac_exeext conftest.$ac_ext
  7705. fi
  7706. CFLAGS="$xorg_testset_save_CFLAGS"
  7707. eval supported=\$$cacheid
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7709. $as_echo "$supported" >&6; }
  7710. if test "$supported" = "yes" ; then
  7711. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7712. found="yes"
  7713. fi
  7714. fi
  7715. xorg_testset_save_CFLAGS="$CFLAGS"
  7716. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7717. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7719. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7720. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7721. $as_echo_n "(cached) " >&6
  7722. else
  7723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7724. /* end confdefs.h. */
  7725. int i;
  7726. _ACEOF
  7727. if ac_fn_c_try_compile "$LINENO"; then :
  7728. xorg_cv_cc_flag_unknown_warning_option=yes
  7729. else
  7730. xorg_cv_cc_flag_unknown_warning_option=no
  7731. fi
  7732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7733. fi
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7735. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7736. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7737. CFLAGS="$xorg_testset_save_CFLAGS"
  7738. fi
  7739. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7740. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7741. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7742. fi
  7743. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7745. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7746. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7747. $as_echo_n "(cached) " >&6
  7748. else
  7749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7750. /* end confdefs.h. */
  7751. int i;
  7752. _ACEOF
  7753. if ac_fn_c_try_compile "$LINENO"; then :
  7754. xorg_cv_cc_flag_unused_command_line_argument=yes
  7755. else
  7756. xorg_cv_cc_flag_unused_command_line_argument=no
  7757. fi
  7758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7759. fi
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7761. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7762. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7763. CFLAGS="$xorg_testset_save_CFLAGS"
  7764. fi
  7765. found="no"
  7766. if test $found = "no" ; then
  7767. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7768. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7769. fi
  7770. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7771. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7772. fi
  7773. CFLAGS="$CFLAGS -Warray-bounds"
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7775. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7776. cacheid=xorg_cv_cc_flag__Warray_bounds
  7777. if eval \${$cacheid+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7781. /* end confdefs.h. */
  7782. int i;
  7783. int
  7784. main ()
  7785. {
  7786. ;
  7787. return 0;
  7788. }
  7789. _ACEOF
  7790. if ac_fn_c_try_link "$LINENO"; then :
  7791. eval $cacheid=yes
  7792. else
  7793. eval $cacheid=no
  7794. fi
  7795. rm -f core conftest.err conftest.$ac_objext \
  7796. conftest$ac_exeext conftest.$ac_ext
  7797. fi
  7798. CFLAGS="$xorg_testset_save_CFLAGS"
  7799. eval supported=\$$cacheid
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7801. $as_echo "$supported" >&6; }
  7802. if test "$supported" = "yes" ; then
  7803. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7804. found="yes"
  7805. fi
  7806. fi
  7807. xorg_testset_save_CFLAGS="$CFLAGS"
  7808. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7809. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7811. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7812. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7813. $as_echo_n "(cached) " >&6
  7814. else
  7815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7816. /* end confdefs.h. */
  7817. int i;
  7818. _ACEOF
  7819. if ac_fn_c_try_compile "$LINENO"; then :
  7820. xorg_cv_cc_flag_unknown_warning_option=yes
  7821. else
  7822. xorg_cv_cc_flag_unknown_warning_option=no
  7823. fi
  7824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7825. fi
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7827. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7828. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7829. CFLAGS="$xorg_testset_save_CFLAGS"
  7830. fi
  7831. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7832. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7833. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7834. fi
  7835. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7837. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7838. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7839. $as_echo_n "(cached) " >&6
  7840. else
  7841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7842. /* end confdefs.h. */
  7843. int i;
  7844. _ACEOF
  7845. if ac_fn_c_try_compile "$LINENO"; then :
  7846. xorg_cv_cc_flag_unused_command_line_argument=yes
  7847. else
  7848. xorg_cv_cc_flag_unused_command_line_argument=no
  7849. fi
  7850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7851. fi
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7853. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7854. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7855. CFLAGS="$xorg_testset_save_CFLAGS"
  7856. fi
  7857. found="no"
  7858. if test $found = "no" ; then
  7859. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7860. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7861. fi
  7862. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7863. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7864. fi
  7865. CFLAGS="$CFLAGS -Wwrite-strings"
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7867. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7868. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7869. if eval \${$cacheid+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7873. /* end confdefs.h. */
  7874. int i;
  7875. int
  7876. main ()
  7877. {
  7878. ;
  7879. return 0;
  7880. }
  7881. _ACEOF
  7882. if ac_fn_c_try_link "$LINENO"; then :
  7883. eval $cacheid=yes
  7884. else
  7885. eval $cacheid=no
  7886. fi
  7887. rm -f core conftest.err conftest.$ac_objext \
  7888. conftest$ac_exeext conftest.$ac_ext
  7889. fi
  7890. CFLAGS="$xorg_testset_save_CFLAGS"
  7891. eval supported=\$$cacheid
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7893. $as_echo "$supported" >&6; }
  7894. if test "$supported" = "yes" ; then
  7895. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7896. found="yes"
  7897. fi
  7898. fi
  7899. xorg_testset_save_CFLAGS="$CFLAGS"
  7900. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7901. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7903. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7904. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7905. $as_echo_n "(cached) " >&6
  7906. else
  7907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7908. /* end confdefs.h. */
  7909. int i;
  7910. _ACEOF
  7911. if ac_fn_c_try_compile "$LINENO"; then :
  7912. xorg_cv_cc_flag_unknown_warning_option=yes
  7913. else
  7914. xorg_cv_cc_flag_unknown_warning_option=no
  7915. fi
  7916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7917. fi
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7919. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7920. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7921. CFLAGS="$xorg_testset_save_CFLAGS"
  7922. fi
  7923. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7924. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7925. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7926. fi
  7927. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7929. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7930. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7931. $as_echo_n "(cached) " >&6
  7932. else
  7933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7934. /* end confdefs.h. */
  7935. int i;
  7936. _ACEOF
  7937. if ac_fn_c_try_compile "$LINENO"; then :
  7938. xorg_cv_cc_flag_unused_command_line_argument=yes
  7939. else
  7940. xorg_cv_cc_flag_unused_command_line_argument=no
  7941. fi
  7942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7943. fi
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7945. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7946. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7947. CFLAGS="$xorg_testset_save_CFLAGS"
  7948. fi
  7949. found="no"
  7950. if test $found = "no" ; then
  7951. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7952. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7953. fi
  7954. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7955. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7956. fi
  7957. CFLAGS="$CFLAGS -Waddress"
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7959. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7960. cacheid=xorg_cv_cc_flag__Waddress
  7961. if eval \${$cacheid+:} false; then :
  7962. $as_echo_n "(cached) " >&6
  7963. else
  7964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7965. /* end confdefs.h. */
  7966. int i;
  7967. int
  7968. main ()
  7969. {
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. if ac_fn_c_try_link "$LINENO"; then :
  7975. eval $cacheid=yes
  7976. else
  7977. eval $cacheid=no
  7978. fi
  7979. rm -f core conftest.err conftest.$ac_objext \
  7980. conftest$ac_exeext conftest.$ac_ext
  7981. fi
  7982. CFLAGS="$xorg_testset_save_CFLAGS"
  7983. eval supported=\$$cacheid
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7985. $as_echo "$supported" >&6; }
  7986. if test "$supported" = "yes" ; then
  7987. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7988. found="yes"
  7989. fi
  7990. fi
  7991. xorg_testset_save_CFLAGS="$CFLAGS"
  7992. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7993. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7995. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7996. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7997. $as_echo_n "(cached) " >&6
  7998. else
  7999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8000. /* end confdefs.h. */
  8001. int i;
  8002. _ACEOF
  8003. if ac_fn_c_try_compile "$LINENO"; then :
  8004. xorg_cv_cc_flag_unknown_warning_option=yes
  8005. else
  8006. xorg_cv_cc_flag_unknown_warning_option=no
  8007. fi
  8008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8009. fi
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8011. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8012. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8013. CFLAGS="$xorg_testset_save_CFLAGS"
  8014. fi
  8015. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8016. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8017. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8018. fi
  8019. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8021. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8022. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8023. $as_echo_n "(cached) " >&6
  8024. else
  8025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8026. /* end confdefs.h. */
  8027. int i;
  8028. _ACEOF
  8029. if ac_fn_c_try_compile "$LINENO"; then :
  8030. xorg_cv_cc_flag_unused_command_line_argument=yes
  8031. else
  8032. xorg_cv_cc_flag_unused_command_line_argument=no
  8033. fi
  8034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8035. fi
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8037. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8038. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8039. CFLAGS="$xorg_testset_save_CFLAGS"
  8040. fi
  8041. found="no"
  8042. if test $found = "no" ; then
  8043. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8044. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8045. fi
  8046. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8047. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8048. fi
  8049. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8051. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8052. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8053. if eval \${$cacheid+:} false; then :
  8054. $as_echo_n "(cached) " >&6
  8055. else
  8056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8057. /* end confdefs.h. */
  8058. int i;
  8059. int
  8060. main ()
  8061. {
  8062. ;
  8063. return 0;
  8064. }
  8065. _ACEOF
  8066. if ac_fn_c_try_link "$LINENO"; then :
  8067. eval $cacheid=yes
  8068. else
  8069. eval $cacheid=no
  8070. fi
  8071. rm -f core conftest.err conftest.$ac_objext \
  8072. conftest$ac_exeext conftest.$ac_ext
  8073. fi
  8074. CFLAGS="$xorg_testset_save_CFLAGS"
  8075. eval supported=\$$cacheid
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8077. $as_echo "$supported" >&6; }
  8078. if test "$supported" = "yes" ; then
  8079. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8080. found="yes"
  8081. fi
  8082. fi
  8083. xorg_testset_save_CFLAGS="$CFLAGS"
  8084. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8085. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8087. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8088. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8089. $as_echo_n "(cached) " >&6
  8090. else
  8091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8092. /* end confdefs.h. */
  8093. int i;
  8094. _ACEOF
  8095. if ac_fn_c_try_compile "$LINENO"; then :
  8096. xorg_cv_cc_flag_unknown_warning_option=yes
  8097. else
  8098. xorg_cv_cc_flag_unknown_warning_option=no
  8099. fi
  8100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8103. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8104. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8105. CFLAGS="$xorg_testset_save_CFLAGS"
  8106. fi
  8107. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8108. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8109. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8110. fi
  8111. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8113. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8114. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8118. /* end confdefs.h. */
  8119. int i;
  8120. _ACEOF
  8121. if ac_fn_c_try_compile "$LINENO"; then :
  8122. xorg_cv_cc_flag_unused_command_line_argument=yes
  8123. else
  8124. xorg_cv_cc_flag_unused_command_line_argument=no
  8125. fi
  8126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8127. fi
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8129. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8130. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8131. CFLAGS="$xorg_testset_save_CFLAGS"
  8132. fi
  8133. found="no"
  8134. if test $found = "no" ; then
  8135. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8136. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8137. fi
  8138. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8139. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8140. fi
  8141. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8143. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8144. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8145. if eval \${$cacheid+:} false; then :
  8146. $as_echo_n "(cached) " >&6
  8147. else
  8148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8149. /* end confdefs.h. */
  8150. int i;
  8151. int
  8152. main ()
  8153. {
  8154. ;
  8155. return 0;
  8156. }
  8157. _ACEOF
  8158. if ac_fn_c_try_link "$LINENO"; then :
  8159. eval $cacheid=yes
  8160. else
  8161. eval $cacheid=no
  8162. fi
  8163. rm -f core conftest.err conftest.$ac_objext \
  8164. conftest$ac_exeext conftest.$ac_ext
  8165. fi
  8166. CFLAGS="$xorg_testset_save_CFLAGS"
  8167. eval supported=\$$cacheid
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8169. $as_echo "$supported" >&6; }
  8170. if test "$supported" = "yes" ; then
  8171. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8172. found="yes"
  8173. fi
  8174. fi
  8175. fi
  8176. CWARNFLAGS="$BASE_CFLAGS"
  8177. if test "x$GCC" = xyes ; then
  8178. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8179. fi
  8180. # Check whether --enable-strict-compilation was given.
  8181. if test "${enable_strict_compilation+set}" = set; then :
  8182. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8183. else
  8184. STRICT_COMPILE=no
  8185. fi
  8186. STRICT_CFLAGS=""
  8187. xorg_testset_save_CFLAGS="$CFLAGS"
  8188. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8189. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8191. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8192. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8196. /* end confdefs.h. */
  8197. int i;
  8198. _ACEOF
  8199. if ac_fn_c_try_compile "$LINENO"; then :
  8200. xorg_cv_cc_flag_unknown_warning_option=yes
  8201. else
  8202. xorg_cv_cc_flag_unknown_warning_option=no
  8203. fi
  8204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8205. fi
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8207. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8208. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8209. CFLAGS="$xorg_testset_save_CFLAGS"
  8210. fi
  8211. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8212. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8213. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8214. fi
  8215. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8217. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8218. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8219. $as_echo_n "(cached) " >&6
  8220. else
  8221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8222. /* end confdefs.h. */
  8223. int i;
  8224. _ACEOF
  8225. if ac_fn_c_try_compile "$LINENO"; then :
  8226. xorg_cv_cc_flag_unused_command_line_argument=yes
  8227. else
  8228. xorg_cv_cc_flag_unused_command_line_argument=no
  8229. fi
  8230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8231. fi
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8233. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8234. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8235. CFLAGS="$xorg_testset_save_CFLAGS"
  8236. fi
  8237. found="no"
  8238. if test $found = "no" ; then
  8239. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8240. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8241. fi
  8242. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8243. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8244. fi
  8245. CFLAGS="$CFLAGS -pedantic"
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8247. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8248. cacheid=xorg_cv_cc_flag__pedantic
  8249. if eval \${$cacheid+:} false; then :
  8250. $as_echo_n "(cached) " >&6
  8251. else
  8252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8253. /* end confdefs.h. */
  8254. int i;
  8255. int
  8256. main ()
  8257. {
  8258. ;
  8259. return 0;
  8260. }
  8261. _ACEOF
  8262. if ac_fn_c_try_link "$LINENO"; then :
  8263. eval $cacheid=yes
  8264. else
  8265. eval $cacheid=no
  8266. fi
  8267. rm -f core conftest.err conftest.$ac_objext \
  8268. conftest$ac_exeext conftest.$ac_ext
  8269. fi
  8270. CFLAGS="$xorg_testset_save_CFLAGS"
  8271. eval supported=\$$cacheid
  8272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8273. $as_echo "$supported" >&6; }
  8274. if test "$supported" = "yes" ; then
  8275. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8276. found="yes"
  8277. fi
  8278. fi
  8279. xorg_testset_save_CFLAGS="$CFLAGS"
  8280. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8281. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8283. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8284. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8285. $as_echo_n "(cached) " >&6
  8286. else
  8287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8288. /* end confdefs.h. */
  8289. int i;
  8290. _ACEOF
  8291. if ac_fn_c_try_compile "$LINENO"; then :
  8292. xorg_cv_cc_flag_unknown_warning_option=yes
  8293. else
  8294. xorg_cv_cc_flag_unknown_warning_option=no
  8295. fi
  8296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8297. fi
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8299. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8300. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8301. CFLAGS="$xorg_testset_save_CFLAGS"
  8302. fi
  8303. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8304. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8305. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8306. fi
  8307. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8309. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8310. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8311. $as_echo_n "(cached) " >&6
  8312. else
  8313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8314. /* end confdefs.h. */
  8315. int i;
  8316. _ACEOF
  8317. if ac_fn_c_try_compile "$LINENO"; then :
  8318. xorg_cv_cc_flag_unused_command_line_argument=yes
  8319. else
  8320. xorg_cv_cc_flag_unused_command_line_argument=no
  8321. fi
  8322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8323. fi
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8325. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8326. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8327. CFLAGS="$xorg_testset_save_CFLAGS"
  8328. fi
  8329. found="no"
  8330. if test $found = "no" ; then
  8331. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8332. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8333. fi
  8334. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8335. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8336. fi
  8337. CFLAGS="$CFLAGS -Werror"
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8339. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8340. cacheid=xorg_cv_cc_flag__Werror
  8341. if eval \${$cacheid+:} false; then :
  8342. $as_echo_n "(cached) " >&6
  8343. else
  8344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8345. /* end confdefs.h. */
  8346. int i;
  8347. int
  8348. main ()
  8349. {
  8350. ;
  8351. return 0;
  8352. }
  8353. _ACEOF
  8354. if ac_fn_c_try_link "$LINENO"; then :
  8355. eval $cacheid=yes
  8356. else
  8357. eval $cacheid=no
  8358. fi
  8359. rm -f core conftest.err conftest.$ac_objext \
  8360. conftest$ac_exeext conftest.$ac_ext
  8361. fi
  8362. CFLAGS="$xorg_testset_save_CFLAGS"
  8363. eval supported=\$$cacheid
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8365. $as_echo "$supported" >&6; }
  8366. if test "$supported" = "yes" ; then
  8367. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8368. found="yes"
  8369. fi
  8370. fi
  8371. if test $found = "no" ; then
  8372. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8373. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8374. fi
  8375. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8376. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8377. fi
  8378. CFLAGS="$CFLAGS -errwarn"
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8380. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8381. cacheid=xorg_cv_cc_flag__errwarn
  8382. if eval \${$cacheid+:} false; then :
  8383. $as_echo_n "(cached) " >&6
  8384. else
  8385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8386. /* end confdefs.h. */
  8387. int i;
  8388. int
  8389. main ()
  8390. {
  8391. ;
  8392. return 0;
  8393. }
  8394. _ACEOF
  8395. if ac_fn_c_try_link "$LINENO"; then :
  8396. eval $cacheid=yes
  8397. else
  8398. eval $cacheid=no
  8399. fi
  8400. rm -f core conftest.err conftest.$ac_objext \
  8401. conftest$ac_exeext conftest.$ac_ext
  8402. fi
  8403. CFLAGS="$xorg_testset_save_CFLAGS"
  8404. eval supported=\$$cacheid
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8406. $as_echo "$supported" >&6; }
  8407. if test "$supported" = "yes" ; then
  8408. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8409. found="yes"
  8410. fi
  8411. fi
  8412. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8413. # activate it with -Werror, so we add it here explicitly.
  8414. xorg_testset_save_CFLAGS="$CFLAGS"
  8415. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8416. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8418. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8419. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8420. $as_echo_n "(cached) " >&6
  8421. else
  8422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8423. /* end confdefs.h. */
  8424. int i;
  8425. _ACEOF
  8426. if ac_fn_c_try_compile "$LINENO"; then :
  8427. xorg_cv_cc_flag_unknown_warning_option=yes
  8428. else
  8429. xorg_cv_cc_flag_unknown_warning_option=no
  8430. fi
  8431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8432. fi
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8434. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8435. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8436. CFLAGS="$xorg_testset_save_CFLAGS"
  8437. fi
  8438. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8439. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8440. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8441. fi
  8442. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8444. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8445. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8446. $as_echo_n "(cached) " >&6
  8447. else
  8448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8449. /* end confdefs.h. */
  8450. int i;
  8451. _ACEOF
  8452. if ac_fn_c_try_compile "$LINENO"; then :
  8453. xorg_cv_cc_flag_unused_command_line_argument=yes
  8454. else
  8455. xorg_cv_cc_flag_unused_command_line_argument=no
  8456. fi
  8457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8458. fi
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8460. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8461. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8462. CFLAGS="$xorg_testset_save_CFLAGS"
  8463. fi
  8464. found="no"
  8465. if test $found = "no" ; then
  8466. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8467. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8468. fi
  8469. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8470. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8471. fi
  8472. CFLAGS="$CFLAGS -Werror=attributes"
  8473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8474. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8475. cacheid=xorg_cv_cc_flag__Werror_attributes
  8476. if eval \${$cacheid+:} false; then :
  8477. $as_echo_n "(cached) " >&6
  8478. else
  8479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8480. /* end confdefs.h. */
  8481. int i;
  8482. int
  8483. main ()
  8484. {
  8485. ;
  8486. return 0;
  8487. }
  8488. _ACEOF
  8489. if ac_fn_c_try_link "$LINENO"; then :
  8490. eval $cacheid=yes
  8491. else
  8492. eval $cacheid=no
  8493. fi
  8494. rm -f core conftest.err conftest.$ac_objext \
  8495. conftest$ac_exeext conftest.$ac_ext
  8496. fi
  8497. CFLAGS="$xorg_testset_save_CFLAGS"
  8498. eval supported=\$$cacheid
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8500. $as_echo "$supported" >&6; }
  8501. if test "$supported" = "yes" ; then
  8502. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8503. found="yes"
  8504. fi
  8505. fi
  8506. if test "x$STRICT_COMPILE" = "xyes"; then
  8507. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8508. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8509. fi
  8510. cat >>confdefs.h <<_ACEOF
  8511. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8512. _ACEOF
  8513. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8514. if test "x$PVM" = "x"; then
  8515. PVM="0"
  8516. fi
  8517. cat >>confdefs.h <<_ACEOF
  8518. #define PACKAGE_VERSION_MINOR $PVM
  8519. _ACEOF
  8520. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8521. if test "x$PVP" = "x"; then
  8522. PVP="0"
  8523. fi
  8524. cat >>confdefs.h <<_ACEOF
  8525. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8526. _ACEOF
  8527. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8528. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8529. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8530. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8531. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8532. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8533. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8534. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8535. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8536. if test x$APP_MAN_SUFFIX = x ; then
  8537. APP_MAN_SUFFIX=1
  8538. fi
  8539. if test x$APP_MAN_DIR = x ; then
  8540. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8541. fi
  8542. if test x$LIB_MAN_SUFFIX = x ; then
  8543. LIB_MAN_SUFFIX=3
  8544. fi
  8545. if test x$LIB_MAN_DIR = x ; then
  8546. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8547. fi
  8548. if test x$FILE_MAN_SUFFIX = x ; then
  8549. case $host_os in
  8550. solaris*) FILE_MAN_SUFFIX=4 ;;
  8551. *) FILE_MAN_SUFFIX=5 ;;
  8552. esac
  8553. fi
  8554. if test x$FILE_MAN_DIR = x ; then
  8555. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8556. fi
  8557. if test x$MISC_MAN_SUFFIX = x ; then
  8558. case $host_os in
  8559. solaris*) MISC_MAN_SUFFIX=5 ;;
  8560. *) MISC_MAN_SUFFIX=7 ;;
  8561. esac
  8562. fi
  8563. if test x$MISC_MAN_DIR = x ; then
  8564. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8565. fi
  8566. if test x$DRIVER_MAN_SUFFIX = x ; then
  8567. case $host_os in
  8568. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8569. *) DRIVER_MAN_SUFFIX=4 ;;
  8570. esac
  8571. fi
  8572. if test x$DRIVER_MAN_DIR = x ; then
  8573. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8574. fi
  8575. if test x$ADMIN_MAN_SUFFIX = x ; then
  8576. case $host_os in
  8577. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8578. *) ADMIN_MAN_SUFFIX=8 ;;
  8579. esac
  8580. fi
  8581. if test x$ADMIN_MAN_DIR = x ; then
  8582. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8583. fi
  8584. XORG_MAN_PAGE="X Version 11"
  8585. MAN_SUBSTS="\
  8586. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8587. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8588. -e 's|__xservername__|Xorg|g' \
  8589. -e 's|__xconfigfile__|xorg.conf|g' \
  8590. -e 's|__projectroot__|\$(prefix)|g' \
  8591. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8592. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8593. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8594. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8595. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8596. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8597. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8598. # Check whether --enable-silent-rules was given.
  8599. if test "${enable_silent_rules+set}" = set; then :
  8600. enableval=$enable_silent_rules;
  8601. fi
  8602. case $enable_silent_rules in # (((
  8603. yes) AM_DEFAULT_VERBOSITY=0;;
  8604. no) AM_DEFAULT_VERBOSITY=1;;
  8605. *) AM_DEFAULT_VERBOSITY=0;;
  8606. esac
  8607. am_make=${MAKE-make}
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8609. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8610. if ${am_cv_make_support_nested_variables+:} false; then :
  8611. $as_echo_n "(cached) " >&6
  8612. else
  8613. if $as_echo 'TRUE=$(BAR$(V))
  8614. BAR0=false
  8615. BAR1=true
  8616. V=1
  8617. am__doit:
  8618. @$(TRUE)
  8619. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8620. am_cv_make_support_nested_variables=yes
  8621. else
  8622. am_cv_make_support_nested_variables=no
  8623. fi
  8624. fi
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8626. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8627. if test $am_cv_make_support_nested_variables = yes; then
  8628. AM_V='$(V)'
  8629. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8630. else
  8631. AM_V=$AM_DEFAULT_VERBOSITY
  8632. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8633. fi
  8634. AM_BACKSLASH='\'
  8635. # Obtain compiler/linker options for dependencies
  8636. pkg_failed=no
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
  8638. $as_echo_n "checking for XINPUT... " >&6; }
  8639. if test -n "$XINPUT_CFLAGS"; then
  8640. pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
  8641. elif test -n "$PKG_CONFIG"; then
  8642. if test -n "$PKG_CONFIG" && \
  8643. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
  8644. ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
  8645. ac_status=$?
  8646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8647. test $ac_status = 0; }; then
  8648. pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
  8649. test "x$?" != "x0" && pkg_failed=yes
  8650. else
  8651. pkg_failed=yes
  8652. fi
  8653. else
  8654. pkg_failed=untried
  8655. fi
  8656. if test -n "$XINPUT_LIBS"; then
  8657. pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
  8658. elif test -n "$PKG_CONFIG"; then
  8659. if test -n "$PKG_CONFIG" && \
  8660. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
  8661. ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
  8662. ac_status=$?
  8663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8664. test $ac_status = 0; }; then
  8665. pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
  8666. test "x$?" != "x0" && pkg_failed=yes
  8667. else
  8668. pkg_failed=yes
  8669. fi
  8670. else
  8671. pkg_failed=untried
  8672. fi
  8673. if test $pkg_failed = yes; then
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8675. $as_echo "no" >&6; }
  8676. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8677. _pkg_short_errors_supported=yes
  8678. else
  8679. _pkg_short_errors_supported=no
  8680. fi
  8681. if test $_pkg_short_errors_supported = yes; then
  8682. XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
  8683. else
  8684. XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
  8685. fi
  8686. # Put the nasty error message in config.log where it belongs
  8687. echo "$XINPUT_PKG_ERRORS" >&5
  8688. as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama) were not met:
  8689. $XINPUT_PKG_ERRORS
  8690. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8691. installed software in a non-standard prefix.
  8692. Alternatively, you may set the environment variables XINPUT_CFLAGS
  8693. and XINPUT_LIBS to avoid the need to call pkg-config.
  8694. See the pkg-config man page for more details." "$LINENO" 5
  8695. elif test $pkg_failed = untried; then
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8697. $as_echo "no" >&6; }
  8698. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8699. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8700. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8701. is in your PATH or set the PKG_CONFIG environment variable to the full
  8702. path to pkg-config.
  8703. Alternatively, you may set the environment variables XINPUT_CFLAGS
  8704. and XINPUT_LIBS to avoid the need to call pkg-config.
  8705. See the pkg-config man page for more details.
  8706. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8707. See \`config.log' for more details" "$LINENO" 5; }
  8708. else
  8709. XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
  8710. XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8712. $as_echo "yes" >&6; }
  8713. fi
  8714. # XI2 support
  8715. pkg_failed=no
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5
  8717. $as_echo_n "checking for XI2... " >&6; }
  8718. if test -n "$XI2_CFLAGS"; then
  8719. pkg_cv_XI2_CFLAGS="$XI2_CFLAGS"
  8720. elif test -n "$PKG_CONFIG"; then
  8721. if test -n "$PKG_CONFIG" && \
  8722. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
  8723. ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
  8724. ac_status=$?
  8725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8726. test $ac_status = 0; }; then
  8727. pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
  8728. test "x$?" != "x0" && pkg_failed=yes
  8729. else
  8730. pkg_failed=yes
  8731. fi
  8732. else
  8733. pkg_failed=untried
  8734. fi
  8735. if test -n "$XI2_LIBS"; then
  8736. pkg_cv_XI2_LIBS="$XI2_LIBS"
  8737. elif test -n "$PKG_CONFIG"; then
  8738. if test -n "$PKG_CONFIG" && \
  8739. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
  8740. ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
  8741. ac_status=$?
  8742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8743. test $ac_status = 0; }; then
  8744. pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
  8745. test "x$?" != "x0" && pkg_failed=yes
  8746. else
  8747. pkg_failed=yes
  8748. fi
  8749. else
  8750. pkg_failed=untried
  8751. fi
  8752. if test $pkg_failed = yes; then
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8754. $as_echo "no" >&6; }
  8755. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8756. _pkg_short_errors_supported=yes
  8757. else
  8758. _pkg_short_errors_supported=no
  8759. fi
  8760. if test $_pkg_short_errors_supported = yes; then
  8761. XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
  8762. else
  8763. XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
  8764. fi
  8765. # Put the nasty error message in config.log where it belongs
  8766. echo "$XI2_PKG_ERRORS" >&5
  8767. HAVE_XI2="no"
  8768. elif test $pkg_failed = untried; then
  8769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8770. $as_echo "no" >&6; }
  8771. HAVE_XI2="no"
  8772. else
  8773. XI2_CFLAGS=$pkg_cv_XI2_CFLAGS
  8774. XI2_LIBS=$pkg_cv_XI2_LIBS
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8776. $as_echo "yes" >&6; }
  8777. HAVE_XI2="yes";
  8778. $as_echo "#define HAVE_XI2 1" >>confdefs.h
  8779. fi;
  8780. if test "$HAVE_XI2" = "yes" ; then
  8781. HAVE_XI2_TRUE=
  8782. HAVE_XI2_FALSE='#'
  8783. else
  8784. HAVE_XI2_TRUE='#'
  8785. HAVE_XI2_FALSE=
  8786. fi
  8787. # XI2.1 support
  8788. pkg_failed=no
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI21" >&5
  8790. $as_echo_n "checking for XI21... " >&6; }
  8791. if test -n "$XI21_CFLAGS"; then
  8792. pkg_cv_XI21_CFLAGS="$XI21_CFLAGS"
  8793. elif test -n "$PKG_CONFIG"; then
  8794. if test -n "$PKG_CONFIG" && \
  8795. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
  8796. ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
  8797. ac_status=$?
  8798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8799. test $ac_status = 0; }; then
  8800. pkg_cv_XI21_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
  8801. test "x$?" != "x0" && pkg_failed=yes
  8802. else
  8803. pkg_failed=yes
  8804. fi
  8805. else
  8806. pkg_failed=untried
  8807. fi
  8808. if test -n "$XI21_LIBS"; then
  8809. pkg_cv_XI21_LIBS="$XI21_LIBS"
  8810. elif test -n "$PKG_CONFIG"; then
  8811. if test -n "$PKG_CONFIG" && \
  8812. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
  8813. ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
  8814. ac_status=$?
  8815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8816. test $ac_status = 0; }; then
  8817. pkg_cv_XI21_LIBS=`$PKG_CONFIG --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
  8818. test "x$?" != "x0" && pkg_failed=yes
  8819. else
  8820. pkg_failed=yes
  8821. fi
  8822. else
  8823. pkg_failed=untried
  8824. fi
  8825. if test $pkg_failed = yes; then
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8827. $as_echo "no" >&6; }
  8828. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8829. _pkg_short_errors_supported=yes
  8830. else
  8831. _pkg_short_errors_supported=no
  8832. fi
  8833. if test $_pkg_short_errors_supported = yes; then
  8834. XI21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
  8835. else
  8836. XI21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
  8837. fi
  8838. # Put the nasty error message in config.log where it belongs
  8839. echo "$XI21_PKG_ERRORS" >&5
  8840. as_fn_error $? "Package requirements (xi >= 1.4.99.1 inputproto >= 2.0.99.1) were not met:
  8841. $XI21_PKG_ERRORS
  8842. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8843. installed software in a non-standard prefix.
  8844. Alternatively, you may set the environment variables XI21_CFLAGS
  8845. and XI21_LIBS to avoid the need to call pkg-config.
  8846. See the pkg-config man page for more details." "$LINENO" 5
  8847. elif test $pkg_failed = untried; then
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8849. $as_echo "no" >&6; }
  8850. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8852. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8853. is in your PATH or set the PKG_CONFIG environment variable to the full
  8854. path to pkg-config.
  8855. Alternatively, you may set the environment variables XI21_CFLAGS
  8856. and XI21_LIBS to avoid the need to call pkg-config.
  8857. See the pkg-config man page for more details.
  8858. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8859. See \`config.log' for more details" "$LINENO" 5; }
  8860. else
  8861. XI21_CFLAGS=$pkg_cv_XI21_CFLAGS
  8862. XI21_LIBS=$pkg_cv_XI21_LIBS
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8864. $as_echo "yes" >&6; }
  8865. $as_echo "#define HAVE_XI21 1" >>confdefs.h
  8866. fi;
  8867. # XI2.2 support
  8868. pkg_failed=no
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI22" >&5
  8870. $as_echo_n "checking for XI22... " >&6; }
  8871. if test -n "$XI22_CFLAGS"; then
  8872. pkg_cv_XI22_CFLAGS="$XI22_CFLAGS"
  8873. elif test -n "$PKG_CONFIG"; then
  8874. if test -n "$PKG_CONFIG" && \
  8875. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
  8876. ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
  8877. ac_status=$?
  8878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8879. test $ac_status = 0; }; then
  8880. pkg_cv_XI22_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
  8881. test "x$?" != "x0" && pkg_failed=yes
  8882. else
  8883. pkg_failed=yes
  8884. fi
  8885. else
  8886. pkg_failed=untried
  8887. fi
  8888. if test -n "$XI22_LIBS"; then
  8889. pkg_cv_XI22_LIBS="$XI22_LIBS"
  8890. elif test -n "$PKG_CONFIG"; then
  8891. if test -n "$PKG_CONFIG" && \
  8892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
  8893. ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
  8894. ac_status=$?
  8895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8896. test $ac_status = 0; }; then
  8897. pkg_cv_XI22_LIBS=`$PKG_CONFIG --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
  8898. test "x$?" != "x0" && pkg_failed=yes
  8899. else
  8900. pkg_failed=yes
  8901. fi
  8902. else
  8903. pkg_failed=untried
  8904. fi
  8905. if test $pkg_failed = yes; then
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8907. $as_echo "no" >&6; }
  8908. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8909. _pkg_short_errors_supported=yes
  8910. else
  8911. _pkg_short_errors_supported=no
  8912. fi
  8913. if test $_pkg_short_errors_supported = yes; then
  8914. XI22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
  8915. else
  8916. XI22_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
  8917. fi
  8918. # Put the nasty error message in config.log where it belongs
  8919. echo "$XI22_PKG_ERRORS" >&5
  8920. as_fn_error $? "Package requirements (xi >= 1.5.99.1 inputproto >= 2.1.99.1) were not met:
  8921. $XI22_PKG_ERRORS
  8922. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8923. installed software in a non-standard prefix.
  8924. Alternatively, you may set the environment variables XI22_CFLAGS
  8925. and XI22_LIBS to avoid the need to call pkg-config.
  8926. See the pkg-config man page for more details." "$LINENO" 5
  8927. elif test $pkg_failed = untried; then
  8928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8929. $as_echo "no" >&6; }
  8930. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8932. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8933. is in your PATH or set the PKG_CONFIG environment variable to the full
  8934. path to pkg-config.
  8935. Alternatively, you may set the environment variables XI22_CFLAGS
  8936. and XI22_LIBS to avoid the need to call pkg-config.
  8937. See the pkg-config man page for more details.
  8938. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8939. See \`config.log' for more details" "$LINENO" 5; }
  8940. else
  8941. XI22_CFLAGS=$pkg_cv_XI22_CFLAGS
  8942. XI22_LIBS=$pkg_cv_XI22_LIBS
  8943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8944. $as_echo "yes" >&6; }
  8945. $as_echo "#define HAVE_XI22 1" >>confdefs.h
  8946. fi;
  8947. ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
  8948. cat >confcache <<\_ACEOF
  8949. # This file is a shell script that caches the results of configure
  8950. # tests run on this system so they can be shared between configure
  8951. # scripts and configure runs, see configure's option --config-cache.
  8952. # It is not useful on other systems. If it contains results you don't
  8953. # want to keep, you may remove or edit it.
  8954. #
  8955. # config.status only pays attention to the cache file if you give it
  8956. # the --recheck option to rerun configure.
  8957. #
  8958. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8959. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8960. # following values.
  8961. _ACEOF
  8962. # The following way of writing the cache mishandles newlines in values,
  8963. # but we know of no workaround that is simple, portable, and efficient.
  8964. # So, we kill variables containing newlines.
  8965. # Ultrix sh set writes to stderr and can't be redirected directly,
  8966. # and sets the high bit in the cache file unless we assign to the vars.
  8967. (
  8968. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8969. eval ac_val=\$$ac_var
  8970. case $ac_val in #(
  8971. *${as_nl}*)
  8972. case $ac_var in #(
  8973. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8974. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8975. esac
  8976. case $ac_var in #(
  8977. _ | IFS | as_nl) ;; #(
  8978. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8979. *) { eval $ac_var=; unset $ac_var;} ;;
  8980. esac ;;
  8981. esac
  8982. done
  8983. (set) 2>&1 |
  8984. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8985. *${as_nl}ac_space=\ *)
  8986. # `set' does not quote correctly, so add quotes: double-quote
  8987. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8988. sed -n \
  8989. "s/'/'\\\\''/g;
  8990. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8991. ;; #(
  8992. *)
  8993. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8994. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8995. ;;
  8996. esac |
  8997. sort
  8998. ) |
  8999. sed '
  9000. /^ac_cv_env_/b end
  9001. t clear
  9002. :clear
  9003. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9004. t end
  9005. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9006. :end' >>confcache
  9007. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9008. if test -w "$cache_file"; then
  9009. if test "x$cache_file" != "x/dev/null"; then
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9011. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9012. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9013. cat confcache >"$cache_file"
  9014. else
  9015. case $cache_file in #(
  9016. */* | ?:*)
  9017. mv -f confcache "$cache_file"$$ &&
  9018. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9019. *)
  9020. mv -f confcache "$cache_file" ;;
  9021. esac
  9022. fi
  9023. fi
  9024. else
  9025. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9026. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9027. fi
  9028. fi
  9029. rm -f confcache
  9030. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9031. # Let make expand exec_prefix.
  9032. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9033. DEFS=-DHAVE_CONFIG_H
  9034. ac_libobjs=
  9035. ac_ltlibobjs=
  9036. U=
  9037. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9038. # 1. Remove the extension, and $U if already installed.
  9039. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9040. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9041. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9042. # will be set to the directory where LIBOBJS objects are built.
  9043. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9044. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9045. done
  9046. LIBOBJS=$ac_libobjs
  9047. LTLIBOBJS=$ac_ltlibobjs
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9049. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9050. if test -n "$am_sleep_pid"; then
  9051. # Hide warnings about reused PIDs.
  9052. wait $am_sleep_pid 2>/dev/null
  9053. fi
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9055. $as_echo "done" >&6; }
  9056. if test -n "$EXEEXT"; then
  9057. am__EXEEXT_TRUE=
  9058. am__EXEEXT_FALSE='#'
  9059. else
  9060. am__EXEEXT_TRUE='#'
  9061. am__EXEEXT_FALSE=
  9062. fi
  9063. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9064. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9065. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9066. fi
  9067. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9068. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9069. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9070. fi
  9071. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9072. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9073. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9074. fi
  9075. if test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then
  9076. as_fn_error $? "conditional \"HAVE_XI2\" was never defined.
  9077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9078. fi
  9079. : "${CONFIG_STATUS=./config.status}"
  9080. ac_write_fail=0
  9081. ac_clean_files_save=$ac_clean_files
  9082. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9083. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9084. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9085. as_write_fail=0
  9086. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9087. #! $SHELL
  9088. # Generated by $as_me.
  9089. # Run this file to recreate the current configuration.
  9090. # Compiler output produced by configure, useful for debugging
  9091. # configure, is in config.log if it exists.
  9092. debug=false
  9093. ac_cs_recheck=false
  9094. ac_cs_silent=false
  9095. SHELL=\${CONFIG_SHELL-$SHELL}
  9096. export SHELL
  9097. _ASEOF
  9098. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9099. ## -------------------- ##
  9100. ## M4sh Initialization. ##
  9101. ## -------------------- ##
  9102. # Be more Bourne compatible
  9103. DUALCASE=1; export DUALCASE # for MKS sh
  9104. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9105. emulate sh
  9106. NULLCMD=:
  9107. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9108. # is contrary to our usage. Disable this feature.
  9109. alias -g '${1+"$@"}'='"$@"'
  9110. setopt NO_GLOB_SUBST
  9111. else
  9112. case `(set -o) 2>/dev/null` in #(
  9113. *posix*) :
  9114. set -o posix ;; #(
  9115. *) :
  9116. ;;
  9117. esac
  9118. fi
  9119. as_nl='
  9120. '
  9121. export as_nl
  9122. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9123. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9124. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9125. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9126. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9127. # but without wasting forks for bash or zsh.
  9128. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9129. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9130. as_echo='print -r --'
  9131. as_echo_n='print -rn --'
  9132. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9133. as_echo='printf %s\n'
  9134. as_echo_n='printf %s'
  9135. else
  9136. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9137. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9138. as_echo_n='/usr/ucb/echo -n'
  9139. else
  9140. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9141. as_echo_n_body='eval
  9142. arg=$1;
  9143. case $arg in #(
  9144. *"$as_nl"*)
  9145. expr "X$arg" : "X\\(.*\\)$as_nl";
  9146. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9147. esac;
  9148. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9149. '
  9150. export as_echo_n_body
  9151. as_echo_n='sh -c $as_echo_n_body as_echo'
  9152. fi
  9153. export as_echo_body
  9154. as_echo='sh -c $as_echo_body as_echo'
  9155. fi
  9156. # The user is always right.
  9157. if test "${PATH_SEPARATOR+set}" != set; then
  9158. PATH_SEPARATOR=:
  9159. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9160. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9161. PATH_SEPARATOR=';'
  9162. }
  9163. fi
  9164. # IFS
  9165. # We need space, tab and new line, in precisely that order. Quoting is
  9166. # there to prevent editors from complaining about space-tab.
  9167. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9168. # splitting by setting IFS to empty value.)
  9169. IFS=" "" $as_nl"
  9170. # Find who we are. Look in the path if we contain no directory separator.
  9171. as_myself=
  9172. case $0 in #((
  9173. *[\\/]* ) as_myself=$0 ;;
  9174. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9175. for as_dir in $PATH
  9176. do
  9177. IFS=$as_save_IFS
  9178. test -z "$as_dir" && as_dir=.
  9179. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9180. done
  9181. IFS=$as_save_IFS
  9182. ;;
  9183. esac
  9184. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9185. # in which case we are not to be found in the path.
  9186. if test "x$as_myself" = x; then
  9187. as_myself=$0
  9188. fi
  9189. if test ! -f "$as_myself"; then
  9190. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9191. exit 1
  9192. fi
  9193. # Unset variables that we do not need and which cause bugs (e.g. in
  9194. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9195. # suppresses any "Segmentation fault" message there. '((' could
  9196. # trigger a bug in pdksh 5.2.14.
  9197. for as_var in BASH_ENV ENV MAIL MAILPATH
  9198. do eval test x\${$as_var+set} = xset \
  9199. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9200. done
  9201. PS1='$ '
  9202. PS2='> '
  9203. PS4='+ '
  9204. # NLS nuisances.
  9205. LC_ALL=C
  9206. export LC_ALL
  9207. LANGUAGE=C
  9208. export LANGUAGE
  9209. # CDPATH.
  9210. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9211. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9212. # ----------------------------------------
  9213. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9214. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9215. # script with STATUS, using 1 if that was 0.
  9216. as_fn_error ()
  9217. {
  9218. as_status=$1; test $as_status -eq 0 && as_status=1
  9219. if test "$4"; then
  9220. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9221. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9222. fi
  9223. $as_echo "$as_me: error: $2" >&2
  9224. as_fn_exit $as_status
  9225. } # as_fn_error
  9226. # as_fn_set_status STATUS
  9227. # -----------------------
  9228. # Set $? to STATUS, without forking.
  9229. as_fn_set_status ()
  9230. {
  9231. return $1
  9232. } # as_fn_set_status
  9233. # as_fn_exit STATUS
  9234. # -----------------
  9235. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9236. as_fn_exit ()
  9237. {
  9238. set +e
  9239. as_fn_set_status $1
  9240. exit $1
  9241. } # as_fn_exit
  9242. # as_fn_unset VAR
  9243. # ---------------
  9244. # Portably unset VAR.
  9245. as_fn_unset ()
  9246. {
  9247. { eval $1=; unset $1;}
  9248. }
  9249. as_unset=as_fn_unset
  9250. # as_fn_append VAR VALUE
  9251. # ----------------------
  9252. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9253. # advantage of any shell optimizations that allow amortized linear growth over
  9254. # repeated appends, instead of the typical quadratic growth present in naive
  9255. # implementations.
  9256. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9257. eval 'as_fn_append ()
  9258. {
  9259. eval $1+=\$2
  9260. }'
  9261. else
  9262. as_fn_append ()
  9263. {
  9264. eval $1=\$$1\$2
  9265. }
  9266. fi # as_fn_append
  9267. # as_fn_arith ARG...
  9268. # ------------------
  9269. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9270. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9271. # must be portable across $(()) and expr.
  9272. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9273. eval 'as_fn_arith ()
  9274. {
  9275. as_val=$(( $* ))
  9276. }'
  9277. else
  9278. as_fn_arith ()
  9279. {
  9280. as_val=`expr "$@" || test $? -eq 1`
  9281. }
  9282. fi # as_fn_arith
  9283. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9284. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9285. as_expr=expr
  9286. else
  9287. as_expr=false
  9288. fi
  9289. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9290. as_basename=basename
  9291. else
  9292. as_basename=false
  9293. fi
  9294. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9295. as_dirname=dirname
  9296. else
  9297. as_dirname=false
  9298. fi
  9299. as_me=`$as_basename -- "$0" ||
  9300. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9301. X"$0" : 'X\(//\)$' \| \
  9302. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9303. $as_echo X/"$0" |
  9304. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9305. s//\1/
  9306. q
  9307. }
  9308. /^X\/\(\/\/\)$/{
  9309. s//\1/
  9310. q
  9311. }
  9312. /^X\/\(\/\).*/{
  9313. s//\1/
  9314. q
  9315. }
  9316. s/.*/./; q'`
  9317. # Avoid depending upon Character Ranges.
  9318. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9319. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9320. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9321. as_cr_digits='0123456789'
  9322. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9323. ECHO_C= ECHO_N= ECHO_T=
  9324. case `echo -n x` in #(((((
  9325. -n*)
  9326. case `echo 'xy\c'` in
  9327. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9328. xy) ECHO_C='\c';;
  9329. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9330. ECHO_T=' ';;
  9331. esac;;
  9332. *)
  9333. ECHO_N='-n';;
  9334. esac
  9335. rm -f conf$$ conf$$.exe conf$$.file
  9336. if test -d conf$$.dir; then
  9337. rm -f conf$$.dir/conf$$.file
  9338. else
  9339. rm -f conf$$.dir
  9340. mkdir conf$$.dir 2>/dev/null
  9341. fi
  9342. if (echo >conf$$.file) 2>/dev/null; then
  9343. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9344. as_ln_s='ln -s'
  9345. # ... but there are two gotchas:
  9346. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9347. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9348. # In both cases, we have to default to `cp -pR'.
  9349. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9350. as_ln_s='cp -pR'
  9351. elif ln conf$$.file conf$$ 2>/dev/null; then
  9352. as_ln_s=ln
  9353. else
  9354. as_ln_s='cp -pR'
  9355. fi
  9356. else
  9357. as_ln_s='cp -pR'
  9358. fi
  9359. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9360. rmdir conf$$.dir 2>/dev/null
  9361. # as_fn_mkdir_p
  9362. # -------------
  9363. # Create "$as_dir" as a directory, including parents if necessary.
  9364. as_fn_mkdir_p ()
  9365. {
  9366. case $as_dir in #(
  9367. -*) as_dir=./$as_dir;;
  9368. esac
  9369. test -d "$as_dir" || eval $as_mkdir_p || {
  9370. as_dirs=
  9371. while :; do
  9372. case $as_dir in #(
  9373. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9374. *) as_qdir=$as_dir;;
  9375. esac
  9376. as_dirs="'$as_qdir' $as_dirs"
  9377. as_dir=`$as_dirname -- "$as_dir" ||
  9378. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9379. X"$as_dir" : 'X\(//\)[^/]' \| \
  9380. X"$as_dir" : 'X\(//\)$' \| \
  9381. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9382. $as_echo X"$as_dir" |
  9383. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9384. s//\1/
  9385. q
  9386. }
  9387. /^X\(\/\/\)[^/].*/{
  9388. s//\1/
  9389. q
  9390. }
  9391. /^X\(\/\/\)$/{
  9392. s//\1/
  9393. q
  9394. }
  9395. /^X\(\/\).*/{
  9396. s//\1/
  9397. q
  9398. }
  9399. s/.*/./; q'`
  9400. test -d "$as_dir" && break
  9401. done
  9402. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9403. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9404. } # as_fn_mkdir_p
  9405. if mkdir -p . 2>/dev/null; then
  9406. as_mkdir_p='mkdir -p "$as_dir"'
  9407. else
  9408. test -d ./-p && rmdir ./-p
  9409. as_mkdir_p=false
  9410. fi
  9411. # as_fn_executable_p FILE
  9412. # -----------------------
  9413. # Test if FILE is an executable regular file.
  9414. as_fn_executable_p ()
  9415. {
  9416. test -f "$1" && test -x "$1"
  9417. } # as_fn_executable_p
  9418. as_test_x='test -x'
  9419. as_executable_p=as_fn_executable_p
  9420. # Sed expression to map a string onto a valid CPP name.
  9421. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9422. # Sed expression to map a string onto a valid variable name.
  9423. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9424. exec 6>&1
  9425. ## ----------------------------------- ##
  9426. ## Main body of $CONFIG_STATUS script. ##
  9427. ## ----------------------------------- ##
  9428. _ASEOF
  9429. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9431. # Save the log message, to keep $0 and so on meaningful, and to
  9432. # report actual input values of CONFIG_FILES etc. instead of their
  9433. # values after options handling.
  9434. ac_log="
  9435. This file was extended by xinput $as_me 1.6.1, which was
  9436. generated by GNU Autoconf 2.69. Invocation command line was
  9437. CONFIG_FILES = $CONFIG_FILES
  9438. CONFIG_HEADERS = $CONFIG_HEADERS
  9439. CONFIG_LINKS = $CONFIG_LINKS
  9440. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9441. $ $0 $@
  9442. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9443. "
  9444. _ACEOF
  9445. case $ac_config_files in *"
  9446. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9447. esac
  9448. case $ac_config_headers in *"
  9449. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9450. esac
  9451. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9452. # Files that config.status was made for.
  9453. config_files="$ac_config_files"
  9454. config_headers="$ac_config_headers"
  9455. config_commands="$ac_config_commands"
  9456. _ACEOF
  9457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9458. ac_cs_usage="\
  9459. \`$as_me' instantiates files and other configuration actions
  9460. from templates according to the current configuration. Unless the files
  9461. and actions are specified as TAGs, all are instantiated by default.
  9462. Usage: $0 [OPTION]... [TAG]...
  9463. -h, --help print this help, then exit
  9464. -V, --version print version number and configuration settings, then exit
  9465. --config print configuration, then exit
  9466. -q, --quiet, --silent
  9467. do not print progress messages
  9468. -d, --debug don't remove temporary files
  9469. --recheck update $as_me by reconfiguring in the same conditions
  9470. --file=FILE[:TEMPLATE]
  9471. instantiate the configuration file FILE
  9472. --header=FILE[:TEMPLATE]
  9473. instantiate the configuration header FILE
  9474. Configuration files:
  9475. $config_files
  9476. Configuration headers:
  9477. $config_headers
  9478. Configuration commands:
  9479. $config_commands
  9480. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9481. _ACEOF
  9482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9483. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9484. ac_cs_version="\\
  9485. xinput config.status 1.6.1
  9486. configured by $0, generated by GNU Autoconf 2.69,
  9487. with options \\"\$ac_cs_config\\"
  9488. Copyright (C) 2012 Free Software Foundation, Inc.
  9489. This config.status script is free software; the Free Software Foundation
  9490. gives unlimited permission to copy, distribute and modify it."
  9491. ac_pwd='$ac_pwd'
  9492. srcdir='$srcdir'
  9493. INSTALL='$INSTALL'
  9494. MKDIR_P='$MKDIR_P'
  9495. AWK='$AWK'
  9496. test -n "\$AWK" || AWK=awk
  9497. _ACEOF
  9498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9499. # The default lists apply if the user does not specify any file.
  9500. ac_need_defaults=:
  9501. while test $# != 0
  9502. do
  9503. case $1 in
  9504. --*=?*)
  9505. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9506. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9507. ac_shift=:
  9508. ;;
  9509. --*=)
  9510. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9511. ac_optarg=
  9512. ac_shift=:
  9513. ;;
  9514. *)
  9515. ac_option=$1
  9516. ac_optarg=$2
  9517. ac_shift=shift
  9518. ;;
  9519. esac
  9520. case $ac_option in
  9521. # Handling of the options.
  9522. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9523. ac_cs_recheck=: ;;
  9524. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9525. $as_echo "$ac_cs_version"; exit ;;
  9526. --config | --confi | --conf | --con | --co | --c )
  9527. $as_echo "$ac_cs_config"; exit ;;
  9528. --debug | --debu | --deb | --de | --d | -d )
  9529. debug=: ;;
  9530. --file | --fil | --fi | --f )
  9531. $ac_shift
  9532. case $ac_optarg in
  9533. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9534. '') as_fn_error $? "missing file argument" ;;
  9535. esac
  9536. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9537. ac_need_defaults=false;;
  9538. --header | --heade | --head | --hea )
  9539. $ac_shift
  9540. case $ac_optarg in
  9541. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9542. esac
  9543. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9544. ac_need_defaults=false;;
  9545. --he | --h)
  9546. # Conflict between --help and --header
  9547. as_fn_error $? "ambiguous option: \`$1'
  9548. Try \`$0 --help' for more information.";;
  9549. --help | --hel | -h )
  9550. $as_echo "$ac_cs_usage"; exit ;;
  9551. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9552. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9553. ac_cs_silent=: ;;
  9554. # This is an error.
  9555. -*) as_fn_error $? "unrecognized option: \`$1'
  9556. Try \`$0 --help' for more information." ;;
  9557. *) as_fn_append ac_config_targets " $1"
  9558. ac_need_defaults=false ;;
  9559. esac
  9560. shift
  9561. done
  9562. ac_configure_extra_args=
  9563. if $ac_cs_silent; then
  9564. exec 6>/dev/null
  9565. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9566. fi
  9567. _ACEOF
  9568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9569. if \$ac_cs_recheck; then
  9570. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9571. shift
  9572. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9573. CONFIG_SHELL='$SHELL'
  9574. export CONFIG_SHELL
  9575. exec "\$@"
  9576. fi
  9577. _ACEOF
  9578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9579. exec 5>>config.log
  9580. {
  9581. echo
  9582. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9583. ## Running $as_me. ##
  9584. _ASBOX
  9585. $as_echo "$ac_log"
  9586. } >&5
  9587. _ACEOF
  9588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9589. #
  9590. # INIT-COMMANDS
  9591. #
  9592. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9593. _ACEOF
  9594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9595. # Handling of arguments.
  9596. for ac_config_target in $ac_config_targets
  9597. do
  9598. case $ac_config_target in
  9599. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9600. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9601. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9602. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9603. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9604. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9605. esac
  9606. done
  9607. # If the user did not use the arguments to specify the items to instantiate,
  9608. # then the envvar interface is used. Set only those that are not.
  9609. # We use the long form for the default assignment because of an extremely
  9610. # bizarre bug on SunOS 4.1.3.
  9611. if $ac_need_defaults; then
  9612. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9613. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9614. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9615. fi
  9616. # Have a temporary directory for convenience. Make it in the build tree
  9617. # simply because there is no reason against having it here, and in addition,
  9618. # creating and moving files from /tmp can sometimes cause problems.
  9619. # Hook for its removal unless debugging.
  9620. # Note that there is a small window in which the directory will not be cleaned:
  9621. # after its creation but before its name has been assigned to `$tmp'.
  9622. $debug ||
  9623. {
  9624. tmp= ac_tmp=
  9625. trap 'exit_status=$?
  9626. : "${ac_tmp:=$tmp}"
  9627. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9628. ' 0
  9629. trap 'as_fn_exit 1' 1 2 13 15
  9630. }
  9631. # Create a (secure) tmp directory for tmp files.
  9632. {
  9633. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9634. test -d "$tmp"
  9635. } ||
  9636. {
  9637. tmp=./conf$$-$RANDOM
  9638. (umask 077 && mkdir "$tmp")
  9639. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9640. ac_tmp=$tmp
  9641. # Set up the scripts for CONFIG_FILES section.
  9642. # No need to generate them if there are no CONFIG_FILES.
  9643. # This happens for instance with `./config.status config.h'.
  9644. if test -n "$CONFIG_FILES"; then
  9645. ac_cr=`echo X | tr X '\015'`
  9646. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9647. # But we know of no other shell where ac_cr would be empty at this
  9648. # point, so we can use a bashism as a fallback.
  9649. if test "x$ac_cr" = x; then
  9650. eval ac_cr=\$\'\\r\'
  9651. fi
  9652. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9653. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9654. ac_cs_awk_cr='\\r'
  9655. else
  9656. ac_cs_awk_cr=$ac_cr
  9657. fi
  9658. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9659. _ACEOF
  9660. {
  9661. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9662. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9663. echo "_ACEOF"
  9664. } >conf$$subs.sh ||
  9665. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9666. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9667. ac_delim='%!_!# '
  9668. for ac_last_try in false false false false false :; do
  9669. . ./conf$$subs.sh ||
  9670. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9671. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9672. if test $ac_delim_n = $ac_delim_num; then
  9673. break
  9674. elif $ac_last_try; then
  9675. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9676. else
  9677. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9678. fi
  9679. done
  9680. rm -f conf$$subs.sh
  9681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9682. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9683. _ACEOF
  9684. sed -n '
  9685. h
  9686. s/^/S["/; s/!.*/"]=/
  9687. p
  9688. g
  9689. s/^[^!]*!//
  9690. :repl
  9691. t repl
  9692. s/'"$ac_delim"'$//
  9693. t delim
  9694. :nl
  9695. h
  9696. s/\(.\{148\}\)..*/\1/
  9697. t more1
  9698. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9699. p
  9700. n
  9701. b repl
  9702. :more1
  9703. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9704. p
  9705. g
  9706. s/.\{148\}//
  9707. t nl
  9708. :delim
  9709. h
  9710. s/\(.\{148\}\)..*/\1/
  9711. t more2
  9712. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9713. p
  9714. b
  9715. :more2
  9716. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9717. p
  9718. g
  9719. s/.\{148\}//
  9720. t delim
  9721. ' <conf$$subs.awk | sed '
  9722. /^[^""]/{
  9723. N
  9724. s/\n//
  9725. }
  9726. ' >>$CONFIG_STATUS || ac_write_fail=1
  9727. rm -f conf$$subs.awk
  9728. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9729. _ACAWK
  9730. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9731. for (key in S) S_is_set[key] = 1
  9732. FS = ""
  9733. }
  9734. {
  9735. line = $ 0
  9736. nfields = split(line, field, "@")
  9737. substed = 0
  9738. len = length(field[1])
  9739. for (i = 2; i < nfields; i++) {
  9740. key = field[i]
  9741. keylen = length(key)
  9742. if (S_is_set[key]) {
  9743. value = S[key]
  9744. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9745. len += length(value) + length(field[++i])
  9746. substed = 1
  9747. } else
  9748. len += 1 + keylen
  9749. }
  9750. print line
  9751. }
  9752. _ACAWK
  9753. _ACEOF
  9754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9755. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9756. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9757. else
  9758. cat
  9759. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9760. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9761. _ACEOF
  9762. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9763. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9764. # trailing colons and then remove the whole line if VPATH becomes empty
  9765. # (actually we leave an empty line to preserve line numbers).
  9766. if test "x$srcdir" = x.; then
  9767. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9768. h
  9769. s///
  9770. s/^/:/
  9771. s/[ ]*$/:/
  9772. s/:\$(srcdir):/:/g
  9773. s/:\${srcdir}:/:/g
  9774. s/:@srcdir@:/:/g
  9775. s/^:*//
  9776. s/:*$//
  9777. x
  9778. s/\(=[ ]*\).*/\1/
  9779. G
  9780. s/\n//
  9781. s/^[^=]*=[ ]*$//
  9782. }'
  9783. fi
  9784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9785. fi # test -n "$CONFIG_FILES"
  9786. # Set up the scripts for CONFIG_HEADERS section.
  9787. # No need to generate them if there are no CONFIG_HEADERS.
  9788. # This happens for instance with `./config.status Makefile'.
  9789. if test -n "$CONFIG_HEADERS"; then
  9790. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9791. BEGIN {
  9792. _ACEOF
  9793. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9794. # here-document in config.status, that substitutes the proper values into
  9795. # config.h.in to produce config.h.
  9796. # Create a delimiter string that does not exist in confdefs.h, to ease
  9797. # handling of long lines.
  9798. ac_delim='%!_!# '
  9799. for ac_last_try in false false :; do
  9800. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9801. if test -z "$ac_tt"; then
  9802. break
  9803. elif $ac_last_try; then
  9804. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9805. else
  9806. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9807. fi
  9808. done
  9809. # For the awk script, D is an array of macro values keyed by name,
  9810. # likewise P contains macro parameters if any. Preserve backslash
  9811. # newline sequences.
  9812. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9813. sed -n '
  9814. s/.\{148\}/&'"$ac_delim"'/g
  9815. t rset
  9816. :rset
  9817. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9818. t def
  9819. d
  9820. :def
  9821. s/\\$//
  9822. t bsnl
  9823. s/["\\]/\\&/g
  9824. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9825. D["\1"]=" \3"/p
  9826. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9827. d
  9828. :bsnl
  9829. s/["\\]/\\&/g
  9830. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9831. D["\1"]=" \3\\\\\\n"\\/p
  9832. t cont
  9833. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9834. t cont
  9835. d
  9836. :cont
  9837. n
  9838. s/.\{148\}/&'"$ac_delim"'/g
  9839. t clear
  9840. :clear
  9841. s/\\$//
  9842. t bsnlc
  9843. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9844. d
  9845. :bsnlc
  9846. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9847. b cont
  9848. ' <confdefs.h | sed '
  9849. s/'"$ac_delim"'/"\\\
  9850. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9852. for (key in D) D_is_set[key] = 1
  9853. FS = ""
  9854. }
  9855. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9856. line = \$ 0
  9857. split(line, arg, " ")
  9858. if (arg[1] == "#") {
  9859. defundef = arg[2]
  9860. mac1 = arg[3]
  9861. } else {
  9862. defundef = substr(arg[1], 2)
  9863. mac1 = arg[2]
  9864. }
  9865. split(mac1, mac2, "(") #)
  9866. macro = mac2[1]
  9867. prefix = substr(line, 1, index(line, defundef) - 1)
  9868. if (D_is_set[macro]) {
  9869. # Preserve the white space surrounding the "#".
  9870. print prefix "define", macro P[macro] D[macro]
  9871. next
  9872. } else {
  9873. # Replace #undef with comments. This is necessary, for example,
  9874. # in the case of _POSIX_SOURCE, which is predefined and required
  9875. # on some systems where configure will not decide to define it.
  9876. if (defundef == "undef") {
  9877. print "/*", prefix defundef, macro, "*/"
  9878. next
  9879. }
  9880. }
  9881. }
  9882. { print }
  9883. _ACAWK
  9884. _ACEOF
  9885. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9886. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9887. fi # test -n "$CONFIG_HEADERS"
  9888. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9889. shift
  9890. for ac_tag
  9891. do
  9892. case $ac_tag in
  9893. :[FHLC]) ac_mode=$ac_tag; continue;;
  9894. esac
  9895. case $ac_mode$ac_tag in
  9896. :[FHL]*:*);;
  9897. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9898. :[FH]-) ac_tag=-:-;;
  9899. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9900. esac
  9901. ac_save_IFS=$IFS
  9902. IFS=:
  9903. set x $ac_tag
  9904. IFS=$ac_save_IFS
  9905. shift
  9906. ac_file=$1
  9907. shift
  9908. case $ac_mode in
  9909. :L) ac_source=$1;;
  9910. :[FH])
  9911. ac_file_inputs=
  9912. for ac_f
  9913. do
  9914. case $ac_f in
  9915. -) ac_f="$ac_tmp/stdin";;
  9916. *) # Look for the file first in the build tree, then in the source tree
  9917. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9918. # because $ac_f cannot contain `:'.
  9919. test -f "$ac_f" ||
  9920. case $ac_f in
  9921. [\\/$]*) false;;
  9922. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9923. esac ||
  9924. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9925. esac
  9926. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9927. as_fn_append ac_file_inputs " '$ac_f'"
  9928. done
  9929. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9930. # use $as_me), people would be surprised to read:
  9931. # /* config.h. Generated by config.status. */
  9932. configure_input='Generated from '`
  9933. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9934. `' by configure.'
  9935. if test x"$ac_file" != x-; then
  9936. configure_input="$ac_file. $configure_input"
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9938. $as_echo "$as_me: creating $ac_file" >&6;}
  9939. fi
  9940. # Neutralize special characters interpreted by sed in replacement strings.
  9941. case $configure_input in #(
  9942. *\&* | *\|* | *\\* )
  9943. ac_sed_conf_input=`$as_echo "$configure_input" |
  9944. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9945. *) ac_sed_conf_input=$configure_input;;
  9946. esac
  9947. case $ac_tag in
  9948. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9949. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9950. esac
  9951. ;;
  9952. esac
  9953. ac_dir=`$as_dirname -- "$ac_file" ||
  9954. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9955. X"$ac_file" : 'X\(//\)[^/]' \| \
  9956. X"$ac_file" : 'X\(//\)$' \| \
  9957. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9958. $as_echo X"$ac_file" |
  9959. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9960. s//\1/
  9961. q
  9962. }
  9963. /^X\(\/\/\)[^/].*/{
  9964. s//\1/
  9965. q
  9966. }
  9967. /^X\(\/\/\)$/{
  9968. s//\1/
  9969. q
  9970. }
  9971. /^X\(\/\).*/{
  9972. s//\1/
  9973. q
  9974. }
  9975. s/.*/./; q'`
  9976. as_dir="$ac_dir"; as_fn_mkdir_p
  9977. ac_builddir=.
  9978. case "$ac_dir" in
  9979. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9980. *)
  9981. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9982. # A ".." for each directory in $ac_dir_suffix.
  9983. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9984. case $ac_top_builddir_sub in
  9985. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9986. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9987. esac ;;
  9988. esac
  9989. ac_abs_top_builddir=$ac_pwd
  9990. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9991. # for backward compatibility:
  9992. ac_top_builddir=$ac_top_build_prefix
  9993. case $srcdir in
  9994. .) # We are building in place.
  9995. ac_srcdir=.
  9996. ac_top_srcdir=$ac_top_builddir_sub
  9997. ac_abs_top_srcdir=$ac_pwd ;;
  9998. [\\/]* | ?:[\\/]* ) # Absolute name.
  9999. ac_srcdir=$srcdir$ac_dir_suffix;
  10000. ac_top_srcdir=$srcdir
  10001. ac_abs_top_srcdir=$srcdir ;;
  10002. *) # Relative name.
  10003. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10004. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10005. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10006. esac
  10007. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10008. case $ac_mode in
  10009. :F)
  10010. #
  10011. # CONFIG_FILE
  10012. #
  10013. case $INSTALL in
  10014. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10015. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10016. esac
  10017. ac_MKDIR_P=$MKDIR_P
  10018. case $MKDIR_P in
  10019. [\\/$]* | ?:[\\/]* ) ;;
  10020. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10021. esac
  10022. _ACEOF
  10023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10024. # If the template does not know about datarootdir, expand it.
  10025. # FIXME: This hack should be removed a few years after 2.60.
  10026. ac_datarootdir_hack=; ac_datarootdir_seen=
  10027. ac_sed_dataroot='
  10028. /datarootdir/ {
  10029. p
  10030. q
  10031. }
  10032. /@datadir@/p
  10033. /@docdir@/p
  10034. /@infodir@/p
  10035. /@localedir@/p
  10036. /@mandir@/p'
  10037. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10038. *datarootdir*) ac_datarootdir_seen=yes;;
  10039. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10041. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10042. _ACEOF
  10043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10044. ac_datarootdir_hack='
  10045. s&@datadir@&$datadir&g
  10046. s&@docdir@&$docdir&g
  10047. s&@infodir@&$infodir&g
  10048. s&@localedir@&$localedir&g
  10049. s&@mandir@&$mandir&g
  10050. s&\\\${datarootdir}&$datarootdir&g' ;;
  10051. esac
  10052. _ACEOF
  10053. # Neutralize VPATH when `$srcdir' = `.'.
  10054. # Shell code in configure.ac might set extrasub.
  10055. # FIXME: do we really want to maintain this feature?
  10056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10057. ac_sed_extra="$ac_vpsub
  10058. $extrasub
  10059. _ACEOF
  10060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10061. :t
  10062. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10063. s|@configure_input@|$ac_sed_conf_input|;t t
  10064. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10065. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10066. s&@srcdir@&$ac_srcdir&;t t
  10067. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10068. s&@top_srcdir@&$ac_top_srcdir&;t t
  10069. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10070. s&@builddir@&$ac_builddir&;t t
  10071. s&@abs_builddir@&$ac_abs_builddir&;t t
  10072. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10073. s&@INSTALL@&$ac_INSTALL&;t t
  10074. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10075. $ac_datarootdir_hack
  10076. "
  10077. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10078. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10079. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10080. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10081. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10082. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10084. which seems to be undefined. Please make sure it is defined" >&5
  10085. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10086. which seems to be undefined. Please make sure it is defined" >&2;}
  10087. rm -f "$ac_tmp/stdin"
  10088. case $ac_file in
  10089. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10090. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10091. esac \
  10092. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10093. ;;
  10094. :H)
  10095. #
  10096. # CONFIG_HEADER
  10097. #
  10098. if test x"$ac_file" != x-; then
  10099. {
  10100. $as_echo "/* $configure_input */" \
  10101. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10102. } >"$ac_tmp/config.h" \
  10103. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10104. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10106. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10107. else
  10108. rm -f "$ac_file"
  10109. mv "$ac_tmp/config.h" "$ac_file" \
  10110. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10111. fi
  10112. else
  10113. $as_echo "/* $configure_input */" \
  10114. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10115. || as_fn_error $? "could not create -" "$LINENO" 5
  10116. fi
  10117. # Compute "$ac_file"'s index in $config_headers.
  10118. _am_arg="$ac_file"
  10119. _am_stamp_count=1
  10120. for _am_header in $config_headers :; do
  10121. case $_am_header in
  10122. $_am_arg | $_am_arg:* )
  10123. break ;;
  10124. * )
  10125. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10126. esac
  10127. done
  10128. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10129. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10130. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10131. X"$_am_arg" : 'X\(//\)$' \| \
  10132. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10133. $as_echo X"$_am_arg" |
  10134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10135. s//\1/
  10136. q
  10137. }
  10138. /^X\(\/\/\)[^/].*/{
  10139. s//\1/
  10140. q
  10141. }
  10142. /^X\(\/\/\)$/{
  10143. s//\1/
  10144. q
  10145. }
  10146. /^X\(\/\).*/{
  10147. s//\1/
  10148. q
  10149. }
  10150. s/.*/./; q'`/stamp-h$_am_stamp_count
  10151. ;;
  10152. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10153. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10154. ;;
  10155. esac
  10156. case $ac_file$ac_mode in
  10157. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10158. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10159. # are listed without --file. Let's play safe and only enable the eval
  10160. # if we detect the quoting.
  10161. case $CONFIG_FILES in
  10162. *\'*) eval set x "$CONFIG_FILES" ;;
  10163. *) set x $CONFIG_FILES ;;
  10164. esac
  10165. shift
  10166. for mf
  10167. do
  10168. # Strip MF so we end up with the name of the file.
  10169. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10170. # Check whether this is an Automake generated Makefile or not.
  10171. # We used to match only the files named 'Makefile.in', but
  10172. # some people rename them; so instead we look at the file content.
  10173. # Grep'ing the first line is not enough: some people post-process
  10174. # each Makefile.in and add a new line on top of each file to say so.
  10175. # Grep'ing the whole file is not good either: AIX grep has a line
  10176. # limit of 2048, but all sed's we know have understand at least 4000.
  10177. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10178. dirpart=`$as_dirname -- "$mf" ||
  10179. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10180. X"$mf" : 'X\(//\)[^/]' \| \
  10181. X"$mf" : 'X\(//\)$' \| \
  10182. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10183. $as_echo X"$mf" |
  10184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10185. s//\1/
  10186. q
  10187. }
  10188. /^X\(\/\/\)[^/].*/{
  10189. s//\1/
  10190. q
  10191. }
  10192. /^X\(\/\/\)$/{
  10193. s//\1/
  10194. q
  10195. }
  10196. /^X\(\/\).*/{
  10197. s//\1/
  10198. q
  10199. }
  10200. s/.*/./; q'`
  10201. else
  10202. continue
  10203. fi
  10204. # Extract the definition of DEPDIR, am__include, and am__quote
  10205. # from the Makefile without running 'make'.
  10206. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10207. test -z "$DEPDIR" && continue
  10208. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10209. test -z "am__include" && continue
  10210. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10211. # Find all dependency output files, they are included files with
  10212. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10213. # simplest approach to changing $(DEPDIR) to its actual value in the
  10214. # expansion.
  10215. for file in `sed -n "
  10216. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10217. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10218. # Make sure the directory exists.
  10219. test -f "$dirpart/$file" && continue
  10220. fdir=`$as_dirname -- "$file" ||
  10221. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10222. X"$file" : 'X\(//\)[^/]' \| \
  10223. X"$file" : 'X\(//\)$' \| \
  10224. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10225. $as_echo X"$file" |
  10226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10227. s//\1/
  10228. q
  10229. }
  10230. /^X\(\/\/\)[^/].*/{
  10231. s//\1/
  10232. q
  10233. }
  10234. /^X\(\/\/\)$/{
  10235. s//\1/
  10236. q
  10237. }
  10238. /^X\(\/\).*/{
  10239. s//\1/
  10240. q
  10241. }
  10242. s/.*/./; q'`
  10243. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10244. # echo "creating $dirpart/$file"
  10245. echo '# dummy' > "$dirpart/$file"
  10246. done
  10247. done
  10248. }
  10249. ;;
  10250. esac
  10251. done # for ac_tag
  10252. as_fn_exit 0
  10253. _ACEOF
  10254. ac_clean_files=$ac_clean_files_save
  10255. test $ac_write_fail = 0 ||
  10256. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10257. # configure is writing to config.log, and then calls config.status.
  10258. # config.status does its own redirection, appending to config.log.
  10259. # Unfortunately, on DOS this fails, as config.log is still kept open
  10260. # by configure, so config.status won't be able to write to it; its
  10261. # output is simply discarded. So we exec the FD to /dev/null,
  10262. # effectively closing config.log, so it can be properly (re)opened and
  10263. # appended to by config.status. When coming back to configure, we
  10264. # need to make the FD available again.
  10265. if test "$no_create" != yes; then
  10266. ac_cs_success=:
  10267. ac_config_status_args=
  10268. test "$silent" = yes &&
  10269. ac_config_status_args="$ac_config_status_args --quiet"
  10270. exec 5>/dev/null
  10271. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10272. exec 5>>config.log
  10273. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10274. # would make configure fail if this is the last instruction.
  10275. $ac_cs_success || as_fn_exit 1
  10276. fi
  10277. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10279. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10280. fi