configure 371 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xdpyinfo 1.3.2.
  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='xdpyinfo'
  535. PACKAGE_TARNAME='xdpyinfo'
  536. PACKAGE_VERSION='1.3.2'
  537. PACKAGE_STRING='xdpyinfo 1.3.2'
  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. LINT_FALSE
  581. LINT_TRUE
  582. LINT_FLAGS
  583. LINT
  584. DPY_XTST_LIBS
  585. DPY_XTST_CFLAGS
  586. DPY_DMX_LIBS
  587. DPY_DMX_CFLAGS
  588. DPY_XINERAMA_LIBS
  589. DPY_XINERAMA_CFLAGS
  590. DPY_XCOMPOSITE_LIBS
  591. DPY_XCOMPOSITE_CFLAGS
  592. DPY_XRENDER_LIBS
  593. DPY_XRENDER_CFLAGS
  594. DPY_XINPUT_LIBS
  595. DPY_XINPUT_CFLAGS
  596. DPY_XF86MISC_LIBS
  597. DPY_XF86MISC_CFLAGS
  598. DPY_XF86DGA_LIBS
  599. DPY_XF86DGA_CFLAGS
  600. DPY_XF86VIDMODE_LIBS
  601. DPY_XF86VIDMODE_CFLAGS
  602. DPY_XKB_LIBS
  603. DPY_XKB_CFLAGS
  604. DPY_XEXT_LIBS
  605. DPY_XEXT_CFLAGS
  606. DPY_X11_LIBS
  607. DPY_X11_CFLAGS
  608. XDPYINFO_LIBS
  609. XDPYINFO_CFLAGS
  610. AM_BACKSLASH
  611. AM_DEFAULT_VERBOSITY
  612. AM_DEFAULT_V
  613. AM_V
  614. MAN_SUBSTS
  615. XORG_MAN_PAGE
  616. ADMIN_MAN_DIR
  617. DRIVER_MAN_DIR
  618. MISC_MAN_DIR
  619. FILE_MAN_DIR
  620. LIB_MAN_DIR
  621. APP_MAN_DIR
  622. ADMIN_MAN_SUFFIX
  623. DRIVER_MAN_SUFFIX
  624. MISC_MAN_SUFFIX
  625. FILE_MAN_SUFFIX
  626. LIB_MAN_SUFFIX
  627. APP_MAN_SUFFIX
  628. SED
  629. host_os
  630. host_vendor
  631. host_cpu
  632. host
  633. build_os
  634. build_vendor
  635. build_cpu
  636. build
  637. INSTALL_CMD
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. CHANGELOG_CMD
  642. STRICT_CFLAGS
  643. CWARNFLAGS
  644. BASE_CFLAGS
  645. EGREP
  646. GREP
  647. CPP
  648. am__fastdepCC_FALSE
  649. am__fastdepCC_TRUE
  650. CCDEPMODE
  651. am__nodep
  652. AMDEPBACKSLASH
  653. AMDEP_FALSE
  654. AMDEP_TRUE
  655. am__quote
  656. am__include
  657. DEPDIR
  658. OBJEXT
  659. EXEEXT
  660. ac_ct_CC
  661. CPPFLAGS
  662. LDFLAGS
  663. CFLAGS
  664. CC
  665. am__untar
  666. am__tar
  667. AMTAR
  668. am__leading_dot
  669. SET_MAKE
  670. AWK
  671. mkdir_p
  672. MKDIR_P
  673. INSTALL_STRIP_PROGRAM
  674. STRIP
  675. install_sh
  676. MAKEINFO
  677. AUTOHEADER
  678. AUTOMAKE
  679. AUTOCONF
  680. ACLOCAL
  681. VERSION
  682. PACKAGE
  683. CYGPATH_W
  684. am__isrc
  685. INSTALL_DATA
  686. INSTALL_SCRIPT
  687. INSTALL_PROGRAM
  688. target_alias
  689. host_alias
  690. build_alias
  691. LIBS
  692. ECHO_T
  693. ECHO_N
  694. ECHO_C
  695. DEFS
  696. mandir
  697. localedir
  698. libdir
  699. psdir
  700. pdfdir
  701. dvidir
  702. htmldir
  703. infodir
  704. docdir
  705. oldincludedir
  706. includedir
  707. localstatedir
  708. sharedstatedir
  709. sysconfdir
  710. datadir
  711. datarootdir
  712. libexecdir
  713. sbindir
  714. bindir
  715. program_transform_name
  716. prefix
  717. exec_prefix
  718. PACKAGE_URL
  719. PACKAGE_BUGREPORT
  720. PACKAGE_STRING
  721. PACKAGE_VERSION
  722. PACKAGE_TARNAME
  723. PACKAGE_NAME
  724. PATH_SEPARATOR
  725. SHELL'
  726. ac_subst_files=''
  727. ac_user_opts='
  728. enable_option_checking
  729. enable_dependency_tracking
  730. enable_selective_werror
  731. enable_strict_compilation
  732. enable_silent_rules
  733. with_dga
  734. with_xf86misc
  735. with_xinerama
  736. with_dmx
  737. with_lint
  738. '
  739. ac_precious_vars='build_alias
  740. host_alias
  741. target_alias
  742. CC
  743. CFLAGS
  744. LDFLAGS
  745. LIBS
  746. CPPFLAGS
  747. CPP
  748. PKG_CONFIG
  749. PKG_CONFIG_PATH
  750. PKG_CONFIG_LIBDIR
  751. XDPYINFO_CFLAGS
  752. XDPYINFO_LIBS
  753. DPY_X11_CFLAGS
  754. DPY_X11_LIBS
  755. DPY_XEXT_CFLAGS
  756. DPY_XEXT_LIBS
  757. DPY_XKB_CFLAGS
  758. DPY_XKB_LIBS
  759. DPY_XF86VIDMODE_CFLAGS
  760. DPY_XF86VIDMODE_LIBS
  761. DPY_XF86DGA_CFLAGS
  762. DPY_XF86DGA_LIBS
  763. DPY_XF86MISC_CFLAGS
  764. DPY_XF86MISC_LIBS
  765. DPY_XINPUT_CFLAGS
  766. DPY_XINPUT_LIBS
  767. DPY_XRENDER_CFLAGS
  768. DPY_XRENDER_LIBS
  769. DPY_XCOMPOSITE_CFLAGS
  770. DPY_XCOMPOSITE_LIBS
  771. DPY_XINERAMA_CFLAGS
  772. DPY_XINERAMA_LIBS
  773. DPY_DMX_CFLAGS
  774. DPY_DMX_LIBS
  775. DPY_XTST_CFLAGS
  776. DPY_XTST_LIBS
  777. LINT
  778. LINT_FLAGS'
  779. # Initialize some variables set by options.
  780. ac_init_help=
  781. ac_init_version=false
  782. ac_unrecognized_opts=
  783. ac_unrecognized_sep=
  784. # The variables have the same names as the options, with
  785. # dashes changed to underlines.
  786. cache_file=/dev/null
  787. exec_prefix=NONE
  788. no_create=
  789. no_recursion=
  790. prefix=NONE
  791. program_prefix=NONE
  792. program_suffix=NONE
  793. program_transform_name=s,x,x,
  794. silent=
  795. site=
  796. srcdir=
  797. verbose=
  798. x_includes=NONE
  799. x_libraries=NONE
  800. # Installation directory options.
  801. # These are left unexpanded so users can "make install exec_prefix=/foo"
  802. # and all the variables that are supposed to be based on exec_prefix
  803. # by default will actually change.
  804. # Use braces instead of parens because sh, perl, etc. also accept them.
  805. # (The list follows the same order as the GNU Coding Standards.)
  806. bindir='${exec_prefix}/bin'
  807. sbindir='${exec_prefix}/sbin'
  808. libexecdir='${exec_prefix}/libexec'
  809. datarootdir='${prefix}/share'
  810. datadir='${datarootdir}'
  811. sysconfdir='${prefix}/etc'
  812. sharedstatedir='${prefix}/com'
  813. localstatedir='${prefix}/var'
  814. includedir='${prefix}/include'
  815. oldincludedir='/usr/include'
  816. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  817. infodir='${datarootdir}/info'
  818. htmldir='${docdir}'
  819. dvidir='${docdir}'
  820. pdfdir='${docdir}'
  821. psdir='${docdir}'
  822. libdir='${exec_prefix}/lib'
  823. localedir='${datarootdir}/locale'
  824. mandir='${datarootdir}/man'
  825. ac_prev=
  826. ac_dashdash=
  827. for ac_option
  828. do
  829. # If the previous option needs an argument, assign it.
  830. if test -n "$ac_prev"; then
  831. eval $ac_prev=\$ac_option
  832. ac_prev=
  833. continue
  834. fi
  835. case $ac_option in
  836. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  837. *=) ac_optarg= ;;
  838. *) ac_optarg=yes ;;
  839. esac
  840. # Accept the important Cygnus configure options, so we can diagnose typos.
  841. case $ac_dashdash$ac_option in
  842. --)
  843. ac_dashdash=yes ;;
  844. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  845. ac_prev=bindir ;;
  846. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  847. bindir=$ac_optarg ;;
  848. -build | --build | --buil | --bui | --bu)
  849. ac_prev=build_alias ;;
  850. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  851. build_alias=$ac_optarg ;;
  852. -cache-file | --cache-file | --cache-fil | --cache-fi \
  853. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  854. ac_prev=cache_file ;;
  855. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  856. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  857. cache_file=$ac_optarg ;;
  858. --config-cache | -C)
  859. cache_file=config.cache ;;
  860. -datadir | --datadir | --datadi | --datad)
  861. ac_prev=datadir ;;
  862. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  863. datadir=$ac_optarg ;;
  864. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  865. | --dataroo | --dataro | --datar)
  866. ac_prev=datarootdir ;;
  867. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  868. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  869. datarootdir=$ac_optarg ;;
  870. -disable-* | --disable-*)
  871. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  872. # Reject names that are not valid shell variable names.
  873. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  874. as_fn_error $? "invalid feature name: $ac_useropt"
  875. ac_useropt_orig=$ac_useropt
  876. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  877. case $ac_user_opts in
  878. *"
  879. "enable_$ac_useropt"
  880. "*) ;;
  881. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  882. ac_unrecognized_sep=', ';;
  883. esac
  884. eval enable_$ac_useropt=no ;;
  885. -docdir | --docdir | --docdi | --doc | --do)
  886. ac_prev=docdir ;;
  887. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  888. docdir=$ac_optarg ;;
  889. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  890. ac_prev=dvidir ;;
  891. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  892. dvidir=$ac_optarg ;;
  893. -enable-* | --enable-*)
  894. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  895. # Reject names that are not valid shell variable names.
  896. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  897. as_fn_error $? "invalid feature name: $ac_useropt"
  898. ac_useropt_orig=$ac_useropt
  899. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  900. case $ac_user_opts in
  901. *"
  902. "enable_$ac_useropt"
  903. "*) ;;
  904. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  905. ac_unrecognized_sep=', ';;
  906. esac
  907. eval enable_$ac_useropt=\$ac_optarg ;;
  908. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  909. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  910. | --exec | --exe | --ex)
  911. ac_prev=exec_prefix ;;
  912. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  913. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  914. | --exec=* | --exe=* | --ex=*)
  915. exec_prefix=$ac_optarg ;;
  916. -gas | --gas | --ga | --g)
  917. # Obsolete; use --with-gas.
  918. with_gas=yes ;;
  919. -help | --help | --hel | --he | -h)
  920. ac_init_help=long ;;
  921. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  922. ac_init_help=recursive ;;
  923. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  924. ac_init_help=short ;;
  925. -host | --host | --hos | --ho)
  926. ac_prev=host_alias ;;
  927. -host=* | --host=* | --hos=* | --ho=*)
  928. host_alias=$ac_optarg ;;
  929. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  930. ac_prev=htmldir ;;
  931. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  932. | --ht=*)
  933. htmldir=$ac_optarg ;;
  934. -includedir | --includedir | --includedi | --included | --include \
  935. | --includ | --inclu | --incl | --inc)
  936. ac_prev=includedir ;;
  937. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  938. | --includ=* | --inclu=* | --incl=* | --inc=*)
  939. includedir=$ac_optarg ;;
  940. -infodir | --infodir | --infodi | --infod | --info | --inf)
  941. ac_prev=infodir ;;
  942. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  943. infodir=$ac_optarg ;;
  944. -libdir | --libdir | --libdi | --libd)
  945. ac_prev=libdir ;;
  946. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  947. libdir=$ac_optarg ;;
  948. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  949. | --libexe | --libex | --libe)
  950. ac_prev=libexecdir ;;
  951. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  952. | --libexe=* | --libex=* | --libe=*)
  953. libexecdir=$ac_optarg ;;
  954. -localedir | --localedir | --localedi | --localed | --locale)
  955. ac_prev=localedir ;;
  956. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  957. localedir=$ac_optarg ;;
  958. -localstatedir | --localstatedir | --localstatedi | --localstated \
  959. | --localstate | --localstat | --localsta | --localst | --locals)
  960. ac_prev=localstatedir ;;
  961. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  962. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  963. localstatedir=$ac_optarg ;;
  964. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  965. ac_prev=mandir ;;
  966. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  967. mandir=$ac_optarg ;;
  968. -nfp | --nfp | --nf)
  969. # Obsolete; use --without-fp.
  970. with_fp=no ;;
  971. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  972. | --no-cr | --no-c | -n)
  973. no_create=yes ;;
  974. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  975. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  976. no_recursion=yes ;;
  977. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  978. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  979. | --oldin | --oldi | --old | --ol | --o)
  980. ac_prev=oldincludedir ;;
  981. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  982. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  983. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  984. oldincludedir=$ac_optarg ;;
  985. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  986. ac_prev=prefix ;;
  987. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  988. prefix=$ac_optarg ;;
  989. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  990. | --program-pre | --program-pr | --program-p)
  991. ac_prev=program_prefix ;;
  992. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  993. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  994. program_prefix=$ac_optarg ;;
  995. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  996. | --program-suf | --program-su | --program-s)
  997. ac_prev=program_suffix ;;
  998. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  999. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1000. program_suffix=$ac_optarg ;;
  1001. -program-transform-name | --program-transform-name \
  1002. | --program-transform-nam | --program-transform-na \
  1003. | --program-transform-n | --program-transform- \
  1004. | --program-transform | --program-transfor \
  1005. | --program-transfo | --program-transf \
  1006. | --program-trans | --program-tran \
  1007. | --progr-tra | --program-tr | --program-t)
  1008. ac_prev=program_transform_name ;;
  1009. -program-transform-name=* | --program-transform-name=* \
  1010. | --program-transform-nam=* | --program-transform-na=* \
  1011. | --program-transform-n=* | --program-transform-=* \
  1012. | --program-transform=* | --program-transfor=* \
  1013. | --program-transfo=* | --program-transf=* \
  1014. | --program-trans=* | --program-tran=* \
  1015. | --progr-tra=* | --program-tr=* | --program-t=*)
  1016. program_transform_name=$ac_optarg ;;
  1017. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1018. ac_prev=pdfdir ;;
  1019. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1020. pdfdir=$ac_optarg ;;
  1021. -psdir | --psdir | --psdi | --psd | --ps)
  1022. ac_prev=psdir ;;
  1023. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1024. psdir=$ac_optarg ;;
  1025. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1026. | -silent | --silent | --silen | --sile | --sil)
  1027. silent=yes ;;
  1028. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1029. ac_prev=sbindir ;;
  1030. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1031. | --sbi=* | --sb=*)
  1032. sbindir=$ac_optarg ;;
  1033. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1034. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1035. | --sharedst | --shareds | --shared | --share | --shar \
  1036. | --sha | --sh)
  1037. ac_prev=sharedstatedir ;;
  1038. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1039. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1040. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1041. | --sha=* | --sh=*)
  1042. sharedstatedir=$ac_optarg ;;
  1043. -site | --site | --sit)
  1044. ac_prev=site ;;
  1045. -site=* | --site=* | --sit=*)
  1046. site=$ac_optarg ;;
  1047. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1048. ac_prev=srcdir ;;
  1049. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1050. srcdir=$ac_optarg ;;
  1051. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1052. | --syscon | --sysco | --sysc | --sys | --sy)
  1053. ac_prev=sysconfdir ;;
  1054. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1055. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1056. sysconfdir=$ac_optarg ;;
  1057. -target | --target | --targe | --targ | --tar | --ta | --t)
  1058. ac_prev=target_alias ;;
  1059. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1060. target_alias=$ac_optarg ;;
  1061. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1062. verbose=yes ;;
  1063. -version | --version | --versio | --versi | --vers | -V)
  1064. ac_init_version=: ;;
  1065. -with-* | --with-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=\$ac_optarg ;;
  1080. -without-* | --without-*)
  1081. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1082. # Reject names that are not valid shell variable names.
  1083. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1084. as_fn_error $? "invalid package name: $ac_useropt"
  1085. ac_useropt_orig=$ac_useropt
  1086. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1087. case $ac_user_opts in
  1088. *"
  1089. "with_$ac_useropt"
  1090. "*) ;;
  1091. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1092. ac_unrecognized_sep=', ';;
  1093. esac
  1094. eval with_$ac_useropt=no ;;
  1095. --x)
  1096. # Obsolete; use --with-x.
  1097. with_x=yes ;;
  1098. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1099. | --x-incl | --x-inc | --x-in | --x-i)
  1100. ac_prev=x_includes ;;
  1101. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1102. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1103. x_includes=$ac_optarg ;;
  1104. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1105. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1106. ac_prev=x_libraries ;;
  1107. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1108. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1109. x_libraries=$ac_optarg ;;
  1110. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1111. Try \`$0 --help' for more information"
  1112. ;;
  1113. *=*)
  1114. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1115. # Reject names that are not valid shell variable names.
  1116. case $ac_envvar in #(
  1117. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1118. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1119. esac
  1120. eval $ac_envvar=\$ac_optarg
  1121. export $ac_envvar ;;
  1122. *)
  1123. # FIXME: should be removed in autoconf 3.0.
  1124. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1125. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1126. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1127. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1128. ;;
  1129. esac
  1130. done
  1131. if test -n "$ac_prev"; then
  1132. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1133. as_fn_error $? "missing argument to $ac_option"
  1134. fi
  1135. if test -n "$ac_unrecognized_opts"; then
  1136. case $enable_option_checking in
  1137. no) ;;
  1138. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1139. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1140. esac
  1141. fi
  1142. # Check all directory arguments for consistency.
  1143. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1144. datadir sysconfdir sharedstatedir localstatedir includedir \
  1145. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1146. libdir localedir mandir
  1147. do
  1148. eval ac_val=\$$ac_var
  1149. # Remove trailing slashes.
  1150. case $ac_val in
  1151. */ )
  1152. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1153. eval $ac_var=\$ac_val;;
  1154. esac
  1155. # Be sure to have absolute directory names.
  1156. case $ac_val in
  1157. [\\/$]* | ?:[\\/]* ) continue;;
  1158. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1159. esac
  1160. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1161. done
  1162. # There might be people who depend on the old broken behavior: `$host'
  1163. # used to hold the argument of --host etc.
  1164. # FIXME: To remove some day.
  1165. build=$build_alias
  1166. host=$host_alias
  1167. target=$target_alias
  1168. # FIXME: To remove some day.
  1169. if test "x$host_alias" != x; then
  1170. if test "x$build_alias" = x; then
  1171. cross_compiling=maybe
  1172. elif test "x$build_alias" != "x$host_alias"; then
  1173. cross_compiling=yes
  1174. fi
  1175. fi
  1176. ac_tool_prefix=
  1177. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1178. test "$silent" = yes && exec 6>/dev/null
  1179. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1180. ac_ls_di=`ls -di .` &&
  1181. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1182. as_fn_error $? "working directory cannot be determined"
  1183. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1184. as_fn_error $? "pwd does not report name of working directory"
  1185. # Find the source files, if location was not specified.
  1186. if test -z "$srcdir"; then
  1187. ac_srcdir_defaulted=yes
  1188. # Try the directory containing this script, then the parent directory.
  1189. ac_confdir=`$as_dirname -- "$as_myself" ||
  1190. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1191. X"$as_myself" : 'X\(//\)[^/]' \| \
  1192. X"$as_myself" : 'X\(//\)$' \| \
  1193. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1194. $as_echo X"$as_myself" |
  1195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1196. s//\1/
  1197. q
  1198. }
  1199. /^X\(\/\/\)[^/].*/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)$/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\).*/{
  1208. s//\1/
  1209. q
  1210. }
  1211. s/.*/./; q'`
  1212. srcdir=$ac_confdir
  1213. if test ! -r "$srcdir/$ac_unique_file"; then
  1214. srcdir=..
  1215. fi
  1216. else
  1217. ac_srcdir_defaulted=no
  1218. fi
  1219. if test ! -r "$srcdir/$ac_unique_file"; then
  1220. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1221. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1222. fi
  1223. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1224. ac_abs_confdir=`(
  1225. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1226. pwd)`
  1227. # When building in place, set srcdir=.
  1228. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1229. srcdir=.
  1230. fi
  1231. # Remove unnecessary trailing slashes from srcdir.
  1232. # Double slashes in file names in object file debugging info
  1233. # mess up M-x gdb in Emacs.
  1234. case $srcdir in
  1235. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1236. esac
  1237. for ac_var in $ac_precious_vars; do
  1238. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1239. eval ac_env_${ac_var}_value=\$${ac_var}
  1240. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1242. done
  1243. #
  1244. # Report the --help message.
  1245. #
  1246. if test "$ac_init_help" = "long"; then
  1247. # Omit some internal or obsolete options to make the list less imposing.
  1248. # This message is too long to be a string in the A/UX 3.1 sh.
  1249. cat <<_ACEOF
  1250. \`configure' configures xdpyinfo 1.3.2 to adapt to many kinds of systems.
  1251. Usage: $0 [OPTION]... [VAR=VALUE]...
  1252. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1253. VAR=VALUE. See below for descriptions of some of the useful variables.
  1254. Defaults for the options are specified in brackets.
  1255. Configuration:
  1256. -h, --help display this help and exit
  1257. --help=short display options specific to this package
  1258. --help=recursive display the short help of all the included packages
  1259. -V, --version display version information and exit
  1260. -q, --quiet, --silent do not print \`checking ...' messages
  1261. --cache-file=FILE cache test results in FILE [disabled]
  1262. -C, --config-cache alias for \`--cache-file=config.cache'
  1263. -n, --no-create do not create output files
  1264. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1265. Installation directories:
  1266. --prefix=PREFIX install architecture-independent files in PREFIX
  1267. [$ac_default_prefix]
  1268. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1269. [PREFIX]
  1270. By default, \`make install' will install all the files in
  1271. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1272. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1273. for instance \`--prefix=\$HOME'.
  1274. For better control, use the options below.
  1275. Fine tuning of the installation directories:
  1276. --bindir=DIR user executables [EPREFIX/bin]
  1277. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1278. --libexecdir=DIR program executables [EPREFIX/libexec]
  1279. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1280. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1281. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1282. --libdir=DIR object code libraries [EPREFIX/lib]
  1283. --includedir=DIR C header files [PREFIX/include]
  1284. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1285. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1286. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1287. --infodir=DIR info documentation [DATAROOTDIR/info]
  1288. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1289. --mandir=DIR man documentation [DATAROOTDIR/man]
  1290. --docdir=DIR documentation root [DATAROOTDIR/doc/xdpyinfo]
  1291. --htmldir=DIR html documentation [DOCDIR]
  1292. --dvidir=DIR dvi documentation [DOCDIR]
  1293. --pdfdir=DIR pdf documentation [DOCDIR]
  1294. --psdir=DIR ps documentation [DOCDIR]
  1295. _ACEOF
  1296. cat <<\_ACEOF
  1297. Program names:
  1298. --program-prefix=PREFIX prepend PREFIX to installed program names
  1299. --program-suffix=SUFFIX append SUFFIX to installed program names
  1300. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1301. System types:
  1302. --build=BUILD configure for building on BUILD [guessed]
  1303. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1304. _ACEOF
  1305. fi
  1306. if test -n "$ac_init_help"; then
  1307. case $ac_init_help in
  1308. short | recursive ) echo "Configuration of xdpyinfo 1.3.2:";;
  1309. esac
  1310. cat <<\_ACEOF
  1311. Optional Features:
  1312. --disable-option-checking ignore unrecognized --enable/--with options
  1313. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1314. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1315. --enable-dependency-tracking
  1316. do not reject slow dependency extractors
  1317. --disable-dependency-tracking
  1318. speeds up one-time build
  1319. --disable-selective-werror
  1320. Turn off selective compiler errors. (default:
  1321. enabled)
  1322. --enable-strict-compilation
  1323. Enable all warnings from compiler and make them
  1324. errors (default: disabled)
  1325. --enable-silent-rules less verbose build output (undo: "make V=1")
  1326. --disable-silent-rules verbose build output (undo: "make V=0")
  1327. Optional Packages:
  1328. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1329. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1330. --without-dga Disable dga support.
  1331. --without-xf86misc Disable xf86misc support.
  1332. --without-xinerama Disable xinerama support.
  1333. --without-dmx Disable dmx support.
  1334. --with-lint Use a lint-style source code checker (default:
  1335. disabled)
  1336. Some influential environment variables:
  1337. CC C compiler command
  1338. CFLAGS C compiler flags
  1339. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1340. nonstandard directory <lib dir>
  1341. LIBS libraries to pass to the linker, e.g. -l<library>
  1342. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1343. you have headers in a nonstandard directory <include dir>
  1344. CPP C preprocessor
  1345. PKG_CONFIG path to pkg-config utility
  1346. PKG_CONFIG_PATH
  1347. directories to add to pkg-config's search path
  1348. PKG_CONFIG_LIBDIR
  1349. path overriding pkg-config's built-in search path
  1350. XDPYINFO_CFLAGS
  1351. C compiler flags for XDPYINFO, overriding pkg-config
  1352. XDPYINFO_LIBS
  1353. linker flags for XDPYINFO, overriding pkg-config
  1354. DPY_X11_CFLAGS
  1355. C compiler flags for DPY_X11, overriding pkg-config
  1356. DPY_X11_LIBS
  1357. linker flags for DPY_X11, overriding pkg-config
  1358. DPY_XEXT_CFLAGS
  1359. C compiler flags for DPY_XEXT, overriding pkg-config
  1360. DPY_XEXT_LIBS
  1361. linker flags for DPY_XEXT, overriding pkg-config
  1362. DPY_XKB_CFLAGS
  1363. C compiler flags for DPY_XKB, overriding pkg-config
  1364. DPY_XKB_LIBS
  1365. linker flags for DPY_XKB, overriding pkg-config
  1366. DPY_XF86VIDMODE_CFLAGS
  1367. C compiler flags for DPY_XF86VIDMODE, overriding pkg-config
  1368. DPY_XF86VIDMODE_LIBS
  1369. linker flags for DPY_XF86VIDMODE, overriding pkg-config
  1370. DPY_XF86DGA_CFLAGS
  1371. C compiler flags for DPY_XF86DGA, overriding pkg-config
  1372. DPY_XF86DGA_LIBS
  1373. linker flags for DPY_XF86DGA, overriding pkg-config
  1374. DPY_XF86MISC_CFLAGS
  1375. C compiler flags for DPY_XF86MISC, overriding pkg-config
  1376. DPY_XF86MISC_LIBS
  1377. linker flags for DPY_XF86MISC, overriding pkg-config
  1378. DPY_XINPUT_CFLAGS
  1379. C compiler flags for DPY_XINPUT, overriding pkg-config
  1380. DPY_XINPUT_LIBS
  1381. linker flags for DPY_XINPUT, overriding pkg-config
  1382. DPY_XRENDER_CFLAGS
  1383. C compiler flags for DPY_XRENDER, overriding pkg-config
  1384. DPY_XRENDER_LIBS
  1385. linker flags for DPY_XRENDER, overriding pkg-config
  1386. DPY_XCOMPOSITE_CFLAGS
  1387. C compiler flags for DPY_XCOMPOSITE, overriding pkg-config
  1388. DPY_XCOMPOSITE_LIBS
  1389. linker flags for DPY_XCOMPOSITE, overriding pkg-config
  1390. DPY_XINERAMA_CFLAGS
  1391. C compiler flags for DPY_XINERAMA, overriding pkg-config
  1392. DPY_XINERAMA_LIBS
  1393. linker flags for DPY_XINERAMA, overriding pkg-config
  1394. DPY_DMX_CFLAGS
  1395. C compiler flags for DPY_DMX, overriding pkg-config
  1396. DPY_DMX_LIBS
  1397. linker flags for DPY_DMX, overriding pkg-config
  1398. DPY_XTST_CFLAGS
  1399. C compiler flags for DPY_XTST, overriding pkg-config
  1400. DPY_XTST_LIBS
  1401. linker flags for DPY_XTST, overriding pkg-config
  1402. LINT Path to a lint-style command
  1403. LINT_FLAGS Flags for the lint-style command
  1404. Use these variables to override the choices made by `configure' or to help
  1405. it to find libraries and programs with nonstandard names/locations.
  1406. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1407. _ACEOF
  1408. ac_status=$?
  1409. fi
  1410. if test "$ac_init_help" = "recursive"; then
  1411. # If there are subdirs, report their specific --help.
  1412. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1413. test -d "$ac_dir" ||
  1414. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1415. continue
  1416. ac_builddir=.
  1417. case "$ac_dir" in
  1418. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1419. *)
  1420. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1421. # A ".." for each directory in $ac_dir_suffix.
  1422. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1423. case $ac_top_builddir_sub in
  1424. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1425. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1426. esac ;;
  1427. esac
  1428. ac_abs_top_builddir=$ac_pwd
  1429. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1430. # for backward compatibility:
  1431. ac_top_builddir=$ac_top_build_prefix
  1432. case $srcdir in
  1433. .) # We are building in place.
  1434. ac_srcdir=.
  1435. ac_top_srcdir=$ac_top_builddir_sub
  1436. ac_abs_top_srcdir=$ac_pwd ;;
  1437. [\\/]* | ?:[\\/]* ) # Absolute name.
  1438. ac_srcdir=$srcdir$ac_dir_suffix;
  1439. ac_top_srcdir=$srcdir
  1440. ac_abs_top_srcdir=$srcdir ;;
  1441. *) # Relative name.
  1442. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1443. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1444. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1445. esac
  1446. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1447. cd "$ac_dir" || { ac_status=$?; continue; }
  1448. # Check for guested configure.
  1449. if test -f "$ac_srcdir/configure.gnu"; then
  1450. echo &&
  1451. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1452. elif test -f "$ac_srcdir/configure"; then
  1453. echo &&
  1454. $SHELL "$ac_srcdir/configure" --help=recursive
  1455. else
  1456. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1457. fi || ac_status=$?
  1458. cd "$ac_pwd" || { ac_status=$?; break; }
  1459. done
  1460. fi
  1461. test -n "$ac_init_help" && exit $ac_status
  1462. if $ac_init_version; then
  1463. cat <<\_ACEOF
  1464. xdpyinfo configure 1.3.2
  1465. generated by GNU Autoconf 2.69
  1466. Copyright (C) 2012 Free Software Foundation, Inc.
  1467. This configure script is free software; the Free Software Foundation
  1468. gives unlimited permission to copy, distribute and modify it.
  1469. _ACEOF
  1470. exit
  1471. fi
  1472. ## ------------------------ ##
  1473. ## Autoconf initialization. ##
  1474. ## ------------------------ ##
  1475. # ac_fn_c_try_compile LINENO
  1476. # --------------------------
  1477. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_compile ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext
  1482. if { { ac_try="$ac_compile"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_compile") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest.$ac_objext; then :
  1501. ac_retval=0
  1502. else
  1503. $as_echo "$as_me: failed program was:" >&5
  1504. sed 's/^/| /' conftest.$ac_ext >&5
  1505. ac_retval=1
  1506. fi
  1507. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1508. as_fn_set_status $ac_retval
  1509. } # ac_fn_c_try_compile
  1510. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1511. # ---------------------------------------------
  1512. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1513. # accordingly.
  1514. ac_fn_c_check_decl ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1518. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1520. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1521. if eval \${$3+:} false; then :
  1522. $as_echo_n "(cached) " >&6
  1523. else
  1524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1525. /* end confdefs.h. */
  1526. $4
  1527. int
  1528. main ()
  1529. {
  1530. #ifndef $as_decl_name
  1531. #ifdef __cplusplus
  1532. (void) $as_decl_use;
  1533. #else
  1534. (void) $as_decl_name;
  1535. #endif
  1536. #endif
  1537. ;
  1538. return 0;
  1539. }
  1540. _ACEOF
  1541. if ac_fn_c_try_compile "$LINENO"; then :
  1542. eval "$3=yes"
  1543. else
  1544. eval "$3=no"
  1545. fi
  1546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1547. fi
  1548. eval ac_res=\$$3
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1550. $as_echo "$ac_res" >&6; }
  1551. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1552. } # ac_fn_c_check_decl
  1553. # ac_fn_c_try_cpp LINENO
  1554. # ----------------------
  1555. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1556. ac_fn_c_try_cpp ()
  1557. {
  1558. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1559. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1560. case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1567. ac_status=$?
  1568. if test -s conftest.err; then
  1569. grep -v '^ *+' conftest.err >conftest.er1
  1570. cat conftest.er1 >&5
  1571. mv -f conftest.er1 conftest.err
  1572. fi
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } > conftest.i && {
  1575. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1576. test ! -s conftest.err
  1577. }; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=1
  1583. fi
  1584. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1585. as_fn_set_status $ac_retval
  1586. } # ac_fn_c_try_cpp
  1587. # ac_fn_c_try_run LINENO
  1588. # ----------------------
  1589. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1590. # that executables *can* be run.
  1591. ac_fn_c_try_run ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. if { { ac_try="$ac_link"
  1595. case "(($ac_try" in
  1596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597. *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. $as_echo "$ac_try_echo"; } >&5
  1601. (eval "$ac_link") 2>&5
  1602. ac_status=$?
  1603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1605. { { case "(($ac_try" in
  1606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1607. *) ac_try_echo=$ac_try;;
  1608. esac
  1609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1610. $as_echo "$ac_try_echo"; } >&5
  1611. (eval "$ac_try") 2>&5
  1612. ac_status=$?
  1613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1614. test $ac_status = 0; }; }; then :
  1615. ac_retval=0
  1616. else
  1617. $as_echo "$as_me: program exited with status $ac_status" >&5
  1618. $as_echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. ac_retval=$ac_status
  1621. fi
  1622. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. as_fn_set_status $ac_retval
  1625. } # ac_fn_c_try_run
  1626. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1627. # -------------------------------------------------------
  1628. # Tests whether HEADER exists and can be compiled using the include files in
  1629. # INCLUDES, setting the cache variable VAR accordingly.
  1630. ac_fn_c_check_header_compile ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1634. $as_echo_n "checking for $2... " >&6; }
  1635. if eval \${$3+:} false; then :
  1636. $as_echo_n "(cached) " >&6
  1637. else
  1638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1639. /* end confdefs.h. */
  1640. $4
  1641. #include <$2>
  1642. _ACEOF
  1643. if ac_fn_c_try_compile "$LINENO"; then :
  1644. eval "$3=yes"
  1645. else
  1646. eval "$3=no"
  1647. fi
  1648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1649. fi
  1650. eval ac_res=\$$3
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1652. $as_echo "$ac_res" >&6; }
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. } # ac_fn_c_check_header_compile
  1655. # ac_fn_c_try_link LINENO
  1656. # -----------------------
  1657. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1658. ac_fn_c_try_link ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. rm -f conftest.$ac_objext conftest$ac_exeext
  1662. if { { ac_try="$ac_link"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_link") 2>conftest.err
  1670. ac_status=$?
  1671. if test -s conftest.err; then
  1672. grep -v '^ *+' conftest.err >conftest.er1
  1673. cat conftest.er1 >&5
  1674. mv -f conftest.er1 conftest.err
  1675. fi
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } && {
  1678. test -z "$ac_c_werror_flag" ||
  1679. test ! -s conftest.err
  1680. } && test -s conftest$ac_exeext && {
  1681. test "$cross_compiling" = yes ||
  1682. test -x conftest$ac_exeext
  1683. }; then :
  1684. ac_retval=0
  1685. else
  1686. $as_echo "$as_me: failed program was:" >&5
  1687. sed 's/^/| /' conftest.$ac_ext >&5
  1688. ac_retval=1
  1689. fi
  1690. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1691. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1692. # interfere with the next link command; also delete a directory that is
  1693. # left behind by Apple's compiler. We do this before executing the actions.
  1694. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_c_try_link
  1698. cat >config.log <<_ACEOF
  1699. This file contains any messages produced by compilers while
  1700. running configure, to aid debugging if configure makes a mistake.
  1701. It was created by xdpyinfo $as_me 1.3.2, which was
  1702. generated by GNU Autoconf 2.69. Invocation command line was
  1703. $ $0 $@
  1704. _ACEOF
  1705. exec 5>>config.log
  1706. {
  1707. cat <<_ASUNAME
  1708. ## --------- ##
  1709. ## Platform. ##
  1710. ## --------- ##
  1711. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1712. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1713. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1714. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1715. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1716. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1717. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1718. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1719. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1720. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1721. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1722. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1723. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1724. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1725. _ASUNAME
  1726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1727. for as_dir in $PATH
  1728. do
  1729. IFS=$as_save_IFS
  1730. test -z "$as_dir" && as_dir=.
  1731. $as_echo "PATH: $as_dir"
  1732. done
  1733. IFS=$as_save_IFS
  1734. } >&5
  1735. cat >&5 <<_ACEOF
  1736. ## ----------- ##
  1737. ## Core tests. ##
  1738. ## ----------- ##
  1739. _ACEOF
  1740. # Keep a trace of the command line.
  1741. # Strip out --no-create and --no-recursion so they do not pile up.
  1742. # Strip out --silent because we don't want to record it for future runs.
  1743. # Also quote any args containing shell meta-characters.
  1744. # Make two passes to allow for proper duplicate-argument suppression.
  1745. ac_configure_args=
  1746. ac_configure_args0=
  1747. ac_configure_args1=
  1748. ac_must_keep_next=false
  1749. for ac_pass in 1 2
  1750. do
  1751. for ac_arg
  1752. do
  1753. case $ac_arg in
  1754. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1755. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1756. | -silent | --silent | --silen | --sile | --sil)
  1757. continue ;;
  1758. *\'*)
  1759. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1760. esac
  1761. case $ac_pass in
  1762. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1763. 2)
  1764. as_fn_append ac_configure_args1 " '$ac_arg'"
  1765. if test $ac_must_keep_next = true; then
  1766. ac_must_keep_next=false # Got value, back to normal.
  1767. else
  1768. case $ac_arg in
  1769. *=* | --config-cache | -C | -disable-* | --disable-* \
  1770. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1771. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1772. | -with-* | --with-* | -without-* | --without-* | --x)
  1773. case "$ac_configure_args0 " in
  1774. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1775. esac
  1776. ;;
  1777. -* ) ac_must_keep_next=true ;;
  1778. esac
  1779. fi
  1780. as_fn_append ac_configure_args " '$ac_arg'"
  1781. ;;
  1782. esac
  1783. done
  1784. done
  1785. { ac_configure_args0=; unset ac_configure_args0;}
  1786. { ac_configure_args1=; unset ac_configure_args1;}
  1787. # When interrupted or exit'd, cleanup temporary files, and complete
  1788. # config.log. We remove comments because anyway the quotes in there
  1789. # would cause problems or look ugly.
  1790. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1791. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1792. trap 'exit_status=$?
  1793. # Save into config.log some information that might help in debugging.
  1794. {
  1795. echo
  1796. $as_echo "## ---------------- ##
  1797. ## Cache variables. ##
  1798. ## ---------------- ##"
  1799. echo
  1800. # The following way of writing the cache mishandles newlines in values,
  1801. (
  1802. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1803. eval ac_val=\$$ac_var
  1804. case $ac_val in #(
  1805. *${as_nl}*)
  1806. case $ac_var in #(
  1807. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1808. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1809. esac
  1810. case $ac_var in #(
  1811. _ | IFS | as_nl) ;; #(
  1812. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1813. *) { eval $ac_var=; unset $ac_var;} ;;
  1814. esac ;;
  1815. esac
  1816. done
  1817. (set) 2>&1 |
  1818. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1819. *${as_nl}ac_space=\ *)
  1820. sed -n \
  1821. "s/'\''/'\''\\\\'\'''\''/g;
  1822. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1823. ;; #(
  1824. *)
  1825. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1826. ;;
  1827. esac |
  1828. sort
  1829. )
  1830. echo
  1831. $as_echo "## ----------------- ##
  1832. ## Output variables. ##
  1833. ## ----------------- ##"
  1834. echo
  1835. for ac_var in $ac_subst_vars
  1836. do
  1837. eval ac_val=\$$ac_var
  1838. case $ac_val in
  1839. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1840. esac
  1841. $as_echo "$ac_var='\''$ac_val'\''"
  1842. done | sort
  1843. echo
  1844. if test -n "$ac_subst_files"; then
  1845. $as_echo "## ------------------- ##
  1846. ## File substitutions. ##
  1847. ## ------------------- ##"
  1848. echo
  1849. for ac_var in $ac_subst_files
  1850. do
  1851. eval ac_val=\$$ac_var
  1852. case $ac_val in
  1853. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1854. esac
  1855. $as_echo "$ac_var='\''$ac_val'\''"
  1856. done | sort
  1857. echo
  1858. fi
  1859. if test -s confdefs.h; then
  1860. $as_echo "## ----------- ##
  1861. ## confdefs.h. ##
  1862. ## ----------- ##"
  1863. echo
  1864. cat confdefs.h
  1865. echo
  1866. fi
  1867. test "$ac_signal" != 0 &&
  1868. $as_echo "$as_me: caught signal $ac_signal"
  1869. $as_echo "$as_me: exit $exit_status"
  1870. } >&5
  1871. rm -f core *.core core.conftest.* &&
  1872. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1873. exit $exit_status
  1874. ' 0
  1875. for ac_signal in 1 2 13 15; do
  1876. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1877. done
  1878. ac_signal=0
  1879. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1880. rm -f -r conftest* confdefs.h
  1881. $as_echo "/* confdefs.h */" > confdefs.h
  1882. # Predefined preprocessor variables.
  1883. cat >>confdefs.h <<_ACEOF
  1884. #define PACKAGE_NAME "$PACKAGE_NAME"
  1885. _ACEOF
  1886. cat >>confdefs.h <<_ACEOF
  1887. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1888. _ACEOF
  1889. cat >>confdefs.h <<_ACEOF
  1890. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1891. _ACEOF
  1892. cat >>confdefs.h <<_ACEOF
  1893. #define PACKAGE_STRING "$PACKAGE_STRING"
  1894. _ACEOF
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1897. _ACEOF
  1898. cat >>confdefs.h <<_ACEOF
  1899. #define PACKAGE_URL "$PACKAGE_URL"
  1900. _ACEOF
  1901. # Let the site file select an alternate cache file if it wants to.
  1902. # Prefer an explicitly selected file to automatically selected ones.
  1903. ac_site_file1=NONE
  1904. ac_site_file2=NONE
  1905. if test -n "$CONFIG_SITE"; then
  1906. # We do not want a PATH search for config.site.
  1907. case $CONFIG_SITE in #((
  1908. -*) ac_site_file1=./$CONFIG_SITE;;
  1909. */*) ac_site_file1=$CONFIG_SITE;;
  1910. *) ac_site_file1=./$CONFIG_SITE;;
  1911. esac
  1912. elif test "x$prefix" != xNONE; then
  1913. ac_site_file1=$prefix/share/config.site
  1914. ac_site_file2=$prefix/etc/config.site
  1915. else
  1916. ac_site_file1=$ac_default_prefix/share/config.site
  1917. ac_site_file2=$ac_default_prefix/etc/config.site
  1918. fi
  1919. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1920. do
  1921. test "x$ac_site_file" = xNONE && continue
  1922. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1924. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1925. sed 's/^/| /' "$ac_site_file" >&5
  1926. . "$ac_site_file" \
  1927. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1929. as_fn_error $? "failed to load site script $ac_site_file
  1930. See \`config.log' for more details" "$LINENO" 5; }
  1931. fi
  1932. done
  1933. if test -r "$cache_file"; then
  1934. # Some versions of bash will fail to source /dev/null (special files
  1935. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1936. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1938. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1939. case $cache_file in
  1940. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1941. *) . "./$cache_file";;
  1942. esac
  1943. fi
  1944. else
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1946. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1947. >$cache_file
  1948. fi
  1949. # Check that the precious variables saved in the cache have kept the same
  1950. # value.
  1951. ac_cache_corrupted=false
  1952. for ac_var in $ac_precious_vars; do
  1953. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1954. eval ac_new_set=\$ac_env_${ac_var}_set
  1955. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1956. eval ac_new_val=\$ac_env_${ac_var}_value
  1957. case $ac_old_set,$ac_new_set in
  1958. set,)
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1960. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1961. ac_cache_corrupted=: ;;
  1962. ,set)
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1964. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1965. ac_cache_corrupted=: ;;
  1966. ,);;
  1967. *)
  1968. if test "x$ac_old_val" != "x$ac_new_val"; then
  1969. # differences in whitespace do not lead to failure.
  1970. ac_old_val_w=`echo x $ac_old_val`
  1971. ac_new_val_w=`echo x $ac_new_val`
  1972. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1974. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1975. ac_cache_corrupted=:
  1976. else
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1978. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1979. eval $ac_var=\$ac_old_val
  1980. fi
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1982. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1984. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1985. fi;;
  1986. esac
  1987. # Pass precious variables to config.status.
  1988. if test "$ac_new_set" = set; then
  1989. case $ac_new_val in
  1990. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1991. *) ac_arg=$ac_var=$ac_new_val ;;
  1992. esac
  1993. case " $ac_configure_args " in
  1994. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1995. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1996. esac
  1997. fi
  1998. done
  1999. if $ac_cache_corrupted; then
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2003. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2004. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2005. fi
  2006. ## -------------------- ##
  2007. ## Main body of script. ##
  2008. ## -------------------- ##
  2009. ac_ext=c
  2010. ac_cpp='$CPP $CPPFLAGS'
  2011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2014. ac_config_headers="$ac_config_headers config.h"
  2015. # Initialize Automake
  2016. am__api_version='1.12'
  2017. ac_aux_dir=
  2018. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2019. if test -f "$ac_dir/install-sh"; then
  2020. ac_aux_dir=$ac_dir
  2021. ac_install_sh="$ac_aux_dir/install-sh -c"
  2022. break
  2023. elif test -f "$ac_dir/install.sh"; then
  2024. ac_aux_dir=$ac_dir
  2025. ac_install_sh="$ac_aux_dir/install.sh -c"
  2026. break
  2027. elif test -f "$ac_dir/shtool"; then
  2028. ac_aux_dir=$ac_dir
  2029. ac_install_sh="$ac_aux_dir/shtool install -c"
  2030. break
  2031. fi
  2032. done
  2033. if test -z "$ac_aux_dir"; then
  2034. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2035. fi
  2036. # These three variables are undocumented and unsupported,
  2037. # and are intended to be withdrawn in a future Autoconf release.
  2038. # They can cause serious problems if a builder's source tree is in a directory
  2039. # whose full name contains unusual characters.
  2040. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2041. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2042. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2043. # Find a good install program. We prefer a C program (faster),
  2044. # so one script is as good as another. But avoid the broken or
  2045. # incompatible versions:
  2046. # SysV /etc/install, /usr/sbin/install
  2047. # SunOS /usr/etc/install
  2048. # IRIX /sbin/install
  2049. # AIX /bin/install
  2050. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2051. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2052. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2053. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2054. # OS/2's system install, which has a completely different semantic
  2055. # ./install, which can be erroneously created by make from ./install.sh.
  2056. # Reject install programs that cannot install multiple files.
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2058. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2059. if test -z "$INSTALL"; then
  2060. if ${ac_cv_path_install+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. else
  2063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2064. for as_dir in $PATH
  2065. do
  2066. IFS=$as_save_IFS
  2067. test -z "$as_dir" && as_dir=.
  2068. # Account for people who put trailing slashes in PATH elements.
  2069. case $as_dir/ in #((
  2070. ./ | .// | /[cC]/* | \
  2071. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2072. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2073. /usr/ucb/* ) ;;
  2074. *)
  2075. # OSF1 and SCO ODT 3.0 have their own names for install.
  2076. # Don't use installbsd from OSF since it installs stuff as root
  2077. # by default.
  2078. for ac_prog in ginstall scoinst install; do
  2079. for ac_exec_ext in '' $ac_executable_extensions; do
  2080. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2081. if test $ac_prog = install &&
  2082. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2083. # AIX install. It has an incompatible calling convention.
  2084. :
  2085. elif test $ac_prog = install &&
  2086. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2087. # program-specific install script used by HP pwplus--don't use.
  2088. :
  2089. else
  2090. rm -rf conftest.one conftest.two conftest.dir
  2091. echo one > conftest.one
  2092. echo two > conftest.two
  2093. mkdir conftest.dir
  2094. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2095. test -s conftest.one && test -s conftest.two &&
  2096. test -s conftest.dir/conftest.one &&
  2097. test -s conftest.dir/conftest.two
  2098. then
  2099. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2100. break 3
  2101. fi
  2102. fi
  2103. fi
  2104. done
  2105. done
  2106. ;;
  2107. esac
  2108. done
  2109. IFS=$as_save_IFS
  2110. rm -rf conftest.one conftest.two conftest.dir
  2111. fi
  2112. if test "${ac_cv_path_install+set}" = set; then
  2113. INSTALL=$ac_cv_path_install
  2114. else
  2115. # As a last resort, use the slow shell script. Don't cache a
  2116. # value for INSTALL within a source directory, because that will
  2117. # break other packages using the cache if that directory is
  2118. # removed, or if the value is a relative name.
  2119. INSTALL=$ac_install_sh
  2120. fi
  2121. fi
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2123. $as_echo "$INSTALL" >&6; }
  2124. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2125. # It thinks the first close brace ends the variable substitution.
  2126. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2127. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2128. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2130. $as_echo_n "checking whether build environment is sane... " >&6; }
  2131. # Reject unsafe characters in $srcdir or the absolute working directory
  2132. # name. Accept space and tab only in the latter.
  2133. am_lf='
  2134. '
  2135. case `pwd` in
  2136. *[\\\"\#\$\&\'\`$am_lf]*)
  2137. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2138. esac
  2139. case $srcdir in
  2140. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2141. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2142. esac
  2143. # Do 'set' in a subshell so we don't clobber the current shell's
  2144. # arguments. Must try -L first in case configure is actually a
  2145. # symlink; some systems play weird games with the mod time of symlinks
  2146. # (eg FreeBSD returns the mod time of the symlink's containing
  2147. # directory).
  2148. if (
  2149. am_has_slept=no
  2150. for am_try in 1 2; do
  2151. echo "timestamp, slept: $am_has_slept" > conftest.file
  2152. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2153. if test "$*" = "X"; then
  2154. # -L didn't work.
  2155. set X `ls -t "$srcdir/configure" conftest.file`
  2156. fi
  2157. if test "$*" != "X $srcdir/configure conftest.file" \
  2158. && test "$*" != "X conftest.file $srcdir/configure"; then
  2159. # If neither matched, then we have a broken ls. This can happen
  2160. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2161. # broken ls alias from the environment. This has actually
  2162. # happened. Such a system could not be considered "sane".
  2163. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2164. alias in your environment" "$LINENO" 5
  2165. fi
  2166. if test "$2" = conftest.file || test $am_try -eq 2; then
  2167. break
  2168. fi
  2169. # Just in case.
  2170. sleep 1
  2171. am_has_slept=yes
  2172. done
  2173. test "$2" = conftest.file
  2174. )
  2175. then
  2176. # Ok.
  2177. :
  2178. else
  2179. as_fn_error $? "newly created file is older than distributed files!
  2180. Check your system clock" "$LINENO" 5
  2181. fi
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2183. $as_echo "yes" >&6; }
  2184. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2185. # generated files are strictly newer.
  2186. am_sleep_pid=
  2187. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2188. ( sleep 1 ) &
  2189. am_sleep_pid=$!
  2190. fi
  2191. rm -f conftest.file
  2192. test "$program_prefix" != NONE &&
  2193. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2194. # Use a double $ so make ignores it.
  2195. test "$program_suffix" != NONE &&
  2196. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2197. # Double any \ or $.
  2198. # By default was `s,x,x', remove it if useless.
  2199. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2200. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2201. # expand $ac_aux_dir to an absolute path
  2202. am_aux_dir=`cd $ac_aux_dir && pwd`
  2203. if test x"${MISSING+set}" != xset; then
  2204. case $am_aux_dir in
  2205. *\ * | *\ *)
  2206. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2207. *)
  2208. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2209. esac
  2210. fi
  2211. # Use eval to expand $SHELL
  2212. if eval "$MISSING --run true"; then
  2213. am_missing_run="$MISSING --run "
  2214. else
  2215. am_missing_run=
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2217. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2218. fi
  2219. if test x"${install_sh}" != xset; then
  2220. case $am_aux_dir in
  2221. *\ * | *\ *)
  2222. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2223. *)
  2224. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2225. esac
  2226. fi
  2227. # Installed binaries are usually stripped using 'strip' when the user
  2228. # run "make install-strip". However 'strip' might not be the right
  2229. # tool to use in cross-compilation environments, therefore Automake
  2230. # will honor the 'STRIP' environment variable to overrule this program.
  2231. if test "$cross_compiling" != no; then
  2232. if test -n "$ac_tool_prefix"; then
  2233. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2234. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2236. $as_echo_n "checking for $ac_word... " >&6; }
  2237. if ${ac_cv_prog_STRIP+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. if test -n "$STRIP"; then
  2241. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2250. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. IFS=$as_save_IFS
  2257. fi
  2258. fi
  2259. STRIP=$ac_cv_prog_STRIP
  2260. if test -n "$STRIP"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2262. $as_echo "$STRIP" >&6; }
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2265. $as_echo "no" >&6; }
  2266. fi
  2267. fi
  2268. if test -z "$ac_cv_prog_STRIP"; then
  2269. ac_ct_STRIP=$STRIP
  2270. # Extract the first word of "strip", so it can be a program name with args.
  2271. set dummy strip; 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_ac_ct_STRIP+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test -n "$ac_ct_STRIP"; then
  2278. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
  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. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2297. if test -n "$ac_ct_STRIP"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2299. $as_echo "$ac_ct_STRIP" >&6; }
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. fi
  2304. if test "x$ac_ct_STRIP" = x; then
  2305. STRIP=":"
  2306. else
  2307. case $cross_compiling:$ac_tool_warned in
  2308. yes:)
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2310. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2311. ac_tool_warned=yes ;;
  2312. esac
  2313. STRIP=$ac_ct_STRIP
  2314. fi
  2315. else
  2316. STRIP="$ac_cv_prog_STRIP"
  2317. fi
  2318. fi
  2319. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2321. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2322. if test -z "$MKDIR_P"; then
  2323. if ${ac_cv_path_mkdir+:} false; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2327. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2328. do
  2329. IFS=$as_save_IFS
  2330. test -z "$as_dir" && as_dir=.
  2331. for ac_prog in mkdir gmkdir; do
  2332. for ac_exec_ext in '' $ac_executable_extensions; do
  2333. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2334. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2335. 'mkdir (GNU coreutils) '* | \
  2336. 'mkdir (coreutils) '* | \
  2337. 'mkdir (fileutils) '4.1*)
  2338. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2339. break 3;;
  2340. esac
  2341. done
  2342. done
  2343. done
  2344. IFS=$as_save_IFS
  2345. fi
  2346. test -d ./--version && rmdir ./--version
  2347. if test "${ac_cv_path_mkdir+set}" = set; then
  2348. MKDIR_P="$ac_cv_path_mkdir -p"
  2349. else
  2350. # As a last resort, use the slow shell script. Don't cache a
  2351. # value for MKDIR_P within a source directory, because that will
  2352. # break other packages using the cache if that directory is
  2353. # removed, or if the value is a relative name.
  2354. MKDIR_P="$ac_install_sh -d"
  2355. fi
  2356. fi
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2358. $as_echo "$MKDIR_P" >&6; }
  2359. for ac_prog in gawk mawk nawk awk
  2360. do
  2361. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2362. set dummy $ac_prog; ac_word=$2
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2364. $as_echo_n "checking for $ac_word... " >&6; }
  2365. if ${ac_cv_prog_AWK+:} false; then :
  2366. $as_echo_n "(cached) " >&6
  2367. else
  2368. if test -n "$AWK"; then
  2369. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2370. else
  2371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2372. for as_dir in $PATH
  2373. do
  2374. IFS=$as_save_IFS
  2375. test -z "$as_dir" && as_dir=.
  2376. for ac_exec_ext in '' $ac_executable_extensions; do
  2377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2378. ac_cv_prog_AWK="$ac_prog"
  2379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. fi
  2386. fi
  2387. AWK=$ac_cv_prog_AWK
  2388. if test -n "$AWK"; then
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2390. $as_echo "$AWK" >&6; }
  2391. else
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2393. $as_echo "no" >&6; }
  2394. fi
  2395. test -n "$AWK" && break
  2396. done
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2398. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2399. set x ${MAKE-make}
  2400. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2401. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. cat >conftest.make <<\_ACEOF
  2405. SHELL = /bin/sh
  2406. all:
  2407. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2408. _ACEOF
  2409. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2410. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2411. *@@@%%%=?*=@@@%%%*)
  2412. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2413. *)
  2414. eval ac_cv_prog_make_${ac_make}_set=no;;
  2415. esac
  2416. rm -f conftest.make
  2417. fi
  2418. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2420. $as_echo "yes" >&6; }
  2421. SET_MAKE=
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. SET_MAKE="MAKE=${MAKE-make}"
  2426. fi
  2427. rm -rf .tst 2>/dev/null
  2428. mkdir .tst 2>/dev/null
  2429. if test -d .tst; then
  2430. am__leading_dot=.
  2431. else
  2432. am__leading_dot=_
  2433. fi
  2434. rmdir .tst 2>/dev/null
  2435. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2436. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2437. # is not polluted with repeated "-I."
  2438. am__isrc=' -I$(srcdir)'
  2439. # test to see if srcdir already configured
  2440. if test -f $srcdir/config.status; then
  2441. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2442. fi
  2443. fi
  2444. # test whether we have cygpath
  2445. if test -z "$CYGPATH_W"; then
  2446. if (cygpath --version) >/dev/null 2>/dev/null; then
  2447. CYGPATH_W='cygpath -w'
  2448. else
  2449. CYGPATH_W=echo
  2450. fi
  2451. fi
  2452. # Define the identity of the package.
  2453. PACKAGE='xdpyinfo'
  2454. VERSION='1.3.2'
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE "$PACKAGE"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define VERSION "$VERSION"
  2460. _ACEOF
  2461. # Some tools Automake needs.
  2462. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2463. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2464. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2465. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2466. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2467. # For better backward compatibility. To be removed once Automake 1.9.x
  2468. # dies out for good. For more background, see:
  2469. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2470. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2471. mkdir_p='$(MKDIR_P)'
  2472. # We need awk for the "check" target. The system "awk" is bad on
  2473. # some platforms.
  2474. # Always define AMTAR for backward compatibility. Yes, it's still used
  2475. # in the wild :-( We should find a proper way to deprecate it ...
  2476. AMTAR='$${TAR-tar}'
  2477. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2478. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2479. DEPDIR="${am__leading_dot}deps"
  2480. ac_config_commands="$ac_config_commands depfiles"
  2481. am_make=${MAKE-make}
  2482. cat > confinc << 'END'
  2483. am__doit:
  2484. @echo this is the am__doit target
  2485. .PHONY: am__doit
  2486. END
  2487. # If we don't find an include directive, just comment out the code.
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2489. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2490. am__include="#"
  2491. am__quote=
  2492. _am_result=none
  2493. # First try GNU make style include.
  2494. echo "include confinc" > confmf
  2495. # Ignore all kinds of additional output from 'make'.
  2496. case `$am_make -s -f confmf 2> /dev/null` in #(
  2497. *the\ am__doit\ target*)
  2498. am__include=include
  2499. am__quote=
  2500. _am_result=GNU
  2501. ;;
  2502. esac
  2503. # Now try BSD make style include.
  2504. if test "$am__include" = "#"; then
  2505. echo '.include "confinc"' > confmf
  2506. case `$am_make -s -f confmf 2> /dev/null` in #(
  2507. *the\ am__doit\ target*)
  2508. am__include=.include
  2509. am__quote="\""
  2510. _am_result=BSD
  2511. ;;
  2512. esac
  2513. fi
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2515. $as_echo "$_am_result" >&6; }
  2516. rm -f confinc confmf
  2517. # Check whether --enable-dependency-tracking was given.
  2518. if test "${enable_dependency_tracking+set}" = set; then :
  2519. enableval=$enable_dependency_tracking;
  2520. fi
  2521. if test "x$enable_dependency_tracking" != xno; then
  2522. am_depcomp="$ac_aux_dir/depcomp"
  2523. AMDEPBACKSLASH='\'
  2524. am__nodep='_no'
  2525. fi
  2526. if test "x$enable_dependency_tracking" != xno; then
  2527. AMDEP_TRUE=
  2528. AMDEP_FALSE='#'
  2529. else
  2530. AMDEP_TRUE='#'
  2531. AMDEP_FALSE=
  2532. fi
  2533. ac_ext=c
  2534. ac_cpp='$CPP $CPPFLAGS'
  2535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2538. if test -n "$ac_tool_prefix"; then
  2539. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2540. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2542. $as_echo_n "checking for $ac_word... " >&6; }
  2543. if ${ac_cv_prog_CC+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test -n "$CC"; then
  2547. ac_cv_prog_CC="$CC" # Let the user override the test.
  2548. else
  2549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2550. for as_dir in $PATH
  2551. do
  2552. IFS=$as_save_IFS
  2553. test -z "$as_dir" && as_dir=.
  2554. for ac_exec_ext in '' $ac_executable_extensions; do
  2555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2556. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2558. break 2
  2559. fi
  2560. done
  2561. done
  2562. IFS=$as_save_IFS
  2563. fi
  2564. fi
  2565. CC=$ac_cv_prog_CC
  2566. if test -n "$CC"; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2568. $as_echo "$CC" >&6; }
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. fi
  2573. fi
  2574. if test -z "$ac_cv_prog_CC"; then
  2575. ac_ct_CC=$CC
  2576. # Extract the first word of "gcc", so it can be a program name with args.
  2577. set dummy gcc; ac_word=$2
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2579. $as_echo_n "checking for $ac_word... " >&6; }
  2580. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2581. $as_echo_n "(cached) " >&6
  2582. else
  2583. if test -n "$ac_ct_CC"; then
  2584. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. for ac_exec_ext in '' $ac_executable_extensions; do
  2592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2593. ac_cv_prog_ac_ct_CC="gcc"
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2595. break 2
  2596. fi
  2597. done
  2598. done
  2599. IFS=$as_save_IFS
  2600. fi
  2601. fi
  2602. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2603. if test -n "$ac_ct_CC"; then
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2605. $as_echo "$ac_ct_CC" >&6; }
  2606. else
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2608. $as_echo "no" >&6; }
  2609. fi
  2610. if test "x$ac_ct_CC" = x; then
  2611. CC=""
  2612. else
  2613. case $cross_compiling:$ac_tool_warned in
  2614. yes:)
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2617. ac_tool_warned=yes ;;
  2618. esac
  2619. CC=$ac_ct_CC
  2620. fi
  2621. else
  2622. CC="$ac_cv_prog_CC"
  2623. fi
  2624. if test -z "$CC"; then
  2625. if test -n "$ac_tool_prefix"; then
  2626. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2627. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if ${ac_cv_prog_CC+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. if test -n "$CC"; then
  2634. ac_cv_prog_CC="$CC" # Let the user override the test.
  2635. else
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2643. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2645. break 2
  2646. fi
  2647. done
  2648. done
  2649. IFS=$as_save_IFS
  2650. fi
  2651. fi
  2652. CC=$ac_cv_prog_CC
  2653. if test -n "$CC"; then
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2655. $as_echo "$CC" >&6; }
  2656. else
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2658. $as_echo "no" >&6; }
  2659. fi
  2660. fi
  2661. fi
  2662. if test -z "$CC"; then
  2663. # Extract the first word of "cc", so it can be a program name with args.
  2664. set dummy cc; ac_word=$2
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2666. $as_echo_n "checking for $ac_word... " >&6; }
  2667. if ${ac_cv_prog_CC+:} false; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test -n "$CC"; then
  2671. ac_cv_prog_CC="$CC" # Let the user override the test.
  2672. else
  2673. ac_prog_rejected=no
  2674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2675. for as_dir in $PATH
  2676. do
  2677. IFS=$as_save_IFS
  2678. test -z "$as_dir" && as_dir=.
  2679. for ac_exec_ext in '' $ac_executable_extensions; do
  2680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2681. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2682. ac_prog_rejected=yes
  2683. continue
  2684. fi
  2685. ac_cv_prog_CC="cc"
  2686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2687. break 2
  2688. fi
  2689. done
  2690. done
  2691. IFS=$as_save_IFS
  2692. if test $ac_prog_rejected = yes; then
  2693. # We found a bogon in the path, so make sure we never use it.
  2694. set dummy $ac_cv_prog_CC
  2695. shift
  2696. if test $# != 0; then
  2697. # We chose a different compiler from the bogus one.
  2698. # However, it has the same basename, so the bogon will be chosen
  2699. # first if we set CC to just the basename; use the full file name.
  2700. shift
  2701. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2702. fi
  2703. fi
  2704. fi
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2709. $as_echo "$CC" >&6; }
  2710. else
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2712. $as_echo "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$CC"; then
  2716. if test -n "$ac_tool_prefix"; then
  2717. for ac_prog in cl.exe
  2718. do
  2719. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2720. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if ${ac_cv_prog_CC+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$CC"; then
  2727. ac_cv_prog_CC="$CC" # Let the user override the test.
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2736. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2738. break 2
  2739. fi
  2740. done
  2741. done
  2742. IFS=$as_save_IFS
  2743. fi
  2744. fi
  2745. CC=$ac_cv_prog_CC
  2746. if test -n "$CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2748. $as_echo "$CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. test -n "$CC" && break
  2754. done
  2755. fi
  2756. if test -z "$CC"; then
  2757. ac_ct_CC=$CC
  2758. for ac_prog in cl.exe
  2759. do
  2760. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2761. set dummy $ac_prog; ac_word=$2
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2763. $as_echo_n "checking for $ac_word... " >&6; }
  2764. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2765. $as_echo_n "(cached) " >&6
  2766. else
  2767. if test -n "$ac_ct_CC"; then
  2768. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2769. else
  2770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2771. for as_dir in $PATH
  2772. do
  2773. IFS=$as_save_IFS
  2774. test -z "$as_dir" && as_dir=.
  2775. for ac_exec_ext in '' $ac_executable_extensions; do
  2776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2777. ac_cv_prog_ac_ct_CC="$ac_prog"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. fi
  2785. fi
  2786. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2787. if test -n "$ac_ct_CC"; then
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2789. $as_echo "$ac_ct_CC" >&6; }
  2790. else
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2792. $as_echo "no" >&6; }
  2793. fi
  2794. test -n "$ac_ct_CC" && break
  2795. done
  2796. if test "x$ac_ct_CC" = x; then
  2797. CC=""
  2798. else
  2799. case $cross_compiling:$ac_tool_warned in
  2800. yes:)
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2803. ac_tool_warned=yes ;;
  2804. esac
  2805. CC=$ac_ct_CC
  2806. fi
  2807. fi
  2808. fi
  2809. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2810. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2811. as_fn_error $? "no acceptable C compiler found in \$PATH
  2812. See \`config.log' for more details" "$LINENO" 5; }
  2813. # Provide some information about the compiler.
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2815. set X $ac_compile
  2816. ac_compiler=$2
  2817. for ac_option in --version -v -V -qversion; do
  2818. { { ac_try="$ac_compiler $ac_option >&5"
  2819. case "(($ac_try" in
  2820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2821. *) ac_try_echo=$ac_try;;
  2822. esac
  2823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2824. $as_echo "$ac_try_echo"; } >&5
  2825. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2826. ac_status=$?
  2827. if test -s conftest.err; then
  2828. sed '10a\
  2829. ... rest of stderr output deleted ...
  2830. 10q' conftest.err >conftest.er1
  2831. cat conftest.er1 >&5
  2832. fi
  2833. rm -f conftest.er1 conftest.err
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2835. test $ac_status = 0; }
  2836. done
  2837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2838. /* end confdefs.h. */
  2839. int
  2840. main ()
  2841. {
  2842. ;
  2843. return 0;
  2844. }
  2845. _ACEOF
  2846. ac_clean_files_save=$ac_clean_files
  2847. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2848. # Try to create an executable without -o first, disregard a.out.
  2849. # It will help us diagnose broken compilers, and finding out an intuition
  2850. # of exeext.
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2852. $as_echo_n "checking whether the C compiler works... " >&6; }
  2853. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2854. # The possible output files:
  2855. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2856. ac_rmfiles=
  2857. for ac_file in $ac_files
  2858. do
  2859. case $ac_file in
  2860. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2861. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2862. esac
  2863. done
  2864. rm -f $ac_rmfiles
  2865. if { { ac_try="$ac_link_default"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo"; } >&5
  2872. (eval "$ac_link_default") 2>&5
  2873. ac_status=$?
  2874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2875. test $ac_status = 0; }; then :
  2876. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2877. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2878. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2879. # so that the user can short-circuit this test for compilers unknown to
  2880. # Autoconf.
  2881. for ac_file in $ac_files ''
  2882. do
  2883. test -f "$ac_file" || continue
  2884. case $ac_file in
  2885. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2886. ;;
  2887. [ab].out )
  2888. # We found the default executable, but exeext='' is most
  2889. # certainly right.
  2890. break;;
  2891. *.* )
  2892. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2893. then :; else
  2894. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2895. fi
  2896. # We set ac_cv_exeext here because the later test for it is not
  2897. # safe: cross compilers may not add the suffix if given an `-o'
  2898. # argument, so we may need to know it at that point already.
  2899. # Even if this section looks crufty: it has the advantage of
  2900. # actually working.
  2901. break;;
  2902. * )
  2903. break;;
  2904. esac
  2905. done
  2906. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2907. else
  2908. ac_file=''
  2909. fi
  2910. if test -z "$ac_file"; then :
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2912. $as_echo "no" >&6; }
  2913. $as_echo "$as_me: failed program was:" >&5
  2914. sed 's/^/| /' conftest.$ac_ext >&5
  2915. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2916. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2917. as_fn_error 77 "C compiler cannot create executables
  2918. See \`config.log' for more details" "$LINENO" 5; }
  2919. else
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2921. $as_echo "yes" >&6; }
  2922. fi
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2924. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2926. $as_echo "$ac_file" >&6; }
  2927. ac_exeext=$ac_cv_exeext
  2928. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2929. ac_clean_files=$ac_clean_files_save
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2931. $as_echo_n "checking for suffix of executables... " >&6; }
  2932. if { { ac_try="$ac_link"
  2933. case "(($ac_try" in
  2934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2935. *) ac_try_echo=$ac_try;;
  2936. esac
  2937. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2938. $as_echo "$ac_try_echo"; } >&5
  2939. (eval "$ac_link") 2>&5
  2940. ac_status=$?
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2942. test $ac_status = 0; }; then :
  2943. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2944. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2945. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2946. # `rm'.
  2947. for ac_file in conftest.exe conftest conftest.*; do
  2948. test -f "$ac_file" || continue
  2949. case $ac_file in
  2950. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2951. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2952. break;;
  2953. * ) break;;
  2954. esac
  2955. done
  2956. else
  2957. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2959. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2960. See \`config.log' for more details" "$LINENO" 5; }
  2961. fi
  2962. rm -f conftest conftest$ac_cv_exeext
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2964. $as_echo "$ac_cv_exeext" >&6; }
  2965. rm -f conftest.$ac_ext
  2966. EXEEXT=$ac_cv_exeext
  2967. ac_exeext=$EXEEXT
  2968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2969. /* end confdefs.h. */
  2970. #include <stdio.h>
  2971. int
  2972. main ()
  2973. {
  2974. FILE *f = fopen ("conftest.out", "w");
  2975. return ferror (f) || fclose (f) != 0;
  2976. ;
  2977. return 0;
  2978. }
  2979. _ACEOF
  2980. ac_clean_files="$ac_clean_files conftest.out"
  2981. # Check that the compiler produces executables we can run. If not, either
  2982. # the compiler is broken, or we cross compile.
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2984. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2985. if test "$cross_compiling" != yes; then
  2986. { { ac_try="$ac_link"
  2987. case "(($ac_try" in
  2988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2989. *) ac_try_echo=$ac_try;;
  2990. esac
  2991. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2992. $as_echo "$ac_try_echo"; } >&5
  2993. (eval "$ac_link") 2>&5
  2994. ac_status=$?
  2995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2996. test $ac_status = 0; }
  2997. if { ac_try='./conftest$ac_cv_exeext'
  2998. { { case "(($ac_try" in
  2999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3000. *) ac_try_echo=$ac_try;;
  3001. esac
  3002. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3003. $as_echo "$ac_try_echo"; } >&5
  3004. (eval "$ac_try") 2>&5
  3005. ac_status=$?
  3006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3007. test $ac_status = 0; }; }; then
  3008. cross_compiling=no
  3009. else
  3010. if test "$cross_compiling" = maybe; then
  3011. cross_compiling=yes
  3012. else
  3013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3015. as_fn_error $? "cannot run C compiled programs.
  3016. If you meant to cross compile, use \`--host'.
  3017. See \`config.log' for more details" "$LINENO" 5; }
  3018. fi
  3019. fi
  3020. fi
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3022. $as_echo "$cross_compiling" >&6; }
  3023. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3024. ac_clean_files=$ac_clean_files_save
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3026. $as_echo_n "checking for suffix of object files... " >&6; }
  3027. if ${ac_cv_objext+:} false; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. int
  3033. main ()
  3034. {
  3035. ;
  3036. return 0;
  3037. }
  3038. _ACEOF
  3039. rm -f conftest.o conftest.obj
  3040. if { { ac_try="$ac_compile"
  3041. case "(($ac_try" in
  3042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3043. *) ac_try_echo=$ac_try;;
  3044. esac
  3045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3046. $as_echo "$ac_try_echo"; } >&5
  3047. (eval "$ac_compile") 2>&5
  3048. ac_status=$?
  3049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3050. test $ac_status = 0; }; then :
  3051. for ac_file in conftest.o conftest.obj conftest.*; do
  3052. test -f "$ac_file" || continue;
  3053. case $ac_file in
  3054. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3055. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3056. break;;
  3057. esac
  3058. done
  3059. else
  3060. $as_echo "$as_me: failed program was:" >&5
  3061. sed 's/^/| /' conftest.$ac_ext >&5
  3062. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3064. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3065. See \`config.log' for more details" "$LINENO" 5; }
  3066. fi
  3067. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3068. fi
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3070. $as_echo "$ac_cv_objext" >&6; }
  3071. OBJEXT=$ac_cv_objext
  3072. ac_objext=$OBJEXT
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3074. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3075. if ${ac_cv_c_compiler_gnu+:} false; then :
  3076. $as_echo_n "(cached) " >&6
  3077. else
  3078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3079. /* end confdefs.h. */
  3080. int
  3081. main ()
  3082. {
  3083. #ifndef __GNUC__
  3084. choke me
  3085. #endif
  3086. ;
  3087. return 0;
  3088. }
  3089. _ACEOF
  3090. if ac_fn_c_try_compile "$LINENO"; then :
  3091. ac_compiler_gnu=yes
  3092. else
  3093. ac_compiler_gnu=no
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3097. fi
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3099. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3100. if test $ac_compiler_gnu = yes; then
  3101. GCC=yes
  3102. else
  3103. GCC=
  3104. fi
  3105. ac_test_CFLAGS=${CFLAGS+set}
  3106. ac_save_CFLAGS=$CFLAGS
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3108. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3109. if ${ac_cv_prog_cc_g+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. ac_save_c_werror_flag=$ac_c_werror_flag
  3113. ac_c_werror_flag=yes
  3114. ac_cv_prog_cc_g=no
  3115. CFLAGS="-g"
  3116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h. */
  3118. int
  3119. main ()
  3120. {
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. if ac_fn_c_try_compile "$LINENO"; then :
  3126. ac_cv_prog_cc_g=yes
  3127. else
  3128. CFLAGS=""
  3129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3130. /* end confdefs.h. */
  3131. int
  3132. main ()
  3133. {
  3134. ;
  3135. return 0;
  3136. }
  3137. _ACEOF
  3138. if ac_fn_c_try_compile "$LINENO"; then :
  3139. else
  3140. ac_c_werror_flag=$ac_save_c_werror_flag
  3141. CFLAGS="-g"
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. int
  3145. main ()
  3146. {
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. if ac_fn_c_try_compile "$LINENO"; then :
  3152. ac_cv_prog_cc_g=yes
  3153. fi
  3154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3155. fi
  3156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3157. fi
  3158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3159. ac_c_werror_flag=$ac_save_c_werror_flag
  3160. fi
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3162. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3163. if test "$ac_test_CFLAGS" = set; then
  3164. CFLAGS=$ac_save_CFLAGS
  3165. elif test $ac_cv_prog_cc_g = yes; then
  3166. if test "$GCC" = yes; then
  3167. CFLAGS="-g -O2"
  3168. else
  3169. CFLAGS="-g"
  3170. fi
  3171. else
  3172. if test "$GCC" = yes; then
  3173. CFLAGS="-O2"
  3174. else
  3175. CFLAGS=
  3176. fi
  3177. fi
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3179. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3180. if ${ac_cv_prog_cc_c89+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. ac_cv_prog_cc_c89=no
  3184. ac_save_CC=$CC
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. #include <stdarg.h>
  3188. #include <stdio.h>
  3189. struct stat;
  3190. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3191. struct buf { int x; };
  3192. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3193. static char *e (p, i)
  3194. char **p;
  3195. int i;
  3196. {
  3197. return p[i];
  3198. }
  3199. static char *f (char * (*g) (char **, int), char **p, ...)
  3200. {
  3201. char *s;
  3202. va_list v;
  3203. va_start (v,p);
  3204. s = g (p, va_arg (v,int));
  3205. va_end (v);
  3206. return s;
  3207. }
  3208. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3209. function prototypes and stuff, but not '\xHH' hex character constants.
  3210. These don't provoke an error unfortunately, instead are silently treated
  3211. as 'x'. The following induces an error, until -std is added to get
  3212. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3213. array size at least. It's necessary to write '\x00'==0 to get something
  3214. that's true only with -std. */
  3215. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3216. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3217. inside strings and character constants. */
  3218. #define FOO(x) 'x'
  3219. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3220. int test (int i, double x);
  3221. struct s1 {int (*f) (int a);};
  3222. struct s2 {int (*f) (double a);};
  3223. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3224. int argc;
  3225. char **argv;
  3226. int
  3227. main ()
  3228. {
  3229. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3230. ;
  3231. return 0;
  3232. }
  3233. _ACEOF
  3234. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3235. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3236. do
  3237. CC="$ac_save_CC $ac_arg"
  3238. if ac_fn_c_try_compile "$LINENO"; then :
  3239. ac_cv_prog_cc_c89=$ac_arg
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext
  3242. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3243. done
  3244. rm -f conftest.$ac_ext
  3245. CC=$ac_save_CC
  3246. fi
  3247. # AC_CACHE_VAL
  3248. case "x$ac_cv_prog_cc_c89" in
  3249. x)
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3251. $as_echo "none needed" >&6; } ;;
  3252. xno)
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3254. $as_echo "unsupported" >&6; } ;;
  3255. *)
  3256. CC="$CC $ac_cv_prog_cc_c89"
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3258. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3259. esac
  3260. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3261. fi
  3262. ac_ext=c
  3263. ac_cpp='$CPP $CPPFLAGS'
  3264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3267. depcc="$CC" am_compiler_list=
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3269. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3270. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3274. # We make a subdir and do the tests there. Otherwise we can end up
  3275. # making bogus files that we don't know about and never remove. For
  3276. # instance it was reported that on HP-UX the gcc test will end up
  3277. # making a dummy file named 'D' -- because '-MD' means "put the output
  3278. # in D".
  3279. rm -rf conftest.dir
  3280. mkdir conftest.dir
  3281. # Copy depcomp to subdir because otherwise we won't find it if we're
  3282. # using a relative directory.
  3283. cp "$am_depcomp" conftest.dir
  3284. cd conftest.dir
  3285. # We will build objects and dependencies in a subdirectory because
  3286. # it helps to detect inapplicable dependency modes. For instance
  3287. # both Tru64's cc and ICC support -MD to output dependencies as a
  3288. # side effect of compilation, but ICC will put the dependencies in
  3289. # the current directory while Tru64 will put them in the object
  3290. # directory.
  3291. mkdir sub
  3292. am_cv_CC_dependencies_compiler_type=none
  3293. if test "$am_compiler_list" = ""; then
  3294. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3295. fi
  3296. am__universal=false
  3297. case " $depcc " in #(
  3298. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3299. esac
  3300. for depmode in $am_compiler_list; do
  3301. # Setup a source with many dependencies, because some compilers
  3302. # like to wrap large dependency lists on column 80 (with \), and
  3303. # we should not choose a depcomp mode which is confused by this.
  3304. #
  3305. # We need to recreate these files for each test, as the compiler may
  3306. # overwrite some of them when testing with obscure command lines.
  3307. # This happens at least with the AIX C compiler.
  3308. : > sub/conftest.c
  3309. for i in 1 2 3 4 5 6; do
  3310. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3311. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3312. # Solaris 10 /bin/sh.
  3313. echo '/* dummy */' > sub/conftst$i.h
  3314. done
  3315. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3316. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3317. # mode. It turns out that the SunPro C++ compiler does not properly
  3318. # handle '-M -o', and we need to detect this. Also, some Intel
  3319. # versions had trouble with output in subdirs.
  3320. am__obj=sub/conftest.${OBJEXT-o}
  3321. am__minus_obj="-o $am__obj"
  3322. case $depmode in
  3323. gcc)
  3324. # This depmode causes a compiler race in universal mode.
  3325. test "$am__universal" = false || continue
  3326. ;;
  3327. nosideeffect)
  3328. # After this tag, mechanisms are not by side-effect, so they'll
  3329. # only be used when explicitly requested.
  3330. if test "x$enable_dependency_tracking" = xyes; then
  3331. continue
  3332. else
  3333. break
  3334. fi
  3335. ;;
  3336. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3337. # This compiler won't grok '-c -o', but also, the minuso test has
  3338. # not run yet. These depmodes are late enough in the game, and
  3339. # so weak that their functioning should not be impacted.
  3340. am__obj=conftest.${OBJEXT-o}
  3341. am__minus_obj=
  3342. ;;
  3343. none) break ;;
  3344. esac
  3345. if depmode=$depmode \
  3346. source=sub/conftest.c object=$am__obj \
  3347. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3348. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3349. >/dev/null 2>conftest.err &&
  3350. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3351. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3352. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3353. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3354. # icc doesn't choke on unknown options, it will just issue warnings
  3355. # or remarks (even with -Werror). So we grep stderr for any message
  3356. # that says an option was ignored or not supported.
  3357. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3358. # icc: Command line warning: ignoring option '-M'; no argument required
  3359. # The diagnosis changed in icc 8.0:
  3360. # icc: Command line remark: option '-MP' not supported
  3361. if (grep 'ignoring option' conftest.err ||
  3362. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3363. am_cv_CC_dependencies_compiler_type=$depmode
  3364. break
  3365. fi
  3366. fi
  3367. done
  3368. cd ..
  3369. rm -rf conftest.dir
  3370. else
  3371. am_cv_CC_dependencies_compiler_type=none
  3372. fi
  3373. fi
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3375. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3376. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3377. if
  3378. test "x$enable_dependency_tracking" != xno \
  3379. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3380. am__fastdepCC_TRUE=
  3381. am__fastdepCC_FALSE='#'
  3382. else
  3383. am__fastdepCC_TRUE='#'
  3384. am__fastdepCC_FALSE=
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3387. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3388. if ${ac_cv_prog_cc_c99+:} false; then :
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. ac_cv_prog_cc_c99=no
  3392. ac_save_CC=$CC
  3393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3394. /* end confdefs.h. */
  3395. #include <stdarg.h>
  3396. #include <stdbool.h>
  3397. #include <stdlib.h>
  3398. #include <wchar.h>
  3399. #include <stdio.h>
  3400. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3401. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3402. #define showlist(...) puts (#__VA_ARGS__)
  3403. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3404. static void
  3405. test_varargs_macros (void)
  3406. {
  3407. int x = 1234;
  3408. int y = 5678;
  3409. debug ("Flag");
  3410. debug ("X = %d\n", x);
  3411. showlist (The first, second, and third items.);
  3412. report (x>y, "x is %d but y is %d", x, y);
  3413. }
  3414. // Check long long types.
  3415. #define BIG64 18446744073709551615ull
  3416. #define BIG32 4294967295ul
  3417. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3418. #if !BIG_OK
  3419. your preprocessor is broken;
  3420. #endif
  3421. #if BIG_OK
  3422. #else
  3423. your preprocessor is broken;
  3424. #endif
  3425. static long long int bignum = -9223372036854775807LL;
  3426. static unsigned long long int ubignum = BIG64;
  3427. struct incomplete_array
  3428. {
  3429. int datasize;
  3430. double data[];
  3431. };
  3432. struct named_init {
  3433. int number;
  3434. const wchar_t *name;
  3435. double average;
  3436. };
  3437. typedef const char *ccp;
  3438. static inline int
  3439. test_restrict (ccp restrict text)
  3440. {
  3441. // See if C++-style comments work.
  3442. // Iterate through items via the restricted pointer.
  3443. // Also check for declarations in for loops.
  3444. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3445. continue;
  3446. return 0;
  3447. }
  3448. // Check varargs and va_copy.
  3449. static void
  3450. test_varargs (const char *format, ...)
  3451. {
  3452. va_list args;
  3453. va_start (args, format);
  3454. va_list args_copy;
  3455. va_copy (args_copy, args);
  3456. const char *str;
  3457. int number;
  3458. float fnumber;
  3459. while (*format)
  3460. {
  3461. switch (*format++)
  3462. {
  3463. case 's': // string
  3464. str = va_arg (args_copy, const char *);
  3465. break;
  3466. case 'd': // int
  3467. number = va_arg (args_copy, int);
  3468. break;
  3469. case 'f': // float
  3470. fnumber = va_arg (args_copy, double);
  3471. break;
  3472. default:
  3473. break;
  3474. }
  3475. }
  3476. va_end (args_copy);
  3477. va_end (args);
  3478. }
  3479. int
  3480. main ()
  3481. {
  3482. // Check bool.
  3483. _Bool success = false;
  3484. // Check restrict.
  3485. if (test_restrict ("String literal") == 0)
  3486. success = true;
  3487. char *restrict newvar = "Another string";
  3488. // Check varargs.
  3489. test_varargs ("s, d' f .", "string", 65, 34.234);
  3490. test_varargs_macros ();
  3491. // Check flexible array members.
  3492. struct incomplete_array *ia =
  3493. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3494. ia->datasize = 10;
  3495. for (int i = 0; i < ia->datasize; ++i)
  3496. ia->data[i] = i * 1.234;
  3497. // Check named initializers.
  3498. struct named_init ni = {
  3499. .number = 34,
  3500. .name = L"Test wide string",
  3501. .average = 543.34343,
  3502. };
  3503. ni.number = 58;
  3504. int dynamic_array[ni.number];
  3505. dynamic_array[ni.number - 1] = 543;
  3506. // work around unused variable warnings
  3507. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3508. || dynamic_array[ni.number - 1] != 543);
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3514. do
  3515. CC="$ac_save_CC $ac_arg"
  3516. if ac_fn_c_try_compile "$LINENO"; then :
  3517. ac_cv_prog_cc_c99=$ac_arg
  3518. fi
  3519. rm -f core conftest.err conftest.$ac_objext
  3520. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3521. done
  3522. rm -f conftest.$ac_ext
  3523. CC=$ac_save_CC
  3524. fi
  3525. # AC_CACHE_VAL
  3526. case "x$ac_cv_prog_cc_c99" in
  3527. x)
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3529. $as_echo "none needed" >&6; } ;;
  3530. xno)
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3532. $as_echo "unsupported" >&6; } ;;
  3533. *)
  3534. CC="$CC $ac_cv_prog_cc_c99"
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3536. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3537. esac
  3538. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3539. fi
  3540. ac_ext=c
  3541. ac_cpp='$CPP $CPPFLAGS'
  3542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3546. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3547. # On Suns, sometimes $CPP names a directory.
  3548. if test -n "$CPP" && test -d "$CPP"; then
  3549. CPP=
  3550. fi
  3551. if test -z "$CPP"; then
  3552. if ${ac_cv_prog_CPP+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. # Double quotes because CPP needs to be expanded
  3556. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3557. do
  3558. ac_preproc_ok=false
  3559. for ac_c_preproc_warn_flag in '' yes
  3560. do
  3561. # Use a header file that comes with gcc, so configuring glibc
  3562. # with a fresh cross-compiler works.
  3563. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3564. # <limits.h> exists even on freestanding compilers.
  3565. # On the NeXT, cc -E runs the code through the compiler's parser,
  3566. # not just through cpp. "Syntax error" is here to catch this case.
  3567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3568. /* end confdefs.h. */
  3569. #ifdef __STDC__
  3570. # include <limits.h>
  3571. #else
  3572. # include <assert.h>
  3573. #endif
  3574. Syntax error
  3575. _ACEOF
  3576. if ac_fn_c_try_cpp "$LINENO"; then :
  3577. else
  3578. # Broken: fails on valid input.
  3579. continue
  3580. fi
  3581. rm -f conftest.err conftest.i conftest.$ac_ext
  3582. # OK, works on sane cases. Now check whether nonexistent headers
  3583. # can be detected and how.
  3584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3585. /* end confdefs.h. */
  3586. #include <ac_nonexistent.h>
  3587. _ACEOF
  3588. if ac_fn_c_try_cpp "$LINENO"; then :
  3589. # Broken: success on invalid input.
  3590. continue
  3591. else
  3592. # Passes both tests.
  3593. ac_preproc_ok=:
  3594. break
  3595. fi
  3596. rm -f conftest.err conftest.i conftest.$ac_ext
  3597. done
  3598. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3599. rm -f conftest.i conftest.err conftest.$ac_ext
  3600. if $ac_preproc_ok; then :
  3601. break
  3602. fi
  3603. done
  3604. ac_cv_prog_CPP=$CPP
  3605. fi
  3606. CPP=$ac_cv_prog_CPP
  3607. else
  3608. ac_cv_prog_CPP=$CPP
  3609. fi
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3611. $as_echo "$CPP" >&6; }
  3612. ac_preproc_ok=false
  3613. for ac_c_preproc_warn_flag in '' yes
  3614. do
  3615. # Use a header file that comes with gcc, so configuring glibc
  3616. # with a fresh cross-compiler works.
  3617. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3618. # <limits.h> exists even on freestanding compilers.
  3619. # On the NeXT, cc -E runs the code through the compiler's parser,
  3620. # not just through cpp. "Syntax error" is here to catch this case.
  3621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3622. /* end confdefs.h. */
  3623. #ifdef __STDC__
  3624. # include <limits.h>
  3625. #else
  3626. # include <assert.h>
  3627. #endif
  3628. Syntax error
  3629. _ACEOF
  3630. if ac_fn_c_try_cpp "$LINENO"; then :
  3631. else
  3632. # Broken: fails on valid input.
  3633. continue
  3634. fi
  3635. rm -f conftest.err conftest.i conftest.$ac_ext
  3636. # OK, works on sane cases. Now check whether nonexistent headers
  3637. # can be detected and how.
  3638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3639. /* end confdefs.h. */
  3640. #include <ac_nonexistent.h>
  3641. _ACEOF
  3642. if ac_fn_c_try_cpp "$LINENO"; then :
  3643. # Broken: success on invalid input.
  3644. continue
  3645. else
  3646. # Passes both tests.
  3647. ac_preproc_ok=:
  3648. break
  3649. fi
  3650. rm -f conftest.err conftest.i conftest.$ac_ext
  3651. done
  3652. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3653. rm -f conftest.i conftest.err conftest.$ac_ext
  3654. if $ac_preproc_ok; then :
  3655. else
  3656. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3658. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3659. See \`config.log' for more details" "$LINENO" 5; }
  3660. fi
  3661. ac_ext=c
  3662. ac_cpp='$CPP $CPPFLAGS'
  3663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3667. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3668. if ${ac_cv_path_GREP+:} false; then :
  3669. $as_echo_n "(cached) " >&6
  3670. else
  3671. if test -z "$GREP"; then
  3672. ac_path_GREP_found=false
  3673. # Loop through the user's path and test for each of PROGNAME-LIST
  3674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3675. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3676. do
  3677. IFS=$as_save_IFS
  3678. test -z "$as_dir" && as_dir=.
  3679. for ac_prog in grep ggrep; do
  3680. for ac_exec_ext in '' $ac_executable_extensions; do
  3681. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3682. as_fn_executable_p "$ac_path_GREP" || continue
  3683. # Check for GNU ac_path_GREP and select it if it is found.
  3684. # Check for GNU $ac_path_GREP
  3685. case `"$ac_path_GREP" --version 2>&1` in
  3686. *GNU*)
  3687. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3688. *)
  3689. ac_count=0
  3690. $as_echo_n 0123456789 >"conftest.in"
  3691. while :
  3692. do
  3693. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3694. mv "conftest.tmp" "conftest.in"
  3695. cp "conftest.in" "conftest.nl"
  3696. $as_echo 'GREP' >> "conftest.nl"
  3697. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3698. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3699. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3700. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3701. # Best one so far, save it but keep looking for a better one
  3702. ac_cv_path_GREP="$ac_path_GREP"
  3703. ac_path_GREP_max=$ac_count
  3704. fi
  3705. # 10*(2^10) chars as input seems more than enough
  3706. test $ac_count -gt 10 && break
  3707. done
  3708. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3709. esac
  3710. $ac_path_GREP_found && break 3
  3711. done
  3712. done
  3713. done
  3714. IFS=$as_save_IFS
  3715. if test -z "$ac_cv_path_GREP"; then
  3716. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3717. fi
  3718. else
  3719. ac_cv_path_GREP=$GREP
  3720. fi
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3723. $as_echo "$ac_cv_path_GREP" >&6; }
  3724. GREP="$ac_cv_path_GREP"
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3726. $as_echo_n "checking for egrep... " >&6; }
  3727. if ${ac_cv_path_EGREP+:} false; then :
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3731. then ac_cv_path_EGREP="$GREP -E"
  3732. else
  3733. if test -z "$EGREP"; then
  3734. ac_path_EGREP_found=false
  3735. # Loop through the user's path and test for each of PROGNAME-LIST
  3736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3737. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3738. do
  3739. IFS=$as_save_IFS
  3740. test -z "$as_dir" && as_dir=.
  3741. for ac_prog in egrep; do
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3744. as_fn_executable_p "$ac_path_EGREP" || continue
  3745. # Check for GNU ac_path_EGREP and select it if it is found.
  3746. # Check for GNU $ac_path_EGREP
  3747. case `"$ac_path_EGREP" --version 2>&1` in
  3748. *GNU*)
  3749. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3750. *)
  3751. ac_count=0
  3752. $as_echo_n 0123456789 >"conftest.in"
  3753. while :
  3754. do
  3755. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3756. mv "conftest.tmp" "conftest.in"
  3757. cp "conftest.in" "conftest.nl"
  3758. $as_echo 'EGREP' >> "conftest.nl"
  3759. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3760. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3761. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3762. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3763. # Best one so far, save it but keep looking for a better one
  3764. ac_cv_path_EGREP="$ac_path_EGREP"
  3765. ac_path_EGREP_max=$ac_count
  3766. fi
  3767. # 10*(2^10) chars as input seems more than enough
  3768. test $ac_count -gt 10 && break
  3769. done
  3770. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3771. esac
  3772. $ac_path_EGREP_found && break 3
  3773. done
  3774. done
  3775. done
  3776. IFS=$as_save_IFS
  3777. if test -z "$ac_cv_path_EGREP"; then
  3778. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3779. fi
  3780. else
  3781. ac_cv_path_EGREP=$EGREP
  3782. fi
  3783. fi
  3784. fi
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3786. $as_echo "$ac_cv_path_EGREP" >&6; }
  3787. EGREP="$ac_cv_path_EGREP"
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3789. $as_echo_n "checking for ANSI C header files... " >&6; }
  3790. if ${ac_cv_header_stdc+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3794. /* end confdefs.h. */
  3795. #include <stdlib.h>
  3796. #include <stdarg.h>
  3797. #include <string.h>
  3798. #include <float.h>
  3799. int
  3800. main ()
  3801. {
  3802. ;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. if ac_fn_c_try_compile "$LINENO"; then :
  3807. ac_cv_header_stdc=yes
  3808. else
  3809. ac_cv_header_stdc=no
  3810. fi
  3811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812. if test $ac_cv_header_stdc = yes; then
  3813. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3815. /* end confdefs.h. */
  3816. #include <string.h>
  3817. _ACEOF
  3818. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3819. $EGREP "memchr" >/dev/null 2>&1; then :
  3820. else
  3821. ac_cv_header_stdc=no
  3822. fi
  3823. rm -f conftest*
  3824. fi
  3825. if test $ac_cv_header_stdc = yes; then
  3826. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end confdefs.h. */
  3829. #include <stdlib.h>
  3830. _ACEOF
  3831. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3832. $EGREP "free" >/dev/null 2>&1; then :
  3833. else
  3834. ac_cv_header_stdc=no
  3835. fi
  3836. rm -f conftest*
  3837. fi
  3838. if test $ac_cv_header_stdc = yes; then
  3839. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3840. if test "$cross_compiling" = yes; then :
  3841. :
  3842. else
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845. #include <ctype.h>
  3846. #include <stdlib.h>
  3847. #if ((' ' & 0x0FF) == 0x020)
  3848. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3849. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3850. #else
  3851. # define ISLOWER(c) \
  3852. (('a' <= (c) && (c) <= 'i') \
  3853. || ('j' <= (c) && (c) <= 'r') \
  3854. || ('s' <= (c) && (c) <= 'z'))
  3855. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3856. #endif
  3857. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3858. int
  3859. main ()
  3860. {
  3861. int i;
  3862. for (i = 0; i < 256; i++)
  3863. if (XOR (islower (i), ISLOWER (i))
  3864. || toupper (i) != TOUPPER (i))
  3865. return 2;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. if ac_fn_c_try_run "$LINENO"; then :
  3870. else
  3871. ac_cv_header_stdc=no
  3872. fi
  3873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3875. fi
  3876. fi
  3877. fi
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3879. $as_echo "$ac_cv_header_stdc" >&6; }
  3880. if test $ac_cv_header_stdc = yes; then
  3881. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3882. fi
  3883. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3884. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3885. inttypes.h stdint.h unistd.h
  3886. do :
  3887. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3888. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3889. "
  3890. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3891. cat >>confdefs.h <<_ACEOF
  3892. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3893. _ACEOF
  3894. fi
  3895. done
  3896. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3897. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3898. CLANGCC="yes"
  3899. else
  3900. CLANGCC="no"
  3901. fi
  3902. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3903. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3904. INTELCC="yes"
  3905. else
  3906. INTELCC="no"
  3907. fi
  3908. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3909. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3910. SUNCC="yes"
  3911. else
  3912. SUNCC="no"
  3913. fi
  3914. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3915. if test -n "$ac_tool_prefix"; then
  3916. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3917. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3919. $as_echo_n "checking for $ac_word... " >&6; }
  3920. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3921. $as_echo_n "(cached) " >&6
  3922. else
  3923. case $PKG_CONFIG in
  3924. [\\/]* | ?:[\\/]*)
  3925. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3926. ;;
  3927. *)
  3928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3929. for as_dir in $PATH
  3930. do
  3931. IFS=$as_save_IFS
  3932. test -z "$as_dir" && as_dir=.
  3933. for ac_exec_ext in '' $ac_executable_extensions; do
  3934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3935. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3937. break 2
  3938. fi
  3939. done
  3940. done
  3941. IFS=$as_save_IFS
  3942. ;;
  3943. esac
  3944. fi
  3945. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3946. if test -n "$PKG_CONFIG"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3948. $as_echo "$PKG_CONFIG" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. fi
  3954. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3955. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3956. # Extract the first word of "pkg-config", so it can be a program name with args.
  3957. set dummy pkg-config; ac_word=$2
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3959. $as_echo_n "checking for $ac_word... " >&6; }
  3960. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3961. $as_echo_n "(cached) " >&6
  3962. else
  3963. case $ac_pt_PKG_CONFIG in
  3964. [\\/]* | ?:[\\/]*)
  3965. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3966. ;;
  3967. *)
  3968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3969. for as_dir in $PATH
  3970. do
  3971. IFS=$as_save_IFS
  3972. test -z "$as_dir" && as_dir=.
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3975. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3977. break 2
  3978. fi
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. ;;
  3983. esac
  3984. fi
  3985. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3986. if test -n "$ac_pt_PKG_CONFIG"; then
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3988. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3989. else
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. fi
  3993. if test "x$ac_pt_PKG_CONFIG" = x; then
  3994. PKG_CONFIG=""
  3995. else
  3996. case $cross_compiling:$ac_tool_warned in
  3997. yes:)
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4000. ac_tool_warned=yes ;;
  4001. esac
  4002. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4003. fi
  4004. else
  4005. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4006. fi
  4007. fi
  4008. if test -n "$PKG_CONFIG"; then
  4009. _pkg_min_version=0.9.0
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4011. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4012. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4014. $as_echo "yes" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4017. $as_echo "no" >&6; }
  4018. PKG_CONFIG=""
  4019. fi
  4020. fi
  4021. # Make sure we can run config.sub.
  4022. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4023. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4025. $as_echo_n "checking build system type... " >&6; }
  4026. if ${ac_cv_build+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. ac_build_alias=$build_alias
  4030. test "x$ac_build_alias" = x &&
  4031. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4032. test "x$ac_build_alias" = x &&
  4033. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4034. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4035. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4038. $as_echo "$ac_cv_build" >&6; }
  4039. case $ac_cv_build in
  4040. *-*-*) ;;
  4041. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4042. esac
  4043. build=$ac_cv_build
  4044. ac_save_IFS=$IFS; IFS='-'
  4045. set x $ac_cv_build
  4046. shift
  4047. build_cpu=$1
  4048. build_vendor=$2
  4049. shift; shift
  4050. # Remember, the first character of IFS is used to create $*,
  4051. # except with old shells:
  4052. build_os=$*
  4053. IFS=$ac_save_IFS
  4054. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4056. $as_echo_n "checking host system type... " >&6; }
  4057. if ${ac_cv_host+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. if test "x$host_alias" = x; then
  4061. ac_cv_host=$ac_cv_build
  4062. else
  4063. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4064. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4065. fi
  4066. fi
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4068. $as_echo "$ac_cv_host" >&6; }
  4069. case $ac_cv_host in
  4070. *-*-*) ;;
  4071. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4072. esac
  4073. host=$ac_cv_host
  4074. ac_save_IFS=$IFS; IFS='-'
  4075. set x $ac_cv_host
  4076. shift
  4077. host_cpu=$1
  4078. host_vendor=$2
  4079. shift; shift
  4080. # Remember, the first character of IFS is used to create $*,
  4081. # except with old shells:
  4082. host_os=$*
  4083. IFS=$ac_save_IFS
  4084. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4086. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4087. if ${ac_cv_path_SED+:} false; then :
  4088. $as_echo_n "(cached) " >&6
  4089. else
  4090. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4091. for ac_i in 1 2 3 4 5 6 7; do
  4092. ac_script="$ac_script$as_nl$ac_script"
  4093. done
  4094. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4095. { ac_script=; unset ac_script;}
  4096. if test -z "$SED"; then
  4097. ac_path_SED_found=false
  4098. # Loop through the user's path and test for each of PROGNAME-LIST
  4099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4100. for as_dir in $PATH
  4101. do
  4102. IFS=$as_save_IFS
  4103. test -z "$as_dir" && as_dir=.
  4104. for ac_prog in sed gsed; do
  4105. for ac_exec_ext in '' $ac_executable_extensions; do
  4106. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4107. as_fn_executable_p "$ac_path_SED" || continue
  4108. # Check for GNU ac_path_SED and select it if it is found.
  4109. # Check for GNU $ac_path_SED
  4110. case `"$ac_path_SED" --version 2>&1` in
  4111. *GNU*)
  4112. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4113. *)
  4114. ac_count=0
  4115. $as_echo_n 0123456789 >"conftest.in"
  4116. while :
  4117. do
  4118. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4119. mv "conftest.tmp" "conftest.in"
  4120. cp "conftest.in" "conftest.nl"
  4121. $as_echo '' >> "conftest.nl"
  4122. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4123. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4124. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4125. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4126. # Best one so far, save it but keep looking for a better one
  4127. ac_cv_path_SED="$ac_path_SED"
  4128. ac_path_SED_max=$ac_count
  4129. fi
  4130. # 10*(2^10) chars as input seems more than enough
  4131. test $ac_count -gt 10 && break
  4132. done
  4133. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4134. esac
  4135. $ac_path_SED_found && break 3
  4136. done
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. if test -z "$ac_cv_path_SED"; then
  4141. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4142. fi
  4143. else
  4144. ac_cv_path_SED=$SED
  4145. fi
  4146. fi
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4148. $as_echo "$ac_cv_path_SED" >&6; }
  4149. SED="$ac_cv_path_SED"
  4150. rm -f conftest.sed
  4151. # Check whether --enable-selective-werror was given.
  4152. if test "${enable_selective_werror+set}" = set; then :
  4153. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4154. else
  4155. SELECTIVE_WERROR=yes
  4156. fi
  4157. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4158. if test "x$SUNCC" = "xyes"; then
  4159. BASE_CFLAGS="-v"
  4160. else
  4161. BASE_CFLAGS=""
  4162. fi
  4163. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4164. xorg_testset_save_CFLAGS="$CFLAGS"
  4165. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4166. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4168. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4169. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4173. /* end confdefs.h. */
  4174. int i;
  4175. _ACEOF
  4176. if ac_fn_c_try_compile "$LINENO"; then :
  4177. xorg_cv_cc_flag_unknown_warning_option=yes
  4178. else
  4179. xorg_cv_cc_flag_unknown_warning_option=no
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4182. fi
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4184. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4185. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4186. CFLAGS="$xorg_testset_save_CFLAGS"
  4187. fi
  4188. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4189. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4190. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4191. fi
  4192. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4194. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4195. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h. */
  4200. int i;
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"; then :
  4203. xorg_cv_cc_flag_unused_command_line_argument=yes
  4204. else
  4205. xorg_cv_cc_flag_unused_command_line_argument=no
  4206. fi
  4207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4208. fi
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4210. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4211. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4212. CFLAGS="$xorg_testset_save_CFLAGS"
  4213. fi
  4214. found="no"
  4215. if test $found = "no" ; then
  4216. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4217. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4218. fi
  4219. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4220. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4221. fi
  4222. CFLAGS="$CFLAGS -Wall"
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4224. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4225. cacheid=xorg_cv_cc_flag__Wall
  4226. if eval \${$cacheid+:} false; then :
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4230. /* end confdefs.h. */
  4231. int i;
  4232. int
  4233. main ()
  4234. {
  4235. ;
  4236. return 0;
  4237. }
  4238. _ACEOF
  4239. if ac_fn_c_try_link "$LINENO"; then :
  4240. eval $cacheid=yes
  4241. else
  4242. eval $cacheid=no
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext \
  4245. conftest$ac_exeext conftest.$ac_ext
  4246. fi
  4247. CFLAGS="$xorg_testset_save_CFLAGS"
  4248. eval supported=\$$cacheid
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4250. $as_echo "$supported" >&6; }
  4251. if test "$supported" = "yes" ; then
  4252. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4253. found="yes"
  4254. fi
  4255. fi
  4256. xorg_testset_save_CFLAGS="$CFLAGS"
  4257. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4258. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4260. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4261. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. int i;
  4267. _ACEOF
  4268. if ac_fn_c_try_compile "$LINENO"; then :
  4269. xorg_cv_cc_flag_unknown_warning_option=yes
  4270. else
  4271. xorg_cv_cc_flag_unknown_warning_option=no
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4276. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4277. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4278. CFLAGS="$xorg_testset_save_CFLAGS"
  4279. fi
  4280. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4281. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4282. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4283. fi
  4284. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4286. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4287. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. int i;
  4293. _ACEOF
  4294. if ac_fn_c_try_compile "$LINENO"; then :
  4295. xorg_cv_cc_flag_unused_command_line_argument=yes
  4296. else
  4297. xorg_cv_cc_flag_unused_command_line_argument=no
  4298. fi
  4299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4300. fi
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4302. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4303. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4304. CFLAGS="$xorg_testset_save_CFLAGS"
  4305. fi
  4306. found="no"
  4307. if test $found = "no" ; then
  4308. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4309. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4310. fi
  4311. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4312. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4313. fi
  4314. CFLAGS="$CFLAGS -Wpointer-arith"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4316. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4317. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4318. if eval \${$cacheid+:} false; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. int i;
  4324. int
  4325. main ()
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. if ac_fn_c_try_link "$LINENO"; then :
  4332. eval $cacheid=yes
  4333. else
  4334. eval $cacheid=no
  4335. fi
  4336. rm -f core conftest.err conftest.$ac_objext \
  4337. conftest$ac_exeext conftest.$ac_ext
  4338. fi
  4339. CFLAGS="$xorg_testset_save_CFLAGS"
  4340. eval supported=\$$cacheid
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4342. $as_echo "$supported" >&6; }
  4343. if test "$supported" = "yes" ; then
  4344. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4345. found="yes"
  4346. fi
  4347. fi
  4348. xorg_testset_save_CFLAGS="$CFLAGS"
  4349. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4350. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4352. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4353. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int i;
  4359. _ACEOF
  4360. if ac_fn_c_try_compile "$LINENO"; then :
  4361. xorg_cv_cc_flag_unknown_warning_option=yes
  4362. else
  4363. xorg_cv_cc_flag_unknown_warning_option=no
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4368. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4369. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4370. CFLAGS="$xorg_testset_save_CFLAGS"
  4371. fi
  4372. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4373. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4374. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4375. fi
  4376. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4378. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4379. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4380. $as_echo_n "(cached) " >&6
  4381. else
  4382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h. */
  4384. int i;
  4385. _ACEOF
  4386. if ac_fn_c_try_compile "$LINENO"; then :
  4387. xorg_cv_cc_flag_unused_command_line_argument=yes
  4388. else
  4389. xorg_cv_cc_flag_unused_command_line_argument=no
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4394. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4395. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4396. CFLAGS="$xorg_testset_save_CFLAGS"
  4397. fi
  4398. found="no"
  4399. if test $found = "no" ; then
  4400. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4401. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4402. fi
  4403. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4404. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4405. fi
  4406. CFLAGS="$CFLAGS -Wmissing-declarations"
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4408. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4409. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4410. if eval \${$cacheid+:} false; then :
  4411. $as_echo_n "(cached) " >&6
  4412. else
  4413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4414. /* end confdefs.h. */
  4415. int i;
  4416. int
  4417. main ()
  4418. {
  4419. ;
  4420. return 0;
  4421. }
  4422. _ACEOF
  4423. if ac_fn_c_try_link "$LINENO"; then :
  4424. eval $cacheid=yes
  4425. else
  4426. eval $cacheid=no
  4427. fi
  4428. rm -f core conftest.err conftest.$ac_objext \
  4429. conftest$ac_exeext conftest.$ac_ext
  4430. fi
  4431. CFLAGS="$xorg_testset_save_CFLAGS"
  4432. eval supported=\$$cacheid
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4434. $as_echo "$supported" >&6; }
  4435. if test "$supported" = "yes" ; then
  4436. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4437. found="yes"
  4438. fi
  4439. fi
  4440. xorg_testset_save_CFLAGS="$CFLAGS"
  4441. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4442. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4444. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4445. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end confdefs.h. */
  4450. int i;
  4451. _ACEOF
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. xorg_cv_cc_flag_unknown_warning_option=yes
  4454. else
  4455. xorg_cv_cc_flag_unknown_warning_option=no
  4456. fi
  4457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4458. fi
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4460. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4461. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4462. CFLAGS="$xorg_testset_save_CFLAGS"
  4463. fi
  4464. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4465. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4466. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4467. fi
  4468. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4470. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4471. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4475. /* end confdefs.h. */
  4476. int i;
  4477. _ACEOF
  4478. if ac_fn_c_try_compile "$LINENO"; then :
  4479. xorg_cv_cc_flag_unused_command_line_argument=yes
  4480. else
  4481. xorg_cv_cc_flag_unused_command_line_argument=no
  4482. fi
  4483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4486. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4487. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4488. CFLAGS="$xorg_testset_save_CFLAGS"
  4489. fi
  4490. found="no"
  4491. if test $found = "no" ; then
  4492. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4493. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4494. fi
  4495. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4496. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4497. fi
  4498. CFLAGS="$CFLAGS -Wformat=2"
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4500. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4501. cacheid=xorg_cv_cc_flag__Wformat_2
  4502. if eval \${$cacheid+:} false; then :
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4506. /* end confdefs.h. */
  4507. int i;
  4508. int
  4509. main ()
  4510. {
  4511. ;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. if ac_fn_c_try_link "$LINENO"; then :
  4516. eval $cacheid=yes
  4517. else
  4518. eval $cacheid=no
  4519. fi
  4520. rm -f core conftest.err conftest.$ac_objext \
  4521. conftest$ac_exeext conftest.$ac_ext
  4522. fi
  4523. CFLAGS="$xorg_testset_save_CFLAGS"
  4524. eval supported=\$$cacheid
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4526. $as_echo "$supported" >&6; }
  4527. if test "$supported" = "yes" ; then
  4528. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4529. found="yes"
  4530. fi
  4531. fi
  4532. if test $found = "no" ; then
  4533. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4534. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4535. fi
  4536. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4537. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4538. fi
  4539. CFLAGS="$CFLAGS -Wformat"
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4541. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4542. cacheid=xorg_cv_cc_flag__Wformat
  4543. if eval \${$cacheid+:} false; then :
  4544. $as_echo_n "(cached) " >&6
  4545. else
  4546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4547. /* end confdefs.h. */
  4548. int i;
  4549. int
  4550. main ()
  4551. {
  4552. ;
  4553. return 0;
  4554. }
  4555. _ACEOF
  4556. if ac_fn_c_try_link "$LINENO"; then :
  4557. eval $cacheid=yes
  4558. else
  4559. eval $cacheid=no
  4560. fi
  4561. rm -f core conftest.err conftest.$ac_objext \
  4562. conftest$ac_exeext conftest.$ac_ext
  4563. fi
  4564. CFLAGS="$xorg_testset_save_CFLAGS"
  4565. eval supported=\$$cacheid
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4567. $as_echo "$supported" >&6; }
  4568. if test "$supported" = "yes" ; then
  4569. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4570. found="yes"
  4571. fi
  4572. fi
  4573. xorg_testset_save_CFLAGS="$CFLAGS"
  4574. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4575. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4577. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4578. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. int i;
  4584. _ACEOF
  4585. if ac_fn_c_try_compile "$LINENO"; then :
  4586. xorg_cv_cc_flag_unknown_warning_option=yes
  4587. else
  4588. xorg_cv_cc_flag_unknown_warning_option=no
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4593. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4594. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4595. CFLAGS="$xorg_testset_save_CFLAGS"
  4596. fi
  4597. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4598. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4599. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4600. fi
  4601. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4603. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4604. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. int i;
  4610. _ACEOF
  4611. if ac_fn_c_try_compile "$LINENO"; then :
  4612. xorg_cv_cc_flag_unused_command_line_argument=yes
  4613. else
  4614. xorg_cv_cc_flag_unused_command_line_argument=no
  4615. fi
  4616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4617. fi
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4619. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4620. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4621. CFLAGS="$xorg_testset_save_CFLAGS"
  4622. fi
  4623. found="no"
  4624. if test $found = "no" ; then
  4625. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4626. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4627. fi
  4628. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4629. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4630. fi
  4631. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4633. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4634. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4635. if eval \${$cacheid+:} false; then :
  4636. $as_echo_n "(cached) " >&6
  4637. else
  4638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4639. /* end confdefs.h. */
  4640. int i;
  4641. int
  4642. main ()
  4643. {
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. if ac_fn_c_try_link "$LINENO"; then :
  4649. eval $cacheid=yes
  4650. else
  4651. eval $cacheid=no
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext \
  4654. conftest$ac_exeext conftest.$ac_ext
  4655. fi
  4656. CFLAGS="$xorg_testset_save_CFLAGS"
  4657. eval supported=\$$cacheid
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4659. $as_echo "$supported" >&6; }
  4660. if test "$supported" = "yes" ; then
  4661. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4662. found="yes"
  4663. fi
  4664. fi
  4665. xorg_testset_save_CFLAGS="$CFLAGS"
  4666. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4667. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4669. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4670. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h. */
  4675. int i;
  4676. _ACEOF
  4677. if ac_fn_c_try_compile "$LINENO"; then :
  4678. xorg_cv_cc_flag_unknown_warning_option=yes
  4679. else
  4680. xorg_cv_cc_flag_unknown_warning_option=no
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4685. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4686. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4687. CFLAGS="$xorg_testset_save_CFLAGS"
  4688. fi
  4689. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4690. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4691. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4692. fi
  4693. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4695. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4696. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4700. /* end confdefs.h. */
  4701. int i;
  4702. _ACEOF
  4703. if ac_fn_c_try_compile "$LINENO"; then :
  4704. xorg_cv_cc_flag_unused_command_line_argument=yes
  4705. else
  4706. xorg_cv_cc_flag_unused_command_line_argument=no
  4707. fi
  4708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4711. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4712. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4713. CFLAGS="$xorg_testset_save_CFLAGS"
  4714. fi
  4715. found="no"
  4716. if test $found = "no" ; then
  4717. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4718. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4719. fi
  4720. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4721. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4722. fi
  4723. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4725. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4726. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4727. if eval \${$cacheid+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. int i;
  4733. int
  4734. main ()
  4735. {
  4736. ;
  4737. return 0;
  4738. }
  4739. _ACEOF
  4740. if ac_fn_c_try_link "$LINENO"; then :
  4741. eval $cacheid=yes
  4742. else
  4743. eval $cacheid=no
  4744. fi
  4745. rm -f core conftest.err conftest.$ac_objext \
  4746. conftest$ac_exeext conftest.$ac_ext
  4747. fi
  4748. CFLAGS="$xorg_testset_save_CFLAGS"
  4749. eval supported=\$$cacheid
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4751. $as_echo "$supported" >&6; }
  4752. if test "$supported" = "yes" ; then
  4753. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4754. found="yes"
  4755. fi
  4756. fi
  4757. xorg_testset_save_CFLAGS="$CFLAGS"
  4758. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4759. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4761. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4762. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. int i;
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. xorg_cv_cc_flag_unknown_warning_option=yes
  4771. else
  4772. xorg_cv_cc_flag_unknown_warning_option=no
  4773. fi
  4774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4777. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4778. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4779. CFLAGS="$xorg_testset_save_CFLAGS"
  4780. fi
  4781. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4782. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4783. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4784. fi
  4785. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4787. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4788. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4792. /* end confdefs.h. */
  4793. int i;
  4794. _ACEOF
  4795. if ac_fn_c_try_compile "$LINENO"; then :
  4796. xorg_cv_cc_flag_unused_command_line_argument=yes
  4797. else
  4798. xorg_cv_cc_flag_unused_command_line_argument=no
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. fi
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4803. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4804. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4805. CFLAGS="$xorg_testset_save_CFLAGS"
  4806. fi
  4807. found="no"
  4808. if test $found = "no" ; then
  4809. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4810. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4811. fi
  4812. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4813. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4814. fi
  4815. CFLAGS="$CFLAGS -Wnested-externs"
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4817. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4818. cacheid=xorg_cv_cc_flag__Wnested_externs
  4819. if eval \${$cacheid+:} false; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4823. /* end confdefs.h. */
  4824. int i;
  4825. int
  4826. main ()
  4827. {
  4828. ;
  4829. return 0;
  4830. }
  4831. _ACEOF
  4832. if ac_fn_c_try_link "$LINENO"; then :
  4833. eval $cacheid=yes
  4834. else
  4835. eval $cacheid=no
  4836. fi
  4837. rm -f core conftest.err conftest.$ac_objext \
  4838. conftest$ac_exeext conftest.$ac_ext
  4839. fi
  4840. CFLAGS="$xorg_testset_save_CFLAGS"
  4841. eval supported=\$$cacheid
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4843. $as_echo "$supported" >&6; }
  4844. if test "$supported" = "yes" ; then
  4845. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4846. found="yes"
  4847. fi
  4848. fi
  4849. xorg_testset_save_CFLAGS="$CFLAGS"
  4850. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4851. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4853. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4854. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4858. /* end confdefs.h. */
  4859. int i;
  4860. _ACEOF
  4861. if ac_fn_c_try_compile "$LINENO"; then :
  4862. xorg_cv_cc_flag_unknown_warning_option=yes
  4863. else
  4864. xorg_cv_cc_flag_unknown_warning_option=no
  4865. fi
  4866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4869. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4870. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4871. CFLAGS="$xorg_testset_save_CFLAGS"
  4872. fi
  4873. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4874. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4875. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4876. fi
  4877. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4879. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4880. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4884. /* end confdefs.h. */
  4885. int i;
  4886. _ACEOF
  4887. if ac_fn_c_try_compile "$LINENO"; then :
  4888. xorg_cv_cc_flag_unused_command_line_argument=yes
  4889. else
  4890. xorg_cv_cc_flag_unused_command_line_argument=no
  4891. fi
  4892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4893. fi
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4895. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4896. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4897. CFLAGS="$xorg_testset_save_CFLAGS"
  4898. fi
  4899. found="no"
  4900. if test $found = "no" ; then
  4901. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4902. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4903. fi
  4904. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4905. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4906. fi
  4907. CFLAGS="$CFLAGS -Wbad-function-cast"
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4909. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4910. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4911. if eval \${$cacheid+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4915. /* end confdefs.h. */
  4916. int i;
  4917. int
  4918. main ()
  4919. {
  4920. ;
  4921. return 0;
  4922. }
  4923. _ACEOF
  4924. if ac_fn_c_try_link "$LINENO"; then :
  4925. eval $cacheid=yes
  4926. else
  4927. eval $cacheid=no
  4928. fi
  4929. rm -f core conftest.err conftest.$ac_objext \
  4930. conftest$ac_exeext conftest.$ac_ext
  4931. fi
  4932. CFLAGS="$xorg_testset_save_CFLAGS"
  4933. eval supported=\$$cacheid
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4935. $as_echo "$supported" >&6; }
  4936. if test "$supported" = "yes" ; then
  4937. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4938. found="yes"
  4939. fi
  4940. fi
  4941. xorg_testset_save_CFLAGS="$CFLAGS"
  4942. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4943. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4945. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4946. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4950. /* end confdefs.h. */
  4951. int i;
  4952. _ACEOF
  4953. if ac_fn_c_try_compile "$LINENO"; then :
  4954. xorg_cv_cc_flag_unknown_warning_option=yes
  4955. else
  4956. xorg_cv_cc_flag_unknown_warning_option=no
  4957. fi
  4958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4959. fi
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4961. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4962. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4963. CFLAGS="$xorg_testset_save_CFLAGS"
  4964. fi
  4965. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4966. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4967. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4968. fi
  4969. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4971. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4972. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4973. $as_echo_n "(cached) " >&6
  4974. else
  4975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4976. /* end confdefs.h. */
  4977. int i;
  4978. _ACEOF
  4979. if ac_fn_c_try_compile "$LINENO"; then :
  4980. xorg_cv_cc_flag_unused_command_line_argument=yes
  4981. else
  4982. xorg_cv_cc_flag_unused_command_line_argument=no
  4983. fi
  4984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4985. fi
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4987. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4988. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4989. CFLAGS="$xorg_testset_save_CFLAGS"
  4990. fi
  4991. found="no"
  4992. if test $found = "no" ; then
  4993. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4994. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4995. fi
  4996. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4997. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4998. fi
  4999. CFLAGS="$CFLAGS -Wold-style-definition"
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  5001. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5002. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5003. if eval \${$cacheid+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. int i;
  5009. int
  5010. main ()
  5011. {
  5012. ;
  5013. return 0;
  5014. }
  5015. _ACEOF
  5016. if ac_fn_c_try_link "$LINENO"; then :
  5017. eval $cacheid=yes
  5018. else
  5019. eval $cacheid=no
  5020. fi
  5021. rm -f core conftest.err conftest.$ac_objext \
  5022. conftest$ac_exeext conftest.$ac_ext
  5023. fi
  5024. CFLAGS="$xorg_testset_save_CFLAGS"
  5025. eval supported=\$$cacheid
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5027. $as_echo "$supported" >&6; }
  5028. if test "$supported" = "yes" ; then
  5029. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5030. found="yes"
  5031. fi
  5032. fi
  5033. if test $found = "no" ; then
  5034. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5035. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5036. fi
  5037. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5038. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5039. fi
  5040. CFLAGS="$CFLAGS -fd"
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5042. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5043. cacheid=xorg_cv_cc_flag__fd
  5044. if eval \${$cacheid+:} false; then :
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. int i;
  5050. int
  5051. main ()
  5052. {
  5053. ;
  5054. return 0;
  5055. }
  5056. _ACEOF
  5057. if ac_fn_c_try_link "$LINENO"; then :
  5058. eval $cacheid=yes
  5059. else
  5060. eval $cacheid=no
  5061. fi
  5062. rm -f core conftest.err conftest.$ac_objext \
  5063. conftest$ac_exeext conftest.$ac_ext
  5064. fi
  5065. CFLAGS="$xorg_testset_save_CFLAGS"
  5066. eval supported=\$$cacheid
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5068. $as_echo "$supported" >&6; }
  5069. if test "$supported" = "yes" ; then
  5070. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5071. found="yes"
  5072. fi
  5073. fi
  5074. xorg_testset_save_CFLAGS="$CFLAGS"
  5075. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5076. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5078. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5079. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. int i;
  5085. _ACEOF
  5086. if ac_fn_c_try_compile "$LINENO"; then :
  5087. xorg_cv_cc_flag_unknown_warning_option=yes
  5088. else
  5089. xorg_cv_cc_flag_unknown_warning_option=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5094. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5095. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5096. CFLAGS="$xorg_testset_save_CFLAGS"
  5097. fi
  5098. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5099. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5100. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5101. fi
  5102. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5104. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5105. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5106. $as_echo_n "(cached) " >&6
  5107. else
  5108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5109. /* end confdefs.h. */
  5110. int i;
  5111. _ACEOF
  5112. if ac_fn_c_try_compile "$LINENO"; then :
  5113. xorg_cv_cc_flag_unused_command_line_argument=yes
  5114. else
  5115. xorg_cv_cc_flag_unused_command_line_argument=no
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5118. fi
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5120. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5121. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5122. CFLAGS="$xorg_testset_save_CFLAGS"
  5123. fi
  5124. found="no"
  5125. if test $found = "no" ; then
  5126. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5127. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5128. fi
  5129. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5130. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5131. fi
  5132. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5134. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5135. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5136. if eval \${$cacheid+:} false; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. int i;
  5142. int
  5143. main ()
  5144. {
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. if ac_fn_c_try_link "$LINENO"; then :
  5150. eval $cacheid=yes
  5151. else
  5152. eval $cacheid=no
  5153. fi
  5154. rm -f core conftest.err conftest.$ac_objext \
  5155. conftest$ac_exeext conftest.$ac_ext
  5156. fi
  5157. CFLAGS="$xorg_testset_save_CFLAGS"
  5158. eval supported=\$$cacheid
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5160. $as_echo "$supported" >&6; }
  5161. if test "$supported" = "yes" ; then
  5162. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5163. found="yes"
  5164. fi
  5165. fi
  5166. # This chunk adds additional warnings that could catch undesired effects.
  5167. xorg_testset_save_CFLAGS="$CFLAGS"
  5168. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5169. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5171. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5172. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5176. /* end confdefs.h. */
  5177. int i;
  5178. _ACEOF
  5179. if ac_fn_c_try_compile "$LINENO"; then :
  5180. xorg_cv_cc_flag_unknown_warning_option=yes
  5181. else
  5182. xorg_cv_cc_flag_unknown_warning_option=no
  5183. fi
  5184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5185. fi
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5187. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5188. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5189. CFLAGS="$xorg_testset_save_CFLAGS"
  5190. fi
  5191. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5192. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5193. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5194. fi
  5195. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5197. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5198. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5202. /* end confdefs.h. */
  5203. int i;
  5204. _ACEOF
  5205. if ac_fn_c_try_compile "$LINENO"; then :
  5206. xorg_cv_cc_flag_unused_command_line_argument=yes
  5207. else
  5208. xorg_cv_cc_flag_unused_command_line_argument=no
  5209. fi
  5210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5211. fi
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5213. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5214. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5215. CFLAGS="$xorg_testset_save_CFLAGS"
  5216. fi
  5217. found="no"
  5218. if test $found = "no" ; then
  5219. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5220. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5221. fi
  5222. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5223. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5224. fi
  5225. CFLAGS="$CFLAGS -Wunused"
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5227. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5228. cacheid=xorg_cv_cc_flag__Wunused
  5229. if eval \${$cacheid+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5233. /* end confdefs.h. */
  5234. int i;
  5235. int
  5236. main ()
  5237. {
  5238. ;
  5239. return 0;
  5240. }
  5241. _ACEOF
  5242. if ac_fn_c_try_link "$LINENO"; then :
  5243. eval $cacheid=yes
  5244. else
  5245. eval $cacheid=no
  5246. fi
  5247. rm -f core conftest.err conftest.$ac_objext \
  5248. conftest$ac_exeext conftest.$ac_ext
  5249. fi
  5250. CFLAGS="$xorg_testset_save_CFLAGS"
  5251. eval supported=\$$cacheid
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5253. $as_echo "$supported" >&6; }
  5254. if test "$supported" = "yes" ; then
  5255. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5256. found="yes"
  5257. fi
  5258. fi
  5259. xorg_testset_save_CFLAGS="$CFLAGS"
  5260. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5261. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5263. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5264. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5268. /* end confdefs.h. */
  5269. int i;
  5270. _ACEOF
  5271. if ac_fn_c_try_compile "$LINENO"; then :
  5272. xorg_cv_cc_flag_unknown_warning_option=yes
  5273. else
  5274. xorg_cv_cc_flag_unknown_warning_option=no
  5275. fi
  5276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5279. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5280. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5281. CFLAGS="$xorg_testset_save_CFLAGS"
  5282. fi
  5283. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5284. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5285. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5286. fi
  5287. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5289. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5290. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5291. $as_echo_n "(cached) " >&6
  5292. else
  5293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5294. /* end confdefs.h. */
  5295. int i;
  5296. _ACEOF
  5297. if ac_fn_c_try_compile "$LINENO"; then :
  5298. xorg_cv_cc_flag_unused_command_line_argument=yes
  5299. else
  5300. xorg_cv_cc_flag_unused_command_line_argument=no
  5301. fi
  5302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5303. fi
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5305. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5306. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5307. CFLAGS="$xorg_testset_save_CFLAGS"
  5308. fi
  5309. found="no"
  5310. if test $found = "no" ; then
  5311. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5312. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5313. fi
  5314. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5315. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5316. fi
  5317. CFLAGS="$CFLAGS -Wuninitialized"
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5319. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5320. cacheid=xorg_cv_cc_flag__Wuninitialized
  5321. if eval \${$cacheid+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5325. /* end confdefs.h. */
  5326. int i;
  5327. int
  5328. main ()
  5329. {
  5330. ;
  5331. return 0;
  5332. }
  5333. _ACEOF
  5334. if ac_fn_c_try_link "$LINENO"; then :
  5335. eval $cacheid=yes
  5336. else
  5337. eval $cacheid=no
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext \
  5340. conftest$ac_exeext conftest.$ac_ext
  5341. fi
  5342. CFLAGS="$xorg_testset_save_CFLAGS"
  5343. eval supported=\$$cacheid
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5345. $as_echo "$supported" >&6; }
  5346. if test "$supported" = "yes" ; then
  5347. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5348. found="yes"
  5349. fi
  5350. fi
  5351. xorg_testset_save_CFLAGS="$CFLAGS"
  5352. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5355. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5356. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. int i;
  5362. _ACEOF
  5363. if ac_fn_c_try_compile "$LINENO"; then :
  5364. xorg_cv_cc_flag_unknown_warning_option=yes
  5365. else
  5366. xorg_cv_cc_flag_unknown_warning_option=no
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5371. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5372. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5373. CFLAGS="$xorg_testset_save_CFLAGS"
  5374. fi
  5375. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5376. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5377. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5378. fi
  5379. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5381. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5382. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5386. /* end confdefs.h. */
  5387. int i;
  5388. _ACEOF
  5389. if ac_fn_c_try_compile "$LINENO"; then :
  5390. xorg_cv_cc_flag_unused_command_line_argument=yes
  5391. else
  5392. xorg_cv_cc_flag_unused_command_line_argument=no
  5393. fi
  5394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5395. fi
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5397. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5398. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5399. CFLAGS="$xorg_testset_save_CFLAGS"
  5400. fi
  5401. found="no"
  5402. if test $found = "no" ; then
  5403. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5404. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5405. fi
  5406. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5407. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5408. fi
  5409. CFLAGS="$CFLAGS -Wshadow"
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5411. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5412. cacheid=xorg_cv_cc_flag__Wshadow
  5413. if eval \${$cacheid+:} false; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5417. /* end confdefs.h. */
  5418. int i;
  5419. int
  5420. main ()
  5421. {
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. if ac_fn_c_try_link "$LINENO"; then :
  5427. eval $cacheid=yes
  5428. else
  5429. eval $cacheid=no
  5430. fi
  5431. rm -f core conftest.err conftest.$ac_objext \
  5432. conftest$ac_exeext conftest.$ac_ext
  5433. fi
  5434. CFLAGS="$xorg_testset_save_CFLAGS"
  5435. eval supported=\$$cacheid
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5437. $as_echo "$supported" >&6; }
  5438. if test "$supported" = "yes" ; then
  5439. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5440. found="yes"
  5441. fi
  5442. fi
  5443. xorg_testset_save_CFLAGS="$CFLAGS"
  5444. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5445. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5447. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5448. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5452. /* end confdefs.h. */
  5453. int i;
  5454. _ACEOF
  5455. if ac_fn_c_try_compile "$LINENO"; then :
  5456. xorg_cv_cc_flag_unknown_warning_option=yes
  5457. else
  5458. xorg_cv_cc_flag_unknown_warning_option=no
  5459. fi
  5460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5461. fi
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5463. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5464. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5465. CFLAGS="$xorg_testset_save_CFLAGS"
  5466. fi
  5467. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5468. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5469. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5470. fi
  5471. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5473. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5474. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5475. $as_echo_n "(cached) " >&6
  5476. else
  5477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5478. /* end confdefs.h. */
  5479. int i;
  5480. _ACEOF
  5481. if ac_fn_c_try_compile "$LINENO"; then :
  5482. xorg_cv_cc_flag_unused_command_line_argument=yes
  5483. else
  5484. xorg_cv_cc_flag_unused_command_line_argument=no
  5485. fi
  5486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5489. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5490. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5491. CFLAGS="$xorg_testset_save_CFLAGS"
  5492. fi
  5493. found="no"
  5494. if test $found = "no" ; then
  5495. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5496. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5497. fi
  5498. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5499. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5500. fi
  5501. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5503. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5504. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5505. if eval \${$cacheid+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5509. /* end confdefs.h. */
  5510. int i;
  5511. int
  5512. main ()
  5513. {
  5514. ;
  5515. return 0;
  5516. }
  5517. _ACEOF
  5518. if ac_fn_c_try_link "$LINENO"; then :
  5519. eval $cacheid=yes
  5520. else
  5521. eval $cacheid=no
  5522. fi
  5523. rm -f core conftest.err conftest.$ac_objext \
  5524. conftest$ac_exeext conftest.$ac_ext
  5525. fi
  5526. CFLAGS="$xorg_testset_save_CFLAGS"
  5527. eval supported=\$$cacheid
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5529. $as_echo "$supported" >&6; }
  5530. if test "$supported" = "yes" ; then
  5531. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5532. found="yes"
  5533. fi
  5534. fi
  5535. xorg_testset_save_CFLAGS="$CFLAGS"
  5536. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5537. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5539. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5540. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5544. /* end confdefs.h. */
  5545. int i;
  5546. _ACEOF
  5547. if ac_fn_c_try_compile "$LINENO"; then :
  5548. xorg_cv_cc_flag_unknown_warning_option=yes
  5549. else
  5550. xorg_cv_cc_flag_unknown_warning_option=no
  5551. fi
  5552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5553. fi
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5555. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5556. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5557. CFLAGS="$xorg_testset_save_CFLAGS"
  5558. fi
  5559. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5560. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5561. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5562. fi
  5563. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5565. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5566. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5570. /* end confdefs.h. */
  5571. int i;
  5572. _ACEOF
  5573. if ac_fn_c_try_compile "$LINENO"; then :
  5574. xorg_cv_cc_flag_unused_command_line_argument=yes
  5575. else
  5576. xorg_cv_cc_flag_unused_command_line_argument=no
  5577. fi
  5578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5579. fi
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5581. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5582. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5583. CFLAGS="$xorg_testset_save_CFLAGS"
  5584. fi
  5585. found="no"
  5586. if test $found = "no" ; then
  5587. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5588. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5589. fi
  5590. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5591. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5592. fi
  5593. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5595. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5596. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5597. if eval \${$cacheid+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5601. /* end confdefs.h. */
  5602. int i;
  5603. int
  5604. main ()
  5605. {
  5606. ;
  5607. return 0;
  5608. }
  5609. _ACEOF
  5610. if ac_fn_c_try_link "$LINENO"; then :
  5611. eval $cacheid=yes
  5612. else
  5613. eval $cacheid=no
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext \
  5616. conftest$ac_exeext conftest.$ac_ext
  5617. fi
  5618. CFLAGS="$xorg_testset_save_CFLAGS"
  5619. eval supported=\$$cacheid
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5621. $as_echo "$supported" >&6; }
  5622. if test "$supported" = "yes" ; then
  5623. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5624. found="yes"
  5625. fi
  5626. fi
  5627. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5628. xorg_testset_save_CFLAGS="$CFLAGS"
  5629. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5630. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5632. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5633. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5637. /* end confdefs.h. */
  5638. int i;
  5639. _ACEOF
  5640. if ac_fn_c_try_compile "$LINENO"; then :
  5641. xorg_cv_cc_flag_unknown_warning_option=yes
  5642. else
  5643. xorg_cv_cc_flag_unknown_warning_option=no
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5646. fi
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5648. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5649. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5650. CFLAGS="$xorg_testset_save_CFLAGS"
  5651. fi
  5652. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5653. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5654. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5655. fi
  5656. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5658. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5659. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5663. /* end confdefs.h. */
  5664. int i;
  5665. _ACEOF
  5666. if ac_fn_c_try_compile "$LINENO"; then :
  5667. xorg_cv_cc_flag_unused_command_line_argument=yes
  5668. else
  5669. xorg_cv_cc_flag_unused_command_line_argument=no
  5670. fi
  5671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5672. fi
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5674. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5675. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5676. CFLAGS="$xorg_testset_save_CFLAGS"
  5677. fi
  5678. found="no"
  5679. if test $found = "no" ; then
  5680. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5681. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5682. fi
  5683. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5684. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5685. fi
  5686. CFLAGS="$CFLAGS -Wlogical-op"
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5688. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5689. cacheid=xorg_cv_cc_flag__Wlogical_op
  5690. if eval \${$cacheid+:} false; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5694. /* end confdefs.h. */
  5695. int i;
  5696. int
  5697. main ()
  5698. {
  5699. ;
  5700. return 0;
  5701. }
  5702. _ACEOF
  5703. if ac_fn_c_try_link "$LINENO"; then :
  5704. eval $cacheid=yes
  5705. else
  5706. eval $cacheid=no
  5707. fi
  5708. rm -f core conftest.err conftest.$ac_objext \
  5709. conftest$ac_exeext conftest.$ac_ext
  5710. fi
  5711. CFLAGS="$xorg_testset_save_CFLAGS"
  5712. eval supported=\$$cacheid
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5714. $as_echo "$supported" >&6; }
  5715. if test "$supported" = "yes" ; then
  5716. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5717. found="yes"
  5718. fi
  5719. fi
  5720. # These are currently disabled because they are noisy. They will be enabled
  5721. # in the future once the codebase is sufficiently modernized to silence
  5722. # them. For now, I don't want them to drown out the other warnings.
  5723. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5724. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5725. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5726. # Turn some warnings into errors, so we don't accidently get successful builds
  5727. # when there are problems that should be fixed.
  5728. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5729. xorg_testset_save_CFLAGS="$CFLAGS"
  5730. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5731. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5733. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5734. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5738. /* end confdefs.h. */
  5739. int i;
  5740. _ACEOF
  5741. if ac_fn_c_try_compile "$LINENO"; then :
  5742. xorg_cv_cc_flag_unknown_warning_option=yes
  5743. else
  5744. xorg_cv_cc_flag_unknown_warning_option=no
  5745. fi
  5746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5747. fi
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5749. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5750. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5751. CFLAGS="$xorg_testset_save_CFLAGS"
  5752. fi
  5753. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5754. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5755. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5756. fi
  5757. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5759. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5760. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5764. /* end confdefs.h. */
  5765. int i;
  5766. _ACEOF
  5767. if ac_fn_c_try_compile "$LINENO"; then :
  5768. xorg_cv_cc_flag_unused_command_line_argument=yes
  5769. else
  5770. xorg_cv_cc_flag_unused_command_line_argument=no
  5771. fi
  5772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5773. fi
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5775. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5776. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5777. CFLAGS="$xorg_testset_save_CFLAGS"
  5778. fi
  5779. found="no"
  5780. if test $found = "no" ; then
  5781. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5782. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5783. fi
  5784. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5785. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5786. fi
  5787. CFLAGS="$CFLAGS -Werror=implicit"
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5789. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5790. cacheid=xorg_cv_cc_flag__Werror_implicit
  5791. if eval \${$cacheid+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5795. /* end confdefs.h. */
  5796. int i;
  5797. int
  5798. main ()
  5799. {
  5800. ;
  5801. return 0;
  5802. }
  5803. _ACEOF
  5804. if ac_fn_c_try_link "$LINENO"; then :
  5805. eval $cacheid=yes
  5806. else
  5807. eval $cacheid=no
  5808. fi
  5809. rm -f core conftest.err conftest.$ac_objext \
  5810. conftest$ac_exeext conftest.$ac_ext
  5811. fi
  5812. CFLAGS="$xorg_testset_save_CFLAGS"
  5813. eval supported=\$$cacheid
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5815. $as_echo "$supported" >&6; }
  5816. if test "$supported" = "yes" ; then
  5817. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5818. found="yes"
  5819. fi
  5820. fi
  5821. if test $found = "no" ; then
  5822. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5823. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5824. fi
  5825. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5826. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5827. fi
  5828. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5830. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5831. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5832. if eval \${$cacheid+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5836. /* end confdefs.h. */
  5837. int i;
  5838. int
  5839. main ()
  5840. {
  5841. ;
  5842. return 0;
  5843. }
  5844. _ACEOF
  5845. if ac_fn_c_try_link "$LINENO"; then :
  5846. eval $cacheid=yes
  5847. else
  5848. eval $cacheid=no
  5849. fi
  5850. rm -f core conftest.err conftest.$ac_objext \
  5851. conftest$ac_exeext conftest.$ac_ext
  5852. fi
  5853. CFLAGS="$xorg_testset_save_CFLAGS"
  5854. eval supported=\$$cacheid
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5856. $as_echo "$supported" >&6; }
  5857. if test "$supported" = "yes" ; then
  5858. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5859. found="yes"
  5860. fi
  5861. fi
  5862. xorg_testset_save_CFLAGS="$CFLAGS"
  5863. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5864. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5866. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5867. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5871. /* end confdefs.h. */
  5872. int i;
  5873. _ACEOF
  5874. if ac_fn_c_try_compile "$LINENO"; then :
  5875. xorg_cv_cc_flag_unknown_warning_option=yes
  5876. else
  5877. xorg_cv_cc_flag_unknown_warning_option=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5882. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5883. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5884. CFLAGS="$xorg_testset_save_CFLAGS"
  5885. fi
  5886. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5887. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5888. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5889. fi
  5890. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5892. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5893. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5897. /* end confdefs.h. */
  5898. int i;
  5899. _ACEOF
  5900. if ac_fn_c_try_compile "$LINENO"; then :
  5901. xorg_cv_cc_flag_unused_command_line_argument=yes
  5902. else
  5903. xorg_cv_cc_flag_unused_command_line_argument=no
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5906. fi
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5908. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5909. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5910. CFLAGS="$xorg_testset_save_CFLAGS"
  5911. fi
  5912. found="no"
  5913. if test $found = "no" ; then
  5914. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5915. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5916. fi
  5917. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5918. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5919. fi
  5920. CFLAGS="$CFLAGS -Werror=nonnull"
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5922. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5923. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5924. if eval \${$cacheid+:} false; then :
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5928. /* end confdefs.h. */
  5929. int i;
  5930. int
  5931. main ()
  5932. {
  5933. ;
  5934. return 0;
  5935. }
  5936. _ACEOF
  5937. if ac_fn_c_try_link "$LINENO"; then :
  5938. eval $cacheid=yes
  5939. else
  5940. eval $cacheid=no
  5941. fi
  5942. rm -f core conftest.err conftest.$ac_objext \
  5943. conftest$ac_exeext conftest.$ac_ext
  5944. fi
  5945. CFLAGS="$xorg_testset_save_CFLAGS"
  5946. eval supported=\$$cacheid
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5948. $as_echo "$supported" >&6; }
  5949. if test "$supported" = "yes" ; then
  5950. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5951. found="yes"
  5952. fi
  5953. fi
  5954. xorg_testset_save_CFLAGS="$CFLAGS"
  5955. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5956. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5958. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5959. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5960. $as_echo_n "(cached) " >&6
  5961. else
  5962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5963. /* end confdefs.h. */
  5964. int i;
  5965. _ACEOF
  5966. if ac_fn_c_try_compile "$LINENO"; then :
  5967. xorg_cv_cc_flag_unknown_warning_option=yes
  5968. else
  5969. xorg_cv_cc_flag_unknown_warning_option=no
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5974. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5975. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5976. CFLAGS="$xorg_testset_save_CFLAGS"
  5977. fi
  5978. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5979. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5980. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5981. fi
  5982. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5984. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5985. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5989. /* end confdefs.h. */
  5990. int i;
  5991. _ACEOF
  5992. if ac_fn_c_try_compile "$LINENO"; then :
  5993. xorg_cv_cc_flag_unused_command_line_argument=yes
  5994. else
  5995. xorg_cv_cc_flag_unused_command_line_argument=no
  5996. fi
  5997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5998. fi
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6000. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6001. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6002. CFLAGS="$xorg_testset_save_CFLAGS"
  6003. fi
  6004. found="no"
  6005. if test $found = "no" ; then
  6006. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6007. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6008. fi
  6009. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6010. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6011. fi
  6012. CFLAGS="$CFLAGS -Werror=init-self"
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  6014. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6015. cacheid=xorg_cv_cc_flag__Werror_init_self
  6016. if eval \${$cacheid+:} false; then :
  6017. $as_echo_n "(cached) " >&6
  6018. else
  6019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6020. /* end confdefs.h. */
  6021. int i;
  6022. int
  6023. main ()
  6024. {
  6025. ;
  6026. return 0;
  6027. }
  6028. _ACEOF
  6029. if ac_fn_c_try_link "$LINENO"; then :
  6030. eval $cacheid=yes
  6031. else
  6032. eval $cacheid=no
  6033. fi
  6034. rm -f core conftest.err conftest.$ac_objext \
  6035. conftest$ac_exeext conftest.$ac_ext
  6036. fi
  6037. CFLAGS="$xorg_testset_save_CFLAGS"
  6038. eval supported=\$$cacheid
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6040. $as_echo "$supported" >&6; }
  6041. if test "$supported" = "yes" ; then
  6042. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6043. found="yes"
  6044. fi
  6045. fi
  6046. xorg_testset_save_CFLAGS="$CFLAGS"
  6047. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6048. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6050. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6051. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. int i;
  6057. _ACEOF
  6058. if ac_fn_c_try_compile "$LINENO"; then :
  6059. xorg_cv_cc_flag_unknown_warning_option=yes
  6060. else
  6061. xorg_cv_cc_flag_unknown_warning_option=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. fi
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6066. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6067. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6068. CFLAGS="$xorg_testset_save_CFLAGS"
  6069. fi
  6070. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6071. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6073. fi
  6074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6076. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6077. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end confdefs.h. */
  6082. int i;
  6083. _ACEOF
  6084. if ac_fn_c_try_compile "$LINENO"; then :
  6085. xorg_cv_cc_flag_unused_command_line_argument=yes
  6086. else
  6087. xorg_cv_cc_flag_unused_command_line_argument=no
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6090. fi
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6092. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6093. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6094. CFLAGS="$xorg_testset_save_CFLAGS"
  6095. fi
  6096. found="no"
  6097. if test $found = "no" ; then
  6098. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6100. fi
  6101. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6102. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6103. fi
  6104. CFLAGS="$CFLAGS -Werror=main"
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6106. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6107. cacheid=xorg_cv_cc_flag__Werror_main
  6108. if eval \${$cacheid+:} false; then :
  6109. $as_echo_n "(cached) " >&6
  6110. else
  6111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6112. /* end confdefs.h. */
  6113. int i;
  6114. int
  6115. main ()
  6116. {
  6117. ;
  6118. return 0;
  6119. }
  6120. _ACEOF
  6121. if ac_fn_c_try_link "$LINENO"; then :
  6122. eval $cacheid=yes
  6123. else
  6124. eval $cacheid=no
  6125. fi
  6126. rm -f core conftest.err conftest.$ac_objext \
  6127. conftest$ac_exeext conftest.$ac_ext
  6128. fi
  6129. CFLAGS="$xorg_testset_save_CFLAGS"
  6130. eval supported=\$$cacheid
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6132. $as_echo "$supported" >&6; }
  6133. if test "$supported" = "yes" ; then
  6134. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6135. found="yes"
  6136. fi
  6137. fi
  6138. xorg_testset_save_CFLAGS="$CFLAGS"
  6139. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6140. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6142. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6143. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. int i;
  6149. _ACEOF
  6150. if ac_fn_c_try_compile "$LINENO"; then :
  6151. xorg_cv_cc_flag_unknown_warning_option=yes
  6152. else
  6153. xorg_cv_cc_flag_unknown_warning_option=no
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6156. fi
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6158. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6159. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6160. CFLAGS="$xorg_testset_save_CFLAGS"
  6161. fi
  6162. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6163. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6165. fi
  6166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6168. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6169. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. int i;
  6175. _ACEOF
  6176. if ac_fn_c_try_compile "$LINENO"; then :
  6177. xorg_cv_cc_flag_unused_command_line_argument=yes
  6178. else
  6179. xorg_cv_cc_flag_unused_command_line_argument=no
  6180. fi
  6181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6182. fi
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6184. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6185. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6186. CFLAGS="$xorg_testset_save_CFLAGS"
  6187. fi
  6188. found="no"
  6189. if test $found = "no" ; then
  6190. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6191. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6192. fi
  6193. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6194. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6195. fi
  6196. CFLAGS="$CFLAGS -Werror=missing-braces"
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6198. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6199. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6200. if eval \${$cacheid+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. int i;
  6206. int
  6207. main ()
  6208. {
  6209. ;
  6210. return 0;
  6211. }
  6212. _ACEOF
  6213. if ac_fn_c_try_link "$LINENO"; then :
  6214. eval $cacheid=yes
  6215. else
  6216. eval $cacheid=no
  6217. fi
  6218. rm -f core conftest.err conftest.$ac_objext \
  6219. conftest$ac_exeext conftest.$ac_ext
  6220. fi
  6221. CFLAGS="$xorg_testset_save_CFLAGS"
  6222. eval supported=\$$cacheid
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6224. $as_echo "$supported" >&6; }
  6225. if test "$supported" = "yes" ; then
  6226. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6227. found="yes"
  6228. fi
  6229. fi
  6230. xorg_testset_save_CFLAGS="$CFLAGS"
  6231. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6232. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6234. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6235. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6239. /* end confdefs.h. */
  6240. int i;
  6241. _ACEOF
  6242. if ac_fn_c_try_compile "$LINENO"; then :
  6243. xorg_cv_cc_flag_unknown_warning_option=yes
  6244. else
  6245. xorg_cv_cc_flag_unknown_warning_option=no
  6246. fi
  6247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6250. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6251. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6252. CFLAGS="$xorg_testset_save_CFLAGS"
  6253. fi
  6254. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6255. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6257. fi
  6258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6260. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6261. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6262. $as_echo_n "(cached) " >&6
  6263. else
  6264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6265. /* end confdefs.h. */
  6266. int i;
  6267. _ACEOF
  6268. if ac_fn_c_try_compile "$LINENO"; then :
  6269. xorg_cv_cc_flag_unused_command_line_argument=yes
  6270. else
  6271. xorg_cv_cc_flag_unused_command_line_argument=no
  6272. fi
  6273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6274. fi
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6276. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6277. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6278. CFLAGS="$xorg_testset_save_CFLAGS"
  6279. fi
  6280. found="no"
  6281. if test $found = "no" ; then
  6282. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6283. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6284. fi
  6285. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6286. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6287. fi
  6288. CFLAGS="$CFLAGS -Werror=sequence-point"
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6290. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6291. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6292. if eval \${$cacheid+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6296. /* end confdefs.h. */
  6297. int i;
  6298. int
  6299. main ()
  6300. {
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. if ac_fn_c_try_link "$LINENO"; then :
  6306. eval $cacheid=yes
  6307. else
  6308. eval $cacheid=no
  6309. fi
  6310. rm -f core conftest.err conftest.$ac_objext \
  6311. conftest$ac_exeext conftest.$ac_ext
  6312. fi
  6313. CFLAGS="$xorg_testset_save_CFLAGS"
  6314. eval supported=\$$cacheid
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6316. $as_echo "$supported" >&6; }
  6317. if test "$supported" = "yes" ; then
  6318. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6319. found="yes"
  6320. fi
  6321. fi
  6322. xorg_testset_save_CFLAGS="$CFLAGS"
  6323. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6324. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6326. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6327. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6328. $as_echo_n "(cached) " >&6
  6329. else
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. int i;
  6333. _ACEOF
  6334. if ac_fn_c_try_compile "$LINENO"; then :
  6335. xorg_cv_cc_flag_unknown_warning_option=yes
  6336. else
  6337. xorg_cv_cc_flag_unknown_warning_option=no
  6338. fi
  6339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6340. fi
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6342. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6343. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6344. CFLAGS="$xorg_testset_save_CFLAGS"
  6345. fi
  6346. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6347. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6349. fi
  6350. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6352. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6353. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6354. $as_echo_n "(cached) " >&6
  6355. else
  6356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6357. /* end confdefs.h. */
  6358. int i;
  6359. _ACEOF
  6360. if ac_fn_c_try_compile "$LINENO"; then :
  6361. xorg_cv_cc_flag_unused_command_line_argument=yes
  6362. else
  6363. xorg_cv_cc_flag_unused_command_line_argument=no
  6364. fi
  6365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. fi
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6368. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6369. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6370. CFLAGS="$xorg_testset_save_CFLAGS"
  6371. fi
  6372. found="no"
  6373. if test $found = "no" ; then
  6374. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6375. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6376. fi
  6377. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6378. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6379. fi
  6380. CFLAGS="$CFLAGS -Werror=return-type"
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6382. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6383. cacheid=xorg_cv_cc_flag__Werror_return_type
  6384. if eval \${$cacheid+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6388. /* end confdefs.h. */
  6389. int i;
  6390. int
  6391. main ()
  6392. {
  6393. ;
  6394. return 0;
  6395. }
  6396. _ACEOF
  6397. if ac_fn_c_try_link "$LINENO"; then :
  6398. eval $cacheid=yes
  6399. else
  6400. eval $cacheid=no
  6401. fi
  6402. rm -f core conftest.err conftest.$ac_objext \
  6403. conftest$ac_exeext conftest.$ac_ext
  6404. fi
  6405. CFLAGS="$xorg_testset_save_CFLAGS"
  6406. eval supported=\$$cacheid
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6408. $as_echo "$supported" >&6; }
  6409. if test "$supported" = "yes" ; then
  6410. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6411. found="yes"
  6412. fi
  6413. fi
  6414. if test $found = "no" ; then
  6415. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6416. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6417. fi
  6418. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6419. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6420. fi
  6421. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6423. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6424. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6425. if eval \${$cacheid+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6429. /* end confdefs.h. */
  6430. int i;
  6431. int
  6432. main ()
  6433. {
  6434. ;
  6435. return 0;
  6436. }
  6437. _ACEOF
  6438. if ac_fn_c_try_link "$LINENO"; then :
  6439. eval $cacheid=yes
  6440. else
  6441. eval $cacheid=no
  6442. fi
  6443. rm -f core conftest.err conftest.$ac_objext \
  6444. conftest$ac_exeext conftest.$ac_ext
  6445. fi
  6446. CFLAGS="$xorg_testset_save_CFLAGS"
  6447. eval supported=\$$cacheid
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6449. $as_echo "$supported" >&6; }
  6450. if test "$supported" = "yes" ; then
  6451. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6452. found="yes"
  6453. fi
  6454. fi
  6455. xorg_testset_save_CFLAGS="$CFLAGS"
  6456. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6457. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6459. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6460. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. int i;
  6466. _ACEOF
  6467. if ac_fn_c_try_compile "$LINENO"; then :
  6468. xorg_cv_cc_flag_unknown_warning_option=yes
  6469. else
  6470. xorg_cv_cc_flag_unknown_warning_option=no
  6471. fi
  6472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6475. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6476. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6477. CFLAGS="$xorg_testset_save_CFLAGS"
  6478. fi
  6479. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6480. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6482. fi
  6483. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6485. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6486. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. int i;
  6492. _ACEOF
  6493. if ac_fn_c_try_compile "$LINENO"; then :
  6494. xorg_cv_cc_flag_unused_command_line_argument=yes
  6495. else
  6496. xorg_cv_cc_flag_unused_command_line_argument=no
  6497. fi
  6498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6499. fi
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6501. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6502. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6503. CFLAGS="$xorg_testset_save_CFLAGS"
  6504. fi
  6505. found="no"
  6506. if test $found = "no" ; then
  6507. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6508. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6509. fi
  6510. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6511. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6512. fi
  6513. CFLAGS="$CFLAGS -Werror=trigraphs"
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6515. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6516. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6517. if eval \${$cacheid+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6521. /* end confdefs.h. */
  6522. int i;
  6523. int
  6524. main ()
  6525. {
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_c_try_link "$LINENO"; then :
  6531. eval $cacheid=yes
  6532. else
  6533. eval $cacheid=no
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext \
  6536. conftest$ac_exeext conftest.$ac_ext
  6537. fi
  6538. CFLAGS="$xorg_testset_save_CFLAGS"
  6539. eval supported=\$$cacheid
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6541. $as_echo "$supported" >&6; }
  6542. if test "$supported" = "yes" ; then
  6543. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6544. found="yes"
  6545. fi
  6546. fi
  6547. xorg_testset_save_CFLAGS="$CFLAGS"
  6548. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6549. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6551. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6552. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. int i;
  6558. _ACEOF
  6559. if ac_fn_c_try_compile "$LINENO"; then :
  6560. xorg_cv_cc_flag_unknown_warning_option=yes
  6561. else
  6562. xorg_cv_cc_flag_unknown_warning_option=no
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6565. fi
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6567. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6568. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6569. CFLAGS="$xorg_testset_save_CFLAGS"
  6570. fi
  6571. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6572. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6574. fi
  6575. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6577. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6578. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6582. /* end confdefs.h. */
  6583. int i;
  6584. _ACEOF
  6585. if ac_fn_c_try_compile "$LINENO"; then :
  6586. xorg_cv_cc_flag_unused_command_line_argument=yes
  6587. else
  6588. xorg_cv_cc_flag_unused_command_line_argument=no
  6589. fi
  6590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6591. fi
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6593. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6594. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6595. CFLAGS="$xorg_testset_save_CFLAGS"
  6596. fi
  6597. found="no"
  6598. if test $found = "no" ; then
  6599. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6600. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6601. fi
  6602. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6603. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6604. fi
  6605. CFLAGS="$CFLAGS -Werror=array-bounds"
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6607. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6608. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6609. if eval \${$cacheid+:} false; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6613. /* end confdefs.h. */
  6614. int i;
  6615. int
  6616. main ()
  6617. {
  6618. ;
  6619. return 0;
  6620. }
  6621. _ACEOF
  6622. if ac_fn_c_try_link "$LINENO"; then :
  6623. eval $cacheid=yes
  6624. else
  6625. eval $cacheid=no
  6626. fi
  6627. rm -f core conftest.err conftest.$ac_objext \
  6628. conftest$ac_exeext conftest.$ac_ext
  6629. fi
  6630. CFLAGS="$xorg_testset_save_CFLAGS"
  6631. eval supported=\$$cacheid
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6633. $as_echo "$supported" >&6; }
  6634. if test "$supported" = "yes" ; then
  6635. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6636. found="yes"
  6637. fi
  6638. fi
  6639. xorg_testset_save_CFLAGS="$CFLAGS"
  6640. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6641. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6643. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6644. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. int i;
  6650. _ACEOF
  6651. if ac_fn_c_try_compile "$LINENO"; then :
  6652. xorg_cv_cc_flag_unknown_warning_option=yes
  6653. else
  6654. xorg_cv_cc_flag_unknown_warning_option=no
  6655. fi
  6656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6659. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6660. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6661. CFLAGS="$xorg_testset_save_CFLAGS"
  6662. fi
  6663. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6664. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6666. fi
  6667. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6669. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6670. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6674. /* end confdefs.h. */
  6675. int i;
  6676. _ACEOF
  6677. if ac_fn_c_try_compile "$LINENO"; then :
  6678. xorg_cv_cc_flag_unused_command_line_argument=yes
  6679. else
  6680. xorg_cv_cc_flag_unused_command_line_argument=no
  6681. fi
  6682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6683. fi
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6685. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6686. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6687. CFLAGS="$xorg_testset_save_CFLAGS"
  6688. fi
  6689. found="no"
  6690. if test $found = "no" ; then
  6691. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6692. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6693. fi
  6694. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6695. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6696. fi
  6697. CFLAGS="$CFLAGS -Werror=write-strings"
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6699. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6700. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6701. if eval \${$cacheid+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end confdefs.h. */
  6706. int i;
  6707. int
  6708. main ()
  6709. {
  6710. ;
  6711. return 0;
  6712. }
  6713. _ACEOF
  6714. if ac_fn_c_try_link "$LINENO"; then :
  6715. eval $cacheid=yes
  6716. else
  6717. eval $cacheid=no
  6718. fi
  6719. rm -f core conftest.err conftest.$ac_objext \
  6720. conftest$ac_exeext conftest.$ac_ext
  6721. fi
  6722. CFLAGS="$xorg_testset_save_CFLAGS"
  6723. eval supported=\$$cacheid
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6725. $as_echo "$supported" >&6; }
  6726. if test "$supported" = "yes" ; then
  6727. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6728. found="yes"
  6729. fi
  6730. fi
  6731. xorg_testset_save_CFLAGS="$CFLAGS"
  6732. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6733. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6735. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6736. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6740. /* end confdefs.h. */
  6741. int i;
  6742. _ACEOF
  6743. if ac_fn_c_try_compile "$LINENO"; then :
  6744. xorg_cv_cc_flag_unknown_warning_option=yes
  6745. else
  6746. xorg_cv_cc_flag_unknown_warning_option=no
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6751. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6752. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6753. CFLAGS="$xorg_testset_save_CFLAGS"
  6754. fi
  6755. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6756. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6758. fi
  6759. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6761. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6762. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6763. $as_echo_n "(cached) " >&6
  6764. else
  6765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6766. /* end confdefs.h. */
  6767. int i;
  6768. _ACEOF
  6769. if ac_fn_c_try_compile "$LINENO"; then :
  6770. xorg_cv_cc_flag_unused_command_line_argument=yes
  6771. else
  6772. xorg_cv_cc_flag_unused_command_line_argument=no
  6773. fi
  6774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6775. fi
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6777. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6778. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6779. CFLAGS="$xorg_testset_save_CFLAGS"
  6780. fi
  6781. found="no"
  6782. if test $found = "no" ; then
  6783. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6784. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6785. fi
  6786. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6787. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6788. fi
  6789. CFLAGS="$CFLAGS -Werror=address"
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6791. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6792. cacheid=xorg_cv_cc_flag__Werror_address
  6793. if eval \${$cacheid+:} false; then :
  6794. $as_echo_n "(cached) " >&6
  6795. else
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. int i;
  6799. int
  6800. main ()
  6801. {
  6802. ;
  6803. return 0;
  6804. }
  6805. _ACEOF
  6806. if ac_fn_c_try_link "$LINENO"; then :
  6807. eval $cacheid=yes
  6808. else
  6809. eval $cacheid=no
  6810. fi
  6811. rm -f core conftest.err conftest.$ac_objext \
  6812. conftest$ac_exeext conftest.$ac_ext
  6813. fi
  6814. CFLAGS="$xorg_testset_save_CFLAGS"
  6815. eval supported=\$$cacheid
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6817. $as_echo "$supported" >&6; }
  6818. if test "$supported" = "yes" ; then
  6819. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6820. found="yes"
  6821. fi
  6822. fi
  6823. xorg_testset_save_CFLAGS="$CFLAGS"
  6824. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6825. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6827. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6828. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6832. /* end confdefs.h. */
  6833. int i;
  6834. _ACEOF
  6835. if ac_fn_c_try_compile "$LINENO"; then :
  6836. xorg_cv_cc_flag_unknown_warning_option=yes
  6837. else
  6838. xorg_cv_cc_flag_unknown_warning_option=no
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6841. fi
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6843. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6844. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6845. CFLAGS="$xorg_testset_save_CFLAGS"
  6846. fi
  6847. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6848. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6850. fi
  6851. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6853. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6854. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. int i;
  6860. _ACEOF
  6861. if ac_fn_c_try_compile "$LINENO"; then :
  6862. xorg_cv_cc_flag_unused_command_line_argument=yes
  6863. else
  6864. xorg_cv_cc_flag_unused_command_line_argument=no
  6865. fi
  6866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6867. fi
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6869. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6870. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6871. CFLAGS="$xorg_testset_save_CFLAGS"
  6872. fi
  6873. found="no"
  6874. if test $found = "no" ; then
  6875. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6876. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6877. fi
  6878. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6879. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6880. fi
  6881. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6883. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6884. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6885. if eval \${$cacheid+:} false; then :
  6886. $as_echo_n "(cached) " >&6
  6887. else
  6888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6889. /* end confdefs.h. */
  6890. int i;
  6891. int
  6892. main ()
  6893. {
  6894. ;
  6895. return 0;
  6896. }
  6897. _ACEOF
  6898. if ac_fn_c_try_link "$LINENO"; then :
  6899. eval $cacheid=yes
  6900. else
  6901. eval $cacheid=no
  6902. fi
  6903. rm -f core conftest.err conftest.$ac_objext \
  6904. conftest$ac_exeext conftest.$ac_ext
  6905. fi
  6906. CFLAGS="$xorg_testset_save_CFLAGS"
  6907. eval supported=\$$cacheid
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6909. $as_echo "$supported" >&6; }
  6910. if test "$supported" = "yes" ; then
  6911. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6912. found="yes"
  6913. fi
  6914. fi
  6915. if test $found = "no" ; then
  6916. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6917. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6918. fi
  6919. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6920. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6921. fi
  6922. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6924. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6925. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6926. if eval \${$cacheid+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6930. /* end confdefs.h. */
  6931. int i;
  6932. int
  6933. main ()
  6934. {
  6935. ;
  6936. return 0;
  6937. }
  6938. _ACEOF
  6939. if ac_fn_c_try_link "$LINENO"; then :
  6940. eval $cacheid=yes
  6941. else
  6942. eval $cacheid=no
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext \
  6945. conftest$ac_exeext conftest.$ac_ext
  6946. fi
  6947. CFLAGS="$xorg_testset_save_CFLAGS"
  6948. eval supported=\$$cacheid
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6950. $as_echo "$supported" >&6; }
  6951. if test "$supported" = "yes" ; then
  6952. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6953. found="yes"
  6954. fi
  6955. fi
  6956. xorg_testset_save_CFLAGS="$CFLAGS"
  6957. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6958. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6960. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6961. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6965. /* end confdefs.h. */
  6966. int i;
  6967. _ACEOF
  6968. if ac_fn_c_try_compile "$LINENO"; then :
  6969. xorg_cv_cc_flag_unknown_warning_option=yes
  6970. else
  6971. xorg_cv_cc_flag_unknown_warning_option=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6976. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6977. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6978. CFLAGS="$xorg_testset_save_CFLAGS"
  6979. fi
  6980. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6981. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6982. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6983. fi
  6984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6986. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6987. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6991. /* end confdefs.h. */
  6992. int i;
  6993. _ACEOF
  6994. if ac_fn_c_try_compile "$LINENO"; then :
  6995. xorg_cv_cc_flag_unused_command_line_argument=yes
  6996. else
  6997. xorg_cv_cc_flag_unused_command_line_argument=no
  6998. fi
  6999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7000. fi
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7002. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7003. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7004. CFLAGS="$xorg_testset_save_CFLAGS"
  7005. fi
  7006. found="no"
  7007. if test $found = "no" ; then
  7008. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7009. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7010. fi
  7011. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7012. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7013. fi
  7014. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7016. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7017. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7018. if eval \${$cacheid+:} false; then :
  7019. $as_echo_n "(cached) " >&6
  7020. else
  7021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7022. /* end confdefs.h. */
  7023. int i;
  7024. int
  7025. main ()
  7026. {
  7027. ;
  7028. return 0;
  7029. }
  7030. _ACEOF
  7031. if ac_fn_c_try_link "$LINENO"; then :
  7032. eval $cacheid=yes
  7033. else
  7034. eval $cacheid=no
  7035. fi
  7036. rm -f core conftest.err conftest.$ac_objext \
  7037. conftest$ac_exeext conftest.$ac_ext
  7038. fi
  7039. CFLAGS="$xorg_testset_save_CFLAGS"
  7040. eval supported=\$$cacheid
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7042. $as_echo "$supported" >&6; }
  7043. if test "$supported" = "yes" ; then
  7044. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7045. found="yes"
  7046. fi
  7047. fi
  7048. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7049. else
  7050. { $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
  7051. $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;}
  7052. xorg_testset_save_CFLAGS="$CFLAGS"
  7053. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7054. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7056. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7057. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7061. /* end confdefs.h. */
  7062. int i;
  7063. _ACEOF
  7064. if ac_fn_c_try_compile "$LINENO"; then :
  7065. xorg_cv_cc_flag_unknown_warning_option=yes
  7066. else
  7067. xorg_cv_cc_flag_unknown_warning_option=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7072. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7073. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7074. CFLAGS="$xorg_testset_save_CFLAGS"
  7075. fi
  7076. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7077. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7078. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7079. fi
  7080. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7082. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7083. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7087. /* end confdefs.h. */
  7088. int i;
  7089. _ACEOF
  7090. if ac_fn_c_try_compile "$LINENO"; then :
  7091. xorg_cv_cc_flag_unused_command_line_argument=yes
  7092. else
  7093. xorg_cv_cc_flag_unused_command_line_argument=no
  7094. fi
  7095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7096. fi
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7098. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7099. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7100. CFLAGS="$xorg_testset_save_CFLAGS"
  7101. fi
  7102. found="no"
  7103. if test $found = "no" ; then
  7104. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7105. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7106. fi
  7107. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7108. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7109. fi
  7110. CFLAGS="$CFLAGS -Wimplicit"
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7112. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7113. cacheid=xorg_cv_cc_flag__Wimplicit
  7114. if eval \${$cacheid+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7118. /* end confdefs.h. */
  7119. int i;
  7120. int
  7121. main ()
  7122. {
  7123. ;
  7124. return 0;
  7125. }
  7126. _ACEOF
  7127. if ac_fn_c_try_link "$LINENO"; then :
  7128. eval $cacheid=yes
  7129. else
  7130. eval $cacheid=no
  7131. fi
  7132. rm -f core conftest.err conftest.$ac_objext \
  7133. conftest$ac_exeext conftest.$ac_ext
  7134. fi
  7135. CFLAGS="$xorg_testset_save_CFLAGS"
  7136. eval supported=\$$cacheid
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7138. $as_echo "$supported" >&6; }
  7139. if test "$supported" = "yes" ; then
  7140. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7141. found="yes"
  7142. fi
  7143. fi
  7144. xorg_testset_save_CFLAGS="$CFLAGS"
  7145. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7146. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7148. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7149. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. int i;
  7155. _ACEOF
  7156. if ac_fn_c_try_compile "$LINENO"; then :
  7157. xorg_cv_cc_flag_unknown_warning_option=yes
  7158. else
  7159. xorg_cv_cc_flag_unknown_warning_option=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7164. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7165. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7166. CFLAGS="$xorg_testset_save_CFLAGS"
  7167. fi
  7168. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7169. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7170. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7171. fi
  7172. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7174. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7175. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7179. /* end confdefs.h. */
  7180. int i;
  7181. _ACEOF
  7182. if ac_fn_c_try_compile "$LINENO"; then :
  7183. xorg_cv_cc_flag_unused_command_line_argument=yes
  7184. else
  7185. xorg_cv_cc_flag_unused_command_line_argument=no
  7186. fi
  7187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7188. fi
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7190. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7191. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7192. CFLAGS="$xorg_testset_save_CFLAGS"
  7193. fi
  7194. found="no"
  7195. if test $found = "no" ; then
  7196. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7197. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7198. fi
  7199. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7200. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7201. fi
  7202. CFLAGS="$CFLAGS -Wnonnull"
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7204. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7205. cacheid=xorg_cv_cc_flag__Wnonnull
  7206. if eval \${$cacheid+:} false; then :
  7207. $as_echo_n "(cached) " >&6
  7208. else
  7209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7210. /* end confdefs.h. */
  7211. int i;
  7212. int
  7213. main ()
  7214. {
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. if ac_fn_c_try_link "$LINENO"; then :
  7220. eval $cacheid=yes
  7221. else
  7222. eval $cacheid=no
  7223. fi
  7224. rm -f core conftest.err conftest.$ac_objext \
  7225. conftest$ac_exeext conftest.$ac_ext
  7226. fi
  7227. CFLAGS="$xorg_testset_save_CFLAGS"
  7228. eval supported=\$$cacheid
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7230. $as_echo "$supported" >&6; }
  7231. if test "$supported" = "yes" ; then
  7232. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7233. found="yes"
  7234. fi
  7235. fi
  7236. xorg_testset_save_CFLAGS="$CFLAGS"
  7237. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7238. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7240. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7241. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h. */
  7246. int i;
  7247. _ACEOF
  7248. if ac_fn_c_try_compile "$LINENO"; then :
  7249. xorg_cv_cc_flag_unknown_warning_option=yes
  7250. else
  7251. xorg_cv_cc_flag_unknown_warning_option=no
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7256. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7257. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7258. CFLAGS="$xorg_testset_save_CFLAGS"
  7259. fi
  7260. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7261. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7262. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7263. fi
  7264. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7266. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7267. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7271. /* end confdefs.h. */
  7272. int i;
  7273. _ACEOF
  7274. if ac_fn_c_try_compile "$LINENO"; then :
  7275. xorg_cv_cc_flag_unused_command_line_argument=yes
  7276. else
  7277. xorg_cv_cc_flag_unused_command_line_argument=no
  7278. fi
  7279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7280. fi
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7282. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7283. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7284. CFLAGS="$xorg_testset_save_CFLAGS"
  7285. fi
  7286. found="no"
  7287. if test $found = "no" ; then
  7288. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7289. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7290. fi
  7291. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7292. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7293. fi
  7294. CFLAGS="$CFLAGS -Winit-self"
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7296. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7297. cacheid=xorg_cv_cc_flag__Winit_self
  7298. if eval \${$cacheid+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7302. /* end confdefs.h. */
  7303. int i;
  7304. int
  7305. main ()
  7306. {
  7307. ;
  7308. return 0;
  7309. }
  7310. _ACEOF
  7311. if ac_fn_c_try_link "$LINENO"; then :
  7312. eval $cacheid=yes
  7313. else
  7314. eval $cacheid=no
  7315. fi
  7316. rm -f core conftest.err conftest.$ac_objext \
  7317. conftest$ac_exeext conftest.$ac_ext
  7318. fi
  7319. CFLAGS="$xorg_testset_save_CFLAGS"
  7320. eval supported=\$$cacheid
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7322. $as_echo "$supported" >&6; }
  7323. if test "$supported" = "yes" ; then
  7324. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7325. found="yes"
  7326. fi
  7327. fi
  7328. xorg_testset_save_CFLAGS="$CFLAGS"
  7329. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7330. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7332. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7333. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7337. /* end confdefs.h. */
  7338. int i;
  7339. _ACEOF
  7340. if ac_fn_c_try_compile "$LINENO"; then :
  7341. xorg_cv_cc_flag_unknown_warning_option=yes
  7342. else
  7343. xorg_cv_cc_flag_unknown_warning_option=no
  7344. fi
  7345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7348. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7349. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7350. CFLAGS="$xorg_testset_save_CFLAGS"
  7351. fi
  7352. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7353. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7354. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7355. fi
  7356. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7358. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7359. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7360. $as_echo_n "(cached) " >&6
  7361. else
  7362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7363. /* end confdefs.h. */
  7364. int i;
  7365. _ACEOF
  7366. if ac_fn_c_try_compile "$LINENO"; then :
  7367. xorg_cv_cc_flag_unused_command_line_argument=yes
  7368. else
  7369. xorg_cv_cc_flag_unused_command_line_argument=no
  7370. fi
  7371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7374. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7375. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7376. CFLAGS="$xorg_testset_save_CFLAGS"
  7377. fi
  7378. found="no"
  7379. if test $found = "no" ; then
  7380. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7381. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7382. fi
  7383. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7384. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7385. fi
  7386. CFLAGS="$CFLAGS -Wmain"
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7388. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7389. cacheid=xorg_cv_cc_flag__Wmain
  7390. if eval \${$cacheid+:} false; then :
  7391. $as_echo_n "(cached) " >&6
  7392. else
  7393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7394. /* end confdefs.h. */
  7395. int i;
  7396. int
  7397. main ()
  7398. {
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. if ac_fn_c_try_link "$LINENO"; then :
  7404. eval $cacheid=yes
  7405. else
  7406. eval $cacheid=no
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext \
  7409. conftest$ac_exeext conftest.$ac_ext
  7410. fi
  7411. CFLAGS="$xorg_testset_save_CFLAGS"
  7412. eval supported=\$$cacheid
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7414. $as_echo "$supported" >&6; }
  7415. if test "$supported" = "yes" ; then
  7416. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7417. found="yes"
  7418. fi
  7419. fi
  7420. xorg_testset_save_CFLAGS="$CFLAGS"
  7421. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7422. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7424. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7425. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7426. $as_echo_n "(cached) " >&6
  7427. else
  7428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7429. /* end confdefs.h. */
  7430. int i;
  7431. _ACEOF
  7432. if ac_fn_c_try_compile "$LINENO"; then :
  7433. xorg_cv_cc_flag_unknown_warning_option=yes
  7434. else
  7435. xorg_cv_cc_flag_unknown_warning_option=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. fi
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7440. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7441. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7442. CFLAGS="$xorg_testset_save_CFLAGS"
  7443. fi
  7444. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7445. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7446. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7447. fi
  7448. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7450. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7451. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7455. /* end confdefs.h. */
  7456. int i;
  7457. _ACEOF
  7458. if ac_fn_c_try_compile "$LINENO"; then :
  7459. xorg_cv_cc_flag_unused_command_line_argument=yes
  7460. else
  7461. xorg_cv_cc_flag_unused_command_line_argument=no
  7462. fi
  7463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7464. fi
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7466. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7467. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7468. CFLAGS="$xorg_testset_save_CFLAGS"
  7469. fi
  7470. found="no"
  7471. if test $found = "no" ; then
  7472. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7473. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7474. fi
  7475. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7476. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7477. fi
  7478. CFLAGS="$CFLAGS -Wmissing-braces"
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7480. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7481. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7482. if eval \${$cacheid+:} false; then :
  7483. $as_echo_n "(cached) " >&6
  7484. else
  7485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7486. /* end confdefs.h. */
  7487. int i;
  7488. int
  7489. main ()
  7490. {
  7491. ;
  7492. return 0;
  7493. }
  7494. _ACEOF
  7495. if ac_fn_c_try_link "$LINENO"; then :
  7496. eval $cacheid=yes
  7497. else
  7498. eval $cacheid=no
  7499. fi
  7500. rm -f core conftest.err conftest.$ac_objext \
  7501. conftest$ac_exeext conftest.$ac_ext
  7502. fi
  7503. CFLAGS="$xorg_testset_save_CFLAGS"
  7504. eval supported=\$$cacheid
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7506. $as_echo "$supported" >&6; }
  7507. if test "$supported" = "yes" ; then
  7508. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7509. found="yes"
  7510. fi
  7511. fi
  7512. xorg_testset_save_CFLAGS="$CFLAGS"
  7513. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7514. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7516. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7517. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. int i;
  7523. _ACEOF
  7524. if ac_fn_c_try_compile "$LINENO"; then :
  7525. xorg_cv_cc_flag_unknown_warning_option=yes
  7526. else
  7527. xorg_cv_cc_flag_unknown_warning_option=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7532. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7533. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7534. CFLAGS="$xorg_testset_save_CFLAGS"
  7535. fi
  7536. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7537. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7538. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7539. fi
  7540. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7542. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7543. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7544. $as_echo_n "(cached) " >&6
  7545. else
  7546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7547. /* end confdefs.h. */
  7548. int i;
  7549. _ACEOF
  7550. if ac_fn_c_try_compile "$LINENO"; then :
  7551. xorg_cv_cc_flag_unused_command_line_argument=yes
  7552. else
  7553. xorg_cv_cc_flag_unused_command_line_argument=no
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. fi
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7558. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7559. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7560. CFLAGS="$xorg_testset_save_CFLAGS"
  7561. fi
  7562. found="no"
  7563. if test $found = "no" ; then
  7564. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7565. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7566. fi
  7567. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7568. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7569. fi
  7570. CFLAGS="$CFLAGS -Wsequence-point"
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7572. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7573. cacheid=xorg_cv_cc_flag__Wsequence_point
  7574. if eval \${$cacheid+:} false; then :
  7575. $as_echo_n "(cached) " >&6
  7576. else
  7577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7578. /* end confdefs.h. */
  7579. int i;
  7580. int
  7581. main ()
  7582. {
  7583. ;
  7584. return 0;
  7585. }
  7586. _ACEOF
  7587. if ac_fn_c_try_link "$LINENO"; then :
  7588. eval $cacheid=yes
  7589. else
  7590. eval $cacheid=no
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext \
  7593. conftest$ac_exeext conftest.$ac_ext
  7594. fi
  7595. CFLAGS="$xorg_testset_save_CFLAGS"
  7596. eval supported=\$$cacheid
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7598. $as_echo "$supported" >&6; }
  7599. if test "$supported" = "yes" ; then
  7600. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7601. found="yes"
  7602. fi
  7603. fi
  7604. xorg_testset_save_CFLAGS="$CFLAGS"
  7605. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7606. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7608. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7609. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7613. /* end confdefs.h. */
  7614. int i;
  7615. _ACEOF
  7616. if ac_fn_c_try_compile "$LINENO"; then :
  7617. xorg_cv_cc_flag_unknown_warning_option=yes
  7618. else
  7619. xorg_cv_cc_flag_unknown_warning_option=no
  7620. fi
  7621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7622. fi
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7624. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7625. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7626. CFLAGS="$xorg_testset_save_CFLAGS"
  7627. fi
  7628. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7629. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7630. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7631. fi
  7632. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7634. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7635. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7636. $as_echo_n "(cached) " >&6
  7637. else
  7638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7639. /* end confdefs.h. */
  7640. int i;
  7641. _ACEOF
  7642. if ac_fn_c_try_compile "$LINENO"; then :
  7643. xorg_cv_cc_flag_unused_command_line_argument=yes
  7644. else
  7645. xorg_cv_cc_flag_unused_command_line_argument=no
  7646. fi
  7647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7648. fi
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7650. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7651. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7652. CFLAGS="$xorg_testset_save_CFLAGS"
  7653. fi
  7654. found="no"
  7655. if test $found = "no" ; then
  7656. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7657. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7658. fi
  7659. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7660. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7661. fi
  7662. CFLAGS="$CFLAGS -Wreturn-type"
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7664. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7665. cacheid=xorg_cv_cc_flag__Wreturn_type
  7666. if eval \${$cacheid+:} false; then :
  7667. $as_echo_n "(cached) " >&6
  7668. else
  7669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7670. /* end confdefs.h. */
  7671. int i;
  7672. int
  7673. main ()
  7674. {
  7675. ;
  7676. return 0;
  7677. }
  7678. _ACEOF
  7679. if ac_fn_c_try_link "$LINENO"; then :
  7680. eval $cacheid=yes
  7681. else
  7682. eval $cacheid=no
  7683. fi
  7684. rm -f core conftest.err conftest.$ac_objext \
  7685. conftest$ac_exeext conftest.$ac_ext
  7686. fi
  7687. CFLAGS="$xorg_testset_save_CFLAGS"
  7688. eval supported=\$$cacheid
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7690. $as_echo "$supported" >&6; }
  7691. if test "$supported" = "yes" ; then
  7692. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7693. found="yes"
  7694. fi
  7695. fi
  7696. xorg_testset_save_CFLAGS="$CFLAGS"
  7697. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7698. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7700. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7701. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7702. $as_echo_n "(cached) " >&6
  7703. else
  7704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7705. /* end confdefs.h. */
  7706. int i;
  7707. _ACEOF
  7708. if ac_fn_c_try_compile "$LINENO"; then :
  7709. xorg_cv_cc_flag_unknown_warning_option=yes
  7710. else
  7711. xorg_cv_cc_flag_unknown_warning_option=no
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7714. fi
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7716. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7717. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7718. CFLAGS="$xorg_testset_save_CFLAGS"
  7719. fi
  7720. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7721. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7722. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7723. fi
  7724. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7726. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7727. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7731. /* end confdefs.h. */
  7732. int i;
  7733. _ACEOF
  7734. if ac_fn_c_try_compile "$LINENO"; then :
  7735. xorg_cv_cc_flag_unused_command_line_argument=yes
  7736. else
  7737. xorg_cv_cc_flag_unused_command_line_argument=no
  7738. fi
  7739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7740. fi
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7742. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7743. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7744. CFLAGS="$xorg_testset_save_CFLAGS"
  7745. fi
  7746. found="no"
  7747. if test $found = "no" ; then
  7748. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7749. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7750. fi
  7751. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7752. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7753. fi
  7754. CFLAGS="$CFLAGS -Wtrigraphs"
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7756. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7757. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7758. if eval \${$cacheid+:} false; then :
  7759. $as_echo_n "(cached) " >&6
  7760. else
  7761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7762. /* end confdefs.h. */
  7763. int i;
  7764. int
  7765. main ()
  7766. {
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_c_try_link "$LINENO"; then :
  7772. eval $cacheid=yes
  7773. else
  7774. eval $cacheid=no
  7775. fi
  7776. rm -f core conftest.err conftest.$ac_objext \
  7777. conftest$ac_exeext conftest.$ac_ext
  7778. fi
  7779. CFLAGS="$xorg_testset_save_CFLAGS"
  7780. eval supported=\$$cacheid
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7782. $as_echo "$supported" >&6; }
  7783. if test "$supported" = "yes" ; then
  7784. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7785. found="yes"
  7786. fi
  7787. fi
  7788. xorg_testset_save_CFLAGS="$CFLAGS"
  7789. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7790. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7792. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7793. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7794. $as_echo_n "(cached) " >&6
  7795. else
  7796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7797. /* end confdefs.h. */
  7798. int i;
  7799. _ACEOF
  7800. if ac_fn_c_try_compile "$LINENO"; then :
  7801. xorg_cv_cc_flag_unknown_warning_option=yes
  7802. else
  7803. xorg_cv_cc_flag_unknown_warning_option=no
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7808. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7809. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7810. CFLAGS="$xorg_testset_save_CFLAGS"
  7811. fi
  7812. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7813. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7814. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7815. fi
  7816. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7818. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7819. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7820. $as_echo_n "(cached) " >&6
  7821. else
  7822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7823. /* end confdefs.h. */
  7824. int i;
  7825. _ACEOF
  7826. if ac_fn_c_try_compile "$LINENO"; then :
  7827. xorg_cv_cc_flag_unused_command_line_argument=yes
  7828. else
  7829. xorg_cv_cc_flag_unused_command_line_argument=no
  7830. fi
  7831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7832. fi
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7834. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7835. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7836. CFLAGS="$xorg_testset_save_CFLAGS"
  7837. fi
  7838. found="no"
  7839. if test $found = "no" ; then
  7840. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7841. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7842. fi
  7843. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7844. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7845. fi
  7846. CFLAGS="$CFLAGS -Warray-bounds"
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7848. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7849. cacheid=xorg_cv_cc_flag__Warray_bounds
  7850. if eval \${$cacheid+:} false; then :
  7851. $as_echo_n "(cached) " >&6
  7852. else
  7853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7854. /* end confdefs.h. */
  7855. int i;
  7856. int
  7857. main ()
  7858. {
  7859. ;
  7860. return 0;
  7861. }
  7862. _ACEOF
  7863. if ac_fn_c_try_link "$LINENO"; then :
  7864. eval $cacheid=yes
  7865. else
  7866. eval $cacheid=no
  7867. fi
  7868. rm -f core conftest.err conftest.$ac_objext \
  7869. conftest$ac_exeext conftest.$ac_ext
  7870. fi
  7871. CFLAGS="$xorg_testset_save_CFLAGS"
  7872. eval supported=\$$cacheid
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7874. $as_echo "$supported" >&6; }
  7875. if test "$supported" = "yes" ; then
  7876. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7877. found="yes"
  7878. fi
  7879. fi
  7880. xorg_testset_save_CFLAGS="$CFLAGS"
  7881. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7882. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7884. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7885. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7886. $as_echo_n "(cached) " >&6
  7887. else
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. int i;
  7891. _ACEOF
  7892. if ac_fn_c_try_compile "$LINENO"; then :
  7893. xorg_cv_cc_flag_unknown_warning_option=yes
  7894. else
  7895. xorg_cv_cc_flag_unknown_warning_option=no
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7898. fi
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7900. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7901. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7902. CFLAGS="$xorg_testset_save_CFLAGS"
  7903. fi
  7904. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7905. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7906. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7907. fi
  7908. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7910. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7911. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7912. $as_echo_n "(cached) " >&6
  7913. else
  7914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7915. /* end confdefs.h. */
  7916. int i;
  7917. _ACEOF
  7918. if ac_fn_c_try_compile "$LINENO"; then :
  7919. xorg_cv_cc_flag_unused_command_line_argument=yes
  7920. else
  7921. xorg_cv_cc_flag_unused_command_line_argument=no
  7922. fi
  7923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7924. fi
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7926. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7927. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7928. CFLAGS="$xorg_testset_save_CFLAGS"
  7929. fi
  7930. found="no"
  7931. if test $found = "no" ; then
  7932. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7933. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7934. fi
  7935. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7936. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7937. fi
  7938. CFLAGS="$CFLAGS -Wwrite-strings"
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7940. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7941. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7942. if eval \${$cacheid+:} false; then :
  7943. $as_echo_n "(cached) " >&6
  7944. else
  7945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7946. /* end confdefs.h. */
  7947. int i;
  7948. int
  7949. main ()
  7950. {
  7951. ;
  7952. return 0;
  7953. }
  7954. _ACEOF
  7955. if ac_fn_c_try_link "$LINENO"; then :
  7956. eval $cacheid=yes
  7957. else
  7958. eval $cacheid=no
  7959. fi
  7960. rm -f core conftest.err conftest.$ac_objext \
  7961. conftest$ac_exeext conftest.$ac_ext
  7962. fi
  7963. CFLAGS="$xorg_testset_save_CFLAGS"
  7964. eval supported=\$$cacheid
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7966. $as_echo "$supported" >&6; }
  7967. if test "$supported" = "yes" ; then
  7968. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7969. found="yes"
  7970. fi
  7971. fi
  7972. xorg_testset_save_CFLAGS="$CFLAGS"
  7973. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7974. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7976. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7977. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7978. $as_echo_n "(cached) " >&6
  7979. else
  7980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7981. /* end confdefs.h. */
  7982. int i;
  7983. _ACEOF
  7984. if ac_fn_c_try_compile "$LINENO"; then :
  7985. xorg_cv_cc_flag_unknown_warning_option=yes
  7986. else
  7987. xorg_cv_cc_flag_unknown_warning_option=no
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7992. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7993. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7994. CFLAGS="$xorg_testset_save_CFLAGS"
  7995. fi
  7996. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7997. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7998. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7999. fi
  8000. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8002. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8003. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8004. $as_echo_n "(cached) " >&6
  8005. else
  8006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8007. /* end confdefs.h. */
  8008. int i;
  8009. _ACEOF
  8010. if ac_fn_c_try_compile "$LINENO"; then :
  8011. xorg_cv_cc_flag_unused_command_line_argument=yes
  8012. else
  8013. xorg_cv_cc_flag_unused_command_line_argument=no
  8014. fi
  8015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8016. fi
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8018. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8019. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8020. CFLAGS="$xorg_testset_save_CFLAGS"
  8021. fi
  8022. found="no"
  8023. if test $found = "no" ; then
  8024. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8025. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8026. fi
  8027. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8028. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8029. fi
  8030. CFLAGS="$CFLAGS -Waddress"
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8032. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8033. cacheid=xorg_cv_cc_flag__Waddress
  8034. if eval \${$cacheid+:} false; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8038. /* end confdefs.h. */
  8039. int i;
  8040. int
  8041. main ()
  8042. {
  8043. ;
  8044. return 0;
  8045. }
  8046. _ACEOF
  8047. if ac_fn_c_try_link "$LINENO"; then :
  8048. eval $cacheid=yes
  8049. else
  8050. eval $cacheid=no
  8051. fi
  8052. rm -f core conftest.err conftest.$ac_objext \
  8053. conftest$ac_exeext conftest.$ac_ext
  8054. fi
  8055. CFLAGS="$xorg_testset_save_CFLAGS"
  8056. eval supported=\$$cacheid
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8058. $as_echo "$supported" >&6; }
  8059. if test "$supported" = "yes" ; then
  8060. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8061. found="yes"
  8062. fi
  8063. fi
  8064. xorg_testset_save_CFLAGS="$CFLAGS"
  8065. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8066. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8068. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8069. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8070. $as_echo_n "(cached) " >&6
  8071. else
  8072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8073. /* end confdefs.h. */
  8074. int i;
  8075. _ACEOF
  8076. if ac_fn_c_try_compile "$LINENO"; then :
  8077. xorg_cv_cc_flag_unknown_warning_option=yes
  8078. else
  8079. xorg_cv_cc_flag_unknown_warning_option=no
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8084. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8085. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8086. CFLAGS="$xorg_testset_save_CFLAGS"
  8087. fi
  8088. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8089. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8090. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8091. fi
  8092. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8094. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8095. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8096. $as_echo_n "(cached) " >&6
  8097. else
  8098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8099. /* end confdefs.h. */
  8100. int i;
  8101. _ACEOF
  8102. if ac_fn_c_try_compile "$LINENO"; then :
  8103. xorg_cv_cc_flag_unused_command_line_argument=yes
  8104. else
  8105. xorg_cv_cc_flag_unused_command_line_argument=no
  8106. fi
  8107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8108. fi
  8109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8110. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8111. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8112. CFLAGS="$xorg_testset_save_CFLAGS"
  8113. fi
  8114. found="no"
  8115. if test $found = "no" ; then
  8116. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8117. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8118. fi
  8119. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8120. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8121. fi
  8122. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8124. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8125. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8126. if eval \${$cacheid+:} false; then :
  8127. $as_echo_n "(cached) " >&6
  8128. else
  8129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8130. /* end confdefs.h. */
  8131. int i;
  8132. int
  8133. main ()
  8134. {
  8135. ;
  8136. return 0;
  8137. }
  8138. _ACEOF
  8139. if ac_fn_c_try_link "$LINENO"; then :
  8140. eval $cacheid=yes
  8141. else
  8142. eval $cacheid=no
  8143. fi
  8144. rm -f core conftest.err conftest.$ac_objext \
  8145. conftest$ac_exeext conftest.$ac_ext
  8146. fi
  8147. CFLAGS="$xorg_testset_save_CFLAGS"
  8148. eval supported=\$$cacheid
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8150. $as_echo "$supported" >&6; }
  8151. if test "$supported" = "yes" ; then
  8152. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8153. found="yes"
  8154. fi
  8155. fi
  8156. xorg_testset_save_CFLAGS="$CFLAGS"
  8157. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8158. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8160. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8161. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8162. $as_echo_n "(cached) " >&6
  8163. else
  8164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8165. /* end confdefs.h. */
  8166. int i;
  8167. _ACEOF
  8168. if ac_fn_c_try_compile "$LINENO"; then :
  8169. xorg_cv_cc_flag_unknown_warning_option=yes
  8170. else
  8171. xorg_cv_cc_flag_unknown_warning_option=no
  8172. fi
  8173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8176. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8177. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8178. CFLAGS="$xorg_testset_save_CFLAGS"
  8179. fi
  8180. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8181. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8182. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8183. fi
  8184. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8186. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8187. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8188. $as_echo_n "(cached) " >&6
  8189. else
  8190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8191. /* end confdefs.h. */
  8192. int i;
  8193. _ACEOF
  8194. if ac_fn_c_try_compile "$LINENO"; then :
  8195. xorg_cv_cc_flag_unused_command_line_argument=yes
  8196. else
  8197. xorg_cv_cc_flag_unused_command_line_argument=no
  8198. fi
  8199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8200. fi
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8202. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8203. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8204. CFLAGS="$xorg_testset_save_CFLAGS"
  8205. fi
  8206. found="no"
  8207. if test $found = "no" ; then
  8208. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8209. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8210. fi
  8211. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8212. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8213. fi
  8214. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8216. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8217. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8218. if eval \${$cacheid+:} 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. int
  8225. main ()
  8226. {
  8227. ;
  8228. return 0;
  8229. }
  8230. _ACEOF
  8231. if ac_fn_c_try_link "$LINENO"; then :
  8232. eval $cacheid=yes
  8233. else
  8234. eval $cacheid=no
  8235. fi
  8236. rm -f core conftest.err conftest.$ac_objext \
  8237. conftest$ac_exeext conftest.$ac_ext
  8238. fi
  8239. CFLAGS="$xorg_testset_save_CFLAGS"
  8240. eval supported=\$$cacheid
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8242. $as_echo "$supported" >&6; }
  8243. if test "$supported" = "yes" ; then
  8244. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8245. found="yes"
  8246. fi
  8247. fi
  8248. fi
  8249. CWARNFLAGS="$BASE_CFLAGS"
  8250. if test "x$GCC" = xyes ; then
  8251. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8252. fi
  8253. # Check whether --enable-strict-compilation was given.
  8254. if test "${enable_strict_compilation+set}" = set; then :
  8255. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8256. else
  8257. STRICT_COMPILE=no
  8258. fi
  8259. STRICT_CFLAGS=""
  8260. xorg_testset_save_CFLAGS="$CFLAGS"
  8261. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8262. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8264. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8265. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8269. /* end confdefs.h. */
  8270. int i;
  8271. _ACEOF
  8272. if ac_fn_c_try_compile "$LINENO"; then :
  8273. xorg_cv_cc_flag_unknown_warning_option=yes
  8274. else
  8275. xorg_cv_cc_flag_unknown_warning_option=no
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8280. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8281. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8282. CFLAGS="$xorg_testset_save_CFLAGS"
  8283. fi
  8284. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8285. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8286. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8287. fi
  8288. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8290. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8291. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8292. $as_echo_n "(cached) " >&6
  8293. else
  8294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8295. /* end confdefs.h. */
  8296. int i;
  8297. _ACEOF
  8298. if ac_fn_c_try_compile "$LINENO"; then :
  8299. xorg_cv_cc_flag_unused_command_line_argument=yes
  8300. else
  8301. xorg_cv_cc_flag_unused_command_line_argument=no
  8302. fi
  8303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8304. fi
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8306. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8307. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8308. CFLAGS="$xorg_testset_save_CFLAGS"
  8309. fi
  8310. found="no"
  8311. if test $found = "no" ; then
  8312. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8313. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8314. fi
  8315. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8316. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8317. fi
  8318. CFLAGS="$CFLAGS -pedantic"
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8320. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8321. cacheid=xorg_cv_cc_flag__pedantic
  8322. if eval \${$cacheid+:} false; then :
  8323. $as_echo_n "(cached) " >&6
  8324. else
  8325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8326. /* end confdefs.h. */
  8327. int i;
  8328. int
  8329. main ()
  8330. {
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_c_try_link "$LINENO"; then :
  8336. eval $cacheid=yes
  8337. else
  8338. eval $cacheid=no
  8339. fi
  8340. rm -f core conftest.err conftest.$ac_objext \
  8341. conftest$ac_exeext conftest.$ac_ext
  8342. fi
  8343. CFLAGS="$xorg_testset_save_CFLAGS"
  8344. eval supported=\$$cacheid
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8346. $as_echo "$supported" >&6; }
  8347. if test "$supported" = "yes" ; then
  8348. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8349. found="yes"
  8350. fi
  8351. fi
  8352. xorg_testset_save_CFLAGS="$CFLAGS"
  8353. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8354. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8356. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8357. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8358. $as_echo_n "(cached) " >&6
  8359. else
  8360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8361. /* end confdefs.h. */
  8362. int i;
  8363. _ACEOF
  8364. if ac_fn_c_try_compile "$LINENO"; then :
  8365. xorg_cv_cc_flag_unknown_warning_option=yes
  8366. else
  8367. xorg_cv_cc_flag_unknown_warning_option=no
  8368. fi
  8369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8370. fi
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8372. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8373. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8374. CFLAGS="$xorg_testset_save_CFLAGS"
  8375. fi
  8376. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8377. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8378. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8379. fi
  8380. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8382. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8383. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8384. $as_echo_n "(cached) " >&6
  8385. else
  8386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8387. /* end confdefs.h. */
  8388. int i;
  8389. _ACEOF
  8390. if ac_fn_c_try_compile "$LINENO"; then :
  8391. xorg_cv_cc_flag_unused_command_line_argument=yes
  8392. else
  8393. xorg_cv_cc_flag_unused_command_line_argument=no
  8394. fi
  8395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8396. fi
  8397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8398. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8399. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8400. CFLAGS="$xorg_testset_save_CFLAGS"
  8401. fi
  8402. found="no"
  8403. if test $found = "no" ; then
  8404. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8405. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8406. fi
  8407. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8408. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8409. fi
  8410. CFLAGS="$CFLAGS -Werror"
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8412. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8413. cacheid=xorg_cv_cc_flag__Werror
  8414. if eval \${$cacheid+:} false; then :
  8415. $as_echo_n "(cached) " >&6
  8416. else
  8417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8418. /* end confdefs.h. */
  8419. int i;
  8420. int
  8421. main ()
  8422. {
  8423. ;
  8424. return 0;
  8425. }
  8426. _ACEOF
  8427. if ac_fn_c_try_link "$LINENO"; then :
  8428. eval $cacheid=yes
  8429. else
  8430. eval $cacheid=no
  8431. fi
  8432. rm -f core conftest.err conftest.$ac_objext \
  8433. conftest$ac_exeext conftest.$ac_ext
  8434. fi
  8435. CFLAGS="$xorg_testset_save_CFLAGS"
  8436. eval supported=\$$cacheid
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8438. $as_echo "$supported" >&6; }
  8439. if test "$supported" = "yes" ; then
  8440. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8441. found="yes"
  8442. fi
  8443. fi
  8444. if test $found = "no" ; then
  8445. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8446. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8447. fi
  8448. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8449. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8450. fi
  8451. CFLAGS="$CFLAGS -errwarn"
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8453. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8454. cacheid=xorg_cv_cc_flag__errwarn
  8455. if eval \${$cacheid+:} false; then :
  8456. $as_echo_n "(cached) " >&6
  8457. else
  8458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8459. /* end confdefs.h. */
  8460. int i;
  8461. int
  8462. main ()
  8463. {
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. if ac_fn_c_try_link "$LINENO"; then :
  8469. eval $cacheid=yes
  8470. else
  8471. eval $cacheid=no
  8472. fi
  8473. rm -f core conftest.err conftest.$ac_objext \
  8474. conftest$ac_exeext conftest.$ac_ext
  8475. fi
  8476. CFLAGS="$xorg_testset_save_CFLAGS"
  8477. eval supported=\$$cacheid
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8479. $as_echo "$supported" >&6; }
  8480. if test "$supported" = "yes" ; then
  8481. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8482. found="yes"
  8483. fi
  8484. fi
  8485. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8486. # activate it with -Werror, so we add it here explicitly.
  8487. xorg_testset_save_CFLAGS="$CFLAGS"
  8488. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8489. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8491. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8492. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8493. $as_echo_n "(cached) " >&6
  8494. else
  8495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8496. /* end confdefs.h. */
  8497. int i;
  8498. _ACEOF
  8499. if ac_fn_c_try_compile "$LINENO"; then :
  8500. xorg_cv_cc_flag_unknown_warning_option=yes
  8501. else
  8502. xorg_cv_cc_flag_unknown_warning_option=no
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8505. fi
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8507. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8508. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8509. CFLAGS="$xorg_testset_save_CFLAGS"
  8510. fi
  8511. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8512. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8513. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8514. fi
  8515. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8517. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8518. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8519. $as_echo_n "(cached) " >&6
  8520. else
  8521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8522. /* end confdefs.h. */
  8523. int i;
  8524. _ACEOF
  8525. if ac_fn_c_try_compile "$LINENO"; then :
  8526. xorg_cv_cc_flag_unused_command_line_argument=yes
  8527. else
  8528. xorg_cv_cc_flag_unused_command_line_argument=no
  8529. fi
  8530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8531. fi
  8532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8533. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8534. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8535. CFLAGS="$xorg_testset_save_CFLAGS"
  8536. fi
  8537. found="no"
  8538. if test $found = "no" ; then
  8539. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8540. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8541. fi
  8542. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8543. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8544. fi
  8545. CFLAGS="$CFLAGS -Werror=attributes"
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8547. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8548. cacheid=xorg_cv_cc_flag__Werror_attributes
  8549. if eval \${$cacheid+:} false; then :
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8553. /* end confdefs.h. */
  8554. int i;
  8555. int
  8556. main ()
  8557. {
  8558. ;
  8559. return 0;
  8560. }
  8561. _ACEOF
  8562. if ac_fn_c_try_link "$LINENO"; then :
  8563. eval $cacheid=yes
  8564. else
  8565. eval $cacheid=no
  8566. fi
  8567. rm -f core conftest.err conftest.$ac_objext \
  8568. conftest$ac_exeext conftest.$ac_ext
  8569. fi
  8570. CFLAGS="$xorg_testset_save_CFLAGS"
  8571. eval supported=\$$cacheid
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8573. $as_echo "$supported" >&6; }
  8574. if test "$supported" = "yes" ; then
  8575. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8576. found="yes"
  8577. fi
  8578. fi
  8579. if test "x$STRICT_COMPILE" = "xyes"; then
  8580. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8581. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8582. fi
  8583. cat >>confdefs.h <<_ACEOF
  8584. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8585. _ACEOF
  8586. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8587. if test "x$PVM" = "x"; then
  8588. PVM="0"
  8589. fi
  8590. cat >>confdefs.h <<_ACEOF
  8591. #define PACKAGE_VERSION_MINOR $PVM
  8592. _ACEOF
  8593. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8594. if test "x$PVP" = "x"; then
  8595. PVP="0"
  8596. fi
  8597. cat >>confdefs.h <<_ACEOF
  8598. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8599. _ACEOF
  8600. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8601. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8602. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8603. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8604. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8605. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8606. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8607. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8608. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8609. if test x$APP_MAN_SUFFIX = x ; then
  8610. APP_MAN_SUFFIX=1
  8611. fi
  8612. if test x$APP_MAN_DIR = x ; then
  8613. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8614. fi
  8615. if test x$LIB_MAN_SUFFIX = x ; then
  8616. LIB_MAN_SUFFIX=3
  8617. fi
  8618. if test x$LIB_MAN_DIR = x ; then
  8619. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8620. fi
  8621. if test x$FILE_MAN_SUFFIX = x ; then
  8622. case $host_os in
  8623. solaris*) FILE_MAN_SUFFIX=4 ;;
  8624. *) FILE_MAN_SUFFIX=5 ;;
  8625. esac
  8626. fi
  8627. if test x$FILE_MAN_DIR = x ; then
  8628. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8629. fi
  8630. if test x$MISC_MAN_SUFFIX = x ; then
  8631. case $host_os in
  8632. solaris*) MISC_MAN_SUFFIX=5 ;;
  8633. *) MISC_MAN_SUFFIX=7 ;;
  8634. esac
  8635. fi
  8636. if test x$MISC_MAN_DIR = x ; then
  8637. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8638. fi
  8639. if test x$DRIVER_MAN_SUFFIX = x ; then
  8640. case $host_os in
  8641. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8642. *) DRIVER_MAN_SUFFIX=4 ;;
  8643. esac
  8644. fi
  8645. if test x$DRIVER_MAN_DIR = x ; then
  8646. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8647. fi
  8648. if test x$ADMIN_MAN_SUFFIX = x ; then
  8649. case $host_os in
  8650. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8651. *) ADMIN_MAN_SUFFIX=8 ;;
  8652. esac
  8653. fi
  8654. if test x$ADMIN_MAN_DIR = x ; then
  8655. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8656. fi
  8657. XORG_MAN_PAGE="X Version 11"
  8658. MAN_SUBSTS="\
  8659. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8660. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8661. -e 's|__xservername__|Xorg|g' \
  8662. -e 's|__xconfigfile__|xorg.conf|g' \
  8663. -e 's|__projectroot__|\$(prefix)|g' \
  8664. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8665. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8666. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8667. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8668. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8669. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8670. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8671. # Check whether --enable-silent-rules was given.
  8672. if test "${enable_silent_rules+set}" = set; then :
  8673. enableval=$enable_silent_rules;
  8674. fi
  8675. case $enable_silent_rules in # (((
  8676. yes) AM_DEFAULT_VERBOSITY=0;;
  8677. no) AM_DEFAULT_VERBOSITY=1;;
  8678. *) AM_DEFAULT_VERBOSITY=0;;
  8679. esac
  8680. am_make=${MAKE-make}
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8682. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8683. if ${am_cv_make_support_nested_variables+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. if $as_echo 'TRUE=$(BAR$(V))
  8687. BAR0=false
  8688. BAR1=true
  8689. V=1
  8690. am__doit:
  8691. @$(TRUE)
  8692. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8693. am_cv_make_support_nested_variables=yes
  8694. else
  8695. am_cv_make_support_nested_variables=no
  8696. fi
  8697. fi
  8698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8699. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8700. if test $am_cv_make_support_nested_variables = yes; then
  8701. AM_V='$(V)'
  8702. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8703. else
  8704. AM_V=$AM_DEFAULT_VERBOSITY
  8705. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8706. fi
  8707. AM_BACKSLASH='\'
  8708. # Checks for pkg-config packages
  8709. pkg_failed=no
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5
  8711. $as_echo_n "checking for XDPYINFO... " >&6; }
  8712. if test -n "$XDPYINFO_CFLAGS"; then
  8713. pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS"
  8714. elif test -n "$PKG_CONFIG"; then
  8715. if test -n "$PKG_CONFIG" && \
  8716. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
  8717. ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
  8718. ac_status=$?
  8719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8720. test $ac_status = 0; }; then
  8721. pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
  8722. test "x$?" != "x0" && pkg_failed=yes
  8723. else
  8724. pkg_failed=yes
  8725. fi
  8726. else
  8727. pkg_failed=untried
  8728. fi
  8729. if test -n "$XDPYINFO_LIBS"; then
  8730. pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS"
  8731. elif test -n "$PKG_CONFIG"; then
  8732. if test -n "$PKG_CONFIG" && \
  8733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
  8734. ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
  8735. ac_status=$?
  8736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8737. test $ac_status = 0; }; then
  8738. pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
  8739. test "x$?" != "x0" && pkg_failed=yes
  8740. else
  8741. pkg_failed=yes
  8742. fi
  8743. else
  8744. pkg_failed=untried
  8745. fi
  8746. if test $pkg_failed = yes; then
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8748. $as_echo "no" >&6; }
  8749. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8750. _pkg_short_errors_supported=yes
  8751. else
  8752. _pkg_short_errors_supported=no
  8753. fi
  8754. if test $_pkg_short_errors_supported = yes; then
  8755. XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
  8756. else
  8757. XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
  8758. fi
  8759. # Put the nasty error message in config.log where it belongs
  8760. echo "$XDPYINFO_PKG_ERRORS" >&5
  8761. as_fn_error $? "Package requirements (xext x11 xtst x11-xcb xcb xproto >= 7.0.22) were not met:
  8762. $XDPYINFO_PKG_ERRORS
  8763. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8764. installed software in a non-standard prefix.
  8765. Alternatively, you may set the environment variables XDPYINFO_CFLAGS
  8766. and XDPYINFO_LIBS to avoid the need to call pkg-config.
  8767. See the pkg-config man page for more details." "$LINENO" 5
  8768. elif test $pkg_failed = untried; then
  8769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8770. $as_echo "no" >&6; }
  8771. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8773. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8774. is in your PATH or set the PKG_CONFIG environment variable to the full
  8775. path to pkg-config.
  8776. Alternatively, you may set the environment variables XDPYINFO_CFLAGS
  8777. and XDPYINFO_LIBS to avoid the need to call pkg-config.
  8778. See the pkg-config man page for more details.
  8779. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8780. See \`config.log' for more details" "$LINENO" 5; }
  8781. else
  8782. XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS
  8783. XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8785. $as_echo "yes" >&6; }
  8786. fi
  8787. # This is used below to allow <X11/Xlib.h> to be found
  8788. pkg_failed=no
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5
  8790. $as_echo_n "checking for DPY_X11... " >&6; }
  8791. if test -n "$DPY_X11_CFLAGS"; then
  8792. pkg_cv_DPY_X11_CFLAGS="$DPY_X11_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 \"x11\""; } >&5
  8796. ($PKG_CONFIG --exists --print-errors "x11") 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_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 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 "$DPY_X11_LIBS"; then
  8809. pkg_cv_DPY_X11_LIBS="$DPY_X11_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 \"x11\""; } >&5
  8813. ($PKG_CONFIG --exists --print-errors "x11") 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_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 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. DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
  8835. else
  8836. DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
  8837. fi
  8838. # Put the nasty error message in config.log where it belongs
  8839. echo "$DPY_X11_PKG_ERRORS" >&5
  8840. as_fn_error $? "Package requirements (x11) were not met:
  8841. $DPY_X11_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 DPY_X11_CFLAGS
  8845. and DPY_X11_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 DPY_X11_CFLAGS
  8856. and DPY_X11_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. DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS
  8862. DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8864. $as_echo "yes" >&6; }
  8865. fi
  8866. pkg_failed=no
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5
  8868. $as_echo_n "checking for DPY_XEXT... " >&6; }
  8869. if test -n "$DPY_XEXT_CFLAGS"; then
  8870. pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS"
  8871. elif test -n "$PKG_CONFIG"; then
  8872. if test -n "$PKG_CONFIG" && \
  8873. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  8874. ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  8875. ac_status=$?
  8876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8877. test $ac_status = 0; }; then
  8878. pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
  8879. test "x$?" != "x0" && pkg_failed=yes
  8880. else
  8881. pkg_failed=yes
  8882. fi
  8883. else
  8884. pkg_failed=untried
  8885. fi
  8886. if test -n "$DPY_XEXT_LIBS"; then
  8887. pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS"
  8888. elif test -n "$PKG_CONFIG"; then
  8889. if test -n "$PKG_CONFIG" && \
  8890. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  8891. ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  8892. ac_status=$?
  8893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8894. test $ac_status = 0; }; then
  8895. pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
  8896. test "x$?" != "x0" && pkg_failed=yes
  8897. else
  8898. pkg_failed=yes
  8899. fi
  8900. else
  8901. pkg_failed=untried
  8902. fi
  8903. if test $pkg_failed = yes; then
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8905. $as_echo "no" >&6; }
  8906. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8907. _pkg_short_errors_supported=yes
  8908. else
  8909. _pkg_short_errors_supported=no
  8910. fi
  8911. if test $_pkg_short_errors_supported = yes; then
  8912. DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
  8913. else
  8914. DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
  8915. fi
  8916. # Put the nasty error message in config.log where it belongs
  8917. echo "$DPY_XEXT_PKG_ERRORS" >&5
  8918. echo "not found"
  8919. elif test $pkg_failed = untried; then
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8921. $as_echo "no" >&6; }
  8922. echo "not found"
  8923. else
  8924. DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS
  8925. DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS
  8926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8927. $as_echo "yes" >&6; }
  8928. SAVE_CPPFLAGS="$CPPFLAGS"
  8929. CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS"
  8930. for ac_header in X11/extensions/multibuf.h X11/extensions/XShm.h
  8931. do :
  8932. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8933. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
  8934. "
  8935. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8936. cat >>confdefs.h <<_ACEOF
  8937. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8938. _ACEOF
  8939. fi
  8940. done
  8941. CPPFLAGS="$SAVE_CPPFLAGS"
  8942. fi
  8943. pkg_failed=no
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5
  8945. $as_echo_n "checking for DPY_XKB... " >&6; }
  8946. if test -n "$DPY_XKB_CFLAGS"; then
  8947. pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS"
  8948. elif test -n "$PKG_CONFIG"; then
  8949. if test -n "$PKG_CONFIG" && \
  8950. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  8951. ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  8952. ac_status=$?
  8953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8954. test $ac_status = 0; }; then
  8955. pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
  8956. test "x$?" != "x0" && pkg_failed=yes
  8957. else
  8958. pkg_failed=yes
  8959. fi
  8960. else
  8961. pkg_failed=untried
  8962. fi
  8963. if test -n "$DPY_XKB_LIBS"; then
  8964. pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS"
  8965. elif test -n "$PKG_CONFIG"; then
  8966. if test -n "$PKG_CONFIG" && \
  8967. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  8968. ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  8969. ac_status=$?
  8970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8971. test $ac_status = 0; }; then
  8972. pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
  8973. test "x$?" != "x0" && pkg_failed=yes
  8974. else
  8975. pkg_failed=yes
  8976. fi
  8977. else
  8978. pkg_failed=untried
  8979. fi
  8980. if test $pkg_failed = yes; then
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8982. $as_echo "no" >&6; }
  8983. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8984. _pkg_short_errors_supported=yes
  8985. else
  8986. _pkg_short_errors_supported=no
  8987. fi
  8988. if test $_pkg_short_errors_supported = yes; then
  8989. DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
  8990. else
  8991. DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
  8992. fi
  8993. # Put the nasty error message in config.log where it belongs
  8994. echo "$DPY_XKB_PKG_ERRORS" >&5
  8995. echo "not found"
  8996. elif test $pkg_failed = untried; then
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8998. $as_echo "no" >&6; }
  8999. echo "not found"
  9000. else
  9001. DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS
  9002. DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9004. $as_echo "yes" >&6; }
  9005. SAVE_CPPFLAGS="$CPPFLAGS"
  9006. CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS"
  9007. for ac_header in X11/extensions/XKB.h X11/XKBlib.h
  9008. do :
  9009. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9010. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
  9011. "
  9012. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9013. cat >>confdefs.h <<_ACEOF
  9014. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9015. _ACEOF
  9016. fi
  9017. done
  9018. CPPFLAGS="$SAVE_CPPFLAGS"
  9019. fi
  9020. pkg_failed=no
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5
  9022. $as_echo_n "checking for DPY_XF86VIDMODE... " >&6; }
  9023. if test -n "$DPY_XF86VIDMODE_CFLAGS"; then
  9024. pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS"
  9025. elif test -n "$PKG_CONFIG"; then
  9026. if test -n "$PKG_CONFIG" && \
  9027. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  9028. ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  9029. ac_status=$?
  9030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9031. test $ac_status = 0; }; then
  9032. pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
  9033. test "x$?" != "x0" && pkg_failed=yes
  9034. else
  9035. pkg_failed=yes
  9036. fi
  9037. else
  9038. pkg_failed=untried
  9039. fi
  9040. if test -n "$DPY_XF86VIDMODE_LIBS"; then
  9041. pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS"
  9042. elif test -n "$PKG_CONFIG"; then
  9043. if test -n "$PKG_CONFIG" && \
  9044. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  9045. ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  9046. ac_status=$?
  9047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9048. test $ac_status = 0; }; then
  9049. pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
  9050. test "x$?" != "x0" && pkg_failed=yes
  9051. else
  9052. pkg_failed=yes
  9053. fi
  9054. else
  9055. pkg_failed=untried
  9056. fi
  9057. if test $pkg_failed = yes; then
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9059. $as_echo "no" >&6; }
  9060. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9061. _pkg_short_errors_supported=yes
  9062. else
  9063. _pkg_short_errors_supported=no
  9064. fi
  9065. if test $_pkg_short_errors_supported = yes; then
  9066. DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
  9067. else
  9068. DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
  9069. fi
  9070. # Put the nasty error message in config.log where it belongs
  9071. echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5
  9072. echo "not found"
  9073. elif test $pkg_failed = untried; then
  9074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9075. $as_echo "no" >&6; }
  9076. echo "not found"
  9077. else
  9078. DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS
  9079. DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9081. $as_echo "yes" >&6; }
  9082. SAVE_CPPFLAGS="$CPPFLAGS"
  9083. CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS"
  9084. for ac_header in X11/extensions/xf86vmode.h X11/extensions/xf86vmstr.h X11/extensions/xf86vmproto.h
  9085. do :
  9086. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9087. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
  9088. "
  9089. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9090. cat >>confdefs.h <<_ACEOF
  9091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9092. _ACEOF
  9093. fi
  9094. done
  9095. CPPFLAGS="$SAVE_CPPFLAGS"
  9096. fi
  9097. # Check whether --with-dga was given.
  9098. if test "${with_dga+set}" = set; then :
  9099. withval=$with_dga; USE_DGA="$withval"
  9100. else
  9101. USE_DGA="yes"
  9102. fi
  9103. if test "x$USE_DGA" != "xno" ; then
  9104. pkg_failed=no
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5
  9106. $as_echo_n "checking for DPY_XF86DGA... " >&6; }
  9107. if test -n "$DPY_XF86DGA_CFLAGS"; then
  9108. pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS"
  9109. elif test -n "$PKG_CONFIG"; then
  9110. if test -n "$PKG_CONFIG" && \
  9111. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
  9112. ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
  9113. ac_status=$?
  9114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9115. test $ac_status = 0; }; then
  9116. pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
  9117. test "x$?" != "x0" && pkg_failed=yes
  9118. else
  9119. pkg_failed=yes
  9120. fi
  9121. else
  9122. pkg_failed=untried
  9123. fi
  9124. if test -n "$DPY_XF86DGA_LIBS"; then
  9125. pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS"
  9126. elif test -n "$PKG_CONFIG"; then
  9127. if test -n "$PKG_CONFIG" && \
  9128. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
  9129. ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
  9130. ac_status=$?
  9131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9132. test $ac_status = 0; }; then
  9133. pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
  9134. test "x$?" != "x0" && pkg_failed=yes
  9135. else
  9136. pkg_failed=yes
  9137. fi
  9138. else
  9139. pkg_failed=untried
  9140. fi
  9141. if test $pkg_failed = yes; then
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9143. $as_echo "no" >&6; }
  9144. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9145. _pkg_short_errors_supported=yes
  9146. else
  9147. _pkg_short_errors_supported=no
  9148. fi
  9149. if test $_pkg_short_errors_supported = yes; then
  9150. DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86dga" 2>&1`
  9151. else
  9152. DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86dga" 2>&1`
  9153. fi
  9154. # Put the nasty error message in config.log where it belongs
  9155. echo "$DPY_XF86DGA_PKG_ERRORS" >&5
  9156. echo "not found"
  9157. elif test $pkg_failed = untried; then
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9159. $as_echo "no" >&6; }
  9160. echo "not found"
  9161. else
  9162. DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS
  9163. DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9165. $as_echo "yes" >&6; }
  9166. SAVE_CPPFLAGS="$CPPFLAGS"
  9167. CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS"
  9168. for ac_header in X11/extensions/Xxf86dga.h X11/extensions/xf86dgaproto.h X11/extensions/xf86dga.h X11/extensions/xf86dgastr.h
  9169. do :
  9170. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9171. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
  9172. #include <X11/Xproto.h>
  9173. "
  9174. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9175. cat >>confdefs.h <<_ACEOF
  9176. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9177. _ACEOF
  9178. fi
  9179. done
  9180. CPPFLAGS="$SAVE_CPPFLAGS"
  9181. fi
  9182. else
  9183. echo "without dga"
  9184. fi
  9185. # Check whether --with-xf86misc was given.
  9186. if test "${with_xf86misc+set}" = set; then :
  9187. withval=$with_xf86misc; USE_XF86MISC="$withval"
  9188. else
  9189. USE_XF86MISC="yes"
  9190. fi
  9191. if test "x$USE_XF86MISC" != "xno" ; then
  9192. pkg_failed=no
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5
  9194. $as_echo_n "checking for DPY_XF86MISC... " >&6; }
  9195. if test -n "$DPY_XF86MISC_CFLAGS"; then
  9196. pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS"
  9197. elif test -n "$PKG_CONFIG"; then
  9198. if test -n "$PKG_CONFIG" && \
  9199. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
  9200. ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
  9201. ac_status=$?
  9202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9203. test $ac_status = 0; }; then
  9204. pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
  9205. test "x$?" != "x0" && pkg_failed=yes
  9206. else
  9207. pkg_failed=yes
  9208. fi
  9209. else
  9210. pkg_failed=untried
  9211. fi
  9212. if test -n "$DPY_XF86MISC_LIBS"; then
  9213. pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS"
  9214. elif test -n "$PKG_CONFIG"; then
  9215. if test -n "$PKG_CONFIG" && \
  9216. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
  9217. ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
  9218. ac_status=$?
  9219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9220. test $ac_status = 0; }; then
  9221. pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
  9222. test "x$?" != "x0" && pkg_failed=yes
  9223. else
  9224. pkg_failed=yes
  9225. fi
  9226. else
  9227. pkg_failed=untried
  9228. fi
  9229. if test $pkg_failed = yes; then
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9231. $as_echo "no" >&6; }
  9232. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9233. _pkg_short_errors_supported=yes
  9234. else
  9235. _pkg_short_errors_supported=no
  9236. fi
  9237. if test $_pkg_short_errors_supported = yes; then
  9238. DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
  9239. else
  9240. DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
  9241. fi
  9242. # Put the nasty error message in config.log where it belongs
  9243. echo "$DPY_XF86MISC_PKG_ERRORS" >&5
  9244. echo "not found"
  9245. elif test $pkg_failed = untried; then
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9247. $as_echo "no" >&6; }
  9248. echo "not found"
  9249. else
  9250. DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS
  9251. DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9253. $as_echo "yes" >&6; }
  9254. SAVE_CPPFLAGS="$CPPFLAGS"
  9255. CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS"
  9256. for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
  9257. do :
  9258. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9259. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
  9260. #include <X11/Xproto.h>
  9261. "
  9262. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9263. cat >>confdefs.h <<_ACEOF
  9264. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9265. _ACEOF
  9266. fi
  9267. done
  9268. CPPFLAGS="$SAVE_CPPFLAGS"
  9269. fi
  9270. else
  9271. echo "without xf86misc"
  9272. fi
  9273. pkg_failed=no
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5
  9275. $as_echo_n "checking for DPY_XINPUT... " >&6; }
  9276. if test -n "$DPY_XINPUT_CFLAGS"; then
  9277. pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS"
  9278. elif test -n "$PKG_CONFIG"; then
  9279. if test -n "$PKG_CONFIG" && \
  9280. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
  9281. ($PKG_CONFIG --exists --print-errors "xi") 2>&5
  9282. ac_status=$?
  9283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9284. test $ac_status = 0; }; then
  9285. pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null`
  9286. test "x$?" != "x0" && pkg_failed=yes
  9287. else
  9288. pkg_failed=yes
  9289. fi
  9290. else
  9291. pkg_failed=untried
  9292. fi
  9293. if test -n "$DPY_XINPUT_LIBS"; then
  9294. pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS"
  9295. elif test -n "$PKG_CONFIG"; then
  9296. if test -n "$PKG_CONFIG" && \
  9297. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
  9298. ($PKG_CONFIG --exists --print-errors "xi") 2>&5
  9299. ac_status=$?
  9300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9301. test $ac_status = 0; }; then
  9302. pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null`
  9303. test "x$?" != "x0" && pkg_failed=yes
  9304. else
  9305. pkg_failed=yes
  9306. fi
  9307. else
  9308. pkg_failed=untried
  9309. fi
  9310. if test $pkg_failed = yes; then
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9312. $as_echo "no" >&6; }
  9313. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9314. _pkg_short_errors_supported=yes
  9315. else
  9316. _pkg_short_errors_supported=no
  9317. fi
  9318. if test $_pkg_short_errors_supported = yes; then
  9319. DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi" 2>&1`
  9320. else
  9321. DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi" 2>&1`
  9322. fi
  9323. # Put the nasty error message in config.log where it belongs
  9324. echo "$DPY_XINPUT_PKG_ERRORS" >&5
  9325. echo "not found"
  9326. elif test $pkg_failed = untried; then
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9328. $as_echo "no" >&6; }
  9329. echo "not found"
  9330. else
  9331. DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS
  9332. DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9334. $as_echo "yes" >&6; }
  9335. SAVE_CPPFLAGS="$CPPFLAGS"
  9336. CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS"
  9337. for ac_header in X11/extensions/XInput.h
  9338. do :
  9339. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
  9340. "
  9341. if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
  9342. cat >>confdefs.h <<_ACEOF
  9343. #define HAVE_X11_EXTENSIONS_XINPUT_H 1
  9344. _ACEOF
  9345. fi
  9346. done
  9347. CPPFLAGS="$SAVE_CPPFLAGS"
  9348. fi
  9349. pkg_failed=no
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5
  9351. $as_echo_n "checking for DPY_XRENDER... " >&6; }
  9352. if test -n "$DPY_XRENDER_CFLAGS"; then
  9353. pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS"
  9354. elif test -n "$PKG_CONFIG"; then
  9355. if test -n "$PKG_CONFIG" && \
  9356. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
  9357. ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
  9358. ac_status=$?
  9359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9360. test $ac_status = 0; }; then
  9361. pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
  9362. test "x$?" != "x0" && pkg_failed=yes
  9363. else
  9364. pkg_failed=yes
  9365. fi
  9366. else
  9367. pkg_failed=untried
  9368. fi
  9369. if test -n "$DPY_XRENDER_LIBS"; then
  9370. pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS"
  9371. elif test -n "$PKG_CONFIG"; then
  9372. if test -n "$PKG_CONFIG" && \
  9373. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
  9374. ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
  9375. ac_status=$?
  9376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9377. test $ac_status = 0; }; then
  9378. pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
  9379. test "x$?" != "x0" && pkg_failed=yes
  9380. else
  9381. pkg_failed=yes
  9382. fi
  9383. else
  9384. pkg_failed=untried
  9385. fi
  9386. if test $pkg_failed = yes; then
  9387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9388. $as_echo "no" >&6; }
  9389. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9390. _pkg_short_errors_supported=yes
  9391. else
  9392. _pkg_short_errors_supported=no
  9393. fi
  9394. if test $_pkg_short_errors_supported = yes; then
  9395. DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
  9396. else
  9397. DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
  9398. fi
  9399. # Put the nasty error message in config.log where it belongs
  9400. echo "$DPY_XRENDER_PKG_ERRORS" >&5
  9401. echo "not found"
  9402. elif test $pkg_failed = untried; then
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9404. $as_echo "no" >&6; }
  9405. echo "not found"
  9406. else
  9407. DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS
  9408. DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9410. $as_echo "yes" >&6; }
  9411. SAVE_CPPFLAGS="$CPPFLAGS"
  9412. CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS"
  9413. for ac_header in X11/extensions/Xrender.h
  9414. do :
  9415. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
  9416. "
  9417. if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
  9418. cat >>confdefs.h <<_ACEOF
  9419. #define HAVE_X11_EXTENSIONS_XRENDER_H 1
  9420. _ACEOF
  9421. fi
  9422. done
  9423. CPPFLAGS="$SAVE_CPPFLAGS"
  9424. fi
  9425. pkg_failed=no
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5
  9427. $as_echo_n "checking for DPY_XCOMPOSITE... " >&6; }
  9428. if test -n "$DPY_XCOMPOSITE_CFLAGS"; then
  9429. pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS"
  9430. elif test -n "$PKG_CONFIG"; then
  9431. if test -n "$PKG_CONFIG" && \
  9432. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
  9433. ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
  9434. ac_status=$?
  9435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9436. test $ac_status = 0; }; then
  9437. pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null`
  9438. test "x$?" != "x0" && pkg_failed=yes
  9439. else
  9440. pkg_failed=yes
  9441. fi
  9442. else
  9443. pkg_failed=untried
  9444. fi
  9445. if test -n "$DPY_XCOMPOSITE_LIBS"; then
  9446. pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS"
  9447. elif test -n "$PKG_CONFIG"; then
  9448. if test -n "$PKG_CONFIG" && \
  9449. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
  9450. ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
  9451. ac_status=$?
  9452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9453. test $ac_status = 0; }; then
  9454. pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null`
  9455. test "x$?" != "x0" && pkg_failed=yes
  9456. else
  9457. pkg_failed=yes
  9458. fi
  9459. else
  9460. pkg_failed=untried
  9461. fi
  9462. if test $pkg_failed = yes; then
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9464. $as_echo "no" >&6; }
  9465. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9466. _pkg_short_errors_supported=yes
  9467. else
  9468. _pkg_short_errors_supported=no
  9469. fi
  9470. if test $_pkg_short_errors_supported = yes; then
  9471. DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcomposite" 2>&1`
  9472. else
  9473. DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcomposite" 2>&1`
  9474. fi
  9475. # Put the nasty error message in config.log where it belongs
  9476. echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5
  9477. echo "not found"
  9478. elif test $pkg_failed = untried; then
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9480. $as_echo "no" >&6; }
  9481. echo "not found"
  9482. else
  9483. DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS
  9484. DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9486. $as_echo "yes" >&6; }
  9487. SAVE_CPPFLAGS="$CPPFLAGS"
  9488. CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS"
  9489. for ac_header in X11/extensions/Xcomposite.h
  9490. do :
  9491. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h>
  9492. "
  9493. if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then :
  9494. cat >>confdefs.h <<_ACEOF
  9495. #define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1
  9496. _ACEOF
  9497. fi
  9498. done
  9499. CPPFLAGS="$SAVE_CPPFLAGS"
  9500. fi
  9501. # Check whether --with-xinerama was given.
  9502. if test "${with_xinerama+set}" = set; then :
  9503. withval=$with_xinerama; USE_XINERAMA="$withval"
  9504. else
  9505. USE_XINERAMA="yes"
  9506. fi
  9507. if test "x$USE_XINERAMA" != "xno" ; then
  9508. pkg_failed=no
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5
  9510. $as_echo_n "checking for DPY_XINERAMA... " >&6; }
  9511. if test -n "$DPY_XINERAMA_CFLAGS"; then
  9512. pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS"
  9513. elif test -n "$PKG_CONFIG"; then
  9514. if test -n "$PKG_CONFIG" && \
  9515. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
  9516. ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
  9517. ac_status=$?
  9518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9519. test $ac_status = 0; }; then
  9520. pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
  9521. test "x$?" != "x0" && pkg_failed=yes
  9522. else
  9523. pkg_failed=yes
  9524. fi
  9525. else
  9526. pkg_failed=untried
  9527. fi
  9528. if test -n "$DPY_XINERAMA_LIBS"; then
  9529. pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS"
  9530. elif test -n "$PKG_CONFIG"; then
  9531. if test -n "$PKG_CONFIG" && \
  9532. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
  9533. ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
  9534. ac_status=$?
  9535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9536. test $ac_status = 0; }; then
  9537. pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
  9538. test "x$?" != "x0" && pkg_failed=yes
  9539. else
  9540. pkg_failed=yes
  9541. fi
  9542. else
  9543. pkg_failed=untried
  9544. fi
  9545. if test $pkg_failed = yes; then
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9547. $as_echo "no" >&6; }
  9548. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9549. _pkg_short_errors_supported=yes
  9550. else
  9551. _pkg_short_errors_supported=no
  9552. fi
  9553. if test $_pkg_short_errors_supported = yes; then
  9554. DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
  9555. else
  9556. DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
  9557. fi
  9558. # Put the nasty error message in config.log where it belongs
  9559. echo "$DPY_XINERAMA_PKG_ERRORS" >&5
  9560. echo "not found"
  9561. elif test $pkg_failed = untried; then
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9563. $as_echo "no" >&6; }
  9564. echo "not found"
  9565. else
  9566. DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS
  9567. DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS
  9568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9569. $as_echo "yes" >&6; }
  9570. SAVE_CPPFLAGS="$CPPFLAGS"
  9571. CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS"
  9572. for ac_header in X11/extensions/Xinerama.h
  9573. do :
  9574. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  9575. "
  9576. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  9577. cat >>confdefs.h <<_ACEOF
  9578. #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
  9579. _ACEOF
  9580. fi
  9581. done
  9582. CPPFLAGS="$SAVE_CPPFLAGS"
  9583. fi
  9584. else
  9585. echo "without xinerama"
  9586. fi
  9587. # Check whether --with-dmx was given.
  9588. if test "${with_dmx+set}" = set; then :
  9589. withval=$with_dmx; USE_DMX="$withval"
  9590. else
  9591. USE_DMX="yes"
  9592. fi
  9593. if test "x$USE_DMX" != "xno" ; then
  9594. pkg_failed=no
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5
  9596. $as_echo_n "checking for DPY_DMX... " >&6; }
  9597. if test -n "$DPY_DMX_CFLAGS"; then
  9598. pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS"
  9599. elif test -n "$PKG_CONFIG"; then
  9600. if test -n "$PKG_CONFIG" && \
  9601. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
  9602. ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
  9603. ac_status=$?
  9604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9605. test $ac_status = 0; }; then
  9606. pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null`
  9607. test "x$?" != "x0" && pkg_failed=yes
  9608. else
  9609. pkg_failed=yes
  9610. fi
  9611. else
  9612. pkg_failed=untried
  9613. fi
  9614. if test -n "$DPY_DMX_LIBS"; then
  9615. pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS"
  9616. elif test -n "$PKG_CONFIG"; then
  9617. if test -n "$PKG_CONFIG" && \
  9618. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
  9619. ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
  9620. ac_status=$?
  9621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9622. test $ac_status = 0; }; then
  9623. pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null`
  9624. test "x$?" != "x0" && pkg_failed=yes
  9625. else
  9626. pkg_failed=yes
  9627. fi
  9628. else
  9629. pkg_failed=untried
  9630. fi
  9631. if test $pkg_failed = yes; then
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9633. $as_echo "no" >&6; }
  9634. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9635. _pkg_short_errors_supported=yes
  9636. else
  9637. _pkg_short_errors_supported=no
  9638. fi
  9639. if test $_pkg_short_errors_supported = yes; then
  9640. DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dmx" 2>&1`
  9641. else
  9642. DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dmx" 2>&1`
  9643. fi
  9644. # Put the nasty error message in config.log where it belongs
  9645. echo "$DPY_DMX_PKG_ERRORS" >&5
  9646. echo "not found"
  9647. elif test $pkg_failed = untried; then
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9649. $as_echo "no" >&6; }
  9650. echo "not found"
  9651. else
  9652. DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS
  9653. DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9655. $as_echo "yes" >&6; }
  9656. SAVE_CPPFLAGS="$CPPFLAGS"
  9657. CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS"
  9658. for ac_header in X11/extensions/dmxext.h
  9659. do :
  9660. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h>
  9661. "
  9662. if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes; then :
  9663. cat >>confdefs.h <<_ACEOF
  9664. #define HAVE_X11_EXTENSIONS_DMXEXT_H 1
  9665. _ACEOF
  9666. fi
  9667. done
  9668. CPPFLAGS="$SAVE_CPPFLAGS"
  9669. fi
  9670. else
  9671. echo "without dmx"
  9672. fi
  9673. pkg_failed=no
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5
  9675. $as_echo_n "checking for DPY_XTST... " >&6; }
  9676. if test -n "$DPY_XTST_CFLAGS"; then
  9677. pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS"
  9678. elif test -n "$PKG_CONFIG"; then
  9679. if test -n "$PKG_CONFIG" && \
  9680. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
  9681. ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
  9682. ac_status=$?
  9683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9684. test $ac_status = 0; }; then
  9685. pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null`
  9686. test "x$?" != "x0" && pkg_failed=yes
  9687. else
  9688. pkg_failed=yes
  9689. fi
  9690. else
  9691. pkg_failed=untried
  9692. fi
  9693. if test -n "$DPY_XTST_LIBS"; then
  9694. pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS"
  9695. elif test -n "$PKG_CONFIG"; then
  9696. if test -n "$PKG_CONFIG" && \
  9697. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
  9698. ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
  9699. ac_status=$?
  9700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9701. test $ac_status = 0; }; then
  9702. pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null`
  9703. test "x$?" != "x0" && pkg_failed=yes
  9704. else
  9705. pkg_failed=yes
  9706. fi
  9707. else
  9708. pkg_failed=untried
  9709. fi
  9710. if test $pkg_failed = yes; then
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9712. $as_echo "no" >&6; }
  9713. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9714. _pkg_short_errors_supported=yes
  9715. else
  9716. _pkg_short_errors_supported=no
  9717. fi
  9718. if test $_pkg_short_errors_supported = yes; then
  9719. DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtst" 2>&1`
  9720. else
  9721. DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtst" 2>&1`
  9722. fi
  9723. # Put the nasty error message in config.log where it belongs
  9724. echo "$DPY_XTST_PKG_ERRORS" >&5
  9725. echo "not found"
  9726. elif test $pkg_failed = untried; then
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9728. $as_echo "no" >&6; }
  9729. echo "not found"
  9730. else
  9731. DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS
  9732. DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9734. $as_echo "yes" >&6; }
  9735. SAVE_CPPFLAGS="$CPPFLAGS"
  9736. CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS"
  9737. for ac_header in X11/extensions/record.h
  9738. do :
  9739. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
  9740. "
  9741. if test "x$ac_cv_header_X11_extensions_record_h" = xyes; then :
  9742. cat >>confdefs.h <<_ACEOF
  9743. #define HAVE_X11_EXTENSIONS_RECORD_H 1
  9744. _ACEOF
  9745. fi
  9746. done
  9747. CPPFLAGS="$SAVE_CPPFLAGS"
  9748. fi
  9749. # Check whether --with-lint was given.
  9750. if test "${with_lint+set}" = set; then :
  9751. withval=$with_lint; use_lint=$withval
  9752. else
  9753. use_lint=no
  9754. fi
  9755. # Obtain platform specific info like program name and options
  9756. # The lint program on FreeBSD and NetBSD is different from the one on Solaris
  9757. case $host_os in
  9758. *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
  9759. lint_name=splint
  9760. lint_options="-badflag"
  9761. ;;
  9762. *freebsd* | *netbsd*)
  9763. lint_name=lint
  9764. lint_options="-u -b"
  9765. ;;
  9766. *solaris*)
  9767. lint_name=lint
  9768. lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
  9769. ;;
  9770. esac
  9771. # Test for the presence of the program (either guessed by the code or spelled out by the user)
  9772. if test "x$use_lint" = x"yes" ; then
  9773. # Extract the first word of "$lint_name", so it can be a program name with args.
  9774. set dummy $lint_name; ac_word=$2
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9776. $as_echo_n "checking for $ac_word... " >&6; }
  9777. if ${ac_cv_path_LINT+:} false; then :
  9778. $as_echo_n "(cached) " >&6
  9779. else
  9780. case $LINT in
  9781. [\\/]* | ?:[\\/]*)
  9782. ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
  9783. ;;
  9784. *)
  9785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9786. for as_dir in $PATH
  9787. do
  9788. IFS=$as_save_IFS
  9789. test -z "$as_dir" && as_dir=.
  9790. for ac_exec_ext in '' $ac_executable_extensions; do
  9791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9792. ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
  9793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9794. break 2
  9795. fi
  9796. done
  9797. done
  9798. IFS=$as_save_IFS
  9799. ;;
  9800. esac
  9801. fi
  9802. LINT=$ac_cv_path_LINT
  9803. if test -n "$LINT"; then
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
  9805. $as_echo "$LINT" >&6; }
  9806. else
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9808. $as_echo "no" >&6; }
  9809. fi
  9810. if test "x$LINT" = "x"; then
  9811. as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
  9812. fi
  9813. elif test "x$use_lint" = x"no" ; then
  9814. if test "x$LINT" != "x"; then
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
  9816. $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
  9817. fi
  9818. else
  9819. as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
  9820. fi
  9821. # User supplied flags override default flags
  9822. if test "x$LINT_FLAGS" != "x"; then
  9823. lint_options=$LINT_FLAGS
  9824. fi
  9825. LINT_FLAGS=$lint_options
  9826. if test "x$LINT" != x; then
  9827. LINT_TRUE=
  9828. LINT_FALSE='#'
  9829. else
  9830. LINT_TRUE='#'
  9831. LINT_FALSE=
  9832. fi
  9833. ac_config_files="$ac_config_files Makefile man/Makefile"
  9834. cat >confcache <<\_ACEOF
  9835. # This file is a shell script that caches the results of configure
  9836. # tests run on this system so they can be shared between configure
  9837. # scripts and configure runs, see configure's option --config-cache.
  9838. # It is not useful on other systems. If it contains results you don't
  9839. # want to keep, you may remove or edit it.
  9840. #
  9841. # config.status only pays attention to the cache file if you give it
  9842. # the --recheck option to rerun configure.
  9843. #
  9844. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9845. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9846. # following values.
  9847. _ACEOF
  9848. # The following way of writing the cache mishandles newlines in values,
  9849. # but we know of no workaround that is simple, portable, and efficient.
  9850. # So, we kill variables containing newlines.
  9851. # Ultrix sh set writes to stderr and can't be redirected directly,
  9852. # and sets the high bit in the cache file unless we assign to the vars.
  9853. (
  9854. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9855. eval ac_val=\$$ac_var
  9856. case $ac_val in #(
  9857. *${as_nl}*)
  9858. case $ac_var in #(
  9859. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9860. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9861. esac
  9862. case $ac_var in #(
  9863. _ | IFS | as_nl) ;; #(
  9864. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9865. *) { eval $ac_var=; unset $ac_var;} ;;
  9866. esac ;;
  9867. esac
  9868. done
  9869. (set) 2>&1 |
  9870. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9871. *${as_nl}ac_space=\ *)
  9872. # `set' does not quote correctly, so add quotes: double-quote
  9873. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9874. sed -n \
  9875. "s/'/'\\\\''/g;
  9876. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9877. ;; #(
  9878. *)
  9879. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9880. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9881. ;;
  9882. esac |
  9883. sort
  9884. ) |
  9885. sed '
  9886. /^ac_cv_env_/b end
  9887. t clear
  9888. :clear
  9889. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9890. t end
  9891. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9892. :end' >>confcache
  9893. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9894. if test -w "$cache_file"; then
  9895. if test "x$cache_file" != "x/dev/null"; then
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9897. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9898. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9899. cat confcache >"$cache_file"
  9900. else
  9901. case $cache_file in #(
  9902. */* | ?:*)
  9903. mv -f confcache "$cache_file"$$ &&
  9904. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9905. *)
  9906. mv -f confcache "$cache_file" ;;
  9907. esac
  9908. fi
  9909. fi
  9910. else
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9912. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9913. fi
  9914. fi
  9915. rm -f confcache
  9916. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9917. # Let make expand exec_prefix.
  9918. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9919. DEFS=-DHAVE_CONFIG_H
  9920. ac_libobjs=
  9921. ac_ltlibobjs=
  9922. U=
  9923. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9924. # 1. Remove the extension, and $U if already installed.
  9925. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9926. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9927. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9928. # will be set to the directory where LIBOBJS objects are built.
  9929. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9930. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9931. done
  9932. LIBOBJS=$ac_libobjs
  9933. LTLIBOBJS=$ac_ltlibobjs
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9935. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9936. if test -n "$am_sleep_pid"; then
  9937. # Hide warnings about reused PIDs.
  9938. wait $am_sleep_pid 2>/dev/null
  9939. fi
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9941. $as_echo "done" >&6; }
  9942. if test -n "$EXEEXT"; then
  9943. am__EXEEXT_TRUE=
  9944. am__EXEEXT_FALSE='#'
  9945. else
  9946. am__EXEEXT_TRUE='#'
  9947. am__EXEEXT_FALSE=
  9948. fi
  9949. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9950. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9951. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9952. fi
  9953. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9954. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9955. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9956. fi
  9957. if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
  9958. as_fn_error $? "conditional \"LINT\" was never defined.
  9959. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9960. fi
  9961. : "${CONFIG_STATUS=./config.status}"
  9962. ac_write_fail=0
  9963. ac_clean_files_save=$ac_clean_files
  9964. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9966. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9967. as_write_fail=0
  9968. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9969. #! $SHELL
  9970. # Generated by $as_me.
  9971. # Run this file to recreate the current configuration.
  9972. # Compiler output produced by configure, useful for debugging
  9973. # configure, is in config.log if it exists.
  9974. debug=false
  9975. ac_cs_recheck=false
  9976. ac_cs_silent=false
  9977. SHELL=\${CONFIG_SHELL-$SHELL}
  9978. export SHELL
  9979. _ASEOF
  9980. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9981. ## -------------------- ##
  9982. ## M4sh Initialization. ##
  9983. ## -------------------- ##
  9984. # Be more Bourne compatible
  9985. DUALCASE=1; export DUALCASE # for MKS sh
  9986. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9987. emulate sh
  9988. NULLCMD=:
  9989. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9990. # is contrary to our usage. Disable this feature.
  9991. alias -g '${1+"$@"}'='"$@"'
  9992. setopt NO_GLOB_SUBST
  9993. else
  9994. case `(set -o) 2>/dev/null` in #(
  9995. *posix*) :
  9996. set -o posix ;; #(
  9997. *) :
  9998. ;;
  9999. esac
  10000. fi
  10001. as_nl='
  10002. '
  10003. export as_nl
  10004. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10005. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10006. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10007. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10008. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10009. # but without wasting forks for bash or zsh.
  10010. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10011. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10012. as_echo='print -r --'
  10013. as_echo_n='print -rn --'
  10014. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10015. as_echo='printf %s\n'
  10016. as_echo_n='printf %s'
  10017. else
  10018. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10019. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10020. as_echo_n='/usr/ucb/echo -n'
  10021. else
  10022. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10023. as_echo_n_body='eval
  10024. arg=$1;
  10025. case $arg in #(
  10026. *"$as_nl"*)
  10027. expr "X$arg" : "X\\(.*\\)$as_nl";
  10028. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10029. esac;
  10030. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10031. '
  10032. export as_echo_n_body
  10033. as_echo_n='sh -c $as_echo_n_body as_echo'
  10034. fi
  10035. export as_echo_body
  10036. as_echo='sh -c $as_echo_body as_echo'
  10037. fi
  10038. # The user is always right.
  10039. if test "${PATH_SEPARATOR+set}" != set; then
  10040. PATH_SEPARATOR=:
  10041. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10042. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10043. PATH_SEPARATOR=';'
  10044. }
  10045. fi
  10046. # IFS
  10047. # We need space, tab and new line, in precisely that order. Quoting is
  10048. # there to prevent editors from complaining about space-tab.
  10049. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10050. # splitting by setting IFS to empty value.)
  10051. IFS=" "" $as_nl"
  10052. # Find who we are. Look in the path if we contain no directory separator.
  10053. as_myself=
  10054. case $0 in #((
  10055. *[\\/]* ) as_myself=$0 ;;
  10056. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10057. for as_dir in $PATH
  10058. do
  10059. IFS=$as_save_IFS
  10060. test -z "$as_dir" && as_dir=.
  10061. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10062. done
  10063. IFS=$as_save_IFS
  10064. ;;
  10065. esac
  10066. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10067. # in which case we are not to be found in the path.
  10068. if test "x$as_myself" = x; then
  10069. as_myself=$0
  10070. fi
  10071. if test ! -f "$as_myself"; then
  10072. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10073. exit 1
  10074. fi
  10075. # Unset variables that we do not need and which cause bugs (e.g. in
  10076. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10077. # suppresses any "Segmentation fault" message there. '((' could
  10078. # trigger a bug in pdksh 5.2.14.
  10079. for as_var in BASH_ENV ENV MAIL MAILPATH
  10080. do eval test x\${$as_var+set} = xset \
  10081. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10082. done
  10083. PS1='$ '
  10084. PS2='> '
  10085. PS4='+ '
  10086. # NLS nuisances.
  10087. LC_ALL=C
  10088. export LC_ALL
  10089. LANGUAGE=C
  10090. export LANGUAGE
  10091. # CDPATH.
  10092. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10093. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10094. # ----------------------------------------
  10095. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10096. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10097. # script with STATUS, using 1 if that was 0.
  10098. as_fn_error ()
  10099. {
  10100. as_status=$1; test $as_status -eq 0 && as_status=1
  10101. if test "$4"; then
  10102. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10103. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10104. fi
  10105. $as_echo "$as_me: error: $2" >&2
  10106. as_fn_exit $as_status
  10107. } # as_fn_error
  10108. # as_fn_set_status STATUS
  10109. # -----------------------
  10110. # Set $? to STATUS, without forking.
  10111. as_fn_set_status ()
  10112. {
  10113. return $1
  10114. } # as_fn_set_status
  10115. # as_fn_exit STATUS
  10116. # -----------------
  10117. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10118. as_fn_exit ()
  10119. {
  10120. set +e
  10121. as_fn_set_status $1
  10122. exit $1
  10123. } # as_fn_exit
  10124. # as_fn_unset VAR
  10125. # ---------------
  10126. # Portably unset VAR.
  10127. as_fn_unset ()
  10128. {
  10129. { eval $1=; unset $1;}
  10130. }
  10131. as_unset=as_fn_unset
  10132. # as_fn_append VAR VALUE
  10133. # ----------------------
  10134. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10135. # advantage of any shell optimizations that allow amortized linear growth over
  10136. # repeated appends, instead of the typical quadratic growth present in naive
  10137. # implementations.
  10138. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10139. eval 'as_fn_append ()
  10140. {
  10141. eval $1+=\$2
  10142. }'
  10143. else
  10144. as_fn_append ()
  10145. {
  10146. eval $1=\$$1\$2
  10147. }
  10148. fi # as_fn_append
  10149. # as_fn_arith ARG...
  10150. # ------------------
  10151. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10152. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10153. # must be portable across $(()) and expr.
  10154. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10155. eval 'as_fn_arith ()
  10156. {
  10157. as_val=$(( $* ))
  10158. }'
  10159. else
  10160. as_fn_arith ()
  10161. {
  10162. as_val=`expr "$@" || test $? -eq 1`
  10163. }
  10164. fi # as_fn_arith
  10165. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10166. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10167. as_expr=expr
  10168. else
  10169. as_expr=false
  10170. fi
  10171. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10172. as_basename=basename
  10173. else
  10174. as_basename=false
  10175. fi
  10176. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10177. as_dirname=dirname
  10178. else
  10179. as_dirname=false
  10180. fi
  10181. as_me=`$as_basename -- "$0" ||
  10182. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10183. X"$0" : 'X\(//\)$' \| \
  10184. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10185. $as_echo X/"$0" |
  10186. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10187. s//\1/
  10188. q
  10189. }
  10190. /^X\/\(\/\/\)$/{
  10191. s//\1/
  10192. q
  10193. }
  10194. /^X\/\(\/\).*/{
  10195. s//\1/
  10196. q
  10197. }
  10198. s/.*/./; q'`
  10199. # Avoid depending upon Character Ranges.
  10200. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10201. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10202. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10203. as_cr_digits='0123456789'
  10204. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10205. ECHO_C= ECHO_N= ECHO_T=
  10206. case `echo -n x` in #(((((
  10207. -n*)
  10208. case `echo 'xy\c'` in
  10209. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10210. xy) ECHO_C='\c';;
  10211. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10212. ECHO_T=' ';;
  10213. esac;;
  10214. *)
  10215. ECHO_N='-n';;
  10216. esac
  10217. rm -f conf$$ conf$$.exe conf$$.file
  10218. if test -d conf$$.dir; then
  10219. rm -f conf$$.dir/conf$$.file
  10220. else
  10221. rm -f conf$$.dir
  10222. mkdir conf$$.dir 2>/dev/null
  10223. fi
  10224. if (echo >conf$$.file) 2>/dev/null; then
  10225. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10226. as_ln_s='ln -s'
  10227. # ... but there are two gotchas:
  10228. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10229. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10230. # In both cases, we have to default to `cp -pR'.
  10231. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10232. as_ln_s='cp -pR'
  10233. elif ln conf$$.file conf$$ 2>/dev/null; then
  10234. as_ln_s=ln
  10235. else
  10236. as_ln_s='cp -pR'
  10237. fi
  10238. else
  10239. as_ln_s='cp -pR'
  10240. fi
  10241. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10242. rmdir conf$$.dir 2>/dev/null
  10243. # as_fn_mkdir_p
  10244. # -------------
  10245. # Create "$as_dir" as a directory, including parents if necessary.
  10246. as_fn_mkdir_p ()
  10247. {
  10248. case $as_dir in #(
  10249. -*) as_dir=./$as_dir;;
  10250. esac
  10251. test -d "$as_dir" || eval $as_mkdir_p || {
  10252. as_dirs=
  10253. while :; do
  10254. case $as_dir in #(
  10255. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10256. *) as_qdir=$as_dir;;
  10257. esac
  10258. as_dirs="'$as_qdir' $as_dirs"
  10259. as_dir=`$as_dirname -- "$as_dir" ||
  10260. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10261. X"$as_dir" : 'X\(//\)[^/]' \| \
  10262. X"$as_dir" : 'X\(//\)$' \| \
  10263. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10264. $as_echo X"$as_dir" |
  10265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10266. s//\1/
  10267. q
  10268. }
  10269. /^X\(\/\/\)[^/].*/{
  10270. s//\1/
  10271. q
  10272. }
  10273. /^X\(\/\/\)$/{
  10274. s//\1/
  10275. q
  10276. }
  10277. /^X\(\/\).*/{
  10278. s//\1/
  10279. q
  10280. }
  10281. s/.*/./; q'`
  10282. test -d "$as_dir" && break
  10283. done
  10284. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10285. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10286. } # as_fn_mkdir_p
  10287. if mkdir -p . 2>/dev/null; then
  10288. as_mkdir_p='mkdir -p "$as_dir"'
  10289. else
  10290. test -d ./-p && rmdir ./-p
  10291. as_mkdir_p=false
  10292. fi
  10293. # as_fn_executable_p FILE
  10294. # -----------------------
  10295. # Test if FILE is an executable regular file.
  10296. as_fn_executable_p ()
  10297. {
  10298. test -f "$1" && test -x "$1"
  10299. } # as_fn_executable_p
  10300. as_test_x='test -x'
  10301. as_executable_p=as_fn_executable_p
  10302. # Sed expression to map a string onto a valid CPP name.
  10303. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10304. # Sed expression to map a string onto a valid variable name.
  10305. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10306. exec 6>&1
  10307. ## ----------------------------------- ##
  10308. ## Main body of $CONFIG_STATUS script. ##
  10309. ## ----------------------------------- ##
  10310. _ASEOF
  10311. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10312. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10313. # Save the log message, to keep $0 and so on meaningful, and to
  10314. # report actual input values of CONFIG_FILES etc. instead of their
  10315. # values after options handling.
  10316. ac_log="
  10317. This file was extended by xdpyinfo $as_me 1.3.2, which was
  10318. generated by GNU Autoconf 2.69. Invocation command line was
  10319. CONFIG_FILES = $CONFIG_FILES
  10320. CONFIG_HEADERS = $CONFIG_HEADERS
  10321. CONFIG_LINKS = $CONFIG_LINKS
  10322. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10323. $ $0 $@
  10324. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10325. "
  10326. _ACEOF
  10327. case $ac_config_files in *"
  10328. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10329. esac
  10330. case $ac_config_headers in *"
  10331. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10332. esac
  10333. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10334. # Files that config.status was made for.
  10335. config_files="$ac_config_files"
  10336. config_headers="$ac_config_headers"
  10337. config_commands="$ac_config_commands"
  10338. _ACEOF
  10339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10340. ac_cs_usage="\
  10341. \`$as_me' instantiates files and other configuration actions
  10342. from templates according to the current configuration. Unless the files
  10343. and actions are specified as TAGs, all are instantiated by default.
  10344. Usage: $0 [OPTION]... [TAG]...
  10345. -h, --help print this help, then exit
  10346. -V, --version print version number and configuration settings, then exit
  10347. --config print configuration, then exit
  10348. -q, --quiet, --silent
  10349. do not print progress messages
  10350. -d, --debug don't remove temporary files
  10351. --recheck update $as_me by reconfiguring in the same conditions
  10352. --file=FILE[:TEMPLATE]
  10353. instantiate the configuration file FILE
  10354. --header=FILE[:TEMPLATE]
  10355. instantiate the configuration header FILE
  10356. Configuration files:
  10357. $config_files
  10358. Configuration headers:
  10359. $config_headers
  10360. Configuration commands:
  10361. $config_commands
  10362. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  10363. _ACEOF
  10364. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10365. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10366. ac_cs_version="\\
  10367. xdpyinfo config.status 1.3.2
  10368. configured by $0, generated by GNU Autoconf 2.69,
  10369. with options \\"\$ac_cs_config\\"
  10370. Copyright (C) 2012 Free Software Foundation, Inc.
  10371. This config.status script is free software; the Free Software Foundation
  10372. gives unlimited permission to copy, distribute and modify it."
  10373. ac_pwd='$ac_pwd'
  10374. srcdir='$srcdir'
  10375. INSTALL='$INSTALL'
  10376. MKDIR_P='$MKDIR_P'
  10377. AWK='$AWK'
  10378. test -n "\$AWK" || AWK=awk
  10379. _ACEOF
  10380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10381. # The default lists apply if the user does not specify any file.
  10382. ac_need_defaults=:
  10383. while test $# != 0
  10384. do
  10385. case $1 in
  10386. --*=?*)
  10387. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10388. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10389. ac_shift=:
  10390. ;;
  10391. --*=)
  10392. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10393. ac_optarg=
  10394. ac_shift=:
  10395. ;;
  10396. *)
  10397. ac_option=$1
  10398. ac_optarg=$2
  10399. ac_shift=shift
  10400. ;;
  10401. esac
  10402. case $ac_option in
  10403. # Handling of the options.
  10404. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10405. ac_cs_recheck=: ;;
  10406. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10407. $as_echo "$ac_cs_version"; exit ;;
  10408. --config | --confi | --conf | --con | --co | --c )
  10409. $as_echo "$ac_cs_config"; exit ;;
  10410. --debug | --debu | --deb | --de | --d | -d )
  10411. debug=: ;;
  10412. --file | --fil | --fi | --f )
  10413. $ac_shift
  10414. case $ac_optarg in
  10415. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10416. '') as_fn_error $? "missing file argument" ;;
  10417. esac
  10418. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10419. ac_need_defaults=false;;
  10420. --header | --heade | --head | --hea )
  10421. $ac_shift
  10422. case $ac_optarg in
  10423. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10424. esac
  10425. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10426. ac_need_defaults=false;;
  10427. --he | --h)
  10428. # Conflict between --help and --header
  10429. as_fn_error $? "ambiguous option: \`$1'
  10430. Try \`$0 --help' for more information.";;
  10431. --help | --hel | -h )
  10432. $as_echo "$ac_cs_usage"; exit ;;
  10433. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10434. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10435. ac_cs_silent=: ;;
  10436. # This is an error.
  10437. -*) as_fn_error $? "unrecognized option: \`$1'
  10438. Try \`$0 --help' for more information." ;;
  10439. *) as_fn_append ac_config_targets " $1"
  10440. ac_need_defaults=false ;;
  10441. esac
  10442. shift
  10443. done
  10444. ac_configure_extra_args=
  10445. if $ac_cs_silent; then
  10446. exec 6>/dev/null
  10447. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10448. fi
  10449. _ACEOF
  10450. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10451. if \$ac_cs_recheck; then
  10452. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10453. shift
  10454. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10455. CONFIG_SHELL='$SHELL'
  10456. export CONFIG_SHELL
  10457. exec "\$@"
  10458. fi
  10459. _ACEOF
  10460. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10461. exec 5>>config.log
  10462. {
  10463. echo
  10464. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10465. ## Running $as_me. ##
  10466. _ASBOX
  10467. $as_echo "$ac_log"
  10468. } >&5
  10469. _ACEOF
  10470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10471. #
  10472. # INIT-COMMANDS
  10473. #
  10474. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10475. _ACEOF
  10476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10477. # Handling of arguments.
  10478. for ac_config_target in $ac_config_targets
  10479. do
  10480. case $ac_config_target in
  10481. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10482. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10483. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10484. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  10485. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10486. esac
  10487. done
  10488. # If the user did not use the arguments to specify the items to instantiate,
  10489. # then the envvar interface is used. Set only those that are not.
  10490. # We use the long form for the default assignment because of an extremely
  10491. # bizarre bug on SunOS 4.1.3.
  10492. if $ac_need_defaults; then
  10493. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10494. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10495. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10496. fi
  10497. # Have a temporary directory for convenience. Make it in the build tree
  10498. # simply because there is no reason against having it here, and in addition,
  10499. # creating and moving files from /tmp can sometimes cause problems.
  10500. # Hook for its removal unless debugging.
  10501. # Note that there is a small window in which the directory will not be cleaned:
  10502. # after its creation but before its name has been assigned to `$tmp'.
  10503. $debug ||
  10504. {
  10505. tmp= ac_tmp=
  10506. trap 'exit_status=$?
  10507. : "${ac_tmp:=$tmp}"
  10508. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10509. ' 0
  10510. trap 'as_fn_exit 1' 1 2 13 15
  10511. }
  10512. # Create a (secure) tmp directory for tmp files.
  10513. {
  10514. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10515. test -d "$tmp"
  10516. } ||
  10517. {
  10518. tmp=./conf$$-$RANDOM
  10519. (umask 077 && mkdir "$tmp")
  10520. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10521. ac_tmp=$tmp
  10522. # Set up the scripts for CONFIG_FILES section.
  10523. # No need to generate them if there are no CONFIG_FILES.
  10524. # This happens for instance with `./config.status config.h'.
  10525. if test -n "$CONFIG_FILES"; then
  10526. ac_cr=`echo X | tr X '\015'`
  10527. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10528. # But we know of no other shell where ac_cr would be empty at this
  10529. # point, so we can use a bashism as a fallback.
  10530. if test "x$ac_cr" = x; then
  10531. eval ac_cr=\$\'\\r\'
  10532. fi
  10533. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10534. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10535. ac_cs_awk_cr='\\r'
  10536. else
  10537. ac_cs_awk_cr=$ac_cr
  10538. fi
  10539. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10540. _ACEOF
  10541. {
  10542. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10543. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10544. echo "_ACEOF"
  10545. } >conf$$subs.sh ||
  10546. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10547. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10548. ac_delim='%!_!# '
  10549. for ac_last_try in false false false false false :; do
  10550. . ./conf$$subs.sh ||
  10551. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10552. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10553. if test $ac_delim_n = $ac_delim_num; then
  10554. break
  10555. elif $ac_last_try; then
  10556. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10557. else
  10558. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10559. fi
  10560. done
  10561. rm -f conf$$subs.sh
  10562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10563. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10564. _ACEOF
  10565. sed -n '
  10566. h
  10567. s/^/S["/; s/!.*/"]=/
  10568. p
  10569. g
  10570. s/^[^!]*!//
  10571. :repl
  10572. t repl
  10573. s/'"$ac_delim"'$//
  10574. t delim
  10575. :nl
  10576. h
  10577. s/\(.\{148\}\)..*/\1/
  10578. t more1
  10579. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10580. p
  10581. n
  10582. b repl
  10583. :more1
  10584. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10585. p
  10586. g
  10587. s/.\{148\}//
  10588. t nl
  10589. :delim
  10590. h
  10591. s/\(.\{148\}\)..*/\1/
  10592. t more2
  10593. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10594. p
  10595. b
  10596. :more2
  10597. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10598. p
  10599. g
  10600. s/.\{148\}//
  10601. t delim
  10602. ' <conf$$subs.awk | sed '
  10603. /^[^""]/{
  10604. N
  10605. s/\n//
  10606. }
  10607. ' >>$CONFIG_STATUS || ac_write_fail=1
  10608. rm -f conf$$subs.awk
  10609. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10610. _ACAWK
  10611. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10612. for (key in S) S_is_set[key] = 1
  10613. FS = ""
  10614. }
  10615. {
  10616. line = $ 0
  10617. nfields = split(line, field, "@")
  10618. substed = 0
  10619. len = length(field[1])
  10620. for (i = 2; i < nfields; i++) {
  10621. key = field[i]
  10622. keylen = length(key)
  10623. if (S_is_set[key]) {
  10624. value = S[key]
  10625. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10626. len += length(value) + length(field[++i])
  10627. substed = 1
  10628. } else
  10629. len += 1 + keylen
  10630. }
  10631. print line
  10632. }
  10633. _ACAWK
  10634. _ACEOF
  10635. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10636. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10637. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10638. else
  10639. cat
  10640. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10641. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10642. _ACEOF
  10643. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10644. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10645. # trailing colons and then remove the whole line if VPATH becomes empty
  10646. # (actually we leave an empty line to preserve line numbers).
  10647. if test "x$srcdir" = x.; then
  10648. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10649. h
  10650. s///
  10651. s/^/:/
  10652. s/[ ]*$/:/
  10653. s/:\$(srcdir):/:/g
  10654. s/:\${srcdir}:/:/g
  10655. s/:@srcdir@:/:/g
  10656. s/^:*//
  10657. s/:*$//
  10658. x
  10659. s/\(=[ ]*\).*/\1/
  10660. G
  10661. s/\n//
  10662. s/^[^=]*=[ ]*$//
  10663. }'
  10664. fi
  10665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10666. fi # test -n "$CONFIG_FILES"
  10667. # Set up the scripts for CONFIG_HEADERS section.
  10668. # No need to generate them if there are no CONFIG_HEADERS.
  10669. # This happens for instance with `./config.status Makefile'.
  10670. if test -n "$CONFIG_HEADERS"; then
  10671. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10672. BEGIN {
  10673. _ACEOF
  10674. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10675. # here-document in config.status, that substitutes the proper values into
  10676. # config.h.in to produce config.h.
  10677. # Create a delimiter string that does not exist in confdefs.h, to ease
  10678. # handling of long lines.
  10679. ac_delim='%!_!# '
  10680. for ac_last_try in false false :; do
  10681. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10682. if test -z "$ac_tt"; then
  10683. break
  10684. elif $ac_last_try; then
  10685. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10686. else
  10687. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10688. fi
  10689. done
  10690. # For the awk script, D is an array of macro values keyed by name,
  10691. # likewise P contains macro parameters if any. Preserve backslash
  10692. # newline sequences.
  10693. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10694. sed -n '
  10695. s/.\{148\}/&'"$ac_delim"'/g
  10696. t rset
  10697. :rset
  10698. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10699. t def
  10700. d
  10701. :def
  10702. s/\\$//
  10703. t bsnl
  10704. s/["\\]/\\&/g
  10705. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10706. D["\1"]=" \3"/p
  10707. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10708. d
  10709. :bsnl
  10710. s/["\\]/\\&/g
  10711. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10712. D["\1"]=" \3\\\\\\n"\\/p
  10713. t cont
  10714. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10715. t cont
  10716. d
  10717. :cont
  10718. n
  10719. s/.\{148\}/&'"$ac_delim"'/g
  10720. t clear
  10721. :clear
  10722. s/\\$//
  10723. t bsnlc
  10724. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10725. d
  10726. :bsnlc
  10727. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10728. b cont
  10729. ' <confdefs.h | sed '
  10730. s/'"$ac_delim"'/"\\\
  10731. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10733. for (key in D) D_is_set[key] = 1
  10734. FS = ""
  10735. }
  10736. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10737. line = \$ 0
  10738. split(line, arg, " ")
  10739. if (arg[1] == "#") {
  10740. defundef = arg[2]
  10741. mac1 = arg[3]
  10742. } else {
  10743. defundef = substr(arg[1], 2)
  10744. mac1 = arg[2]
  10745. }
  10746. split(mac1, mac2, "(") #)
  10747. macro = mac2[1]
  10748. prefix = substr(line, 1, index(line, defundef) - 1)
  10749. if (D_is_set[macro]) {
  10750. # Preserve the white space surrounding the "#".
  10751. print prefix "define", macro P[macro] D[macro]
  10752. next
  10753. } else {
  10754. # Replace #undef with comments. This is necessary, for example,
  10755. # in the case of _POSIX_SOURCE, which is predefined and required
  10756. # on some systems where configure will not decide to define it.
  10757. if (defundef == "undef") {
  10758. print "/*", prefix defundef, macro, "*/"
  10759. next
  10760. }
  10761. }
  10762. }
  10763. { print }
  10764. _ACAWK
  10765. _ACEOF
  10766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10767. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10768. fi # test -n "$CONFIG_HEADERS"
  10769. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10770. shift
  10771. for ac_tag
  10772. do
  10773. case $ac_tag in
  10774. :[FHLC]) ac_mode=$ac_tag; continue;;
  10775. esac
  10776. case $ac_mode$ac_tag in
  10777. :[FHL]*:*);;
  10778. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10779. :[FH]-) ac_tag=-:-;;
  10780. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10781. esac
  10782. ac_save_IFS=$IFS
  10783. IFS=:
  10784. set x $ac_tag
  10785. IFS=$ac_save_IFS
  10786. shift
  10787. ac_file=$1
  10788. shift
  10789. case $ac_mode in
  10790. :L) ac_source=$1;;
  10791. :[FH])
  10792. ac_file_inputs=
  10793. for ac_f
  10794. do
  10795. case $ac_f in
  10796. -) ac_f="$ac_tmp/stdin";;
  10797. *) # Look for the file first in the build tree, then in the source tree
  10798. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10799. # because $ac_f cannot contain `:'.
  10800. test -f "$ac_f" ||
  10801. case $ac_f in
  10802. [\\/$]*) false;;
  10803. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10804. esac ||
  10805. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10806. esac
  10807. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10808. as_fn_append ac_file_inputs " '$ac_f'"
  10809. done
  10810. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10811. # use $as_me), people would be surprised to read:
  10812. # /* config.h. Generated by config.status. */
  10813. configure_input='Generated from '`
  10814. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10815. `' by configure.'
  10816. if test x"$ac_file" != x-; then
  10817. configure_input="$ac_file. $configure_input"
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10819. $as_echo "$as_me: creating $ac_file" >&6;}
  10820. fi
  10821. # Neutralize special characters interpreted by sed in replacement strings.
  10822. case $configure_input in #(
  10823. *\&* | *\|* | *\\* )
  10824. ac_sed_conf_input=`$as_echo "$configure_input" |
  10825. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10826. *) ac_sed_conf_input=$configure_input;;
  10827. esac
  10828. case $ac_tag in
  10829. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10830. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10831. esac
  10832. ;;
  10833. esac
  10834. ac_dir=`$as_dirname -- "$ac_file" ||
  10835. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10836. X"$ac_file" : 'X\(//\)[^/]' \| \
  10837. X"$ac_file" : 'X\(//\)$' \| \
  10838. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10839. $as_echo X"$ac_file" |
  10840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10841. s//\1/
  10842. q
  10843. }
  10844. /^X\(\/\/\)[^/].*/{
  10845. s//\1/
  10846. q
  10847. }
  10848. /^X\(\/\/\)$/{
  10849. s//\1/
  10850. q
  10851. }
  10852. /^X\(\/\).*/{
  10853. s//\1/
  10854. q
  10855. }
  10856. s/.*/./; q'`
  10857. as_dir="$ac_dir"; as_fn_mkdir_p
  10858. ac_builddir=.
  10859. case "$ac_dir" in
  10860. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10861. *)
  10862. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10863. # A ".." for each directory in $ac_dir_suffix.
  10864. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10865. case $ac_top_builddir_sub in
  10866. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10867. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10868. esac ;;
  10869. esac
  10870. ac_abs_top_builddir=$ac_pwd
  10871. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10872. # for backward compatibility:
  10873. ac_top_builddir=$ac_top_build_prefix
  10874. case $srcdir in
  10875. .) # We are building in place.
  10876. ac_srcdir=.
  10877. ac_top_srcdir=$ac_top_builddir_sub
  10878. ac_abs_top_srcdir=$ac_pwd ;;
  10879. [\\/]* | ?:[\\/]* ) # Absolute name.
  10880. ac_srcdir=$srcdir$ac_dir_suffix;
  10881. ac_top_srcdir=$srcdir
  10882. ac_abs_top_srcdir=$srcdir ;;
  10883. *) # Relative name.
  10884. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10885. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10886. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10887. esac
  10888. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10889. case $ac_mode in
  10890. :F)
  10891. #
  10892. # CONFIG_FILE
  10893. #
  10894. case $INSTALL in
  10895. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10896. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10897. esac
  10898. ac_MKDIR_P=$MKDIR_P
  10899. case $MKDIR_P in
  10900. [\\/$]* | ?:[\\/]* ) ;;
  10901. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10902. esac
  10903. _ACEOF
  10904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10905. # If the template does not know about datarootdir, expand it.
  10906. # FIXME: This hack should be removed a few years after 2.60.
  10907. ac_datarootdir_hack=; ac_datarootdir_seen=
  10908. ac_sed_dataroot='
  10909. /datarootdir/ {
  10910. p
  10911. q
  10912. }
  10913. /@datadir@/p
  10914. /@docdir@/p
  10915. /@infodir@/p
  10916. /@localedir@/p
  10917. /@mandir@/p'
  10918. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10919. *datarootdir*) ac_datarootdir_seen=yes;;
  10920. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10922. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10923. _ACEOF
  10924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10925. ac_datarootdir_hack='
  10926. s&@datadir@&$datadir&g
  10927. s&@docdir@&$docdir&g
  10928. s&@infodir@&$infodir&g
  10929. s&@localedir@&$localedir&g
  10930. s&@mandir@&$mandir&g
  10931. s&\\\${datarootdir}&$datarootdir&g' ;;
  10932. esac
  10933. _ACEOF
  10934. # Neutralize VPATH when `$srcdir' = `.'.
  10935. # Shell code in configure.ac might set extrasub.
  10936. # FIXME: do we really want to maintain this feature?
  10937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10938. ac_sed_extra="$ac_vpsub
  10939. $extrasub
  10940. _ACEOF
  10941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10942. :t
  10943. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10944. s|@configure_input@|$ac_sed_conf_input|;t t
  10945. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10946. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10947. s&@srcdir@&$ac_srcdir&;t t
  10948. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10949. s&@top_srcdir@&$ac_top_srcdir&;t t
  10950. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10951. s&@builddir@&$ac_builddir&;t t
  10952. s&@abs_builddir@&$ac_abs_builddir&;t t
  10953. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10954. s&@INSTALL@&$ac_INSTALL&;t t
  10955. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10956. $ac_datarootdir_hack
  10957. "
  10958. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10959. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10960. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10961. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10962. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10963. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10965. which seems to be undefined. Please make sure it is defined" >&5
  10966. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10967. which seems to be undefined. Please make sure it is defined" >&2;}
  10968. rm -f "$ac_tmp/stdin"
  10969. case $ac_file in
  10970. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10971. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10972. esac \
  10973. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10974. ;;
  10975. :H)
  10976. #
  10977. # CONFIG_HEADER
  10978. #
  10979. if test x"$ac_file" != x-; then
  10980. {
  10981. $as_echo "/* $configure_input */" \
  10982. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10983. } >"$ac_tmp/config.h" \
  10984. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10985. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10987. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10988. else
  10989. rm -f "$ac_file"
  10990. mv "$ac_tmp/config.h" "$ac_file" \
  10991. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10992. fi
  10993. else
  10994. $as_echo "/* $configure_input */" \
  10995. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10996. || as_fn_error $? "could not create -" "$LINENO" 5
  10997. fi
  10998. # Compute "$ac_file"'s index in $config_headers.
  10999. _am_arg="$ac_file"
  11000. _am_stamp_count=1
  11001. for _am_header in $config_headers :; do
  11002. case $_am_header in
  11003. $_am_arg | $_am_arg:* )
  11004. break ;;
  11005. * )
  11006. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11007. esac
  11008. done
  11009. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11010. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11011. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11012. X"$_am_arg" : 'X\(//\)$' \| \
  11013. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11014. $as_echo X"$_am_arg" |
  11015. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11016. s//\1/
  11017. q
  11018. }
  11019. /^X\(\/\/\)[^/].*/{
  11020. s//\1/
  11021. q
  11022. }
  11023. /^X\(\/\/\)$/{
  11024. s//\1/
  11025. q
  11026. }
  11027. /^X\(\/\).*/{
  11028. s//\1/
  11029. q
  11030. }
  11031. s/.*/./; q'`/stamp-h$_am_stamp_count
  11032. ;;
  11033. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11034. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11035. ;;
  11036. esac
  11037. case $ac_file$ac_mode in
  11038. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11039. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11040. # are listed without --file. Let's play safe and only enable the eval
  11041. # if we detect the quoting.
  11042. case $CONFIG_FILES in
  11043. *\'*) eval set x "$CONFIG_FILES" ;;
  11044. *) set x $CONFIG_FILES ;;
  11045. esac
  11046. shift
  11047. for mf
  11048. do
  11049. # Strip MF so we end up with the name of the file.
  11050. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11051. # Check whether this is an Automake generated Makefile or not.
  11052. # We used to match only the files named 'Makefile.in', but
  11053. # some people rename them; so instead we look at the file content.
  11054. # Grep'ing the first line is not enough: some people post-process
  11055. # each Makefile.in and add a new line on top of each file to say so.
  11056. # Grep'ing the whole file is not good either: AIX grep has a line
  11057. # limit of 2048, but all sed's we know have understand at least 4000.
  11058. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11059. dirpart=`$as_dirname -- "$mf" ||
  11060. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11061. X"$mf" : 'X\(//\)[^/]' \| \
  11062. X"$mf" : 'X\(//\)$' \| \
  11063. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11064. $as_echo X"$mf" |
  11065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11066. s//\1/
  11067. q
  11068. }
  11069. /^X\(\/\/\)[^/].*/{
  11070. s//\1/
  11071. q
  11072. }
  11073. /^X\(\/\/\)$/{
  11074. s//\1/
  11075. q
  11076. }
  11077. /^X\(\/\).*/{
  11078. s//\1/
  11079. q
  11080. }
  11081. s/.*/./; q'`
  11082. else
  11083. continue
  11084. fi
  11085. # Extract the definition of DEPDIR, am__include, and am__quote
  11086. # from the Makefile without running 'make'.
  11087. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11088. test -z "$DEPDIR" && continue
  11089. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11090. test -z "am__include" && continue
  11091. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11092. # Find all dependency output files, they are included files with
  11093. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11094. # simplest approach to changing $(DEPDIR) to its actual value in the
  11095. # expansion.
  11096. for file in `sed -n "
  11097. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11098. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11099. # Make sure the directory exists.
  11100. test -f "$dirpart/$file" && continue
  11101. fdir=`$as_dirname -- "$file" ||
  11102. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11103. X"$file" : 'X\(//\)[^/]' \| \
  11104. X"$file" : 'X\(//\)$' \| \
  11105. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11106. $as_echo X"$file" |
  11107. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11108. s//\1/
  11109. q
  11110. }
  11111. /^X\(\/\/\)[^/].*/{
  11112. s//\1/
  11113. q
  11114. }
  11115. /^X\(\/\/\)$/{
  11116. s//\1/
  11117. q
  11118. }
  11119. /^X\(\/\).*/{
  11120. s//\1/
  11121. q
  11122. }
  11123. s/.*/./; q'`
  11124. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11125. # echo "creating $dirpart/$file"
  11126. echo '# dummy' > "$dirpart/$file"
  11127. done
  11128. done
  11129. }
  11130. ;;
  11131. esac
  11132. done # for ac_tag
  11133. as_fn_exit 0
  11134. _ACEOF
  11135. ac_clean_files=$ac_clean_files_save
  11136. test $ac_write_fail = 0 ||
  11137. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11138. # configure is writing to config.log, and then calls config.status.
  11139. # config.status does its own redirection, appending to config.log.
  11140. # Unfortunately, on DOS this fails, as config.log is still kept open
  11141. # by configure, so config.status won't be able to write to it; its
  11142. # output is simply discarded. So we exec the FD to /dev/null,
  11143. # effectively closing config.log, so it can be properly (re)opened and
  11144. # appended to by config.status. When coming back to configure, we
  11145. # need to make the FD available again.
  11146. if test "$no_create" != yes; then
  11147. ac_cs_success=:
  11148. ac_config_status_args=
  11149. test "$silent" = yes &&
  11150. ac_config_status_args="$ac_config_status_args --quiet"
  11151. exec 5>/dev/null
  11152. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11153. exec 5>>config.log
  11154. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11155. # would make configure fail if this is the last instruction.
  11156. $ac_cs_success || as_fn_exit 1
  11157. fi
  11158. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11160. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11161. fi