configure 327 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for PresentProto 1.0.
  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='PresentProto'
  535. PACKAGE_TARNAME='presentproto'
  536. PACKAGE_VERSION='1.0'
  537. PACKAGE_STRING='PresentProto 1.0'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_subst_vars='am__EXEEXT_FALSE
  576. am__EXEEXT_TRUE
  577. LTLIBOBJS
  578. LIBOBJS
  579. MAN_SUBSTS
  580. XORG_MAN_PAGE
  581. ADMIN_MAN_DIR
  582. DRIVER_MAN_DIR
  583. MISC_MAN_DIR
  584. FILE_MAN_DIR
  585. LIB_MAN_DIR
  586. APP_MAN_DIR
  587. ADMIN_MAN_SUFFIX
  588. DRIVER_MAN_SUFFIX
  589. MISC_MAN_SUFFIX
  590. FILE_MAN_SUFFIX
  591. LIB_MAN_SUFFIX
  592. APP_MAN_SUFFIX
  593. SED
  594. host_os
  595. host_vendor
  596. host_cpu
  597. host
  598. build_os
  599. build_vendor
  600. build_cpu
  601. build
  602. INSTALL_CMD
  603. PKG_CONFIG_LIBDIR
  604. PKG_CONFIG_PATH
  605. PKG_CONFIG
  606. CHANGELOG_CMD
  607. STRICT_CFLAGS
  608. CWARNFLAGS
  609. BASE_CFLAGS
  610. EGREP
  611. GREP
  612. CPP
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. am__nodep
  617. AMDEPBACKSLASH
  618. AMDEP_FALSE
  619. AMDEP_TRUE
  620. am__quote
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. MAINT
  631. MAINTAINER_MODE_FALSE
  632. MAINTAINER_MODE_TRUE
  633. AM_BACKSLASH
  634. AM_DEFAULT_VERBOSITY
  635. AM_DEFAULT_V
  636. AM_V
  637. am__untar
  638. am__tar
  639. AMTAR
  640. am__leading_dot
  641. SET_MAKE
  642. AWK
  643. mkdir_p
  644. MKDIR_P
  645. INSTALL_STRIP_PROGRAM
  646. STRIP
  647. install_sh
  648. MAKEINFO
  649. AUTOHEADER
  650. AUTOMAKE
  651. AUTOCONF
  652. ACLOCAL
  653. VERSION
  654. PACKAGE
  655. CYGPATH_W
  656. am__isrc
  657. INSTALL_DATA
  658. INSTALL_SCRIPT
  659. INSTALL_PROGRAM
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. enable_silent_rules
  702. enable_maintainer_mode
  703. enable_dependency_tracking
  704. enable_selective_werror
  705. enable_strict_compilation
  706. '
  707. ac_precious_vars='build_alias
  708. host_alias
  709. target_alias
  710. CC
  711. CFLAGS
  712. LDFLAGS
  713. LIBS
  714. CPPFLAGS
  715. CPP
  716. PKG_CONFIG
  717. PKG_CONFIG_PATH
  718. PKG_CONFIG_LIBDIR'
  719. # Initialize some variables set by options.
  720. ac_init_help=
  721. ac_init_version=false
  722. ac_unrecognized_opts=
  723. ac_unrecognized_sep=
  724. # The variables have the same names as the options, with
  725. # dashes changed to underlines.
  726. cache_file=/dev/null
  727. exec_prefix=NONE
  728. no_create=
  729. no_recursion=
  730. prefix=NONE
  731. program_prefix=NONE
  732. program_suffix=NONE
  733. program_transform_name=s,x,x,
  734. silent=
  735. site=
  736. srcdir=
  737. verbose=
  738. x_includes=NONE
  739. x_libraries=NONE
  740. # Installation directory options.
  741. # These are left unexpanded so users can "make install exec_prefix=/foo"
  742. # and all the variables that are supposed to be based on exec_prefix
  743. # by default will actually change.
  744. # Use braces instead of parens because sh, perl, etc. also accept them.
  745. # (The list follows the same order as the GNU Coding Standards.)
  746. bindir='${exec_prefix}/bin'
  747. sbindir='${exec_prefix}/sbin'
  748. libexecdir='${exec_prefix}/libexec'
  749. datarootdir='${prefix}/share'
  750. datadir='${datarootdir}'
  751. sysconfdir='${prefix}/etc'
  752. sharedstatedir='${prefix}/com'
  753. localstatedir='${prefix}/var'
  754. includedir='${prefix}/include'
  755. oldincludedir='/usr/include'
  756. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  757. infodir='${datarootdir}/info'
  758. htmldir='${docdir}'
  759. dvidir='${docdir}'
  760. pdfdir='${docdir}'
  761. psdir='${docdir}'
  762. libdir='${exec_prefix}/lib'
  763. localedir='${datarootdir}/locale'
  764. mandir='${datarootdir}/man'
  765. ac_prev=
  766. ac_dashdash=
  767. for ac_option
  768. do
  769. # If the previous option needs an argument, assign it.
  770. if test -n "$ac_prev"; then
  771. eval $ac_prev=\$ac_option
  772. ac_prev=
  773. continue
  774. fi
  775. case $ac_option in
  776. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  777. *=) ac_optarg= ;;
  778. *) ac_optarg=yes ;;
  779. esac
  780. # Accept the important Cygnus configure options, so we can diagnose typos.
  781. case $ac_dashdash$ac_option in
  782. --)
  783. ac_dashdash=yes ;;
  784. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  785. ac_prev=bindir ;;
  786. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  787. bindir=$ac_optarg ;;
  788. -build | --build | --buil | --bui | --bu)
  789. ac_prev=build_alias ;;
  790. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  791. build_alias=$ac_optarg ;;
  792. -cache-file | --cache-file | --cache-fil | --cache-fi \
  793. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  794. ac_prev=cache_file ;;
  795. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  796. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  797. cache_file=$ac_optarg ;;
  798. --config-cache | -C)
  799. cache_file=config.cache ;;
  800. -datadir | --datadir | --datadi | --datad)
  801. ac_prev=datadir ;;
  802. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  803. datadir=$ac_optarg ;;
  804. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  805. | --dataroo | --dataro | --datar)
  806. ac_prev=datarootdir ;;
  807. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  808. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  809. datarootdir=$ac_optarg ;;
  810. -disable-* | --disable-*)
  811. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  812. # Reject names that are not valid shell variable names.
  813. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  814. as_fn_error $? "invalid feature name: $ac_useropt"
  815. ac_useropt_orig=$ac_useropt
  816. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  817. case $ac_user_opts in
  818. *"
  819. "enable_$ac_useropt"
  820. "*) ;;
  821. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  822. ac_unrecognized_sep=', ';;
  823. esac
  824. eval enable_$ac_useropt=no ;;
  825. -docdir | --docdir | --docdi | --doc | --do)
  826. ac_prev=docdir ;;
  827. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  828. docdir=$ac_optarg ;;
  829. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  830. ac_prev=dvidir ;;
  831. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  832. dvidir=$ac_optarg ;;
  833. -enable-* | --enable-*)
  834. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  835. # Reject names that are not valid shell variable names.
  836. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  837. as_fn_error $? "invalid feature name: $ac_useropt"
  838. ac_useropt_orig=$ac_useropt
  839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  840. case $ac_user_opts in
  841. *"
  842. "enable_$ac_useropt"
  843. "*) ;;
  844. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  845. ac_unrecognized_sep=', ';;
  846. esac
  847. eval enable_$ac_useropt=\$ac_optarg ;;
  848. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  849. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  850. | --exec | --exe | --ex)
  851. ac_prev=exec_prefix ;;
  852. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  853. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  854. | --exec=* | --exe=* | --ex=*)
  855. exec_prefix=$ac_optarg ;;
  856. -gas | --gas | --ga | --g)
  857. # Obsolete; use --with-gas.
  858. with_gas=yes ;;
  859. -help | --help | --hel | --he | -h)
  860. ac_init_help=long ;;
  861. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  862. ac_init_help=recursive ;;
  863. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  864. ac_init_help=short ;;
  865. -host | --host | --hos | --ho)
  866. ac_prev=host_alias ;;
  867. -host=* | --host=* | --hos=* | --ho=*)
  868. host_alias=$ac_optarg ;;
  869. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  870. ac_prev=htmldir ;;
  871. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  872. | --ht=*)
  873. htmldir=$ac_optarg ;;
  874. -includedir | --includedir | --includedi | --included | --include \
  875. | --includ | --inclu | --incl | --inc)
  876. ac_prev=includedir ;;
  877. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  878. | --includ=* | --inclu=* | --incl=* | --inc=*)
  879. includedir=$ac_optarg ;;
  880. -infodir | --infodir | --infodi | --infod | --info | --inf)
  881. ac_prev=infodir ;;
  882. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  883. infodir=$ac_optarg ;;
  884. -libdir | --libdir | --libdi | --libd)
  885. ac_prev=libdir ;;
  886. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  887. libdir=$ac_optarg ;;
  888. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  889. | --libexe | --libex | --libe)
  890. ac_prev=libexecdir ;;
  891. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  892. | --libexe=* | --libex=* | --libe=*)
  893. libexecdir=$ac_optarg ;;
  894. -localedir | --localedir | --localedi | --localed | --locale)
  895. ac_prev=localedir ;;
  896. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  897. localedir=$ac_optarg ;;
  898. -localstatedir | --localstatedir | --localstatedi | --localstated \
  899. | --localstate | --localstat | --localsta | --localst | --locals)
  900. ac_prev=localstatedir ;;
  901. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  902. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  903. localstatedir=$ac_optarg ;;
  904. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  905. ac_prev=mandir ;;
  906. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  907. mandir=$ac_optarg ;;
  908. -nfp | --nfp | --nf)
  909. # Obsolete; use --without-fp.
  910. with_fp=no ;;
  911. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  912. | --no-cr | --no-c | -n)
  913. no_create=yes ;;
  914. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  915. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  916. no_recursion=yes ;;
  917. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  918. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  919. | --oldin | --oldi | --old | --ol | --o)
  920. ac_prev=oldincludedir ;;
  921. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  922. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  923. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  924. oldincludedir=$ac_optarg ;;
  925. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  926. ac_prev=prefix ;;
  927. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  928. prefix=$ac_optarg ;;
  929. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  930. | --program-pre | --program-pr | --program-p)
  931. ac_prev=program_prefix ;;
  932. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  933. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  934. program_prefix=$ac_optarg ;;
  935. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  936. | --program-suf | --program-su | --program-s)
  937. ac_prev=program_suffix ;;
  938. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  939. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  940. program_suffix=$ac_optarg ;;
  941. -program-transform-name | --program-transform-name \
  942. | --program-transform-nam | --program-transform-na \
  943. | --program-transform-n | --program-transform- \
  944. | --program-transform | --program-transfor \
  945. | --program-transfo | --program-transf \
  946. | --program-trans | --program-tran \
  947. | --progr-tra | --program-tr | --program-t)
  948. ac_prev=program_transform_name ;;
  949. -program-transform-name=* | --program-transform-name=* \
  950. | --program-transform-nam=* | --program-transform-na=* \
  951. | --program-transform-n=* | --program-transform-=* \
  952. | --program-transform=* | --program-transfor=* \
  953. | --program-transfo=* | --program-transf=* \
  954. | --program-trans=* | --program-tran=* \
  955. | --progr-tra=* | --program-tr=* | --program-t=*)
  956. program_transform_name=$ac_optarg ;;
  957. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  958. ac_prev=pdfdir ;;
  959. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  960. pdfdir=$ac_optarg ;;
  961. -psdir | --psdir | --psdi | --psd | --ps)
  962. ac_prev=psdir ;;
  963. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  964. psdir=$ac_optarg ;;
  965. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  966. | -silent | --silent | --silen | --sile | --sil)
  967. silent=yes ;;
  968. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  969. ac_prev=sbindir ;;
  970. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  971. | --sbi=* | --sb=*)
  972. sbindir=$ac_optarg ;;
  973. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  974. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  975. | --sharedst | --shareds | --shared | --share | --shar \
  976. | --sha | --sh)
  977. ac_prev=sharedstatedir ;;
  978. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  979. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  980. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  981. | --sha=* | --sh=*)
  982. sharedstatedir=$ac_optarg ;;
  983. -site | --site | --sit)
  984. ac_prev=site ;;
  985. -site=* | --site=* | --sit=*)
  986. site=$ac_optarg ;;
  987. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  988. ac_prev=srcdir ;;
  989. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  990. srcdir=$ac_optarg ;;
  991. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  992. | --syscon | --sysco | --sysc | --sys | --sy)
  993. ac_prev=sysconfdir ;;
  994. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  995. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  996. sysconfdir=$ac_optarg ;;
  997. -target | --target | --targe | --targ | --tar | --ta | --t)
  998. ac_prev=target_alias ;;
  999. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1000. target_alias=$ac_optarg ;;
  1001. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1002. verbose=yes ;;
  1003. -version | --version | --versio | --versi | --vers | -V)
  1004. ac_init_version=: ;;
  1005. -with-* | --with-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=\$ac_optarg ;;
  1020. -without-* | --without-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=no ;;
  1035. --x)
  1036. # Obsolete; use --with-x.
  1037. with_x=yes ;;
  1038. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1039. | --x-incl | --x-inc | --x-in | --x-i)
  1040. ac_prev=x_includes ;;
  1041. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1042. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1043. x_includes=$ac_optarg ;;
  1044. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1045. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1046. ac_prev=x_libraries ;;
  1047. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1048. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1049. x_libraries=$ac_optarg ;;
  1050. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1051. Try \`$0 --help' for more information"
  1052. ;;
  1053. *=*)
  1054. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1055. # Reject names that are not valid shell variable names.
  1056. case $ac_envvar in #(
  1057. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1058. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1059. esac
  1060. eval $ac_envvar=\$ac_optarg
  1061. export $ac_envvar ;;
  1062. *)
  1063. # FIXME: should be removed in autoconf 3.0.
  1064. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1065. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1067. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1068. ;;
  1069. esac
  1070. done
  1071. if test -n "$ac_prev"; then
  1072. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1073. as_fn_error $? "missing argument to $ac_option"
  1074. fi
  1075. if test -n "$ac_unrecognized_opts"; then
  1076. case $enable_option_checking in
  1077. no) ;;
  1078. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1079. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1080. esac
  1081. fi
  1082. # Check all directory arguments for consistency.
  1083. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1084. datadir sysconfdir sharedstatedir localstatedir includedir \
  1085. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1086. libdir localedir mandir
  1087. do
  1088. eval ac_val=\$$ac_var
  1089. # Remove trailing slashes.
  1090. case $ac_val in
  1091. */ )
  1092. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1093. eval $ac_var=\$ac_val;;
  1094. esac
  1095. # Be sure to have absolute directory names.
  1096. case $ac_val in
  1097. [\\/$]* | ?:[\\/]* ) continue;;
  1098. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1099. esac
  1100. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1101. done
  1102. # There might be people who depend on the old broken behavior: `$host'
  1103. # used to hold the argument of --host etc.
  1104. # FIXME: To remove some day.
  1105. build=$build_alias
  1106. host=$host_alias
  1107. target=$target_alias
  1108. # FIXME: To remove some day.
  1109. if test "x$host_alias" != x; then
  1110. if test "x$build_alias" = x; then
  1111. cross_compiling=maybe
  1112. elif test "x$build_alias" != "x$host_alias"; then
  1113. cross_compiling=yes
  1114. fi
  1115. fi
  1116. ac_tool_prefix=
  1117. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1118. test "$silent" = yes && exec 6>/dev/null
  1119. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1120. ac_ls_di=`ls -di .` &&
  1121. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1122. as_fn_error $? "working directory cannot be determined"
  1123. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1124. as_fn_error $? "pwd does not report name of working directory"
  1125. # Find the source files, if location was not specified.
  1126. if test -z "$srcdir"; then
  1127. ac_srcdir_defaulted=yes
  1128. # Try the directory containing this script, then the parent directory.
  1129. ac_confdir=`$as_dirname -- "$as_myself" ||
  1130. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1131. X"$as_myself" : 'X\(//\)[^/]' \| \
  1132. X"$as_myself" : 'X\(//\)$' \| \
  1133. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1134. $as_echo X"$as_myself" |
  1135. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)[^/].*/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\/\)$/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\).*/{
  1148. s//\1/
  1149. q
  1150. }
  1151. s/.*/./; q'`
  1152. srcdir=$ac_confdir
  1153. if test ! -r "$srcdir/$ac_unique_file"; then
  1154. srcdir=..
  1155. fi
  1156. else
  1157. ac_srcdir_defaulted=no
  1158. fi
  1159. if test ! -r "$srcdir/$ac_unique_file"; then
  1160. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1161. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1162. fi
  1163. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1164. ac_abs_confdir=`(
  1165. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1166. pwd)`
  1167. # When building in place, set srcdir=.
  1168. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1169. srcdir=.
  1170. fi
  1171. # Remove unnecessary trailing slashes from srcdir.
  1172. # Double slashes in file names in object file debugging info
  1173. # mess up M-x gdb in Emacs.
  1174. case $srcdir in
  1175. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1176. esac
  1177. for ac_var in $ac_precious_vars; do
  1178. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1179. eval ac_env_${ac_var}_value=\$${ac_var}
  1180. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1182. done
  1183. #
  1184. # Report the --help message.
  1185. #
  1186. if test "$ac_init_help" = "long"; then
  1187. # Omit some internal or obsolete options to make the list less imposing.
  1188. # This message is too long to be a string in the A/UX 3.1 sh.
  1189. cat <<_ACEOF
  1190. \`configure' configures PresentProto 1.0 to adapt to many kinds of systems.
  1191. Usage: $0 [OPTION]... [VAR=VALUE]...
  1192. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1193. VAR=VALUE. See below for descriptions of some of the useful variables.
  1194. Defaults for the options are specified in brackets.
  1195. Configuration:
  1196. -h, --help display this help and exit
  1197. --help=short display options specific to this package
  1198. --help=recursive display the short help of all the included packages
  1199. -V, --version display version information and exit
  1200. -q, --quiet, --silent do not print \`checking ...' messages
  1201. --cache-file=FILE cache test results in FILE [disabled]
  1202. -C, --config-cache alias for \`--cache-file=config.cache'
  1203. -n, --no-create do not create output files
  1204. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1205. Installation directories:
  1206. --prefix=PREFIX install architecture-independent files in PREFIX
  1207. [$ac_default_prefix]
  1208. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1209. [PREFIX]
  1210. By default, \`make install' will install all the files in
  1211. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1212. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1213. for instance \`--prefix=\$HOME'.
  1214. For better control, use the options below.
  1215. Fine tuning of the installation directories:
  1216. --bindir=DIR user executables [EPREFIX/bin]
  1217. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1218. --libexecdir=DIR program executables [EPREFIX/libexec]
  1219. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1220. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1221. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1222. --libdir=DIR object code libraries [EPREFIX/lib]
  1223. --includedir=DIR C header files [PREFIX/include]
  1224. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1225. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1226. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1227. --infodir=DIR info documentation [DATAROOTDIR/info]
  1228. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1229. --mandir=DIR man documentation [DATAROOTDIR/man]
  1230. --docdir=DIR documentation root [DATAROOTDIR/doc/presentproto]
  1231. --htmldir=DIR html documentation [DOCDIR]
  1232. --dvidir=DIR dvi documentation [DOCDIR]
  1233. --pdfdir=DIR pdf documentation [DOCDIR]
  1234. --psdir=DIR ps documentation [DOCDIR]
  1235. _ACEOF
  1236. cat <<\_ACEOF
  1237. Program names:
  1238. --program-prefix=PREFIX prepend PREFIX to installed program names
  1239. --program-suffix=SUFFIX append SUFFIX to installed program names
  1240. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1241. System types:
  1242. --build=BUILD configure for building on BUILD [guessed]
  1243. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1244. _ACEOF
  1245. fi
  1246. if test -n "$ac_init_help"; then
  1247. case $ac_init_help in
  1248. short | recursive ) echo "Configuration of PresentProto 1.0:";;
  1249. esac
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-option-checking ignore unrecognized --enable/--with options
  1253. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1254. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1255. --enable-silent-rules less verbose build output (undo: "make V=1")
  1256. --disable-silent-rules verbose build output (undo: "make V=0")
  1257. --enable-maintainer-mode
  1258. enable make rules and dependencies not useful (and
  1259. sometimes confusing) to the casual installer
  1260. --enable-dependency-tracking
  1261. do not reject slow dependency extractors
  1262. --disable-dependency-tracking
  1263. speeds up one-time build
  1264. --disable-selective-werror
  1265. Turn off selective compiler errors. (default:
  1266. enabled)
  1267. --enable-strict-compilation
  1268. Enable all warnings from compiler and make them
  1269. errors (default: disabled)
  1270. Some influential environment variables:
  1271. CC C compiler command
  1272. CFLAGS C compiler flags
  1273. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1274. nonstandard directory <lib dir>
  1275. LIBS libraries to pass to the linker, e.g. -l<library>
  1276. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1277. you have headers in a nonstandard directory <include dir>
  1278. CPP C preprocessor
  1279. PKG_CONFIG path to pkg-config utility
  1280. PKG_CONFIG_PATH
  1281. directories to add to pkg-config's search path
  1282. PKG_CONFIG_LIBDIR
  1283. path overriding pkg-config's built-in search path
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. PresentProto configure 1.0
  1345. generated by GNU Autoconf 2.69
  1346. Copyright (C) 2012 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. # ac_fn_c_try_compile LINENO
  1356. # --------------------------
  1357. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1388. as_fn_set_status $ac_retval
  1389. } # ac_fn_c_try_compile
  1390. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1391. # ---------------------------------------------
  1392. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1393. # accordingly.
  1394. ac_fn_c_check_decl ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1398. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1400. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1401. if eval \${$3+:} false; then :
  1402. $as_echo_n "(cached) " >&6
  1403. else
  1404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1405. /* end confdefs.h. */
  1406. $4
  1407. int
  1408. main ()
  1409. {
  1410. #ifndef $as_decl_name
  1411. #ifdef __cplusplus
  1412. (void) $as_decl_use;
  1413. #else
  1414. (void) $as_decl_name;
  1415. #endif
  1416. #endif
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. if ac_fn_c_try_compile "$LINENO"; then :
  1422. eval "$3=yes"
  1423. else
  1424. eval "$3=no"
  1425. fi
  1426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1427. fi
  1428. eval ac_res=\$$3
  1429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1430. $as_echo "$ac_res" >&6; }
  1431. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1432. } # ac_fn_c_check_decl
  1433. # ac_fn_c_try_cpp LINENO
  1434. # ----------------------
  1435. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_c_try_cpp ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1447. ac_status=$?
  1448. if test -s conftest.err; then
  1449. grep -v '^ *+' conftest.err >conftest.er1
  1450. cat conftest.er1 >&5
  1451. mv -f conftest.er1 conftest.err
  1452. fi
  1453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1454. test $ac_status = 0; } > conftest.i && {
  1455. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1456. test ! -s conftest.err
  1457. }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1465. as_fn_set_status $ac_retval
  1466. } # ac_fn_c_try_cpp
  1467. # ac_fn_c_try_run LINENO
  1468. # ----------------------
  1469. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1470. # that executables *can* be run.
  1471. ac_fn_c_try_run ()
  1472. {
  1473. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1474. if { { ac_try="$ac_link"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_link") 2>&5
  1482. ac_status=$?
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1485. { { case "(($ac_try" in
  1486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1487. *) ac_try_echo=$ac_try;;
  1488. esac
  1489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1490. $as_echo "$ac_try_echo"; } >&5
  1491. (eval "$ac_try") 2>&5
  1492. ac_status=$?
  1493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1494. test $ac_status = 0; }; }; then :
  1495. ac_retval=0
  1496. else
  1497. $as_echo "$as_me: program exited with status $ac_status" >&5
  1498. $as_echo "$as_me: failed program was:" >&5
  1499. sed 's/^/| /' conftest.$ac_ext >&5
  1500. ac_retval=$ac_status
  1501. fi
  1502. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1504. as_fn_set_status $ac_retval
  1505. } # ac_fn_c_try_run
  1506. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1507. # -------------------------------------------------------
  1508. # Tests whether HEADER exists and can be compiled using the include files in
  1509. # INCLUDES, setting the cache variable VAR accordingly.
  1510. ac_fn_c_check_header_compile ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1514. $as_echo_n "checking for $2... " >&6; }
  1515. if eval \${$3+:} false; then :
  1516. $as_echo_n "(cached) " >&6
  1517. else
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. eval "$3=yes"
  1525. else
  1526. eval "$3=no"
  1527. fi
  1528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1529. fi
  1530. eval ac_res=\$$3
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1532. $as_echo "$ac_res" >&6; }
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_c_check_header_compile
  1535. # ac_fn_c_try_link LINENO
  1536. # -----------------------
  1537. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1538. ac_fn_c_try_link ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. rm -f conftest.$ac_objext conftest$ac_exeext
  1542. if { { ac_try="$ac_link"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_link") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } && {
  1558. test -z "$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. } && test -s conftest$ac_exeext && {
  1561. test "$cross_compiling" = yes ||
  1562. test -x conftest$ac_exeext
  1563. }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1571. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1572. # interfere with the next link command; also delete a directory that is
  1573. # left behind by Apple's compiler. We do this before executing the actions.
  1574. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1575. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1576. as_fn_set_status $ac_retval
  1577. } # ac_fn_c_try_link
  1578. cat >config.log <<_ACEOF
  1579. This file contains any messages produced by compilers while
  1580. running configure, to aid debugging if configure makes a mistake.
  1581. It was created by PresentProto $as_me 1.0, which was
  1582. generated by GNU Autoconf 2.69. Invocation command line was
  1583. $ $0 $@
  1584. _ACEOF
  1585. exec 5>>config.log
  1586. {
  1587. cat <<_ASUNAME
  1588. ## --------- ##
  1589. ## Platform. ##
  1590. ## --------- ##
  1591. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1592. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1593. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1594. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1595. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1596. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1597. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1598. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1599. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1600. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1601. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1602. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1603. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1604. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1605. _ASUNAME
  1606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1607. for as_dir in $PATH
  1608. do
  1609. IFS=$as_save_IFS
  1610. test -z "$as_dir" && as_dir=.
  1611. $as_echo "PATH: $as_dir"
  1612. done
  1613. IFS=$as_save_IFS
  1614. } >&5
  1615. cat >&5 <<_ACEOF
  1616. ## ----------- ##
  1617. ## Core tests. ##
  1618. ## ----------- ##
  1619. _ACEOF
  1620. # Keep a trace of the command line.
  1621. # Strip out --no-create and --no-recursion so they do not pile up.
  1622. # Strip out --silent because we don't want to record it for future runs.
  1623. # Also quote any args containing shell meta-characters.
  1624. # Make two passes to allow for proper duplicate-argument suppression.
  1625. ac_configure_args=
  1626. ac_configure_args0=
  1627. ac_configure_args1=
  1628. ac_must_keep_next=false
  1629. for ac_pass in 1 2
  1630. do
  1631. for ac_arg
  1632. do
  1633. case $ac_arg in
  1634. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1635. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1636. | -silent | --silent | --silen | --sile | --sil)
  1637. continue ;;
  1638. *\'*)
  1639. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1640. esac
  1641. case $ac_pass in
  1642. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1643. 2)
  1644. as_fn_append ac_configure_args1 " '$ac_arg'"
  1645. if test $ac_must_keep_next = true; then
  1646. ac_must_keep_next=false # Got value, back to normal.
  1647. else
  1648. case $ac_arg in
  1649. *=* | --config-cache | -C | -disable-* | --disable-* \
  1650. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1651. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1652. | -with-* | --with-* | -without-* | --without-* | --x)
  1653. case "$ac_configure_args0 " in
  1654. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1655. esac
  1656. ;;
  1657. -* ) ac_must_keep_next=true ;;
  1658. esac
  1659. fi
  1660. as_fn_append ac_configure_args " '$ac_arg'"
  1661. ;;
  1662. esac
  1663. done
  1664. done
  1665. { ac_configure_args0=; unset ac_configure_args0;}
  1666. { ac_configure_args1=; unset ac_configure_args1;}
  1667. # When interrupted or exit'd, cleanup temporary files, and complete
  1668. # config.log. We remove comments because anyway the quotes in there
  1669. # would cause problems or look ugly.
  1670. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1671. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1672. trap 'exit_status=$?
  1673. # Save into config.log some information that might help in debugging.
  1674. {
  1675. echo
  1676. $as_echo "## ---------------- ##
  1677. ## Cache variables. ##
  1678. ## ---------------- ##"
  1679. echo
  1680. # The following way of writing the cache mishandles newlines in values,
  1681. (
  1682. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1683. eval ac_val=\$$ac_var
  1684. case $ac_val in #(
  1685. *${as_nl}*)
  1686. case $ac_var in #(
  1687. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1688. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1689. esac
  1690. case $ac_var in #(
  1691. _ | IFS | as_nl) ;; #(
  1692. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1693. *) { eval $ac_var=; unset $ac_var;} ;;
  1694. esac ;;
  1695. esac
  1696. done
  1697. (set) 2>&1 |
  1698. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1699. *${as_nl}ac_space=\ *)
  1700. sed -n \
  1701. "s/'\''/'\''\\\\'\'''\''/g;
  1702. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1703. ;; #(
  1704. *)
  1705. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1706. ;;
  1707. esac |
  1708. sort
  1709. )
  1710. echo
  1711. $as_echo "## ----------------- ##
  1712. ## Output variables. ##
  1713. ## ----------------- ##"
  1714. echo
  1715. for ac_var in $ac_subst_vars
  1716. do
  1717. eval ac_val=\$$ac_var
  1718. case $ac_val in
  1719. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1720. esac
  1721. $as_echo "$ac_var='\''$ac_val'\''"
  1722. done | sort
  1723. echo
  1724. if test -n "$ac_subst_files"; then
  1725. $as_echo "## ------------------- ##
  1726. ## File substitutions. ##
  1727. ## ------------------- ##"
  1728. echo
  1729. for ac_var in $ac_subst_files
  1730. do
  1731. eval ac_val=\$$ac_var
  1732. case $ac_val in
  1733. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1734. esac
  1735. $as_echo "$ac_var='\''$ac_val'\''"
  1736. done | sort
  1737. echo
  1738. fi
  1739. if test -s confdefs.h; then
  1740. $as_echo "## ----------- ##
  1741. ## confdefs.h. ##
  1742. ## ----------- ##"
  1743. echo
  1744. cat confdefs.h
  1745. echo
  1746. fi
  1747. test "$ac_signal" != 0 &&
  1748. $as_echo "$as_me: caught signal $ac_signal"
  1749. $as_echo "$as_me: exit $exit_status"
  1750. } >&5
  1751. rm -f core *.core core.conftest.* &&
  1752. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1753. exit $exit_status
  1754. ' 0
  1755. for ac_signal in 1 2 13 15; do
  1756. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1757. done
  1758. ac_signal=0
  1759. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1760. rm -f -r conftest* confdefs.h
  1761. $as_echo "/* confdefs.h */" > confdefs.h
  1762. # Predefined preprocessor variables.
  1763. cat >>confdefs.h <<_ACEOF
  1764. #define PACKAGE_NAME "$PACKAGE_NAME"
  1765. _ACEOF
  1766. cat >>confdefs.h <<_ACEOF
  1767. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1768. _ACEOF
  1769. cat >>confdefs.h <<_ACEOF
  1770. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1771. _ACEOF
  1772. cat >>confdefs.h <<_ACEOF
  1773. #define PACKAGE_STRING "$PACKAGE_STRING"
  1774. _ACEOF
  1775. cat >>confdefs.h <<_ACEOF
  1776. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1777. _ACEOF
  1778. cat >>confdefs.h <<_ACEOF
  1779. #define PACKAGE_URL "$PACKAGE_URL"
  1780. _ACEOF
  1781. # Let the site file select an alternate cache file if it wants to.
  1782. # Prefer an explicitly selected file to automatically selected ones.
  1783. ac_site_file1=NONE
  1784. ac_site_file2=NONE
  1785. if test -n "$CONFIG_SITE"; then
  1786. # We do not want a PATH search for config.site.
  1787. case $CONFIG_SITE in #((
  1788. -*) ac_site_file1=./$CONFIG_SITE;;
  1789. */*) ac_site_file1=$CONFIG_SITE;;
  1790. *) ac_site_file1=./$CONFIG_SITE;;
  1791. esac
  1792. elif test "x$prefix" != xNONE; then
  1793. ac_site_file1=$prefix/share/config.site
  1794. ac_site_file2=$prefix/etc/config.site
  1795. else
  1796. ac_site_file1=$ac_default_prefix/share/config.site
  1797. ac_site_file2=$ac_default_prefix/etc/config.site
  1798. fi
  1799. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1800. do
  1801. test "x$ac_site_file" = xNONE && continue
  1802. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1804. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1805. sed 's/^/| /' "$ac_site_file" >&5
  1806. . "$ac_site_file" \
  1807. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1809. as_fn_error $? "failed to load site script $ac_site_file
  1810. See \`config.log' for more details" "$LINENO" 5; }
  1811. fi
  1812. done
  1813. if test -r "$cache_file"; then
  1814. # Some versions of bash will fail to source /dev/null (special files
  1815. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1816. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1818. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1819. case $cache_file in
  1820. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1821. *) . "./$cache_file";;
  1822. esac
  1823. fi
  1824. else
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1826. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1827. >$cache_file
  1828. fi
  1829. # Check that the precious variables saved in the cache have kept the same
  1830. # value.
  1831. ac_cache_corrupted=false
  1832. for ac_var in $ac_precious_vars; do
  1833. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1834. eval ac_new_set=\$ac_env_${ac_var}_set
  1835. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1836. eval ac_new_val=\$ac_env_${ac_var}_value
  1837. case $ac_old_set,$ac_new_set in
  1838. set,)
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1840. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1841. ac_cache_corrupted=: ;;
  1842. ,set)
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1844. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1845. ac_cache_corrupted=: ;;
  1846. ,);;
  1847. *)
  1848. if test "x$ac_old_val" != "x$ac_new_val"; then
  1849. # differences in whitespace do not lead to failure.
  1850. ac_old_val_w=`echo x $ac_old_val`
  1851. ac_new_val_w=`echo x $ac_new_val`
  1852. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1854. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1855. ac_cache_corrupted=:
  1856. else
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1858. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1859. eval $ac_var=\$ac_old_val
  1860. fi
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1862. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1864. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1865. fi;;
  1866. esac
  1867. # Pass precious variables to config.status.
  1868. if test "$ac_new_set" = set; then
  1869. case $ac_new_val in
  1870. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1871. *) ac_arg=$ac_var=$ac_new_val ;;
  1872. esac
  1873. case " $ac_configure_args " in
  1874. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1875. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1876. esac
  1877. fi
  1878. done
  1879. if $ac_cache_corrupted; then
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1883. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1884. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1885. fi
  1886. ## -------------------- ##
  1887. ## Main body of script. ##
  1888. ## -------------------- ##
  1889. ac_ext=c
  1890. ac_cpp='$CPP $CPPFLAGS'
  1891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1894. am__api_version='1.13'
  1895. ac_aux_dir=
  1896. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1897. if test -f "$ac_dir/install-sh"; then
  1898. ac_aux_dir=$ac_dir
  1899. ac_install_sh="$ac_aux_dir/install-sh -c"
  1900. break
  1901. elif test -f "$ac_dir/install.sh"; then
  1902. ac_aux_dir=$ac_dir
  1903. ac_install_sh="$ac_aux_dir/install.sh -c"
  1904. break
  1905. elif test -f "$ac_dir/shtool"; then
  1906. ac_aux_dir=$ac_dir
  1907. ac_install_sh="$ac_aux_dir/shtool install -c"
  1908. break
  1909. fi
  1910. done
  1911. if test -z "$ac_aux_dir"; then
  1912. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1913. fi
  1914. # These three variables are undocumented and unsupported,
  1915. # and are intended to be withdrawn in a future Autoconf release.
  1916. # They can cause serious problems if a builder's source tree is in a directory
  1917. # whose full name contains unusual characters.
  1918. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1919. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1920. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1921. # Find a good install program. We prefer a C program (faster),
  1922. # so one script is as good as another. But avoid the broken or
  1923. # incompatible versions:
  1924. # SysV /etc/install, /usr/sbin/install
  1925. # SunOS /usr/etc/install
  1926. # IRIX /sbin/install
  1927. # AIX /bin/install
  1928. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1929. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1930. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1931. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1932. # OS/2's system install, which has a completely different semantic
  1933. # ./install, which can be erroneously created by make from ./install.sh.
  1934. # Reject install programs that cannot install multiple files.
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1936. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1937. if test -z "$INSTALL"; then
  1938. if ${ac_cv_path_install+:} false; then :
  1939. $as_echo_n "(cached) " >&6
  1940. else
  1941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1942. for as_dir in $PATH
  1943. do
  1944. IFS=$as_save_IFS
  1945. test -z "$as_dir" && as_dir=.
  1946. # Account for people who put trailing slashes in PATH elements.
  1947. case $as_dir/ in #((
  1948. ./ | .// | /[cC]/* | \
  1949. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1950. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1951. /usr/ucb/* ) ;;
  1952. *)
  1953. # OSF1 and SCO ODT 3.0 have their own names for install.
  1954. # Don't use installbsd from OSF since it installs stuff as root
  1955. # by default.
  1956. for ac_prog in ginstall scoinst install; do
  1957. for ac_exec_ext in '' $ac_executable_extensions; do
  1958. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1959. if test $ac_prog = install &&
  1960. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1961. # AIX install. It has an incompatible calling convention.
  1962. :
  1963. elif test $ac_prog = install &&
  1964. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1965. # program-specific install script used by HP pwplus--don't use.
  1966. :
  1967. else
  1968. rm -rf conftest.one conftest.two conftest.dir
  1969. echo one > conftest.one
  1970. echo two > conftest.two
  1971. mkdir conftest.dir
  1972. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1973. test -s conftest.one && test -s conftest.two &&
  1974. test -s conftest.dir/conftest.one &&
  1975. test -s conftest.dir/conftest.two
  1976. then
  1977. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1978. break 3
  1979. fi
  1980. fi
  1981. fi
  1982. done
  1983. done
  1984. ;;
  1985. esac
  1986. done
  1987. IFS=$as_save_IFS
  1988. rm -rf conftest.one conftest.two conftest.dir
  1989. fi
  1990. if test "${ac_cv_path_install+set}" = set; then
  1991. INSTALL=$ac_cv_path_install
  1992. else
  1993. # As a last resort, use the slow shell script. Don't cache a
  1994. # value for INSTALL within a source directory, because that will
  1995. # break other packages using the cache if that directory is
  1996. # removed, or if the value is a relative name.
  1997. INSTALL=$ac_install_sh
  1998. fi
  1999. fi
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2001. $as_echo "$INSTALL" >&6; }
  2002. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2003. # It thinks the first close brace ends the variable substitution.
  2004. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2005. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2006. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2008. $as_echo_n "checking whether build environment is sane... " >&6; }
  2009. # Reject unsafe characters in $srcdir or the absolute working directory
  2010. # name. Accept space and tab only in the latter.
  2011. am_lf='
  2012. '
  2013. case `pwd` in
  2014. *[\\\"\#\$\&\'\`$am_lf]*)
  2015. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2016. esac
  2017. case $srcdir in
  2018. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2019. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2020. esac
  2021. # Do 'set' in a subshell so we don't clobber the current shell's
  2022. # arguments. Must try -L first in case configure is actually a
  2023. # symlink; some systems play weird games with the mod time of symlinks
  2024. # (eg FreeBSD returns the mod time of the symlink's containing
  2025. # directory).
  2026. if (
  2027. am_has_slept=no
  2028. for am_try in 1 2; do
  2029. echo "timestamp, slept: $am_has_slept" > conftest.file
  2030. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2031. if test "$*" = "X"; then
  2032. # -L didn't work.
  2033. set X `ls -t "$srcdir/configure" conftest.file`
  2034. fi
  2035. if test "$*" != "X $srcdir/configure conftest.file" \
  2036. && test "$*" != "X conftest.file $srcdir/configure"; then
  2037. # If neither matched, then we have a broken ls. This can happen
  2038. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2039. # broken ls alias from the environment. This has actually
  2040. # happened. Such a system could not be considered "sane".
  2041. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2042. alias in your environment" "$LINENO" 5
  2043. fi
  2044. if test "$2" = conftest.file || test $am_try -eq 2; then
  2045. break
  2046. fi
  2047. # Just in case.
  2048. sleep 1
  2049. am_has_slept=yes
  2050. done
  2051. test "$2" = conftest.file
  2052. )
  2053. then
  2054. # Ok.
  2055. :
  2056. else
  2057. as_fn_error $? "newly created file is older than distributed files!
  2058. Check your system clock" "$LINENO" 5
  2059. fi
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2061. $as_echo "yes" >&6; }
  2062. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2063. # generated files are strictly newer.
  2064. am_sleep_pid=
  2065. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2066. ( sleep 1 ) &
  2067. am_sleep_pid=$!
  2068. fi
  2069. rm -f conftest.file
  2070. test "$program_prefix" != NONE &&
  2071. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2072. # Use a double $ so make ignores it.
  2073. test "$program_suffix" != NONE &&
  2074. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2075. # Double any \ or $.
  2076. # By default was `s,x,x', remove it if useless.
  2077. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2078. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2079. # expand $ac_aux_dir to an absolute path
  2080. am_aux_dir=`cd $ac_aux_dir && pwd`
  2081. if test x"${MISSING+set}" != xset; then
  2082. case $am_aux_dir in
  2083. *\ * | *\ *)
  2084. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2085. *)
  2086. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2087. esac
  2088. fi
  2089. # Use eval to expand $SHELL
  2090. if eval "$MISSING --is-lightweight"; then
  2091. am_missing_run="$MISSING "
  2092. else
  2093. am_missing_run=
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2095. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2096. fi
  2097. if test x"${install_sh}" != xset; then
  2098. case $am_aux_dir in
  2099. *\ * | *\ *)
  2100. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2101. *)
  2102. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2103. esac
  2104. fi
  2105. # Installed binaries are usually stripped using 'strip' when the user
  2106. # run "make install-strip". However 'strip' might not be the right
  2107. # tool to use in cross-compilation environments, therefore Automake
  2108. # will honor the 'STRIP' environment variable to overrule this program.
  2109. if test "$cross_compiling" != no; then
  2110. if test -n "$ac_tool_prefix"; then
  2111. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2112. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2114. $as_echo_n "checking for $ac_word... " >&6; }
  2115. if ${ac_cv_prog_STRIP+:} false; then :
  2116. $as_echo_n "(cached) " >&6
  2117. else
  2118. if test -n "$STRIP"; then
  2119. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2120. else
  2121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2122. for as_dir in $PATH
  2123. do
  2124. IFS=$as_save_IFS
  2125. test -z "$as_dir" && as_dir=.
  2126. for ac_exec_ext in '' $ac_executable_extensions; do
  2127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2128. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2130. break 2
  2131. fi
  2132. done
  2133. done
  2134. IFS=$as_save_IFS
  2135. fi
  2136. fi
  2137. STRIP=$ac_cv_prog_STRIP
  2138. if test -n "$STRIP"; then
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2140. $as_echo "$STRIP" >&6; }
  2141. else
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2143. $as_echo "no" >&6; }
  2144. fi
  2145. fi
  2146. if test -z "$ac_cv_prog_STRIP"; then
  2147. ac_ct_STRIP=$STRIP
  2148. # Extract the first word of "strip", so it can be a program name with args.
  2149. set dummy strip; ac_word=$2
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2151. $as_echo_n "checking for $ac_word... " >&6; }
  2152. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2153. $as_echo_n "(cached) " >&6
  2154. else
  2155. if test -n "$ac_ct_STRIP"; then
  2156. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2157. else
  2158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2159. for as_dir in $PATH
  2160. do
  2161. IFS=$as_save_IFS
  2162. test -z "$as_dir" && as_dir=.
  2163. for ac_exec_ext in '' $ac_executable_extensions; do
  2164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2165. ac_cv_prog_ac_ct_STRIP="strip"
  2166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2167. break 2
  2168. fi
  2169. done
  2170. done
  2171. IFS=$as_save_IFS
  2172. fi
  2173. fi
  2174. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2175. if test -n "$ac_ct_STRIP"; then
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2177. $as_echo "$ac_ct_STRIP" >&6; }
  2178. else
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2180. $as_echo "no" >&6; }
  2181. fi
  2182. if test "x$ac_ct_STRIP" = x; then
  2183. STRIP=":"
  2184. else
  2185. case $cross_compiling:$ac_tool_warned in
  2186. yes:)
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2189. ac_tool_warned=yes ;;
  2190. esac
  2191. STRIP=$ac_ct_STRIP
  2192. fi
  2193. else
  2194. STRIP="$ac_cv_prog_STRIP"
  2195. fi
  2196. fi
  2197. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2199. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2200. if test -z "$MKDIR_P"; then
  2201. if ${ac_cv_path_mkdir+:} false; then :
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2205. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2206. do
  2207. IFS=$as_save_IFS
  2208. test -z "$as_dir" && as_dir=.
  2209. for ac_prog in mkdir gmkdir; do
  2210. for ac_exec_ext in '' $ac_executable_extensions; do
  2211. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2212. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2213. 'mkdir (GNU coreutils) '* | \
  2214. 'mkdir (coreutils) '* | \
  2215. 'mkdir (fileutils) '4.1*)
  2216. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2217. break 3;;
  2218. esac
  2219. done
  2220. done
  2221. done
  2222. IFS=$as_save_IFS
  2223. fi
  2224. test -d ./--version && rmdir ./--version
  2225. if test "${ac_cv_path_mkdir+set}" = set; then
  2226. MKDIR_P="$ac_cv_path_mkdir -p"
  2227. else
  2228. # As a last resort, use the slow shell script. Don't cache a
  2229. # value for MKDIR_P within a source directory, because that will
  2230. # break other packages using the cache if that directory is
  2231. # removed, or if the value is a relative name.
  2232. MKDIR_P="$ac_install_sh -d"
  2233. fi
  2234. fi
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2236. $as_echo "$MKDIR_P" >&6; }
  2237. for ac_prog in gawk mawk nawk awk
  2238. do
  2239. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2240. set dummy $ac_prog; ac_word=$2
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2242. $as_echo_n "checking for $ac_word... " >&6; }
  2243. if ${ac_cv_prog_AWK+:} false; then :
  2244. $as_echo_n "(cached) " >&6
  2245. else
  2246. if test -n "$AWK"; then
  2247. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2248. else
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. for ac_exec_ext in '' $ac_executable_extensions; do
  2255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2256. ac_cv_prog_AWK="$ac_prog"
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. fi
  2264. fi
  2265. AWK=$ac_cv_prog_AWK
  2266. if test -n "$AWK"; then
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2268. $as_echo "$AWK" >&6; }
  2269. else
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2271. $as_echo "no" >&6; }
  2272. fi
  2273. test -n "$AWK" && break
  2274. done
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2276. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2277. set x ${MAKE-make}
  2278. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2279. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2280. $as_echo_n "(cached) " >&6
  2281. else
  2282. cat >conftest.make <<\_ACEOF
  2283. SHELL = /bin/sh
  2284. all:
  2285. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2286. _ACEOF
  2287. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2288. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2289. *@@@%%%=?*=@@@%%%*)
  2290. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2291. *)
  2292. eval ac_cv_prog_make_${ac_make}_set=no;;
  2293. esac
  2294. rm -f conftest.make
  2295. fi
  2296. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2298. $as_echo "yes" >&6; }
  2299. SET_MAKE=
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. SET_MAKE="MAKE=${MAKE-make}"
  2304. fi
  2305. rm -rf .tst 2>/dev/null
  2306. mkdir .tst 2>/dev/null
  2307. if test -d .tst; then
  2308. am__leading_dot=.
  2309. else
  2310. am__leading_dot=_
  2311. fi
  2312. rmdir .tst 2>/dev/null
  2313. # Check whether --enable-silent-rules was given.
  2314. if test "${enable_silent_rules+set}" = set; then :
  2315. enableval=$enable_silent_rules;
  2316. fi
  2317. case $enable_silent_rules in # (((
  2318. yes) AM_DEFAULT_VERBOSITY=0;;
  2319. no) AM_DEFAULT_VERBOSITY=1;;
  2320. *) AM_DEFAULT_VERBOSITY=1;;
  2321. esac
  2322. am_make=${MAKE-make}
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2324. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2325. if ${am_cv_make_support_nested_variables+:} false; then :
  2326. $as_echo_n "(cached) " >&6
  2327. else
  2328. if $as_echo 'TRUE=$(BAR$(V))
  2329. BAR0=false
  2330. BAR1=true
  2331. V=1
  2332. am__doit:
  2333. @$(TRUE)
  2334. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2335. am_cv_make_support_nested_variables=yes
  2336. else
  2337. am_cv_make_support_nested_variables=no
  2338. fi
  2339. fi
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2341. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2342. if test $am_cv_make_support_nested_variables = yes; then
  2343. AM_V='$(V)'
  2344. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2345. else
  2346. AM_V=$AM_DEFAULT_VERBOSITY
  2347. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2348. fi
  2349. AM_BACKSLASH='\'
  2350. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2351. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2352. # is not polluted with repeated "-I."
  2353. am__isrc=' -I$(srcdir)'
  2354. # test to see if srcdir already configured
  2355. if test -f $srcdir/config.status; then
  2356. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2357. fi
  2358. fi
  2359. # test whether we have cygpath
  2360. if test -z "$CYGPATH_W"; then
  2361. if (cygpath --version) >/dev/null 2>/dev/null; then
  2362. CYGPATH_W='cygpath -w'
  2363. else
  2364. CYGPATH_W=echo
  2365. fi
  2366. fi
  2367. # Define the identity of the package.
  2368. PACKAGE='presentproto'
  2369. VERSION='1.0'
  2370. cat >>confdefs.h <<_ACEOF
  2371. #define PACKAGE "$PACKAGE"
  2372. _ACEOF
  2373. cat >>confdefs.h <<_ACEOF
  2374. #define VERSION "$VERSION"
  2375. _ACEOF
  2376. # Some tools Automake needs.
  2377. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2378. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2379. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2380. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2381. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2382. # For better backward compatibility. To be removed once Automake 1.9.x
  2383. # dies out for good. For more background, see:
  2384. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2385. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2386. mkdir_p='$(MKDIR_P)'
  2387. # We need awk for the "check" target. The system "awk" is bad on
  2388. # some platforms.
  2389. # Always define AMTAR for backward compatibility. Yes, it's still used
  2390. # in the wild :-( We should find a proper way to deprecate it ...
  2391. AMTAR='$${TAR-tar}'
  2392. # We'll loop over all known methods to create a tar archive until one works.
  2393. _am_tools='gnutar pax cpio none'
  2394. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2396. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2397. # Check whether --enable-maintainer-mode was given.
  2398. if test "${enable_maintainer_mode+set}" = set; then :
  2399. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2400. else
  2401. USE_MAINTAINER_MODE=no
  2402. fi
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2404. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2405. if test $USE_MAINTAINER_MODE = yes; then
  2406. MAINTAINER_MODE_TRUE=
  2407. MAINTAINER_MODE_FALSE='#'
  2408. else
  2409. MAINTAINER_MODE_TRUE='#'
  2410. MAINTAINER_MODE_FALSE=
  2411. fi
  2412. MAINT=$MAINTAINER_MODE_TRUE
  2413. # Require xorg-macros: XORG_DEFAULT_OPTIONS
  2414. DEPDIR="${am__leading_dot}deps"
  2415. ac_config_commands="$ac_config_commands depfiles"
  2416. am_make=${MAKE-make}
  2417. cat > confinc << 'END'
  2418. am__doit:
  2419. @echo this is the am__doit target
  2420. .PHONY: am__doit
  2421. END
  2422. # If we don't find an include directive, just comment out the code.
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2424. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2425. am__include="#"
  2426. am__quote=
  2427. _am_result=none
  2428. # First try GNU make style include.
  2429. echo "include confinc" > confmf
  2430. # Ignore all kinds of additional output from 'make'.
  2431. case `$am_make -s -f confmf 2> /dev/null` in #(
  2432. *the\ am__doit\ target*)
  2433. am__include=include
  2434. am__quote=
  2435. _am_result=GNU
  2436. ;;
  2437. esac
  2438. # Now try BSD make style include.
  2439. if test "$am__include" = "#"; then
  2440. echo '.include "confinc"' > confmf
  2441. case `$am_make -s -f confmf 2> /dev/null` in #(
  2442. *the\ am__doit\ target*)
  2443. am__include=.include
  2444. am__quote="\""
  2445. _am_result=BSD
  2446. ;;
  2447. esac
  2448. fi
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2450. $as_echo "$_am_result" >&6; }
  2451. rm -f confinc confmf
  2452. # Check whether --enable-dependency-tracking was given.
  2453. if test "${enable_dependency_tracking+set}" = set; then :
  2454. enableval=$enable_dependency_tracking;
  2455. fi
  2456. if test "x$enable_dependency_tracking" != xno; then
  2457. am_depcomp="$ac_aux_dir/depcomp"
  2458. AMDEPBACKSLASH='\'
  2459. am__nodep='_no'
  2460. fi
  2461. if test "x$enable_dependency_tracking" != xno; then
  2462. AMDEP_TRUE=
  2463. AMDEP_FALSE='#'
  2464. else
  2465. AMDEP_TRUE='#'
  2466. AMDEP_FALSE=
  2467. fi
  2468. ac_ext=c
  2469. ac_cpp='$CPP $CPPFLAGS'
  2470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2473. if test -n "$ac_tool_prefix"; then
  2474. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2475. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2477. $as_echo_n "checking for $ac_word... " >&6; }
  2478. if ${ac_cv_prog_CC+:} false; then :
  2479. $as_echo_n "(cached) " >&6
  2480. else
  2481. if test -n "$CC"; then
  2482. ac_cv_prog_CC="$CC" # Let the user override the test.
  2483. else
  2484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2485. for as_dir in $PATH
  2486. do
  2487. IFS=$as_save_IFS
  2488. test -z "$as_dir" && as_dir=.
  2489. for ac_exec_ext in '' $ac_executable_extensions; do
  2490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2491. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2493. break 2
  2494. fi
  2495. done
  2496. done
  2497. IFS=$as_save_IFS
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2503. $as_echo "$CC" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. fi
  2509. if test -z "$ac_cv_prog_CC"; then
  2510. ac_ct_CC=$CC
  2511. # Extract the first word of "gcc", so it can be a program name with args.
  2512. set dummy gcc; ac_word=$2
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2514. $as_echo_n "checking for $ac_word... " >&6; }
  2515. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. if test -n "$ac_ct_CC"; then
  2519. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2528. ac_cv_prog_ac_ct_CC="gcc"
  2529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. fi
  2537. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2538. if test -n "$ac_ct_CC"; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2540. $as_echo "$ac_ct_CC" >&6; }
  2541. else
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. fi
  2545. if test "x$ac_ct_CC" = x; then
  2546. CC=""
  2547. else
  2548. case $cross_compiling:$ac_tool_warned in
  2549. yes:)
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2552. ac_tool_warned=yes ;;
  2553. esac
  2554. CC=$ac_ct_CC
  2555. fi
  2556. else
  2557. CC="$ac_cv_prog_CC"
  2558. fi
  2559. if test -z "$CC"; then
  2560. if test -n "$ac_tool_prefix"; then
  2561. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2562. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2564. $as_echo_n "checking for $ac_word... " >&6; }
  2565. if ${ac_cv_prog_CC+:} false; then :
  2566. $as_echo_n "(cached) " >&6
  2567. else
  2568. if test -n "$CC"; then
  2569. ac_cv_prog_CC="$CC" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2578. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. IFS=$as_save_IFS
  2585. fi
  2586. fi
  2587. CC=$ac_cv_prog_CC
  2588. if test -n "$CC"; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2590. $as_echo "$CC" >&6; }
  2591. else
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595. fi
  2596. fi
  2597. if test -z "$CC"; then
  2598. # Extract the first word of "cc", so it can be a program name with args.
  2599. set dummy cc; ac_word=$2
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2601. $as_echo_n "checking for $ac_word... " >&6; }
  2602. if ${ac_cv_prog_CC+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. if test -n "$CC"; then
  2606. ac_cv_prog_CC="$CC" # Let the user override the test.
  2607. else
  2608. ac_prog_rejected=no
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. for ac_exec_ext in '' $ac_executable_extensions; do
  2615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2616. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2617. ac_prog_rejected=yes
  2618. continue
  2619. fi
  2620. ac_cv_prog_CC="cc"
  2621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2622. break 2
  2623. fi
  2624. done
  2625. done
  2626. IFS=$as_save_IFS
  2627. if test $ac_prog_rejected = yes; then
  2628. # We found a bogon in the path, so make sure we never use it.
  2629. set dummy $ac_cv_prog_CC
  2630. shift
  2631. if test $# != 0; then
  2632. # We chose a different compiler from the bogus one.
  2633. # However, it has the same basename, so the bogon will be chosen
  2634. # first if we set CC to just the basename; use the full file name.
  2635. shift
  2636. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2637. fi
  2638. fi
  2639. fi
  2640. fi
  2641. CC=$ac_cv_prog_CC
  2642. if test -n "$CC"; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2644. $as_echo "$CC" >&6; }
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. fi
  2650. if test -z "$CC"; then
  2651. if test -n "$ac_tool_prefix"; then
  2652. for ac_prog in cl.exe
  2653. do
  2654. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2655. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if ${ac_cv_prog_CC+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$CC"; then
  2662. ac_cv_prog_CC="$CC" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2671. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. CC=$ac_cv_prog_CC
  2681. if test -n "$CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2683. $as_echo "$CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. test -n "$CC" && break
  2689. done
  2690. fi
  2691. if test -z "$CC"; then
  2692. ac_ct_CC=$CC
  2693. for ac_prog in cl.exe
  2694. do
  2695. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2696. set dummy $ac_prog; ac_word=$2
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2698. $as_echo_n "checking for $ac_word... " >&6; }
  2699. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2700. $as_echo_n "(cached) " >&6
  2701. else
  2702. if test -n "$ac_ct_CC"; then
  2703. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2704. else
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_exec_ext in '' $ac_executable_extensions; do
  2711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2712. ac_cv_prog_ac_ct_CC="$ac_prog"
  2713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2714. break 2
  2715. fi
  2716. done
  2717. done
  2718. IFS=$as_save_IFS
  2719. fi
  2720. fi
  2721. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2722. if test -n "$ac_ct_CC"; then
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2724. $as_echo "$ac_ct_CC" >&6; }
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2727. $as_echo "no" >&6; }
  2728. fi
  2729. test -n "$ac_ct_CC" && break
  2730. done
  2731. if test "x$ac_ct_CC" = x; then
  2732. CC=""
  2733. else
  2734. case $cross_compiling:$ac_tool_warned in
  2735. yes:)
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2737. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2738. ac_tool_warned=yes ;;
  2739. esac
  2740. CC=$ac_ct_CC
  2741. fi
  2742. fi
  2743. fi
  2744. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. as_fn_error $? "no acceptable C compiler found in \$PATH
  2747. See \`config.log' for more details" "$LINENO" 5; }
  2748. # Provide some information about the compiler.
  2749. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2750. set X $ac_compile
  2751. ac_compiler=$2
  2752. for ac_option in --version -v -V -qversion; do
  2753. { { ac_try="$ac_compiler $ac_option >&5"
  2754. case "(($ac_try" in
  2755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2756. *) ac_try_echo=$ac_try;;
  2757. esac
  2758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2759. $as_echo "$ac_try_echo"; } >&5
  2760. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2761. ac_status=$?
  2762. if test -s conftest.err; then
  2763. sed '10a\
  2764. ... rest of stderr output deleted ...
  2765. 10q' conftest.err >conftest.er1
  2766. cat conftest.er1 >&5
  2767. fi
  2768. rm -f conftest.er1 conftest.err
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2770. test $ac_status = 0; }
  2771. done
  2772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2773. /* end confdefs.h. */
  2774. int
  2775. main ()
  2776. {
  2777. ;
  2778. return 0;
  2779. }
  2780. _ACEOF
  2781. ac_clean_files_save=$ac_clean_files
  2782. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2783. # Try to create an executable without -o first, disregard a.out.
  2784. # It will help us diagnose broken compilers, and finding out an intuition
  2785. # of exeext.
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2787. $as_echo_n "checking whether the C compiler works... " >&6; }
  2788. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2789. # The possible output files:
  2790. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2791. ac_rmfiles=
  2792. for ac_file in $ac_files
  2793. do
  2794. case $ac_file in
  2795. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2796. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2797. esac
  2798. done
  2799. rm -f $ac_rmfiles
  2800. if { { ac_try="$ac_link_default"
  2801. case "(($ac_try" in
  2802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2803. *) ac_try_echo=$ac_try;;
  2804. esac
  2805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2806. $as_echo "$ac_try_echo"; } >&5
  2807. (eval "$ac_link_default") 2>&5
  2808. ac_status=$?
  2809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2810. test $ac_status = 0; }; then :
  2811. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2812. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2813. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2814. # so that the user can short-circuit this test for compilers unknown to
  2815. # Autoconf.
  2816. for ac_file in $ac_files ''
  2817. do
  2818. test -f "$ac_file" || continue
  2819. case $ac_file in
  2820. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2821. ;;
  2822. [ab].out )
  2823. # We found the default executable, but exeext='' is most
  2824. # certainly right.
  2825. break;;
  2826. *.* )
  2827. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2828. then :; else
  2829. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2830. fi
  2831. # We set ac_cv_exeext here because the later test for it is not
  2832. # safe: cross compilers may not add the suffix if given an `-o'
  2833. # argument, so we may need to know it at that point already.
  2834. # Even if this section looks crufty: it has the advantage of
  2835. # actually working.
  2836. break;;
  2837. * )
  2838. break;;
  2839. esac
  2840. done
  2841. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2842. else
  2843. ac_file=''
  2844. fi
  2845. if test -z "$ac_file"; then :
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2847. $as_echo "no" >&6; }
  2848. $as_echo "$as_me: failed program was:" >&5
  2849. sed 's/^/| /' conftest.$ac_ext >&5
  2850. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2852. as_fn_error 77 "C compiler cannot create executables
  2853. See \`config.log' for more details" "$LINENO" 5; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2856. $as_echo "yes" >&6; }
  2857. fi
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2859. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2861. $as_echo "$ac_file" >&6; }
  2862. ac_exeext=$ac_cv_exeext
  2863. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2864. ac_clean_files=$ac_clean_files_save
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2866. $as_echo_n "checking for suffix of executables... " >&6; }
  2867. if { { ac_try="$ac_link"
  2868. case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2873. $as_echo "$ac_try_echo"; } >&5
  2874. (eval "$ac_link") 2>&5
  2875. ac_status=$?
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2877. test $ac_status = 0; }; then :
  2878. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2879. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2880. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2881. # `rm'.
  2882. for ac_file in conftest.exe conftest conftest.*; 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. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2887. break;;
  2888. * ) break;;
  2889. esac
  2890. done
  2891. else
  2892. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2893. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2894. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2895. See \`config.log' for more details" "$LINENO" 5; }
  2896. fi
  2897. rm -f conftest conftest$ac_cv_exeext
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2899. $as_echo "$ac_cv_exeext" >&6; }
  2900. rm -f conftest.$ac_ext
  2901. EXEEXT=$ac_cv_exeext
  2902. ac_exeext=$EXEEXT
  2903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2904. /* end confdefs.h. */
  2905. #include <stdio.h>
  2906. int
  2907. main ()
  2908. {
  2909. FILE *f = fopen ("conftest.out", "w");
  2910. return ferror (f) || fclose (f) != 0;
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. ac_clean_files="$ac_clean_files conftest.out"
  2916. # Check that the compiler produces executables we can run. If not, either
  2917. # the compiler is broken, or we cross compile.
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2919. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2920. if test "$cross_compiling" != yes; then
  2921. { { ac_try="$ac_link"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo"; } >&5
  2928. (eval "$ac_link") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2931. test $ac_status = 0; }
  2932. if { ac_try='./conftest$ac_cv_exeext'
  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_try") 2>&5
  2940. ac_status=$?
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2942. test $ac_status = 0; }; }; then
  2943. cross_compiling=no
  2944. else
  2945. if test "$cross_compiling" = maybe; then
  2946. cross_compiling=yes
  2947. else
  2948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error $? "cannot run C compiled programs.
  2951. If you meant to cross compile, use \`--host'.
  2952. See \`config.log' for more details" "$LINENO" 5; }
  2953. fi
  2954. fi
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2957. $as_echo "$cross_compiling" >&6; }
  2958. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2959. ac_clean_files=$ac_clean_files_save
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2961. $as_echo_n "checking for suffix of object files... " >&6; }
  2962. if ${ac_cv_objext+:} false; then :
  2963. $as_echo_n "(cached) " >&6
  2964. else
  2965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2966. /* end confdefs.h. */
  2967. int
  2968. main ()
  2969. {
  2970. ;
  2971. return 0;
  2972. }
  2973. _ACEOF
  2974. rm -f conftest.o conftest.obj
  2975. if { { ac_try="$ac_compile"
  2976. case "(($ac_try" in
  2977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2978. *) ac_try_echo=$ac_try;;
  2979. esac
  2980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2981. $as_echo "$ac_try_echo"; } >&5
  2982. (eval "$ac_compile") 2>&5
  2983. ac_status=$?
  2984. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2985. test $ac_status = 0; }; then :
  2986. for ac_file in conftest.o conftest.obj conftest.*; do
  2987. test -f "$ac_file" || continue;
  2988. case $ac_file in
  2989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2990. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2991. break;;
  2992. esac
  2993. done
  2994. else
  2995. $as_echo "$as_me: failed program was:" >&5
  2996. sed 's/^/| /' conftest.$ac_ext >&5
  2997. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2999. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3000. See \`config.log' for more details" "$LINENO" 5; }
  3001. fi
  3002. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3005. $as_echo "$ac_cv_objext" >&6; }
  3006. OBJEXT=$ac_cv_objext
  3007. ac_objext=$OBJEXT
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3009. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3010. if ${ac_cv_c_compiler_gnu+:} false; then :
  3011. $as_echo_n "(cached) " >&6
  3012. else
  3013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3014. /* end confdefs.h. */
  3015. int
  3016. main ()
  3017. {
  3018. #ifndef __GNUC__
  3019. choke me
  3020. #endif
  3021. ;
  3022. return 0;
  3023. }
  3024. _ACEOF
  3025. if ac_fn_c_try_compile "$LINENO"; then :
  3026. ac_compiler_gnu=yes
  3027. else
  3028. ac_compiler_gnu=no
  3029. fi
  3030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3031. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3032. fi
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3034. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3035. if test $ac_compiler_gnu = yes; then
  3036. GCC=yes
  3037. else
  3038. GCC=
  3039. fi
  3040. ac_test_CFLAGS=${CFLAGS+set}
  3041. ac_save_CFLAGS=$CFLAGS
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3043. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3044. if ${ac_cv_prog_cc_g+:} false; then :
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. ac_save_c_werror_flag=$ac_c_werror_flag
  3048. ac_c_werror_flag=yes
  3049. ac_cv_prog_cc_g=no
  3050. CFLAGS="-g"
  3051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. /* end confdefs.h. */
  3053. int
  3054. main ()
  3055. {
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. if ac_fn_c_try_compile "$LINENO"; then :
  3061. ac_cv_prog_cc_g=yes
  3062. else
  3063. CFLAGS=""
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. if ac_fn_c_try_compile "$LINENO"; then :
  3074. else
  3075. ac_c_werror_flag=$ac_save_c_werror_flag
  3076. CFLAGS="-g"
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. if ac_fn_c_try_compile "$LINENO"; then :
  3087. ac_cv_prog_cc_g=yes
  3088. fi
  3089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3090. fi
  3091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3092. fi
  3093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3094. ac_c_werror_flag=$ac_save_c_werror_flag
  3095. fi
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3097. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3098. if test "$ac_test_CFLAGS" = set; then
  3099. CFLAGS=$ac_save_CFLAGS
  3100. elif test $ac_cv_prog_cc_g = yes; then
  3101. if test "$GCC" = yes; then
  3102. CFLAGS="-g -O2"
  3103. else
  3104. CFLAGS="-g"
  3105. fi
  3106. else
  3107. if test "$GCC" = yes; then
  3108. CFLAGS="-O2"
  3109. else
  3110. CFLAGS=
  3111. fi
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3114. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3115. if ${ac_cv_prog_cc_c89+:} false; then :
  3116. $as_echo_n "(cached) " >&6
  3117. else
  3118. ac_cv_prog_cc_c89=no
  3119. ac_save_CC=$CC
  3120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end confdefs.h. */
  3122. #include <stdarg.h>
  3123. #include <stdio.h>
  3124. struct stat;
  3125. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3126. struct buf { int x; };
  3127. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3128. static char *e (p, i)
  3129. char **p;
  3130. int i;
  3131. {
  3132. return p[i];
  3133. }
  3134. static char *f (char * (*g) (char **, int), char **p, ...)
  3135. {
  3136. char *s;
  3137. va_list v;
  3138. va_start (v,p);
  3139. s = g (p, va_arg (v,int));
  3140. va_end (v);
  3141. return s;
  3142. }
  3143. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3144. function prototypes and stuff, but not '\xHH' hex character constants.
  3145. These don't provoke an error unfortunately, instead are silently treated
  3146. as 'x'. The following induces an error, until -std is added to get
  3147. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3148. array size at least. It's necessary to write '\x00'==0 to get something
  3149. that's true only with -std. */
  3150. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3151. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3152. inside strings and character constants. */
  3153. #define FOO(x) 'x'
  3154. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3155. int test (int i, double x);
  3156. struct s1 {int (*f) (int a);};
  3157. struct s2 {int (*f) (double a);};
  3158. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3159. int argc;
  3160. char **argv;
  3161. int
  3162. main ()
  3163. {
  3164. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3165. ;
  3166. return 0;
  3167. }
  3168. _ACEOF
  3169. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3170. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3171. do
  3172. CC="$ac_save_CC $ac_arg"
  3173. if ac_fn_c_try_compile "$LINENO"; then :
  3174. ac_cv_prog_cc_c89=$ac_arg
  3175. fi
  3176. rm -f core conftest.err conftest.$ac_objext
  3177. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3178. done
  3179. rm -f conftest.$ac_ext
  3180. CC=$ac_save_CC
  3181. fi
  3182. # AC_CACHE_VAL
  3183. case "x$ac_cv_prog_cc_c89" in
  3184. x)
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3186. $as_echo "none needed" >&6; } ;;
  3187. xno)
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3189. $as_echo "unsupported" >&6; } ;;
  3190. *)
  3191. CC="$CC $ac_cv_prog_cc_c89"
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3193. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3194. esac
  3195. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3196. fi
  3197. ac_ext=c
  3198. ac_cpp='$CPP $CPPFLAGS'
  3199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3202. depcc="$CC" am_compiler_list=
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3204. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3205. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3209. # We make a subdir and do the tests there. Otherwise we can end up
  3210. # making bogus files that we don't know about and never remove. For
  3211. # instance it was reported that on HP-UX the gcc test will end up
  3212. # making a dummy file named 'D' -- because '-MD' means "put the output
  3213. # in D".
  3214. rm -rf conftest.dir
  3215. mkdir conftest.dir
  3216. # Copy depcomp to subdir because otherwise we won't find it if we're
  3217. # using a relative directory.
  3218. cp "$am_depcomp" conftest.dir
  3219. cd conftest.dir
  3220. # We will build objects and dependencies in a subdirectory because
  3221. # it helps to detect inapplicable dependency modes. For instance
  3222. # both Tru64's cc and ICC support -MD to output dependencies as a
  3223. # side effect of compilation, but ICC will put the dependencies in
  3224. # the current directory while Tru64 will put them in the object
  3225. # directory.
  3226. mkdir sub
  3227. am_cv_CC_dependencies_compiler_type=none
  3228. if test "$am_compiler_list" = ""; then
  3229. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3230. fi
  3231. am__universal=false
  3232. case " $depcc " in #(
  3233. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3234. esac
  3235. for depmode in $am_compiler_list; do
  3236. # Setup a source with many dependencies, because some compilers
  3237. # like to wrap large dependency lists on column 80 (with \), and
  3238. # we should not choose a depcomp mode which is confused by this.
  3239. #
  3240. # We need to recreate these files for each test, as the compiler may
  3241. # overwrite some of them when testing with obscure command lines.
  3242. # This happens at least with the AIX C compiler.
  3243. : > sub/conftest.c
  3244. for i in 1 2 3 4 5 6; do
  3245. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3246. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3247. # Solaris 10 /bin/sh.
  3248. echo '/* dummy */' > sub/conftst$i.h
  3249. done
  3250. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3251. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3252. # mode. It turns out that the SunPro C++ compiler does not properly
  3253. # handle '-M -o', and we need to detect this. Also, some Intel
  3254. # versions had trouble with output in subdirs.
  3255. am__obj=sub/conftest.${OBJEXT-o}
  3256. am__minus_obj="-o $am__obj"
  3257. case $depmode in
  3258. gcc)
  3259. # This depmode causes a compiler race in universal mode.
  3260. test "$am__universal" = false || continue
  3261. ;;
  3262. nosideeffect)
  3263. # After this tag, mechanisms are not by side-effect, so they'll
  3264. # only be used when explicitly requested.
  3265. if test "x$enable_dependency_tracking" = xyes; then
  3266. continue
  3267. else
  3268. break
  3269. fi
  3270. ;;
  3271. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3272. # This compiler won't grok '-c -o', but also, the minuso test has
  3273. # not run yet. These depmodes are late enough in the game, and
  3274. # so weak that their functioning should not be impacted.
  3275. am__obj=conftest.${OBJEXT-o}
  3276. am__minus_obj=
  3277. ;;
  3278. none) break ;;
  3279. esac
  3280. if depmode=$depmode \
  3281. source=sub/conftest.c object=$am__obj \
  3282. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3283. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3284. >/dev/null 2>conftest.err &&
  3285. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3286. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3287. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3288. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3289. # icc doesn't choke on unknown options, it will just issue warnings
  3290. # or remarks (even with -Werror). So we grep stderr for any message
  3291. # that says an option was ignored or not supported.
  3292. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3293. # icc: Command line warning: ignoring option '-M'; no argument required
  3294. # The diagnosis changed in icc 8.0:
  3295. # icc: Command line remark: option '-MP' not supported
  3296. if (grep 'ignoring option' conftest.err ||
  3297. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3298. am_cv_CC_dependencies_compiler_type=$depmode
  3299. break
  3300. fi
  3301. fi
  3302. done
  3303. cd ..
  3304. rm -rf conftest.dir
  3305. else
  3306. am_cv_CC_dependencies_compiler_type=none
  3307. fi
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3310. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3311. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3312. if
  3313. test "x$enable_dependency_tracking" != xno \
  3314. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3315. am__fastdepCC_TRUE=
  3316. am__fastdepCC_FALSE='#'
  3317. else
  3318. am__fastdepCC_TRUE='#'
  3319. am__fastdepCC_FALSE=
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3322. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3323. if ${ac_cv_prog_cc_c99+:} false; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. ac_cv_prog_cc_c99=no
  3327. ac_save_CC=$CC
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdarg.h>
  3331. #include <stdbool.h>
  3332. #include <stdlib.h>
  3333. #include <wchar.h>
  3334. #include <stdio.h>
  3335. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3336. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3337. #define showlist(...) puts (#__VA_ARGS__)
  3338. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3339. static void
  3340. test_varargs_macros (void)
  3341. {
  3342. int x = 1234;
  3343. int y = 5678;
  3344. debug ("Flag");
  3345. debug ("X = %d\n", x);
  3346. showlist (The first, second, and third items.);
  3347. report (x>y, "x is %d but y is %d", x, y);
  3348. }
  3349. // Check long long types.
  3350. #define BIG64 18446744073709551615ull
  3351. #define BIG32 4294967295ul
  3352. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3353. #if !BIG_OK
  3354. your preprocessor is broken;
  3355. #endif
  3356. #if BIG_OK
  3357. #else
  3358. your preprocessor is broken;
  3359. #endif
  3360. static long long int bignum = -9223372036854775807LL;
  3361. static unsigned long long int ubignum = BIG64;
  3362. struct incomplete_array
  3363. {
  3364. int datasize;
  3365. double data[];
  3366. };
  3367. struct named_init {
  3368. int number;
  3369. const wchar_t *name;
  3370. double average;
  3371. };
  3372. typedef const char *ccp;
  3373. static inline int
  3374. test_restrict (ccp restrict text)
  3375. {
  3376. // See if C++-style comments work.
  3377. // Iterate through items via the restricted pointer.
  3378. // Also check for declarations in for loops.
  3379. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3380. continue;
  3381. return 0;
  3382. }
  3383. // Check varargs and va_copy.
  3384. static void
  3385. test_varargs (const char *format, ...)
  3386. {
  3387. va_list args;
  3388. va_start (args, format);
  3389. va_list args_copy;
  3390. va_copy (args_copy, args);
  3391. const char *str;
  3392. int number;
  3393. float fnumber;
  3394. while (*format)
  3395. {
  3396. switch (*format++)
  3397. {
  3398. case 's': // string
  3399. str = va_arg (args_copy, const char *);
  3400. break;
  3401. case 'd': // int
  3402. number = va_arg (args_copy, int);
  3403. break;
  3404. case 'f': // float
  3405. fnumber = va_arg (args_copy, double);
  3406. break;
  3407. default:
  3408. break;
  3409. }
  3410. }
  3411. va_end (args_copy);
  3412. va_end (args);
  3413. }
  3414. int
  3415. main ()
  3416. {
  3417. // Check bool.
  3418. _Bool success = false;
  3419. // Check restrict.
  3420. if (test_restrict ("String literal") == 0)
  3421. success = true;
  3422. char *restrict newvar = "Another string";
  3423. // Check varargs.
  3424. test_varargs ("s, d' f .", "string", 65, 34.234);
  3425. test_varargs_macros ();
  3426. // Check flexible array members.
  3427. struct incomplete_array *ia =
  3428. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3429. ia->datasize = 10;
  3430. for (int i = 0; i < ia->datasize; ++i)
  3431. ia->data[i] = i * 1.234;
  3432. // Check named initializers.
  3433. struct named_init ni = {
  3434. .number = 34,
  3435. .name = L"Test wide string",
  3436. .average = 543.34343,
  3437. };
  3438. ni.number = 58;
  3439. int dynamic_array[ni.number];
  3440. dynamic_array[ni.number - 1] = 543;
  3441. // work around unused variable warnings
  3442. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3443. || dynamic_array[ni.number - 1] != 543);
  3444. ;
  3445. return 0;
  3446. }
  3447. _ACEOF
  3448. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3449. do
  3450. CC="$ac_save_CC $ac_arg"
  3451. if ac_fn_c_try_compile "$LINENO"; then :
  3452. ac_cv_prog_cc_c99=$ac_arg
  3453. fi
  3454. rm -f core conftest.err conftest.$ac_objext
  3455. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3456. done
  3457. rm -f conftest.$ac_ext
  3458. CC=$ac_save_CC
  3459. fi
  3460. # AC_CACHE_VAL
  3461. case "x$ac_cv_prog_cc_c99" in
  3462. x)
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3464. $as_echo "none needed" >&6; } ;;
  3465. xno)
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3467. $as_echo "unsupported" >&6; } ;;
  3468. *)
  3469. CC="$CC $ac_cv_prog_cc_c99"
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3471. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3472. esac
  3473. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3474. fi
  3475. ac_ext=c
  3476. ac_cpp='$CPP $CPPFLAGS'
  3477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3481. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3482. # On Suns, sometimes $CPP names a directory.
  3483. if test -n "$CPP" && test -d "$CPP"; then
  3484. CPP=
  3485. fi
  3486. if test -z "$CPP"; then
  3487. if ${ac_cv_prog_CPP+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. # Double quotes because CPP needs to be expanded
  3491. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3492. do
  3493. ac_preproc_ok=false
  3494. for ac_c_preproc_warn_flag in '' yes
  3495. do
  3496. # Use a header file that comes with gcc, so configuring glibc
  3497. # with a fresh cross-compiler works.
  3498. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3499. # <limits.h> exists even on freestanding compilers.
  3500. # On the NeXT, cc -E runs the code through the compiler's parser,
  3501. # not just through cpp. "Syntax error" is here to catch this case.
  3502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3503. /* end confdefs.h. */
  3504. #ifdef __STDC__
  3505. # include <limits.h>
  3506. #else
  3507. # include <assert.h>
  3508. #endif
  3509. Syntax error
  3510. _ACEOF
  3511. if ac_fn_c_try_cpp "$LINENO"; then :
  3512. else
  3513. # Broken: fails on valid input.
  3514. continue
  3515. fi
  3516. rm -f conftest.err conftest.i conftest.$ac_ext
  3517. # OK, works on sane cases. Now check whether nonexistent headers
  3518. # can be detected and how.
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. #include <ac_nonexistent.h>
  3522. _ACEOF
  3523. if ac_fn_c_try_cpp "$LINENO"; then :
  3524. # Broken: success on invalid input.
  3525. continue
  3526. else
  3527. # Passes both tests.
  3528. ac_preproc_ok=:
  3529. break
  3530. fi
  3531. rm -f conftest.err conftest.i conftest.$ac_ext
  3532. done
  3533. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3534. rm -f conftest.i conftest.err conftest.$ac_ext
  3535. if $ac_preproc_ok; then :
  3536. break
  3537. fi
  3538. done
  3539. ac_cv_prog_CPP=$CPP
  3540. fi
  3541. CPP=$ac_cv_prog_CPP
  3542. else
  3543. ac_cv_prog_CPP=$CPP
  3544. fi
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3546. $as_echo "$CPP" >&6; }
  3547. ac_preproc_ok=false
  3548. for ac_c_preproc_warn_flag in '' yes
  3549. do
  3550. # Use a header file that comes with gcc, so configuring glibc
  3551. # with a fresh cross-compiler works.
  3552. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3553. # <limits.h> exists even on freestanding compilers.
  3554. # On the NeXT, cc -E runs the code through the compiler's parser,
  3555. # not just through cpp. "Syntax error" is here to catch this case.
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #ifdef __STDC__
  3559. # include <limits.h>
  3560. #else
  3561. # include <assert.h>
  3562. #endif
  3563. Syntax error
  3564. _ACEOF
  3565. if ac_fn_c_try_cpp "$LINENO"; then :
  3566. else
  3567. # Broken: fails on valid input.
  3568. continue
  3569. fi
  3570. rm -f conftest.err conftest.i conftest.$ac_ext
  3571. # OK, works on sane cases. Now check whether nonexistent headers
  3572. # can be detected and how.
  3573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3574. /* end confdefs.h. */
  3575. #include <ac_nonexistent.h>
  3576. _ACEOF
  3577. if ac_fn_c_try_cpp "$LINENO"; then :
  3578. # Broken: success on invalid input.
  3579. continue
  3580. else
  3581. # Passes both tests.
  3582. ac_preproc_ok=:
  3583. break
  3584. fi
  3585. rm -f conftest.err conftest.i conftest.$ac_ext
  3586. done
  3587. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3588. rm -f conftest.i conftest.err conftest.$ac_ext
  3589. if $ac_preproc_ok; then :
  3590. else
  3591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3593. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3594. See \`config.log' for more details" "$LINENO" 5; }
  3595. fi
  3596. ac_ext=c
  3597. ac_cpp='$CPP $CPPFLAGS'
  3598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3602. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3603. if ${ac_cv_path_GREP+:} false; then :
  3604. $as_echo_n "(cached) " >&6
  3605. else
  3606. if test -z "$GREP"; then
  3607. ac_path_GREP_found=false
  3608. # Loop through the user's path and test for each of PROGNAME-LIST
  3609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3610. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3611. do
  3612. IFS=$as_save_IFS
  3613. test -z "$as_dir" && as_dir=.
  3614. for ac_prog in grep ggrep; do
  3615. for ac_exec_ext in '' $ac_executable_extensions; do
  3616. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3617. as_fn_executable_p "$ac_path_GREP" || continue
  3618. # Check for GNU ac_path_GREP and select it if it is found.
  3619. # Check for GNU $ac_path_GREP
  3620. case `"$ac_path_GREP" --version 2>&1` in
  3621. *GNU*)
  3622. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3623. *)
  3624. ac_count=0
  3625. $as_echo_n 0123456789 >"conftest.in"
  3626. while :
  3627. do
  3628. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3629. mv "conftest.tmp" "conftest.in"
  3630. cp "conftest.in" "conftest.nl"
  3631. $as_echo 'GREP' >> "conftest.nl"
  3632. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3633. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3634. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3635. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3636. # Best one so far, save it but keep looking for a better one
  3637. ac_cv_path_GREP="$ac_path_GREP"
  3638. ac_path_GREP_max=$ac_count
  3639. fi
  3640. # 10*(2^10) chars as input seems more than enough
  3641. test $ac_count -gt 10 && break
  3642. done
  3643. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3644. esac
  3645. $ac_path_GREP_found && break 3
  3646. done
  3647. done
  3648. done
  3649. IFS=$as_save_IFS
  3650. if test -z "$ac_cv_path_GREP"; then
  3651. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3652. fi
  3653. else
  3654. ac_cv_path_GREP=$GREP
  3655. fi
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3658. $as_echo "$ac_cv_path_GREP" >&6; }
  3659. GREP="$ac_cv_path_GREP"
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3661. $as_echo_n "checking for egrep... " >&6; }
  3662. if ${ac_cv_path_EGREP+:} false; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3666. then ac_cv_path_EGREP="$GREP -E"
  3667. else
  3668. if test -z "$EGREP"; then
  3669. ac_path_EGREP_found=false
  3670. # Loop through the user's path and test for each of PROGNAME-LIST
  3671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3672. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3673. do
  3674. IFS=$as_save_IFS
  3675. test -z "$as_dir" && as_dir=.
  3676. for ac_prog in egrep; do
  3677. for ac_exec_ext in '' $ac_executable_extensions; do
  3678. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3679. as_fn_executable_p "$ac_path_EGREP" || continue
  3680. # Check for GNU ac_path_EGREP and select it if it is found.
  3681. # Check for GNU $ac_path_EGREP
  3682. case `"$ac_path_EGREP" --version 2>&1` in
  3683. *GNU*)
  3684. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3685. *)
  3686. ac_count=0
  3687. $as_echo_n 0123456789 >"conftest.in"
  3688. while :
  3689. do
  3690. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3691. mv "conftest.tmp" "conftest.in"
  3692. cp "conftest.in" "conftest.nl"
  3693. $as_echo 'EGREP' >> "conftest.nl"
  3694. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3695. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3696. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3697. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3698. # Best one so far, save it but keep looking for a better one
  3699. ac_cv_path_EGREP="$ac_path_EGREP"
  3700. ac_path_EGREP_max=$ac_count
  3701. fi
  3702. # 10*(2^10) chars as input seems more than enough
  3703. test $ac_count -gt 10 && break
  3704. done
  3705. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3706. esac
  3707. $ac_path_EGREP_found && break 3
  3708. done
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. if test -z "$ac_cv_path_EGREP"; then
  3713. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3714. fi
  3715. else
  3716. ac_cv_path_EGREP=$EGREP
  3717. fi
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3721. $as_echo "$ac_cv_path_EGREP" >&6; }
  3722. EGREP="$ac_cv_path_EGREP"
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3724. $as_echo_n "checking for ANSI C header files... " >&6; }
  3725. if ${ac_cv_header_stdc+:} false; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. #include <stdlib.h>
  3731. #include <stdarg.h>
  3732. #include <string.h>
  3733. #include <float.h>
  3734. int
  3735. main ()
  3736. {
  3737. ;
  3738. return 0;
  3739. }
  3740. _ACEOF
  3741. if ac_fn_c_try_compile "$LINENO"; then :
  3742. ac_cv_header_stdc=yes
  3743. else
  3744. ac_cv_header_stdc=no
  3745. fi
  3746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3747. if test $ac_cv_header_stdc = yes; then
  3748. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. #include <string.h>
  3752. _ACEOF
  3753. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3754. $EGREP "memchr" >/dev/null 2>&1; then :
  3755. else
  3756. ac_cv_header_stdc=no
  3757. fi
  3758. rm -f conftest*
  3759. fi
  3760. if test $ac_cv_header_stdc = yes; then
  3761. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. #include <stdlib.h>
  3765. _ACEOF
  3766. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3767. $EGREP "free" >/dev/null 2>&1; then :
  3768. else
  3769. ac_cv_header_stdc=no
  3770. fi
  3771. rm -f conftest*
  3772. fi
  3773. if test $ac_cv_header_stdc = yes; then
  3774. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3775. if test "$cross_compiling" = yes; then :
  3776. :
  3777. else
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. #include <ctype.h>
  3781. #include <stdlib.h>
  3782. #if ((' ' & 0x0FF) == 0x020)
  3783. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3784. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3785. #else
  3786. # define ISLOWER(c) \
  3787. (('a' <= (c) && (c) <= 'i') \
  3788. || ('j' <= (c) && (c) <= 'r') \
  3789. || ('s' <= (c) && (c) <= 'z'))
  3790. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3791. #endif
  3792. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3793. int
  3794. main ()
  3795. {
  3796. int i;
  3797. for (i = 0; i < 256; i++)
  3798. if (XOR (islower (i), ISLOWER (i))
  3799. || toupper (i) != TOUPPER (i))
  3800. return 2;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. if ac_fn_c_try_run "$LINENO"; then :
  3805. else
  3806. ac_cv_header_stdc=no
  3807. fi
  3808. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3809. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3810. fi
  3811. fi
  3812. fi
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3814. $as_echo "$ac_cv_header_stdc" >&6; }
  3815. if test $ac_cv_header_stdc = yes; then
  3816. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3817. fi
  3818. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3819. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3820. inttypes.h stdint.h unistd.h
  3821. do :
  3822. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3823. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3824. "
  3825. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3826. cat >>confdefs.h <<_ACEOF
  3827. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3828. _ACEOF
  3829. fi
  3830. done
  3831. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3832. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3833. CLANGCC="yes"
  3834. else
  3835. CLANGCC="no"
  3836. fi
  3837. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3838. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3839. INTELCC="yes"
  3840. else
  3841. INTELCC="no"
  3842. fi
  3843. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3844. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3845. SUNCC="yes"
  3846. else
  3847. SUNCC="no"
  3848. fi
  3849. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3850. if test -n "$ac_tool_prefix"; then
  3851. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3852. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. case $PKG_CONFIG in
  3859. [\\/]* | ?:[\\/]*)
  3860. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3861. ;;
  3862. *)
  3863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3864. for as_dir in $PATH
  3865. do
  3866. IFS=$as_save_IFS
  3867. test -z "$as_dir" && as_dir=.
  3868. for ac_exec_ext in '' $ac_executable_extensions; do
  3869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3870. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3872. break 2
  3873. fi
  3874. done
  3875. done
  3876. IFS=$as_save_IFS
  3877. ;;
  3878. esac
  3879. fi
  3880. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3881. if test -n "$PKG_CONFIG"; then
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3883. $as_echo "$PKG_CONFIG" >&6; }
  3884. else
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3886. $as_echo "no" >&6; }
  3887. fi
  3888. fi
  3889. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3890. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3891. # Extract the first word of "pkg-config", so it can be a program name with args.
  3892. set dummy pkg-config; ac_word=$2
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3894. $as_echo_n "checking for $ac_word... " >&6; }
  3895. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. case $ac_pt_PKG_CONFIG in
  3899. [\\/]* | ?:[\\/]*)
  3900. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3901. ;;
  3902. *)
  3903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3904. for as_dir in $PATH
  3905. do
  3906. IFS=$as_save_IFS
  3907. test -z "$as_dir" && as_dir=.
  3908. for ac_exec_ext in '' $ac_executable_extensions; do
  3909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3910. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3912. break 2
  3913. fi
  3914. done
  3915. done
  3916. IFS=$as_save_IFS
  3917. ;;
  3918. esac
  3919. fi
  3920. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3921. if test -n "$ac_pt_PKG_CONFIG"; then
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3923. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3924. else
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3926. $as_echo "no" >&6; }
  3927. fi
  3928. if test "x$ac_pt_PKG_CONFIG" = x; then
  3929. PKG_CONFIG=""
  3930. else
  3931. case $cross_compiling:$ac_tool_warned in
  3932. yes:)
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3935. ac_tool_warned=yes ;;
  3936. esac
  3937. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3938. fi
  3939. else
  3940. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3941. fi
  3942. fi
  3943. if test -n "$PKG_CONFIG"; then
  3944. _pkg_min_version=0.9.0
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3946. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3947. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3949. $as_echo "yes" >&6; }
  3950. else
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3952. $as_echo "no" >&6; }
  3953. PKG_CONFIG=""
  3954. fi
  3955. fi
  3956. # Make sure we can run config.sub.
  3957. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3958. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3960. $as_echo_n "checking build system type... " >&6; }
  3961. if ${ac_cv_build+:} false; then :
  3962. $as_echo_n "(cached) " >&6
  3963. else
  3964. ac_build_alias=$build_alias
  3965. test "x$ac_build_alias" = x &&
  3966. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3967. test "x$ac_build_alias" = x &&
  3968. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3969. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3970. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3973. $as_echo "$ac_cv_build" >&6; }
  3974. case $ac_cv_build in
  3975. *-*-*) ;;
  3976. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3977. esac
  3978. build=$ac_cv_build
  3979. ac_save_IFS=$IFS; IFS='-'
  3980. set x $ac_cv_build
  3981. shift
  3982. build_cpu=$1
  3983. build_vendor=$2
  3984. shift; shift
  3985. # Remember, the first character of IFS is used to create $*,
  3986. # except with old shells:
  3987. build_os=$*
  3988. IFS=$ac_save_IFS
  3989. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3991. $as_echo_n "checking host system type... " >&6; }
  3992. if ${ac_cv_host+:} false; then :
  3993. $as_echo_n "(cached) " >&6
  3994. else
  3995. if test "x$host_alias" = x; then
  3996. ac_cv_host=$ac_cv_build
  3997. else
  3998. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3999. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4000. fi
  4001. fi
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4003. $as_echo "$ac_cv_host" >&6; }
  4004. case $ac_cv_host in
  4005. *-*-*) ;;
  4006. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4007. esac
  4008. host=$ac_cv_host
  4009. ac_save_IFS=$IFS; IFS='-'
  4010. set x $ac_cv_host
  4011. shift
  4012. host_cpu=$1
  4013. host_vendor=$2
  4014. shift; shift
  4015. # Remember, the first character of IFS is used to create $*,
  4016. # except with old shells:
  4017. host_os=$*
  4018. IFS=$ac_save_IFS
  4019. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4021. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4022. if ${ac_cv_path_SED+:} false; then :
  4023. $as_echo_n "(cached) " >&6
  4024. else
  4025. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4026. for ac_i in 1 2 3 4 5 6 7; do
  4027. ac_script="$ac_script$as_nl$ac_script"
  4028. done
  4029. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4030. { ac_script=; unset ac_script;}
  4031. if test -z "$SED"; then
  4032. ac_path_SED_found=false
  4033. # Loop through the user's path and test for each of PROGNAME-LIST
  4034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4035. for as_dir in $PATH
  4036. do
  4037. IFS=$as_save_IFS
  4038. test -z "$as_dir" && as_dir=.
  4039. for ac_prog in sed gsed; do
  4040. for ac_exec_ext in '' $ac_executable_extensions; do
  4041. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4042. as_fn_executable_p "$ac_path_SED" || continue
  4043. # Check for GNU ac_path_SED and select it if it is found.
  4044. # Check for GNU $ac_path_SED
  4045. case `"$ac_path_SED" --version 2>&1` in
  4046. *GNU*)
  4047. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4048. *)
  4049. ac_count=0
  4050. $as_echo_n 0123456789 >"conftest.in"
  4051. while :
  4052. do
  4053. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4054. mv "conftest.tmp" "conftest.in"
  4055. cp "conftest.in" "conftest.nl"
  4056. $as_echo '' >> "conftest.nl"
  4057. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4058. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4059. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4060. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4061. # Best one so far, save it but keep looking for a better one
  4062. ac_cv_path_SED="$ac_path_SED"
  4063. ac_path_SED_max=$ac_count
  4064. fi
  4065. # 10*(2^10) chars as input seems more than enough
  4066. test $ac_count -gt 10 && break
  4067. done
  4068. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4069. esac
  4070. $ac_path_SED_found && break 3
  4071. done
  4072. done
  4073. done
  4074. IFS=$as_save_IFS
  4075. if test -z "$ac_cv_path_SED"; then
  4076. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4077. fi
  4078. else
  4079. ac_cv_path_SED=$SED
  4080. fi
  4081. fi
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4083. $as_echo "$ac_cv_path_SED" >&6; }
  4084. SED="$ac_cv_path_SED"
  4085. rm -f conftest.sed
  4086. # Check whether --enable-selective-werror was given.
  4087. if test "${enable_selective_werror+set}" = set; then :
  4088. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4089. else
  4090. SELECTIVE_WERROR=yes
  4091. fi
  4092. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4093. if test "x$SUNCC" = "xyes"; then
  4094. BASE_CFLAGS="-v"
  4095. else
  4096. BASE_CFLAGS=""
  4097. fi
  4098. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4099. xorg_testset_save_CFLAGS="$CFLAGS"
  4100. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4101. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4103. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4104. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4108. /* end confdefs.h. */
  4109. int i;
  4110. _ACEOF
  4111. if ac_fn_c_try_compile "$LINENO"; then :
  4112. xorg_cv_cc_flag_unknown_warning_option=yes
  4113. else
  4114. xorg_cv_cc_flag_unknown_warning_option=no
  4115. fi
  4116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4119. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4120. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4121. CFLAGS="$xorg_testset_save_CFLAGS"
  4122. fi
  4123. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4124. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4125. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4126. fi
  4127. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4129. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4130. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. int i;
  4136. _ACEOF
  4137. if ac_fn_c_try_compile "$LINENO"; then :
  4138. xorg_cv_cc_flag_unused_command_line_argument=yes
  4139. else
  4140. xorg_cv_cc_flag_unused_command_line_argument=no
  4141. fi
  4142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4143. fi
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4145. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4146. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4147. CFLAGS="$xorg_testset_save_CFLAGS"
  4148. fi
  4149. found="no"
  4150. if test $found = "no" ; then
  4151. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4152. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4153. fi
  4154. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4155. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4156. fi
  4157. CFLAGS="$CFLAGS -Wall"
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4159. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4160. cacheid=xorg_cv_cc_flag__Wall
  4161. if eval \${$cacheid+:} false; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4165. /* end confdefs.h. */
  4166. int i;
  4167. int
  4168. main ()
  4169. {
  4170. ;
  4171. return 0;
  4172. }
  4173. _ACEOF
  4174. if ac_fn_c_try_link "$LINENO"; then :
  4175. eval $cacheid=yes
  4176. else
  4177. eval $cacheid=no
  4178. fi
  4179. rm -f core conftest.err conftest.$ac_objext \
  4180. conftest$ac_exeext conftest.$ac_ext
  4181. fi
  4182. CFLAGS="$xorg_testset_save_CFLAGS"
  4183. eval supported=\$$cacheid
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4185. $as_echo "$supported" >&6; }
  4186. if test "$supported" = "yes" ; then
  4187. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4188. found="yes"
  4189. fi
  4190. fi
  4191. xorg_testset_save_CFLAGS="$CFLAGS"
  4192. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4193. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4195. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4196. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. int i;
  4202. _ACEOF
  4203. if ac_fn_c_try_compile "$LINENO"; then :
  4204. xorg_cv_cc_flag_unknown_warning_option=yes
  4205. else
  4206. xorg_cv_cc_flag_unknown_warning_option=no
  4207. fi
  4208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4211. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4212. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4213. CFLAGS="$xorg_testset_save_CFLAGS"
  4214. fi
  4215. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4216. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4217. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4218. fi
  4219. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4221. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4222. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. else
  4225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4226. /* end confdefs.h. */
  4227. int i;
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"; then :
  4230. xorg_cv_cc_flag_unused_command_line_argument=yes
  4231. else
  4232. xorg_cv_cc_flag_unused_command_line_argument=no
  4233. fi
  4234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4235. fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4237. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4238. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4239. CFLAGS="$xorg_testset_save_CFLAGS"
  4240. fi
  4241. found="no"
  4242. if test $found = "no" ; then
  4243. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4244. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4245. fi
  4246. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4247. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4248. fi
  4249. CFLAGS="$CFLAGS -Wpointer-arith"
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4251. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4252. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4253. if eval \${$cacheid+:} false; then :
  4254. $as_echo_n "(cached) " >&6
  4255. else
  4256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4257. /* end confdefs.h. */
  4258. int i;
  4259. int
  4260. main ()
  4261. {
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. if ac_fn_c_try_link "$LINENO"; then :
  4267. eval $cacheid=yes
  4268. else
  4269. eval $cacheid=no
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext \
  4272. conftest$ac_exeext conftest.$ac_ext
  4273. fi
  4274. CFLAGS="$xorg_testset_save_CFLAGS"
  4275. eval supported=\$$cacheid
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4277. $as_echo "$supported" >&6; }
  4278. if test "$supported" = "yes" ; then
  4279. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4280. found="yes"
  4281. fi
  4282. fi
  4283. xorg_testset_save_CFLAGS="$CFLAGS"
  4284. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4285. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4287. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4288. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h. */
  4293. int i;
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. xorg_cv_cc_flag_unknown_warning_option=yes
  4297. else
  4298. xorg_cv_cc_flag_unknown_warning_option=no
  4299. fi
  4300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4301. fi
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4303. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4304. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4305. CFLAGS="$xorg_testset_save_CFLAGS"
  4306. fi
  4307. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4308. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4309. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4310. fi
  4311. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4313. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4314. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. int i;
  4320. _ACEOF
  4321. if ac_fn_c_try_compile "$LINENO"; then :
  4322. xorg_cv_cc_flag_unused_command_line_argument=yes
  4323. else
  4324. xorg_cv_cc_flag_unused_command_line_argument=no
  4325. fi
  4326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4329. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4330. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4331. CFLAGS="$xorg_testset_save_CFLAGS"
  4332. fi
  4333. found="no"
  4334. if test $found = "no" ; then
  4335. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4336. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4337. fi
  4338. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4339. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4340. fi
  4341. CFLAGS="$CFLAGS -Wmissing-declarations"
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4343. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4344. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4345. if eval \${$cacheid+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4349. /* end confdefs.h. */
  4350. int i;
  4351. int
  4352. main ()
  4353. {
  4354. ;
  4355. return 0;
  4356. }
  4357. _ACEOF
  4358. if ac_fn_c_try_link "$LINENO"; then :
  4359. eval $cacheid=yes
  4360. else
  4361. eval $cacheid=no
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext \
  4364. conftest$ac_exeext conftest.$ac_ext
  4365. fi
  4366. CFLAGS="$xorg_testset_save_CFLAGS"
  4367. eval supported=\$$cacheid
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4369. $as_echo "$supported" >&6; }
  4370. if test "$supported" = "yes" ; then
  4371. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4372. found="yes"
  4373. fi
  4374. fi
  4375. xorg_testset_save_CFLAGS="$CFLAGS"
  4376. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4377. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4379. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4380. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4384. /* end confdefs.h. */
  4385. int i;
  4386. _ACEOF
  4387. if ac_fn_c_try_compile "$LINENO"; then :
  4388. xorg_cv_cc_flag_unknown_warning_option=yes
  4389. else
  4390. xorg_cv_cc_flag_unknown_warning_option=no
  4391. fi
  4392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4393. fi
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4395. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4396. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4397. CFLAGS="$xorg_testset_save_CFLAGS"
  4398. fi
  4399. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4400. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4401. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4402. fi
  4403. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4405. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4406. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. int i;
  4412. _ACEOF
  4413. if ac_fn_c_try_compile "$LINENO"; then :
  4414. xorg_cv_cc_flag_unused_command_line_argument=yes
  4415. else
  4416. xorg_cv_cc_flag_unused_command_line_argument=no
  4417. fi
  4418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4421. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4422. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4423. CFLAGS="$xorg_testset_save_CFLAGS"
  4424. fi
  4425. found="no"
  4426. if test $found = "no" ; then
  4427. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4428. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4429. fi
  4430. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4431. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4432. fi
  4433. CFLAGS="$CFLAGS -Wformat=2"
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4435. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4436. cacheid=xorg_cv_cc_flag__Wformat_2
  4437. if eval \${$cacheid+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4441. /* end confdefs.h. */
  4442. int i;
  4443. int
  4444. main ()
  4445. {
  4446. ;
  4447. return 0;
  4448. }
  4449. _ACEOF
  4450. if ac_fn_c_try_link "$LINENO"; then :
  4451. eval $cacheid=yes
  4452. else
  4453. eval $cacheid=no
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext \
  4456. conftest$ac_exeext conftest.$ac_ext
  4457. fi
  4458. CFLAGS="$xorg_testset_save_CFLAGS"
  4459. eval supported=\$$cacheid
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4461. $as_echo "$supported" >&6; }
  4462. if test "$supported" = "yes" ; then
  4463. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4464. found="yes"
  4465. fi
  4466. fi
  4467. if test $found = "no" ; then
  4468. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4469. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4470. fi
  4471. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4472. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4473. fi
  4474. CFLAGS="$CFLAGS -Wformat"
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4476. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4477. cacheid=xorg_cv_cc_flag__Wformat
  4478. if eval \${$cacheid+:} false; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4482. /* end confdefs.h. */
  4483. int i;
  4484. int
  4485. main ()
  4486. {
  4487. ;
  4488. return 0;
  4489. }
  4490. _ACEOF
  4491. if ac_fn_c_try_link "$LINENO"; then :
  4492. eval $cacheid=yes
  4493. else
  4494. eval $cacheid=no
  4495. fi
  4496. rm -f core conftest.err conftest.$ac_objext \
  4497. conftest$ac_exeext conftest.$ac_ext
  4498. fi
  4499. CFLAGS="$xorg_testset_save_CFLAGS"
  4500. eval supported=\$$cacheid
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4502. $as_echo "$supported" >&6; }
  4503. if test "$supported" = "yes" ; then
  4504. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4505. found="yes"
  4506. fi
  4507. fi
  4508. xorg_testset_save_CFLAGS="$CFLAGS"
  4509. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4510. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4512. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4513. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4514. $as_echo_n "(cached) " >&6
  4515. else
  4516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4517. /* end confdefs.h. */
  4518. int i;
  4519. _ACEOF
  4520. if ac_fn_c_try_compile "$LINENO"; then :
  4521. xorg_cv_cc_flag_unknown_warning_option=yes
  4522. else
  4523. xorg_cv_cc_flag_unknown_warning_option=no
  4524. fi
  4525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4526. fi
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4528. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4529. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4530. CFLAGS="$xorg_testset_save_CFLAGS"
  4531. fi
  4532. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4533. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4534. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4535. fi
  4536. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4538. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4539. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. int i;
  4545. _ACEOF
  4546. if ac_fn_c_try_compile "$LINENO"; then :
  4547. xorg_cv_cc_flag_unused_command_line_argument=yes
  4548. else
  4549. xorg_cv_cc_flag_unused_command_line_argument=no
  4550. fi
  4551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4552. fi
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4554. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4555. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4556. CFLAGS="$xorg_testset_save_CFLAGS"
  4557. fi
  4558. found="no"
  4559. if test $found = "no" ; then
  4560. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4561. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4562. fi
  4563. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4564. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4565. fi
  4566. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4568. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4569. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4570. if eval \${$cacheid+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4574. /* end confdefs.h. */
  4575. int i;
  4576. int
  4577. main ()
  4578. {
  4579. ;
  4580. return 0;
  4581. }
  4582. _ACEOF
  4583. if ac_fn_c_try_link "$LINENO"; then :
  4584. eval $cacheid=yes
  4585. else
  4586. eval $cacheid=no
  4587. fi
  4588. rm -f core conftest.err conftest.$ac_objext \
  4589. conftest$ac_exeext conftest.$ac_ext
  4590. fi
  4591. CFLAGS="$xorg_testset_save_CFLAGS"
  4592. eval supported=\$$cacheid
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4594. $as_echo "$supported" >&6; }
  4595. if test "$supported" = "yes" ; then
  4596. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4597. found="yes"
  4598. fi
  4599. fi
  4600. xorg_testset_save_CFLAGS="$CFLAGS"
  4601. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4602. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4604. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4605. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. int i;
  4611. _ACEOF
  4612. if ac_fn_c_try_compile "$LINENO"; then :
  4613. xorg_cv_cc_flag_unknown_warning_option=yes
  4614. else
  4615. xorg_cv_cc_flag_unknown_warning_option=no
  4616. fi
  4617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4618. fi
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4620. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4621. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4622. CFLAGS="$xorg_testset_save_CFLAGS"
  4623. fi
  4624. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4625. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4626. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4627. fi
  4628. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4630. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4631. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4635. /* end confdefs.h. */
  4636. int i;
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"; then :
  4639. xorg_cv_cc_flag_unused_command_line_argument=yes
  4640. else
  4641. xorg_cv_cc_flag_unused_command_line_argument=no
  4642. fi
  4643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4646. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4647. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4648. CFLAGS="$xorg_testset_save_CFLAGS"
  4649. fi
  4650. found="no"
  4651. if test $found = "no" ; then
  4652. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4653. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4654. fi
  4655. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4656. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4657. fi
  4658. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4660. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4661. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4662. if eval \${$cacheid+:} false; then :
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4666. /* end confdefs.h. */
  4667. int i;
  4668. int
  4669. main ()
  4670. {
  4671. ;
  4672. return 0;
  4673. }
  4674. _ACEOF
  4675. if ac_fn_c_try_link "$LINENO"; then :
  4676. eval $cacheid=yes
  4677. else
  4678. eval $cacheid=no
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext \
  4681. conftest$ac_exeext conftest.$ac_ext
  4682. fi
  4683. CFLAGS="$xorg_testset_save_CFLAGS"
  4684. eval supported=\$$cacheid
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4686. $as_echo "$supported" >&6; }
  4687. if test "$supported" = "yes" ; then
  4688. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4689. found="yes"
  4690. fi
  4691. fi
  4692. xorg_testset_save_CFLAGS="$CFLAGS"
  4693. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4694. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4696. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4697. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4701. /* end confdefs.h. */
  4702. int i;
  4703. _ACEOF
  4704. if ac_fn_c_try_compile "$LINENO"; then :
  4705. xorg_cv_cc_flag_unknown_warning_option=yes
  4706. else
  4707. xorg_cv_cc_flag_unknown_warning_option=no
  4708. fi
  4709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4712. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4713. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4714. CFLAGS="$xorg_testset_save_CFLAGS"
  4715. fi
  4716. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4717. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4718. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4719. fi
  4720. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4722. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4723. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4727. /* end confdefs.h. */
  4728. int i;
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. xorg_cv_cc_flag_unused_command_line_argument=yes
  4732. else
  4733. xorg_cv_cc_flag_unused_command_line_argument=no
  4734. fi
  4735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4736. fi
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4738. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4739. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4740. CFLAGS="$xorg_testset_save_CFLAGS"
  4741. fi
  4742. found="no"
  4743. if test $found = "no" ; then
  4744. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4745. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4746. fi
  4747. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4748. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4749. fi
  4750. CFLAGS="$CFLAGS -Wnested-externs"
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4752. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4753. cacheid=xorg_cv_cc_flag__Wnested_externs
  4754. if eval \${$cacheid+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4758. /* end confdefs.h. */
  4759. int i;
  4760. int
  4761. main ()
  4762. {
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. if ac_fn_c_try_link "$LINENO"; then :
  4768. eval $cacheid=yes
  4769. else
  4770. eval $cacheid=no
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext \
  4773. conftest$ac_exeext conftest.$ac_ext
  4774. fi
  4775. CFLAGS="$xorg_testset_save_CFLAGS"
  4776. eval supported=\$$cacheid
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4778. $as_echo "$supported" >&6; }
  4779. if test "$supported" = "yes" ; then
  4780. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4781. found="yes"
  4782. fi
  4783. fi
  4784. xorg_testset_save_CFLAGS="$CFLAGS"
  4785. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4786. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4788. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4789. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4793. /* end confdefs.h. */
  4794. int i;
  4795. _ACEOF
  4796. if ac_fn_c_try_compile "$LINENO"; then :
  4797. xorg_cv_cc_flag_unknown_warning_option=yes
  4798. else
  4799. xorg_cv_cc_flag_unknown_warning_option=no
  4800. fi
  4801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4802. fi
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4804. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4805. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4806. CFLAGS="$xorg_testset_save_CFLAGS"
  4807. fi
  4808. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4809. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4810. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4811. fi
  4812. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4814. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4815. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end confdefs.h. */
  4820. int i;
  4821. _ACEOF
  4822. if ac_fn_c_try_compile "$LINENO"; then :
  4823. xorg_cv_cc_flag_unused_command_line_argument=yes
  4824. else
  4825. xorg_cv_cc_flag_unused_command_line_argument=no
  4826. fi
  4827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4828. fi
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4830. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4831. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4832. CFLAGS="$xorg_testset_save_CFLAGS"
  4833. fi
  4834. found="no"
  4835. if test $found = "no" ; then
  4836. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4837. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4838. fi
  4839. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4840. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4841. fi
  4842. CFLAGS="$CFLAGS -Wbad-function-cast"
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4844. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4845. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4846. if eval \${$cacheid+:} false; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4850. /* end confdefs.h. */
  4851. int i;
  4852. int
  4853. main ()
  4854. {
  4855. ;
  4856. return 0;
  4857. }
  4858. _ACEOF
  4859. if ac_fn_c_try_link "$LINENO"; then :
  4860. eval $cacheid=yes
  4861. else
  4862. eval $cacheid=no
  4863. fi
  4864. rm -f core conftest.err conftest.$ac_objext \
  4865. conftest$ac_exeext conftest.$ac_ext
  4866. fi
  4867. CFLAGS="$xorg_testset_save_CFLAGS"
  4868. eval supported=\$$cacheid
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4870. $as_echo "$supported" >&6; }
  4871. if test "$supported" = "yes" ; then
  4872. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4873. found="yes"
  4874. fi
  4875. fi
  4876. xorg_testset_save_CFLAGS="$CFLAGS"
  4877. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4878. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4880. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4881. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4885. /* end confdefs.h. */
  4886. int i;
  4887. _ACEOF
  4888. if ac_fn_c_try_compile "$LINENO"; then :
  4889. xorg_cv_cc_flag_unknown_warning_option=yes
  4890. else
  4891. xorg_cv_cc_flag_unknown_warning_option=no
  4892. fi
  4893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4896. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4897. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4898. CFLAGS="$xorg_testset_save_CFLAGS"
  4899. fi
  4900. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4901. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4902. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4903. fi
  4904. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4906. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4907. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4911. /* end confdefs.h. */
  4912. int i;
  4913. _ACEOF
  4914. if ac_fn_c_try_compile "$LINENO"; then :
  4915. xorg_cv_cc_flag_unused_command_line_argument=yes
  4916. else
  4917. xorg_cv_cc_flag_unused_command_line_argument=no
  4918. fi
  4919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4920. fi
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4922. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4923. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4924. CFLAGS="$xorg_testset_save_CFLAGS"
  4925. fi
  4926. found="no"
  4927. if test $found = "no" ; then
  4928. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4929. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4930. fi
  4931. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4932. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4933. fi
  4934. CFLAGS="$CFLAGS -Wold-style-definition"
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4936. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4937. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4938. if eval \${$cacheid+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4942. /* end confdefs.h. */
  4943. int i;
  4944. int
  4945. main ()
  4946. {
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_c_try_link "$LINENO"; then :
  4952. eval $cacheid=yes
  4953. else
  4954. eval $cacheid=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext \
  4957. conftest$ac_exeext conftest.$ac_ext
  4958. fi
  4959. CFLAGS="$xorg_testset_save_CFLAGS"
  4960. eval supported=\$$cacheid
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4962. $as_echo "$supported" >&6; }
  4963. if test "$supported" = "yes" ; then
  4964. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4965. found="yes"
  4966. fi
  4967. fi
  4968. xorg_testset_save_CFLAGS="$CFLAGS"
  4969. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4970. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4972. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4973. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4977. /* end confdefs.h. */
  4978. int i;
  4979. _ACEOF
  4980. if ac_fn_c_try_compile "$LINENO"; then :
  4981. xorg_cv_cc_flag_unknown_warning_option=yes
  4982. else
  4983. xorg_cv_cc_flag_unknown_warning_option=no
  4984. fi
  4985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4986. fi
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4988. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4989. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4990. CFLAGS="$xorg_testset_save_CFLAGS"
  4991. fi
  4992. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4993. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4994. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4995. fi
  4996. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4998. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4999. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5003. /* end confdefs.h. */
  5004. int i;
  5005. _ACEOF
  5006. if ac_fn_c_try_compile "$LINENO"; then :
  5007. xorg_cv_cc_flag_unused_command_line_argument=yes
  5008. else
  5009. xorg_cv_cc_flag_unused_command_line_argument=no
  5010. fi
  5011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5012. fi
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5014. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5015. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5016. CFLAGS="$xorg_testset_save_CFLAGS"
  5017. fi
  5018. found="no"
  5019. if test $found = "no" ; then
  5020. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5021. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5022. fi
  5023. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5024. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5025. fi
  5026. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5028. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5029. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5030. if eval \${$cacheid+:} false; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5034. /* end confdefs.h. */
  5035. int i;
  5036. int
  5037. main ()
  5038. {
  5039. ;
  5040. return 0;
  5041. }
  5042. _ACEOF
  5043. if ac_fn_c_try_link "$LINENO"; then :
  5044. eval $cacheid=yes
  5045. else
  5046. eval $cacheid=no
  5047. fi
  5048. rm -f core conftest.err conftest.$ac_objext \
  5049. conftest$ac_exeext conftest.$ac_ext
  5050. fi
  5051. CFLAGS="$xorg_testset_save_CFLAGS"
  5052. eval supported=\$$cacheid
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5054. $as_echo "$supported" >&6; }
  5055. if test "$supported" = "yes" ; then
  5056. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5057. found="yes"
  5058. fi
  5059. fi
  5060. # This chunk adds additional warnings that could catch undesired effects.
  5061. xorg_testset_save_CFLAGS="$CFLAGS"
  5062. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5063. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5065. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5066. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5070. /* end confdefs.h. */
  5071. int i;
  5072. _ACEOF
  5073. if ac_fn_c_try_compile "$LINENO"; then :
  5074. xorg_cv_cc_flag_unknown_warning_option=yes
  5075. else
  5076. xorg_cv_cc_flag_unknown_warning_option=no
  5077. fi
  5078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5079. fi
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5081. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5082. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5083. CFLAGS="$xorg_testset_save_CFLAGS"
  5084. fi
  5085. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5086. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5087. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5088. fi
  5089. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5091. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5092. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5096. /* end confdefs.h. */
  5097. int i;
  5098. _ACEOF
  5099. if ac_fn_c_try_compile "$LINENO"; then :
  5100. xorg_cv_cc_flag_unused_command_line_argument=yes
  5101. else
  5102. xorg_cv_cc_flag_unused_command_line_argument=no
  5103. fi
  5104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5107. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5108. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5109. CFLAGS="$xorg_testset_save_CFLAGS"
  5110. fi
  5111. found="no"
  5112. if test $found = "no" ; then
  5113. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5114. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5115. fi
  5116. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5117. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5118. fi
  5119. CFLAGS="$CFLAGS -Wunused"
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5121. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5122. cacheid=xorg_cv_cc_flag__Wunused
  5123. if eval \${$cacheid+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5127. /* end confdefs.h. */
  5128. int i;
  5129. int
  5130. main ()
  5131. {
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. if ac_fn_c_try_link "$LINENO"; then :
  5137. eval $cacheid=yes
  5138. else
  5139. eval $cacheid=no
  5140. fi
  5141. rm -f core conftest.err conftest.$ac_objext \
  5142. conftest$ac_exeext conftest.$ac_ext
  5143. fi
  5144. CFLAGS="$xorg_testset_save_CFLAGS"
  5145. eval supported=\$$cacheid
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5147. $as_echo "$supported" >&6; }
  5148. if test "$supported" = "yes" ; then
  5149. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5150. found="yes"
  5151. fi
  5152. fi
  5153. xorg_testset_save_CFLAGS="$CFLAGS"
  5154. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5155. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5157. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5158. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5162. /* end confdefs.h. */
  5163. int i;
  5164. _ACEOF
  5165. if ac_fn_c_try_compile "$LINENO"; then :
  5166. xorg_cv_cc_flag_unknown_warning_option=yes
  5167. else
  5168. xorg_cv_cc_flag_unknown_warning_option=no
  5169. fi
  5170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5171. fi
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5173. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5174. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5175. CFLAGS="$xorg_testset_save_CFLAGS"
  5176. fi
  5177. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5178. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5179. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5180. fi
  5181. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5183. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5184. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. int i;
  5190. _ACEOF
  5191. if ac_fn_c_try_compile "$LINENO"; then :
  5192. xorg_cv_cc_flag_unused_command_line_argument=yes
  5193. else
  5194. xorg_cv_cc_flag_unused_command_line_argument=no
  5195. fi
  5196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5199. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5200. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5201. CFLAGS="$xorg_testset_save_CFLAGS"
  5202. fi
  5203. found="no"
  5204. if test $found = "no" ; then
  5205. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5206. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5207. fi
  5208. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5209. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5210. fi
  5211. CFLAGS="$CFLAGS -Wuninitialized"
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5213. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5214. cacheid=xorg_cv_cc_flag__Wuninitialized
  5215. if eval \${$cacheid+:} false; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5219. /* end confdefs.h. */
  5220. int i;
  5221. int
  5222. main ()
  5223. {
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. if ac_fn_c_try_link "$LINENO"; then :
  5229. eval $cacheid=yes
  5230. else
  5231. eval $cacheid=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext \
  5234. conftest$ac_exeext conftest.$ac_ext
  5235. fi
  5236. CFLAGS="$xorg_testset_save_CFLAGS"
  5237. eval supported=\$$cacheid
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5239. $as_echo "$supported" >&6; }
  5240. if test "$supported" = "yes" ; then
  5241. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5242. found="yes"
  5243. fi
  5244. fi
  5245. xorg_testset_save_CFLAGS="$CFLAGS"
  5246. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5247. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5249. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5250. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5254. /* end confdefs.h. */
  5255. int i;
  5256. _ACEOF
  5257. if ac_fn_c_try_compile "$LINENO"; then :
  5258. xorg_cv_cc_flag_unknown_warning_option=yes
  5259. else
  5260. xorg_cv_cc_flag_unknown_warning_option=no
  5261. fi
  5262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5263. fi
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5265. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5266. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5267. CFLAGS="$xorg_testset_save_CFLAGS"
  5268. fi
  5269. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5270. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5271. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5272. fi
  5273. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5275. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5276. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5277. $as_echo_n "(cached) " >&6
  5278. else
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. int i;
  5282. _ACEOF
  5283. if ac_fn_c_try_compile "$LINENO"; then :
  5284. xorg_cv_cc_flag_unused_command_line_argument=yes
  5285. else
  5286. xorg_cv_cc_flag_unused_command_line_argument=no
  5287. fi
  5288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5289. fi
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5291. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5292. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5293. CFLAGS="$xorg_testset_save_CFLAGS"
  5294. fi
  5295. found="no"
  5296. if test $found = "no" ; then
  5297. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5298. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5299. fi
  5300. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5301. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5302. fi
  5303. CFLAGS="$CFLAGS -Wshadow"
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5305. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5306. cacheid=xorg_cv_cc_flag__Wshadow
  5307. if eval \${$cacheid+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5311. /* end confdefs.h. */
  5312. int i;
  5313. int
  5314. main ()
  5315. {
  5316. ;
  5317. return 0;
  5318. }
  5319. _ACEOF
  5320. if ac_fn_c_try_link "$LINENO"; then :
  5321. eval $cacheid=yes
  5322. else
  5323. eval $cacheid=no
  5324. fi
  5325. rm -f core conftest.err conftest.$ac_objext \
  5326. conftest$ac_exeext conftest.$ac_ext
  5327. fi
  5328. CFLAGS="$xorg_testset_save_CFLAGS"
  5329. eval supported=\$$cacheid
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5331. $as_echo "$supported" >&6; }
  5332. if test "$supported" = "yes" ; then
  5333. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5334. found="yes"
  5335. fi
  5336. fi
  5337. xorg_testset_save_CFLAGS="$CFLAGS"
  5338. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5341. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5342. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5346. /* end confdefs.h. */
  5347. int i;
  5348. _ACEOF
  5349. if ac_fn_c_try_compile "$LINENO"; then :
  5350. xorg_cv_cc_flag_unknown_warning_option=yes
  5351. else
  5352. xorg_cv_cc_flag_unknown_warning_option=no
  5353. fi
  5354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5355. fi
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5357. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5358. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5359. CFLAGS="$xorg_testset_save_CFLAGS"
  5360. fi
  5361. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5362. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5363. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5364. fi
  5365. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5367. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5368. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5369. $as_echo_n "(cached) " >&6
  5370. else
  5371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5372. /* end confdefs.h. */
  5373. int i;
  5374. _ACEOF
  5375. if ac_fn_c_try_compile "$LINENO"; then :
  5376. xorg_cv_cc_flag_unused_command_line_argument=yes
  5377. else
  5378. xorg_cv_cc_flag_unused_command_line_argument=no
  5379. fi
  5380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5381. fi
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5383. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5384. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5385. CFLAGS="$xorg_testset_save_CFLAGS"
  5386. fi
  5387. found="no"
  5388. if test $found = "no" ; then
  5389. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5390. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5391. fi
  5392. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5393. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5394. fi
  5395. CFLAGS="$CFLAGS -Wcast-qual"
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
  5397. $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
  5398. cacheid=xorg_cv_cc_flag__Wcast_qual
  5399. if eval \${$cacheid+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5403. /* end confdefs.h. */
  5404. int i;
  5405. int
  5406. main ()
  5407. {
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. if ac_fn_c_try_link "$LINENO"; then :
  5413. eval $cacheid=yes
  5414. else
  5415. eval $cacheid=no
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext \
  5418. conftest$ac_exeext conftest.$ac_ext
  5419. fi
  5420. CFLAGS="$xorg_testset_save_CFLAGS"
  5421. eval supported=\$$cacheid
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5423. $as_echo "$supported" >&6; }
  5424. if test "$supported" = "yes" ; then
  5425. BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
  5426. found="yes"
  5427. fi
  5428. fi
  5429. xorg_testset_save_CFLAGS="$CFLAGS"
  5430. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5433. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5434. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5438. /* end confdefs.h. */
  5439. int i;
  5440. _ACEOF
  5441. if ac_fn_c_try_compile "$LINENO"; then :
  5442. xorg_cv_cc_flag_unknown_warning_option=yes
  5443. else
  5444. xorg_cv_cc_flag_unknown_warning_option=no
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5449. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5450. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5451. CFLAGS="$xorg_testset_save_CFLAGS"
  5452. fi
  5453. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5454. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5455. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5456. fi
  5457. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5459. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5460. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5464. /* end confdefs.h. */
  5465. int i;
  5466. _ACEOF
  5467. if ac_fn_c_try_compile "$LINENO"; then :
  5468. xorg_cv_cc_flag_unused_command_line_argument=yes
  5469. else
  5470. xorg_cv_cc_flag_unused_command_line_argument=no
  5471. fi
  5472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5473. fi
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5475. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5476. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5477. CFLAGS="$xorg_testset_save_CFLAGS"
  5478. fi
  5479. found="no"
  5480. if test $found = "no" ; then
  5481. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5482. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5483. fi
  5484. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5485. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5486. fi
  5487. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5489. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5490. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5491. if eval \${$cacheid+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5495. /* end confdefs.h. */
  5496. int i;
  5497. int
  5498. main ()
  5499. {
  5500. ;
  5501. return 0;
  5502. }
  5503. _ACEOF
  5504. if ac_fn_c_try_link "$LINENO"; then :
  5505. eval $cacheid=yes
  5506. else
  5507. eval $cacheid=no
  5508. fi
  5509. rm -f core conftest.err conftest.$ac_objext \
  5510. conftest$ac_exeext conftest.$ac_ext
  5511. fi
  5512. CFLAGS="$xorg_testset_save_CFLAGS"
  5513. eval supported=\$$cacheid
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5515. $as_echo "$supported" >&6; }
  5516. if test "$supported" = "yes" ; then
  5517. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5518. found="yes"
  5519. fi
  5520. fi
  5521. xorg_testset_save_CFLAGS="$CFLAGS"
  5522. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5525. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5526. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5530. /* end confdefs.h. */
  5531. int i;
  5532. _ACEOF
  5533. if ac_fn_c_try_compile "$LINENO"; then :
  5534. xorg_cv_cc_flag_unknown_warning_option=yes
  5535. else
  5536. xorg_cv_cc_flag_unknown_warning_option=no
  5537. fi
  5538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5539. fi
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5541. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5542. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5543. CFLAGS="$xorg_testset_save_CFLAGS"
  5544. fi
  5545. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5546. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5547. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5548. fi
  5549. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5551. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5552. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5556. /* end confdefs.h. */
  5557. int i;
  5558. _ACEOF
  5559. if ac_fn_c_try_compile "$LINENO"; then :
  5560. xorg_cv_cc_flag_unused_command_line_argument=yes
  5561. else
  5562. xorg_cv_cc_flag_unused_command_line_argument=no
  5563. fi
  5564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5565. fi
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5567. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5568. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5569. CFLAGS="$xorg_testset_save_CFLAGS"
  5570. fi
  5571. found="no"
  5572. if test $found = "no" ; then
  5573. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5574. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5575. fi
  5576. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5577. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5578. fi
  5579. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5581. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5582. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5583. if eval \${$cacheid+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5587. /* end confdefs.h. */
  5588. int i;
  5589. int
  5590. main ()
  5591. {
  5592. ;
  5593. return 0;
  5594. }
  5595. _ACEOF
  5596. if ac_fn_c_try_link "$LINENO"; then :
  5597. eval $cacheid=yes
  5598. else
  5599. eval $cacheid=no
  5600. fi
  5601. rm -f core conftest.err conftest.$ac_objext \
  5602. conftest$ac_exeext conftest.$ac_ext
  5603. fi
  5604. CFLAGS="$xorg_testset_save_CFLAGS"
  5605. eval supported=\$$cacheid
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5607. $as_echo "$supported" >&6; }
  5608. if test "$supported" = "yes" ; then
  5609. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5610. found="yes"
  5611. fi
  5612. fi
  5613. xorg_testset_save_CFLAGS="$CFLAGS"
  5614. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5615. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5617. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5618. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5622. /* end confdefs.h. */
  5623. int i;
  5624. _ACEOF
  5625. if ac_fn_c_try_compile "$LINENO"; then :
  5626. xorg_cv_cc_flag_unknown_warning_option=yes
  5627. else
  5628. xorg_cv_cc_flag_unknown_warning_option=no
  5629. fi
  5630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5631. fi
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5633. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5634. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5635. CFLAGS="$xorg_testset_save_CFLAGS"
  5636. fi
  5637. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5638. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5640. fi
  5641. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5643. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5644. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5648. /* end confdefs.h. */
  5649. int i;
  5650. _ACEOF
  5651. if ac_fn_c_try_compile "$LINENO"; then :
  5652. xorg_cv_cc_flag_unused_command_line_argument=yes
  5653. else
  5654. xorg_cv_cc_flag_unused_command_line_argument=no
  5655. fi
  5656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5657. fi
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5659. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5660. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5661. CFLAGS="$xorg_testset_save_CFLAGS"
  5662. fi
  5663. found="no"
  5664. if test $found = "no" ; then
  5665. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5666. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5667. fi
  5668. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5669. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5670. fi
  5671. CFLAGS="$CFLAGS -Wredundant-decls"
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
  5673. $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
  5674. cacheid=xorg_cv_cc_flag__Wredundant_decls
  5675. if eval \${$cacheid+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5679. /* end confdefs.h. */
  5680. int i;
  5681. int
  5682. main ()
  5683. {
  5684. ;
  5685. return 0;
  5686. }
  5687. _ACEOF
  5688. if ac_fn_c_try_link "$LINENO"; then :
  5689. eval $cacheid=yes
  5690. else
  5691. eval $cacheid=no
  5692. fi
  5693. rm -f core conftest.err conftest.$ac_objext \
  5694. conftest$ac_exeext conftest.$ac_ext
  5695. fi
  5696. CFLAGS="$xorg_testset_save_CFLAGS"
  5697. eval supported=\$$cacheid
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5699. $as_echo "$supported" >&6; }
  5700. if test "$supported" = "yes" ; then
  5701. BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
  5702. found="yes"
  5703. fi
  5704. fi
  5705. # These are currently disabled because they are noisy. They will be enabled
  5706. # in the future once the codebase is sufficiently modernized to silence
  5707. # them. For now, I don't want them to drown out the other warnings.
  5708. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
  5709. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5710. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5711. # Turn some warnings into errors, so we don't accidently get successful builds
  5712. # when there are problems that should be fixed.
  5713. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5714. xorg_testset_save_CFLAGS="$CFLAGS"
  5715. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5718. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5719. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5723. /* end confdefs.h. */
  5724. int i;
  5725. _ACEOF
  5726. if ac_fn_c_try_compile "$LINENO"; then :
  5727. xorg_cv_cc_flag_unknown_warning_option=yes
  5728. else
  5729. xorg_cv_cc_flag_unknown_warning_option=no
  5730. fi
  5731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5732. fi
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5734. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5735. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5736. CFLAGS="$xorg_testset_save_CFLAGS"
  5737. fi
  5738. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5739. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5740. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5741. fi
  5742. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5744. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5745. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5749. /* end confdefs.h. */
  5750. int i;
  5751. _ACEOF
  5752. if ac_fn_c_try_compile "$LINENO"; then :
  5753. xorg_cv_cc_flag_unused_command_line_argument=yes
  5754. else
  5755. xorg_cv_cc_flag_unused_command_line_argument=no
  5756. fi
  5757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5758. fi
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5760. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5761. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5762. CFLAGS="$xorg_testset_save_CFLAGS"
  5763. fi
  5764. found="no"
  5765. if test $found = "no" ; then
  5766. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5767. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5768. fi
  5769. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5770. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5771. fi
  5772. CFLAGS="$CFLAGS -Werror=implicit"
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5774. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5775. cacheid=xorg_cv_cc_flag__Werror_implicit
  5776. if eval \${$cacheid+:} false; then :
  5777. $as_echo_n "(cached) " >&6
  5778. else
  5779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5780. /* end confdefs.h. */
  5781. int i;
  5782. int
  5783. main ()
  5784. {
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. if ac_fn_c_try_link "$LINENO"; then :
  5790. eval $cacheid=yes
  5791. else
  5792. eval $cacheid=no
  5793. fi
  5794. rm -f core conftest.err conftest.$ac_objext \
  5795. conftest$ac_exeext conftest.$ac_ext
  5796. fi
  5797. CFLAGS="$xorg_testset_save_CFLAGS"
  5798. eval supported=\$$cacheid
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5800. $as_echo "$supported" >&6; }
  5801. if test "$supported" = "yes" ; then
  5802. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5803. found="yes"
  5804. fi
  5805. fi
  5806. if test $found = "no" ; then
  5807. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5808. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5809. fi
  5810. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5811. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5812. fi
  5813. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5815. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5816. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5817. if eval \${$cacheid+:} false; then :
  5818. $as_echo_n "(cached) " >&6
  5819. else
  5820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5821. /* end confdefs.h. */
  5822. int i;
  5823. int
  5824. main ()
  5825. {
  5826. ;
  5827. return 0;
  5828. }
  5829. _ACEOF
  5830. if ac_fn_c_try_link "$LINENO"; then :
  5831. eval $cacheid=yes
  5832. else
  5833. eval $cacheid=no
  5834. fi
  5835. rm -f core conftest.err conftest.$ac_objext \
  5836. conftest$ac_exeext conftest.$ac_ext
  5837. fi
  5838. CFLAGS="$xorg_testset_save_CFLAGS"
  5839. eval supported=\$$cacheid
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5841. $as_echo "$supported" >&6; }
  5842. if test "$supported" = "yes" ; then
  5843. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5844. found="yes"
  5845. fi
  5846. fi
  5847. xorg_testset_save_CFLAGS="$CFLAGS"
  5848. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5851. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5852. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5856. /* end confdefs.h. */
  5857. int i;
  5858. _ACEOF
  5859. if ac_fn_c_try_compile "$LINENO"; then :
  5860. xorg_cv_cc_flag_unknown_warning_option=yes
  5861. else
  5862. xorg_cv_cc_flag_unknown_warning_option=no
  5863. fi
  5864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5865. fi
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5867. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5868. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5869. CFLAGS="$xorg_testset_save_CFLAGS"
  5870. fi
  5871. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5872. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5873. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5874. fi
  5875. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5877. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5878. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5882. /* end confdefs.h. */
  5883. int i;
  5884. _ACEOF
  5885. if ac_fn_c_try_compile "$LINENO"; then :
  5886. xorg_cv_cc_flag_unused_command_line_argument=yes
  5887. else
  5888. xorg_cv_cc_flag_unused_command_line_argument=no
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5893. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5894. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5895. CFLAGS="$xorg_testset_save_CFLAGS"
  5896. fi
  5897. found="no"
  5898. if test $found = "no" ; then
  5899. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5900. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5901. fi
  5902. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5903. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5904. fi
  5905. CFLAGS="$CFLAGS -Werror=nonnull"
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5907. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5908. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5909. if eval \${$cacheid+:} false; then :
  5910. $as_echo_n "(cached) " >&6
  5911. else
  5912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5913. /* end confdefs.h. */
  5914. int i;
  5915. int
  5916. main ()
  5917. {
  5918. ;
  5919. return 0;
  5920. }
  5921. _ACEOF
  5922. if ac_fn_c_try_link "$LINENO"; then :
  5923. eval $cacheid=yes
  5924. else
  5925. eval $cacheid=no
  5926. fi
  5927. rm -f core conftest.err conftest.$ac_objext \
  5928. conftest$ac_exeext conftest.$ac_ext
  5929. fi
  5930. CFLAGS="$xorg_testset_save_CFLAGS"
  5931. eval supported=\$$cacheid
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5933. $as_echo "$supported" >&6; }
  5934. if test "$supported" = "yes" ; then
  5935. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5936. found="yes"
  5937. fi
  5938. fi
  5939. xorg_testset_save_CFLAGS="$CFLAGS"
  5940. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5941. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5943. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5944. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5945. $as_echo_n "(cached) " >&6
  5946. else
  5947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5948. /* end confdefs.h. */
  5949. int i;
  5950. _ACEOF
  5951. if ac_fn_c_try_compile "$LINENO"; then :
  5952. xorg_cv_cc_flag_unknown_warning_option=yes
  5953. else
  5954. xorg_cv_cc_flag_unknown_warning_option=no
  5955. fi
  5956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5959. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5960. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5961. CFLAGS="$xorg_testset_save_CFLAGS"
  5962. fi
  5963. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5964. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5965. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5966. fi
  5967. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5969. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5970. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5974. /* end confdefs.h. */
  5975. int i;
  5976. _ACEOF
  5977. if ac_fn_c_try_compile "$LINENO"; then :
  5978. xorg_cv_cc_flag_unused_command_line_argument=yes
  5979. else
  5980. xorg_cv_cc_flag_unused_command_line_argument=no
  5981. fi
  5982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5983. fi
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5985. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5986. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5987. CFLAGS="$xorg_testset_save_CFLAGS"
  5988. fi
  5989. found="no"
  5990. if test $found = "no" ; then
  5991. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5992. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5993. fi
  5994. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5995. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5996. fi
  5997. CFLAGS="$CFLAGS -Werror=init-self"
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5999. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6000. cacheid=xorg_cv_cc_flag__Werror_init_self
  6001. if eval \${$cacheid+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6005. /* end confdefs.h. */
  6006. int i;
  6007. int
  6008. main ()
  6009. {
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. if ac_fn_c_try_link "$LINENO"; then :
  6015. eval $cacheid=yes
  6016. else
  6017. eval $cacheid=no
  6018. fi
  6019. rm -f core conftest.err conftest.$ac_objext \
  6020. conftest$ac_exeext conftest.$ac_ext
  6021. fi
  6022. CFLAGS="$xorg_testset_save_CFLAGS"
  6023. eval supported=\$$cacheid
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6025. $as_echo "$supported" >&6; }
  6026. if test "$supported" = "yes" ; then
  6027. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6028. found="yes"
  6029. fi
  6030. fi
  6031. xorg_testset_save_CFLAGS="$CFLAGS"
  6032. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6033. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6035. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6036. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6040. /* end confdefs.h. */
  6041. int i;
  6042. _ACEOF
  6043. if ac_fn_c_try_compile "$LINENO"; then :
  6044. xorg_cv_cc_flag_unknown_warning_option=yes
  6045. else
  6046. xorg_cv_cc_flag_unknown_warning_option=no
  6047. fi
  6048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. fi
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6051. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6052. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6053. CFLAGS="$xorg_testset_save_CFLAGS"
  6054. fi
  6055. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6056. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6057. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6058. fi
  6059. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6061. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6062. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6066. /* end confdefs.h. */
  6067. int i;
  6068. _ACEOF
  6069. if ac_fn_c_try_compile "$LINENO"; then :
  6070. xorg_cv_cc_flag_unused_command_line_argument=yes
  6071. else
  6072. xorg_cv_cc_flag_unused_command_line_argument=no
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6075. fi
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6077. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6078. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6079. CFLAGS="$xorg_testset_save_CFLAGS"
  6080. fi
  6081. found="no"
  6082. if test $found = "no" ; then
  6083. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6084. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6085. fi
  6086. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6087. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6088. fi
  6089. CFLAGS="$CFLAGS -Werror=main"
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6091. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6092. cacheid=xorg_cv_cc_flag__Werror_main
  6093. if eval \${$cacheid+:} false; then :
  6094. $as_echo_n "(cached) " >&6
  6095. else
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. int i;
  6099. int
  6100. main ()
  6101. {
  6102. ;
  6103. return 0;
  6104. }
  6105. _ACEOF
  6106. if ac_fn_c_try_link "$LINENO"; then :
  6107. eval $cacheid=yes
  6108. else
  6109. eval $cacheid=no
  6110. fi
  6111. rm -f core conftest.err conftest.$ac_objext \
  6112. conftest$ac_exeext conftest.$ac_ext
  6113. fi
  6114. CFLAGS="$xorg_testset_save_CFLAGS"
  6115. eval supported=\$$cacheid
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6117. $as_echo "$supported" >&6; }
  6118. if test "$supported" = "yes" ; then
  6119. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6120. found="yes"
  6121. fi
  6122. fi
  6123. xorg_testset_save_CFLAGS="$CFLAGS"
  6124. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6125. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6127. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6128. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6129. $as_echo_n "(cached) " >&6
  6130. else
  6131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6132. /* end confdefs.h. */
  6133. int i;
  6134. _ACEOF
  6135. if ac_fn_c_try_compile "$LINENO"; then :
  6136. xorg_cv_cc_flag_unknown_warning_option=yes
  6137. else
  6138. xorg_cv_cc_flag_unknown_warning_option=no
  6139. fi
  6140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6141. fi
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6143. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6144. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6145. CFLAGS="$xorg_testset_save_CFLAGS"
  6146. fi
  6147. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6148. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6149. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6150. fi
  6151. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6153. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6154. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6158. /* end confdefs.h. */
  6159. int i;
  6160. _ACEOF
  6161. if ac_fn_c_try_compile "$LINENO"; then :
  6162. xorg_cv_cc_flag_unused_command_line_argument=yes
  6163. else
  6164. xorg_cv_cc_flag_unused_command_line_argument=no
  6165. fi
  6166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6167. fi
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6169. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6170. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6171. CFLAGS="$xorg_testset_save_CFLAGS"
  6172. fi
  6173. found="no"
  6174. if test $found = "no" ; then
  6175. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6176. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6177. fi
  6178. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6179. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6180. fi
  6181. CFLAGS="$CFLAGS -Werror=missing-braces"
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6183. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6184. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6185. if eval \${$cacheid+:} false; then :
  6186. $as_echo_n "(cached) " >&6
  6187. else
  6188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6189. /* end confdefs.h. */
  6190. int i;
  6191. int
  6192. main ()
  6193. {
  6194. ;
  6195. return 0;
  6196. }
  6197. _ACEOF
  6198. if ac_fn_c_try_link "$LINENO"; then :
  6199. eval $cacheid=yes
  6200. else
  6201. eval $cacheid=no
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext \
  6204. conftest$ac_exeext conftest.$ac_ext
  6205. fi
  6206. CFLAGS="$xorg_testset_save_CFLAGS"
  6207. eval supported=\$$cacheid
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6209. $as_echo "$supported" >&6; }
  6210. if test "$supported" = "yes" ; then
  6211. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6212. found="yes"
  6213. fi
  6214. fi
  6215. xorg_testset_save_CFLAGS="$CFLAGS"
  6216. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6217. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6219. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6220. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6221. $as_echo_n "(cached) " >&6
  6222. else
  6223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6224. /* end confdefs.h. */
  6225. int i;
  6226. _ACEOF
  6227. if ac_fn_c_try_compile "$LINENO"; then :
  6228. xorg_cv_cc_flag_unknown_warning_option=yes
  6229. else
  6230. xorg_cv_cc_flag_unknown_warning_option=no
  6231. fi
  6232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6233. fi
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6235. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6236. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6237. CFLAGS="$xorg_testset_save_CFLAGS"
  6238. fi
  6239. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6240. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6241. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6242. fi
  6243. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6245. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6246. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. int i;
  6252. _ACEOF
  6253. if ac_fn_c_try_compile "$LINENO"; then :
  6254. xorg_cv_cc_flag_unused_command_line_argument=yes
  6255. else
  6256. xorg_cv_cc_flag_unused_command_line_argument=no
  6257. fi
  6258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6259. fi
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6261. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6262. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6263. CFLAGS="$xorg_testset_save_CFLAGS"
  6264. fi
  6265. found="no"
  6266. if test $found = "no" ; then
  6267. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6268. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6269. fi
  6270. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6271. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6272. fi
  6273. CFLAGS="$CFLAGS -Werror=sequence-point"
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6275. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6276. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6277. if eval \${$cacheid+:} false; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6281. /* end confdefs.h. */
  6282. int i;
  6283. int
  6284. main ()
  6285. {
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_c_try_link "$LINENO"; then :
  6291. eval $cacheid=yes
  6292. else
  6293. eval $cacheid=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext \
  6296. conftest$ac_exeext conftest.$ac_ext
  6297. fi
  6298. CFLAGS="$xorg_testset_save_CFLAGS"
  6299. eval supported=\$$cacheid
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6301. $as_echo "$supported" >&6; }
  6302. if test "$supported" = "yes" ; then
  6303. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6304. found="yes"
  6305. fi
  6306. fi
  6307. xorg_testset_save_CFLAGS="$CFLAGS"
  6308. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6309. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6311. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6312. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end confdefs.h. */
  6317. int i;
  6318. _ACEOF
  6319. if ac_fn_c_try_compile "$LINENO"; then :
  6320. xorg_cv_cc_flag_unknown_warning_option=yes
  6321. else
  6322. xorg_cv_cc_flag_unknown_warning_option=no
  6323. fi
  6324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6325. fi
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6327. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6328. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6329. CFLAGS="$xorg_testset_save_CFLAGS"
  6330. fi
  6331. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6332. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6333. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6334. fi
  6335. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6337. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6338. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. int i;
  6344. _ACEOF
  6345. if ac_fn_c_try_compile "$LINENO"; then :
  6346. xorg_cv_cc_flag_unused_command_line_argument=yes
  6347. else
  6348. xorg_cv_cc_flag_unused_command_line_argument=no
  6349. fi
  6350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6351. fi
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6353. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6354. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6355. CFLAGS="$xorg_testset_save_CFLAGS"
  6356. fi
  6357. found="no"
  6358. if test $found = "no" ; then
  6359. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6360. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6361. fi
  6362. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6363. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6364. fi
  6365. CFLAGS="$CFLAGS -Werror=return-type"
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6367. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6368. cacheid=xorg_cv_cc_flag__Werror_return_type
  6369. if eval \${$cacheid+:} false; then :
  6370. $as_echo_n "(cached) " >&6
  6371. else
  6372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6373. /* end confdefs.h. */
  6374. int i;
  6375. int
  6376. main ()
  6377. {
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_link "$LINENO"; then :
  6383. eval $cacheid=yes
  6384. else
  6385. eval $cacheid=no
  6386. fi
  6387. rm -f core conftest.err conftest.$ac_objext \
  6388. conftest$ac_exeext conftest.$ac_ext
  6389. fi
  6390. CFLAGS="$xorg_testset_save_CFLAGS"
  6391. eval supported=\$$cacheid
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6393. $as_echo "$supported" >&6; }
  6394. if test "$supported" = "yes" ; then
  6395. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6396. found="yes"
  6397. fi
  6398. fi
  6399. if test $found = "no" ; then
  6400. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6401. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6402. fi
  6403. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6404. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6405. fi
  6406. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6408. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6409. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6410. if eval \${$cacheid+:} false; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6414. /* end confdefs.h. */
  6415. int i;
  6416. int
  6417. main ()
  6418. {
  6419. ;
  6420. return 0;
  6421. }
  6422. _ACEOF
  6423. if ac_fn_c_try_link "$LINENO"; then :
  6424. eval $cacheid=yes
  6425. else
  6426. eval $cacheid=no
  6427. fi
  6428. rm -f core conftest.err conftest.$ac_objext \
  6429. conftest$ac_exeext conftest.$ac_ext
  6430. fi
  6431. CFLAGS="$xorg_testset_save_CFLAGS"
  6432. eval supported=\$$cacheid
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6434. $as_echo "$supported" >&6; }
  6435. if test "$supported" = "yes" ; then
  6436. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6437. found="yes"
  6438. fi
  6439. fi
  6440. xorg_testset_save_CFLAGS="$CFLAGS"
  6441. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6442. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6444. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6445. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6449. /* end confdefs.h. */
  6450. int i;
  6451. _ACEOF
  6452. if ac_fn_c_try_compile "$LINENO"; then :
  6453. xorg_cv_cc_flag_unknown_warning_option=yes
  6454. else
  6455. xorg_cv_cc_flag_unknown_warning_option=no
  6456. fi
  6457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6460. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6461. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6462. CFLAGS="$xorg_testset_save_CFLAGS"
  6463. fi
  6464. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6465. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6466. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6467. fi
  6468. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6470. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6471. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. int i;
  6477. _ACEOF
  6478. if ac_fn_c_try_compile "$LINENO"; then :
  6479. xorg_cv_cc_flag_unused_command_line_argument=yes
  6480. else
  6481. xorg_cv_cc_flag_unused_command_line_argument=no
  6482. fi
  6483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6484. fi
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6486. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6487. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6488. CFLAGS="$xorg_testset_save_CFLAGS"
  6489. fi
  6490. found="no"
  6491. if test $found = "no" ; then
  6492. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6493. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6494. fi
  6495. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6496. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6497. fi
  6498. CFLAGS="$CFLAGS -Werror=trigraphs"
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6500. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6501. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6502. if eval \${$cacheid+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6506. /* end confdefs.h. */
  6507. int i;
  6508. int
  6509. main ()
  6510. {
  6511. ;
  6512. return 0;
  6513. }
  6514. _ACEOF
  6515. if ac_fn_c_try_link "$LINENO"; then :
  6516. eval $cacheid=yes
  6517. else
  6518. eval $cacheid=no
  6519. fi
  6520. rm -f core conftest.err conftest.$ac_objext \
  6521. conftest$ac_exeext conftest.$ac_ext
  6522. fi
  6523. CFLAGS="$xorg_testset_save_CFLAGS"
  6524. eval supported=\$$cacheid
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6526. $as_echo "$supported" >&6; }
  6527. if test "$supported" = "yes" ; then
  6528. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6529. found="yes"
  6530. fi
  6531. fi
  6532. xorg_testset_save_CFLAGS="$CFLAGS"
  6533. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6534. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6536. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6537. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6538. $as_echo_n "(cached) " >&6
  6539. else
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. int i;
  6543. _ACEOF
  6544. if ac_fn_c_try_compile "$LINENO"; then :
  6545. xorg_cv_cc_flag_unknown_warning_option=yes
  6546. else
  6547. xorg_cv_cc_flag_unknown_warning_option=no
  6548. fi
  6549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6550. fi
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6552. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6553. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6554. CFLAGS="$xorg_testset_save_CFLAGS"
  6555. fi
  6556. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6557. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6558. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6559. fi
  6560. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6562. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6563. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6567. /* end confdefs.h. */
  6568. int i;
  6569. _ACEOF
  6570. if ac_fn_c_try_compile "$LINENO"; then :
  6571. xorg_cv_cc_flag_unused_command_line_argument=yes
  6572. else
  6573. xorg_cv_cc_flag_unused_command_line_argument=no
  6574. fi
  6575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6578. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6579. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6580. CFLAGS="$xorg_testset_save_CFLAGS"
  6581. fi
  6582. found="no"
  6583. if test $found = "no" ; then
  6584. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6585. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6586. fi
  6587. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6588. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6589. fi
  6590. CFLAGS="$CFLAGS -Werror=array-bounds"
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6592. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6593. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6594. if eval \${$cacheid+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6598. /* end confdefs.h. */
  6599. int i;
  6600. int
  6601. main ()
  6602. {
  6603. ;
  6604. return 0;
  6605. }
  6606. _ACEOF
  6607. if ac_fn_c_try_link "$LINENO"; then :
  6608. eval $cacheid=yes
  6609. else
  6610. eval $cacheid=no
  6611. fi
  6612. rm -f core conftest.err conftest.$ac_objext \
  6613. conftest$ac_exeext conftest.$ac_ext
  6614. fi
  6615. CFLAGS="$xorg_testset_save_CFLAGS"
  6616. eval supported=\$$cacheid
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6618. $as_echo "$supported" >&6; }
  6619. if test "$supported" = "yes" ; then
  6620. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6621. found="yes"
  6622. fi
  6623. fi
  6624. xorg_testset_save_CFLAGS="$CFLAGS"
  6625. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6626. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6628. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6629. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6633. /* end confdefs.h. */
  6634. int i;
  6635. _ACEOF
  6636. if ac_fn_c_try_compile "$LINENO"; then :
  6637. xorg_cv_cc_flag_unknown_warning_option=yes
  6638. else
  6639. xorg_cv_cc_flag_unknown_warning_option=no
  6640. fi
  6641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6642. fi
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6644. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6645. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6646. CFLAGS="$xorg_testset_save_CFLAGS"
  6647. fi
  6648. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6649. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6650. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6651. fi
  6652. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6654. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6655. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6659. /* end confdefs.h. */
  6660. int i;
  6661. _ACEOF
  6662. if ac_fn_c_try_compile "$LINENO"; then :
  6663. xorg_cv_cc_flag_unused_command_line_argument=yes
  6664. else
  6665. xorg_cv_cc_flag_unused_command_line_argument=no
  6666. fi
  6667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6668. fi
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6670. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6671. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6672. CFLAGS="$xorg_testset_save_CFLAGS"
  6673. fi
  6674. found="no"
  6675. if test $found = "no" ; then
  6676. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6677. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6678. fi
  6679. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6680. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6681. fi
  6682. CFLAGS="$CFLAGS -Werror=write-strings"
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6684. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6685. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6686. if eval \${$cacheid+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6690. /* end confdefs.h. */
  6691. int i;
  6692. int
  6693. main ()
  6694. {
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. if ac_fn_c_try_link "$LINENO"; then :
  6700. eval $cacheid=yes
  6701. else
  6702. eval $cacheid=no
  6703. fi
  6704. rm -f core conftest.err conftest.$ac_objext \
  6705. conftest$ac_exeext conftest.$ac_ext
  6706. fi
  6707. CFLAGS="$xorg_testset_save_CFLAGS"
  6708. eval supported=\$$cacheid
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6710. $as_echo "$supported" >&6; }
  6711. if test "$supported" = "yes" ; then
  6712. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6713. found="yes"
  6714. fi
  6715. fi
  6716. xorg_testset_save_CFLAGS="$CFLAGS"
  6717. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6718. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6720. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6721. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6725. /* end confdefs.h. */
  6726. int i;
  6727. _ACEOF
  6728. if ac_fn_c_try_compile "$LINENO"; then :
  6729. xorg_cv_cc_flag_unknown_warning_option=yes
  6730. else
  6731. xorg_cv_cc_flag_unknown_warning_option=no
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6736. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6737. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6738. CFLAGS="$xorg_testset_save_CFLAGS"
  6739. fi
  6740. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6741. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6742. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6743. fi
  6744. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6746. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6747. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6748. $as_echo_n "(cached) " >&6
  6749. else
  6750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751. /* end confdefs.h. */
  6752. int i;
  6753. _ACEOF
  6754. if ac_fn_c_try_compile "$LINENO"; then :
  6755. xorg_cv_cc_flag_unused_command_line_argument=yes
  6756. else
  6757. xorg_cv_cc_flag_unused_command_line_argument=no
  6758. fi
  6759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6760. fi
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6762. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6763. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6764. CFLAGS="$xorg_testset_save_CFLAGS"
  6765. fi
  6766. found="no"
  6767. if test $found = "no" ; then
  6768. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6769. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6770. fi
  6771. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6772. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6773. fi
  6774. CFLAGS="$CFLAGS -Werror=address"
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6776. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6777. cacheid=xorg_cv_cc_flag__Werror_address
  6778. if eval \${$cacheid+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6782. /* end confdefs.h. */
  6783. int i;
  6784. int
  6785. main ()
  6786. {
  6787. ;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. if ac_fn_c_try_link "$LINENO"; then :
  6792. eval $cacheid=yes
  6793. else
  6794. eval $cacheid=no
  6795. fi
  6796. rm -f core conftest.err conftest.$ac_objext \
  6797. conftest$ac_exeext conftest.$ac_ext
  6798. fi
  6799. CFLAGS="$xorg_testset_save_CFLAGS"
  6800. eval supported=\$$cacheid
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6802. $as_echo "$supported" >&6; }
  6803. if test "$supported" = "yes" ; then
  6804. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6805. found="yes"
  6806. fi
  6807. fi
  6808. xorg_testset_save_CFLAGS="$CFLAGS"
  6809. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6810. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6812. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6813. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6817. /* end confdefs.h. */
  6818. int i;
  6819. _ACEOF
  6820. if ac_fn_c_try_compile "$LINENO"; then :
  6821. xorg_cv_cc_flag_unknown_warning_option=yes
  6822. else
  6823. xorg_cv_cc_flag_unknown_warning_option=no
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. fi
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6828. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6829. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6830. CFLAGS="$xorg_testset_save_CFLAGS"
  6831. fi
  6832. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6833. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6834. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6835. fi
  6836. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6838. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6839. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6843. /* end confdefs.h. */
  6844. int i;
  6845. _ACEOF
  6846. if ac_fn_c_try_compile "$LINENO"; then :
  6847. xorg_cv_cc_flag_unused_command_line_argument=yes
  6848. else
  6849. xorg_cv_cc_flag_unused_command_line_argument=no
  6850. fi
  6851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6852. fi
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6854. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6855. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6856. CFLAGS="$xorg_testset_save_CFLAGS"
  6857. fi
  6858. found="no"
  6859. if test $found = "no" ; then
  6860. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6861. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6862. fi
  6863. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6864. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6865. fi
  6866. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6868. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6869. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6870. if eval \${$cacheid+:} false; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6874. /* end confdefs.h. */
  6875. int i;
  6876. int
  6877. main ()
  6878. {
  6879. ;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_link "$LINENO"; then :
  6884. eval $cacheid=yes
  6885. else
  6886. eval $cacheid=no
  6887. fi
  6888. rm -f core conftest.err conftest.$ac_objext \
  6889. conftest$ac_exeext conftest.$ac_ext
  6890. fi
  6891. CFLAGS="$xorg_testset_save_CFLAGS"
  6892. eval supported=\$$cacheid
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6894. $as_echo "$supported" >&6; }
  6895. if test "$supported" = "yes" ; then
  6896. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6897. found="yes"
  6898. fi
  6899. fi
  6900. if test $found = "no" ; then
  6901. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6902. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6903. fi
  6904. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6905. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6906. fi
  6907. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6909. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6910. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6911. if eval \${$cacheid+:} false; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6915. /* end confdefs.h. */
  6916. int i;
  6917. int
  6918. main ()
  6919. {
  6920. ;
  6921. return 0;
  6922. }
  6923. _ACEOF
  6924. if ac_fn_c_try_link "$LINENO"; then :
  6925. eval $cacheid=yes
  6926. else
  6927. eval $cacheid=no
  6928. fi
  6929. rm -f core conftest.err conftest.$ac_objext \
  6930. conftest$ac_exeext conftest.$ac_ext
  6931. fi
  6932. CFLAGS="$xorg_testset_save_CFLAGS"
  6933. eval supported=\$$cacheid
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6935. $as_echo "$supported" >&6; }
  6936. if test "$supported" = "yes" ; then
  6937. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6938. found="yes"
  6939. fi
  6940. fi
  6941. xorg_testset_save_CFLAGS="$CFLAGS"
  6942. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6943. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6945. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6946. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6950. /* end confdefs.h. */
  6951. int i;
  6952. _ACEOF
  6953. if ac_fn_c_try_compile "$LINENO"; then :
  6954. xorg_cv_cc_flag_unknown_warning_option=yes
  6955. else
  6956. xorg_cv_cc_flag_unknown_warning_option=no
  6957. fi
  6958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6959. fi
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6961. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6962. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6963. CFLAGS="$xorg_testset_save_CFLAGS"
  6964. fi
  6965. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6966. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6967. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6968. fi
  6969. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6971. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6972. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6973. $as_echo_n "(cached) " >&6
  6974. else
  6975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6976. /* end confdefs.h. */
  6977. int i;
  6978. _ACEOF
  6979. if ac_fn_c_try_compile "$LINENO"; then :
  6980. xorg_cv_cc_flag_unused_command_line_argument=yes
  6981. else
  6982. xorg_cv_cc_flag_unused_command_line_argument=no
  6983. fi
  6984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6985. fi
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6987. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6988. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6989. CFLAGS="$xorg_testset_save_CFLAGS"
  6990. fi
  6991. found="no"
  6992. if test $found = "no" ; then
  6993. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6994. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6995. fi
  6996. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6997. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6998. fi
  6999. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7001. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7002. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7003. if eval \${$cacheid+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7007. /* end confdefs.h. */
  7008. int i;
  7009. int
  7010. main ()
  7011. {
  7012. ;
  7013. return 0;
  7014. }
  7015. _ACEOF
  7016. if ac_fn_c_try_link "$LINENO"; then :
  7017. eval $cacheid=yes
  7018. else
  7019. eval $cacheid=no
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext \
  7022. conftest$ac_exeext conftest.$ac_ext
  7023. fi
  7024. CFLAGS="$xorg_testset_save_CFLAGS"
  7025. eval supported=\$$cacheid
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7027. $as_echo "$supported" >&6; }
  7028. if test "$supported" = "yes" ; then
  7029. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7030. found="yes"
  7031. fi
  7032. fi
  7033. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7034. else
  7035. { $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
  7036. $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;}
  7037. xorg_testset_save_CFLAGS="$CFLAGS"
  7038. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7039. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7041. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7042. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7043. $as_echo_n "(cached) " >&6
  7044. else
  7045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7046. /* end confdefs.h. */
  7047. int i;
  7048. _ACEOF
  7049. if ac_fn_c_try_compile "$LINENO"; then :
  7050. xorg_cv_cc_flag_unknown_warning_option=yes
  7051. else
  7052. xorg_cv_cc_flag_unknown_warning_option=no
  7053. fi
  7054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7055. fi
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7057. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7058. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7059. CFLAGS="$xorg_testset_save_CFLAGS"
  7060. fi
  7061. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7062. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7063. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7064. fi
  7065. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7067. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7068. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7072. /* end confdefs.h. */
  7073. int i;
  7074. _ACEOF
  7075. if ac_fn_c_try_compile "$LINENO"; then :
  7076. xorg_cv_cc_flag_unused_command_line_argument=yes
  7077. else
  7078. xorg_cv_cc_flag_unused_command_line_argument=no
  7079. fi
  7080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7081. fi
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7083. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7084. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7085. CFLAGS="$xorg_testset_save_CFLAGS"
  7086. fi
  7087. found="no"
  7088. if test $found = "no" ; then
  7089. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7090. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7091. fi
  7092. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7093. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7094. fi
  7095. CFLAGS="$CFLAGS -Wimplicit"
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7097. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7098. cacheid=xorg_cv_cc_flag__Wimplicit
  7099. if eval \${$cacheid+:} false; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7103. /* end confdefs.h. */
  7104. int i;
  7105. int
  7106. main ()
  7107. {
  7108. ;
  7109. return 0;
  7110. }
  7111. _ACEOF
  7112. if ac_fn_c_try_link "$LINENO"; then :
  7113. eval $cacheid=yes
  7114. else
  7115. eval $cacheid=no
  7116. fi
  7117. rm -f core conftest.err conftest.$ac_objext \
  7118. conftest$ac_exeext conftest.$ac_ext
  7119. fi
  7120. CFLAGS="$xorg_testset_save_CFLAGS"
  7121. eval supported=\$$cacheid
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7123. $as_echo "$supported" >&6; }
  7124. if test "$supported" = "yes" ; then
  7125. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7126. found="yes"
  7127. fi
  7128. fi
  7129. xorg_testset_save_CFLAGS="$CFLAGS"
  7130. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7131. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7133. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7134. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. int i;
  7140. _ACEOF
  7141. if ac_fn_c_try_compile "$LINENO"; then :
  7142. xorg_cv_cc_flag_unknown_warning_option=yes
  7143. else
  7144. xorg_cv_cc_flag_unknown_warning_option=no
  7145. fi
  7146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7147. fi
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7149. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7150. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7151. CFLAGS="$xorg_testset_save_CFLAGS"
  7152. fi
  7153. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7154. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7155. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7156. fi
  7157. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7159. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7160. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7164. /* end confdefs.h. */
  7165. int i;
  7166. _ACEOF
  7167. if ac_fn_c_try_compile "$LINENO"; then :
  7168. xorg_cv_cc_flag_unused_command_line_argument=yes
  7169. else
  7170. xorg_cv_cc_flag_unused_command_line_argument=no
  7171. fi
  7172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7173. fi
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7175. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7176. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7177. CFLAGS="$xorg_testset_save_CFLAGS"
  7178. fi
  7179. found="no"
  7180. if test $found = "no" ; then
  7181. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7182. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7183. fi
  7184. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7185. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7186. fi
  7187. CFLAGS="$CFLAGS -Wnonnull"
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7189. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7190. cacheid=xorg_cv_cc_flag__Wnonnull
  7191. if eval \${$cacheid+:} false; then :
  7192. $as_echo_n "(cached) " >&6
  7193. else
  7194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7195. /* end confdefs.h. */
  7196. int i;
  7197. int
  7198. main ()
  7199. {
  7200. ;
  7201. return 0;
  7202. }
  7203. _ACEOF
  7204. if ac_fn_c_try_link "$LINENO"; then :
  7205. eval $cacheid=yes
  7206. else
  7207. eval $cacheid=no
  7208. fi
  7209. rm -f core conftest.err conftest.$ac_objext \
  7210. conftest$ac_exeext conftest.$ac_ext
  7211. fi
  7212. CFLAGS="$xorg_testset_save_CFLAGS"
  7213. eval supported=\$$cacheid
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7215. $as_echo "$supported" >&6; }
  7216. if test "$supported" = "yes" ; then
  7217. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7218. found="yes"
  7219. fi
  7220. fi
  7221. xorg_testset_save_CFLAGS="$CFLAGS"
  7222. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7223. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7225. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7226. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7230. /* end confdefs.h. */
  7231. int i;
  7232. _ACEOF
  7233. if ac_fn_c_try_compile "$LINENO"; then :
  7234. xorg_cv_cc_flag_unknown_warning_option=yes
  7235. else
  7236. xorg_cv_cc_flag_unknown_warning_option=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7241. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7242. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7243. CFLAGS="$xorg_testset_save_CFLAGS"
  7244. fi
  7245. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7246. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7247. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7248. fi
  7249. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7251. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7252. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7256. /* end confdefs.h. */
  7257. int i;
  7258. _ACEOF
  7259. if ac_fn_c_try_compile "$LINENO"; then :
  7260. xorg_cv_cc_flag_unused_command_line_argument=yes
  7261. else
  7262. xorg_cv_cc_flag_unused_command_line_argument=no
  7263. fi
  7264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7265. fi
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7267. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7268. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7269. CFLAGS="$xorg_testset_save_CFLAGS"
  7270. fi
  7271. found="no"
  7272. if test $found = "no" ; then
  7273. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7274. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7275. fi
  7276. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7277. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7278. fi
  7279. CFLAGS="$CFLAGS -Winit-self"
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7281. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7282. cacheid=xorg_cv_cc_flag__Winit_self
  7283. if eval \${$cacheid+:} false; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7287. /* end confdefs.h. */
  7288. int i;
  7289. int
  7290. main ()
  7291. {
  7292. ;
  7293. return 0;
  7294. }
  7295. _ACEOF
  7296. if ac_fn_c_try_link "$LINENO"; then :
  7297. eval $cacheid=yes
  7298. else
  7299. eval $cacheid=no
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext \
  7302. conftest$ac_exeext conftest.$ac_ext
  7303. fi
  7304. CFLAGS="$xorg_testset_save_CFLAGS"
  7305. eval supported=\$$cacheid
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7307. $as_echo "$supported" >&6; }
  7308. if test "$supported" = "yes" ; then
  7309. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7310. found="yes"
  7311. fi
  7312. fi
  7313. xorg_testset_save_CFLAGS="$CFLAGS"
  7314. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7315. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7317. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7318. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7322. /* end confdefs.h. */
  7323. int i;
  7324. _ACEOF
  7325. if ac_fn_c_try_compile "$LINENO"; then :
  7326. xorg_cv_cc_flag_unknown_warning_option=yes
  7327. else
  7328. xorg_cv_cc_flag_unknown_warning_option=no
  7329. fi
  7330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7331. fi
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7333. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7334. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7335. CFLAGS="$xorg_testset_save_CFLAGS"
  7336. fi
  7337. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7338. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7340. fi
  7341. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7343. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7344. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7345. $as_echo_n "(cached) " >&6
  7346. else
  7347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7348. /* end confdefs.h. */
  7349. int i;
  7350. _ACEOF
  7351. if ac_fn_c_try_compile "$LINENO"; then :
  7352. xorg_cv_cc_flag_unused_command_line_argument=yes
  7353. else
  7354. xorg_cv_cc_flag_unused_command_line_argument=no
  7355. fi
  7356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7359. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7360. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7361. CFLAGS="$xorg_testset_save_CFLAGS"
  7362. fi
  7363. found="no"
  7364. if test $found = "no" ; then
  7365. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7366. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7367. fi
  7368. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7369. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7370. fi
  7371. CFLAGS="$CFLAGS -Wmain"
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7373. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7374. cacheid=xorg_cv_cc_flag__Wmain
  7375. if eval \${$cacheid+:} false; then :
  7376. $as_echo_n "(cached) " >&6
  7377. else
  7378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7379. /* end confdefs.h. */
  7380. int i;
  7381. int
  7382. main ()
  7383. {
  7384. ;
  7385. return 0;
  7386. }
  7387. _ACEOF
  7388. if ac_fn_c_try_link "$LINENO"; then :
  7389. eval $cacheid=yes
  7390. else
  7391. eval $cacheid=no
  7392. fi
  7393. rm -f core conftest.err conftest.$ac_objext \
  7394. conftest$ac_exeext conftest.$ac_ext
  7395. fi
  7396. CFLAGS="$xorg_testset_save_CFLAGS"
  7397. eval supported=\$$cacheid
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7399. $as_echo "$supported" >&6; }
  7400. if test "$supported" = "yes" ; then
  7401. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7402. found="yes"
  7403. fi
  7404. fi
  7405. xorg_testset_save_CFLAGS="$CFLAGS"
  7406. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7407. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7409. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7410. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7414. /* end confdefs.h. */
  7415. int i;
  7416. _ACEOF
  7417. if ac_fn_c_try_compile "$LINENO"; then :
  7418. xorg_cv_cc_flag_unknown_warning_option=yes
  7419. else
  7420. xorg_cv_cc_flag_unknown_warning_option=no
  7421. fi
  7422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7425. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7426. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7427. CFLAGS="$xorg_testset_save_CFLAGS"
  7428. fi
  7429. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7430. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7432. fi
  7433. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7435. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7436. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7437. $as_echo_n "(cached) " >&6
  7438. else
  7439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7440. /* end confdefs.h. */
  7441. int i;
  7442. _ACEOF
  7443. if ac_fn_c_try_compile "$LINENO"; then :
  7444. xorg_cv_cc_flag_unused_command_line_argument=yes
  7445. else
  7446. xorg_cv_cc_flag_unused_command_line_argument=no
  7447. fi
  7448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7449. fi
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7451. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7452. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7453. CFLAGS="$xorg_testset_save_CFLAGS"
  7454. fi
  7455. found="no"
  7456. if test $found = "no" ; then
  7457. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7458. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7459. fi
  7460. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7461. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7462. fi
  7463. CFLAGS="$CFLAGS -Wmissing-braces"
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7465. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7466. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7467. if eval \${$cacheid+:} false; then :
  7468. $as_echo_n "(cached) " >&6
  7469. else
  7470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7471. /* end confdefs.h. */
  7472. int i;
  7473. int
  7474. main ()
  7475. {
  7476. ;
  7477. return 0;
  7478. }
  7479. _ACEOF
  7480. if ac_fn_c_try_link "$LINENO"; then :
  7481. eval $cacheid=yes
  7482. else
  7483. eval $cacheid=no
  7484. fi
  7485. rm -f core conftest.err conftest.$ac_objext \
  7486. conftest$ac_exeext conftest.$ac_ext
  7487. fi
  7488. CFLAGS="$xorg_testset_save_CFLAGS"
  7489. eval supported=\$$cacheid
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7491. $as_echo "$supported" >&6; }
  7492. if test "$supported" = "yes" ; then
  7493. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7494. found="yes"
  7495. fi
  7496. fi
  7497. xorg_testset_save_CFLAGS="$CFLAGS"
  7498. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7499. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7501. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7502. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7503. $as_echo_n "(cached) " >&6
  7504. else
  7505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end confdefs.h. */
  7507. int i;
  7508. _ACEOF
  7509. if ac_fn_c_try_compile "$LINENO"; then :
  7510. xorg_cv_cc_flag_unknown_warning_option=yes
  7511. else
  7512. xorg_cv_cc_flag_unknown_warning_option=no
  7513. fi
  7514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7515. fi
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7517. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7518. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7519. CFLAGS="$xorg_testset_save_CFLAGS"
  7520. fi
  7521. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7522. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7524. fi
  7525. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7527. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7528. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7532. /* end confdefs.h. */
  7533. int i;
  7534. _ACEOF
  7535. if ac_fn_c_try_compile "$LINENO"; then :
  7536. xorg_cv_cc_flag_unused_command_line_argument=yes
  7537. else
  7538. xorg_cv_cc_flag_unused_command_line_argument=no
  7539. fi
  7540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7541. fi
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7543. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7544. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7545. CFLAGS="$xorg_testset_save_CFLAGS"
  7546. fi
  7547. found="no"
  7548. if test $found = "no" ; then
  7549. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7550. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7551. fi
  7552. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7553. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7554. fi
  7555. CFLAGS="$CFLAGS -Wsequence-point"
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7557. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7558. cacheid=xorg_cv_cc_flag__Wsequence_point
  7559. if eval \${$cacheid+:} false; then :
  7560. $as_echo_n "(cached) " >&6
  7561. else
  7562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7563. /* end confdefs.h. */
  7564. int i;
  7565. int
  7566. main ()
  7567. {
  7568. ;
  7569. return 0;
  7570. }
  7571. _ACEOF
  7572. if ac_fn_c_try_link "$LINENO"; then :
  7573. eval $cacheid=yes
  7574. else
  7575. eval $cacheid=no
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext \
  7578. conftest$ac_exeext conftest.$ac_ext
  7579. fi
  7580. CFLAGS="$xorg_testset_save_CFLAGS"
  7581. eval supported=\$$cacheid
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7583. $as_echo "$supported" >&6; }
  7584. if test "$supported" = "yes" ; then
  7585. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7586. found="yes"
  7587. fi
  7588. fi
  7589. xorg_testset_save_CFLAGS="$CFLAGS"
  7590. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7591. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7593. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7594. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7595. $as_echo_n "(cached) " >&6
  7596. else
  7597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7598. /* end confdefs.h. */
  7599. int i;
  7600. _ACEOF
  7601. if ac_fn_c_try_compile "$LINENO"; then :
  7602. xorg_cv_cc_flag_unknown_warning_option=yes
  7603. else
  7604. xorg_cv_cc_flag_unknown_warning_option=no
  7605. fi
  7606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7607. fi
  7608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7609. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7610. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7611. CFLAGS="$xorg_testset_save_CFLAGS"
  7612. fi
  7613. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7614. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7615. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7616. fi
  7617. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7619. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7620. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7624. /* end confdefs.h. */
  7625. int i;
  7626. _ACEOF
  7627. if ac_fn_c_try_compile "$LINENO"; then :
  7628. xorg_cv_cc_flag_unused_command_line_argument=yes
  7629. else
  7630. xorg_cv_cc_flag_unused_command_line_argument=no
  7631. fi
  7632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7633. fi
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7635. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7636. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7637. CFLAGS="$xorg_testset_save_CFLAGS"
  7638. fi
  7639. found="no"
  7640. if test $found = "no" ; then
  7641. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7642. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7643. fi
  7644. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7645. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7646. fi
  7647. CFLAGS="$CFLAGS -Wreturn-type"
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7649. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7650. cacheid=xorg_cv_cc_flag__Wreturn_type
  7651. if eval \${$cacheid+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7655. /* end confdefs.h. */
  7656. int i;
  7657. int
  7658. main ()
  7659. {
  7660. ;
  7661. return 0;
  7662. }
  7663. _ACEOF
  7664. if ac_fn_c_try_link "$LINENO"; then :
  7665. eval $cacheid=yes
  7666. else
  7667. eval $cacheid=no
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext \
  7670. conftest$ac_exeext conftest.$ac_ext
  7671. fi
  7672. CFLAGS="$xorg_testset_save_CFLAGS"
  7673. eval supported=\$$cacheid
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7675. $as_echo "$supported" >&6; }
  7676. if test "$supported" = "yes" ; then
  7677. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7678. found="yes"
  7679. fi
  7680. fi
  7681. xorg_testset_save_CFLAGS="$CFLAGS"
  7682. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7683. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7685. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7686. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7687. $as_echo_n "(cached) " >&6
  7688. else
  7689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7690. /* end confdefs.h. */
  7691. int i;
  7692. _ACEOF
  7693. if ac_fn_c_try_compile "$LINENO"; then :
  7694. xorg_cv_cc_flag_unknown_warning_option=yes
  7695. else
  7696. xorg_cv_cc_flag_unknown_warning_option=no
  7697. fi
  7698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7699. fi
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7701. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7702. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7703. CFLAGS="$xorg_testset_save_CFLAGS"
  7704. fi
  7705. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7706. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7707. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7708. fi
  7709. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7711. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7712. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7716. /* end confdefs.h. */
  7717. int i;
  7718. _ACEOF
  7719. if ac_fn_c_try_compile "$LINENO"; then :
  7720. xorg_cv_cc_flag_unused_command_line_argument=yes
  7721. else
  7722. xorg_cv_cc_flag_unused_command_line_argument=no
  7723. fi
  7724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7725. fi
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7727. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7728. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7729. CFLAGS="$xorg_testset_save_CFLAGS"
  7730. fi
  7731. found="no"
  7732. if test $found = "no" ; then
  7733. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7734. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7735. fi
  7736. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7737. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7738. fi
  7739. CFLAGS="$CFLAGS -Wtrigraphs"
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7741. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7742. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7743. if eval \${$cacheid+:} false; then :
  7744. $as_echo_n "(cached) " >&6
  7745. else
  7746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7747. /* end confdefs.h. */
  7748. int i;
  7749. int
  7750. main ()
  7751. {
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. if ac_fn_c_try_link "$LINENO"; then :
  7757. eval $cacheid=yes
  7758. else
  7759. eval $cacheid=no
  7760. fi
  7761. rm -f core conftest.err conftest.$ac_objext \
  7762. conftest$ac_exeext conftest.$ac_ext
  7763. fi
  7764. CFLAGS="$xorg_testset_save_CFLAGS"
  7765. eval supported=\$$cacheid
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7767. $as_echo "$supported" >&6; }
  7768. if test "$supported" = "yes" ; then
  7769. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7770. found="yes"
  7771. fi
  7772. fi
  7773. xorg_testset_save_CFLAGS="$CFLAGS"
  7774. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7775. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7777. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7778. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7779. $as_echo_n "(cached) " >&6
  7780. else
  7781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7782. /* end confdefs.h. */
  7783. int i;
  7784. _ACEOF
  7785. if ac_fn_c_try_compile "$LINENO"; then :
  7786. xorg_cv_cc_flag_unknown_warning_option=yes
  7787. else
  7788. xorg_cv_cc_flag_unknown_warning_option=no
  7789. fi
  7790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7791. fi
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7793. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7794. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7795. CFLAGS="$xorg_testset_save_CFLAGS"
  7796. fi
  7797. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7798. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7799. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7800. fi
  7801. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7803. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7804. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7805. $as_echo_n "(cached) " >&6
  7806. else
  7807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7808. /* end confdefs.h. */
  7809. int i;
  7810. _ACEOF
  7811. if ac_fn_c_try_compile "$LINENO"; then :
  7812. xorg_cv_cc_flag_unused_command_line_argument=yes
  7813. else
  7814. xorg_cv_cc_flag_unused_command_line_argument=no
  7815. fi
  7816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7817. fi
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7819. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7820. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7821. CFLAGS="$xorg_testset_save_CFLAGS"
  7822. fi
  7823. found="no"
  7824. if test $found = "no" ; then
  7825. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7826. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7827. fi
  7828. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7829. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7830. fi
  7831. CFLAGS="$CFLAGS -Warray-bounds"
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7833. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7834. cacheid=xorg_cv_cc_flag__Warray_bounds
  7835. if eval \${$cacheid+:} false; then :
  7836. $as_echo_n "(cached) " >&6
  7837. else
  7838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7839. /* end confdefs.h. */
  7840. int i;
  7841. int
  7842. main ()
  7843. {
  7844. ;
  7845. return 0;
  7846. }
  7847. _ACEOF
  7848. if ac_fn_c_try_link "$LINENO"; then :
  7849. eval $cacheid=yes
  7850. else
  7851. eval $cacheid=no
  7852. fi
  7853. rm -f core conftest.err conftest.$ac_objext \
  7854. conftest$ac_exeext conftest.$ac_ext
  7855. fi
  7856. CFLAGS="$xorg_testset_save_CFLAGS"
  7857. eval supported=\$$cacheid
  7858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7859. $as_echo "$supported" >&6; }
  7860. if test "$supported" = "yes" ; then
  7861. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7862. found="yes"
  7863. fi
  7864. fi
  7865. xorg_testset_save_CFLAGS="$CFLAGS"
  7866. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7867. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7869. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7870. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7871. $as_echo_n "(cached) " >&6
  7872. else
  7873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7874. /* end confdefs.h. */
  7875. int i;
  7876. _ACEOF
  7877. if ac_fn_c_try_compile "$LINENO"; then :
  7878. xorg_cv_cc_flag_unknown_warning_option=yes
  7879. else
  7880. xorg_cv_cc_flag_unknown_warning_option=no
  7881. fi
  7882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7883. fi
  7884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7885. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7886. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7887. CFLAGS="$xorg_testset_save_CFLAGS"
  7888. fi
  7889. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7890. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7891. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7892. fi
  7893. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7895. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7896. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7900. /* end confdefs.h. */
  7901. int i;
  7902. _ACEOF
  7903. if ac_fn_c_try_compile "$LINENO"; then :
  7904. xorg_cv_cc_flag_unused_command_line_argument=yes
  7905. else
  7906. xorg_cv_cc_flag_unused_command_line_argument=no
  7907. fi
  7908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7909. fi
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7911. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7912. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7913. CFLAGS="$xorg_testset_save_CFLAGS"
  7914. fi
  7915. found="no"
  7916. if test $found = "no" ; then
  7917. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7918. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7919. fi
  7920. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7921. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7922. fi
  7923. CFLAGS="$CFLAGS -Wwrite-strings"
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7925. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7926. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7927. if eval \${$cacheid+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7931. /* end confdefs.h. */
  7932. int i;
  7933. int
  7934. main ()
  7935. {
  7936. ;
  7937. return 0;
  7938. }
  7939. _ACEOF
  7940. if ac_fn_c_try_link "$LINENO"; then :
  7941. eval $cacheid=yes
  7942. else
  7943. eval $cacheid=no
  7944. fi
  7945. rm -f core conftest.err conftest.$ac_objext \
  7946. conftest$ac_exeext conftest.$ac_ext
  7947. fi
  7948. CFLAGS="$xorg_testset_save_CFLAGS"
  7949. eval supported=\$$cacheid
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7951. $as_echo "$supported" >&6; }
  7952. if test "$supported" = "yes" ; then
  7953. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7954. found="yes"
  7955. fi
  7956. fi
  7957. xorg_testset_save_CFLAGS="$CFLAGS"
  7958. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7959. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7961. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7962. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7963. $as_echo_n "(cached) " >&6
  7964. else
  7965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7966. /* end confdefs.h. */
  7967. int i;
  7968. _ACEOF
  7969. if ac_fn_c_try_compile "$LINENO"; then :
  7970. xorg_cv_cc_flag_unknown_warning_option=yes
  7971. else
  7972. xorg_cv_cc_flag_unknown_warning_option=no
  7973. fi
  7974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7977. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7978. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7979. CFLAGS="$xorg_testset_save_CFLAGS"
  7980. fi
  7981. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7982. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7983. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7984. fi
  7985. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7987. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7988. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7989. $as_echo_n "(cached) " >&6
  7990. else
  7991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7992. /* end confdefs.h. */
  7993. int i;
  7994. _ACEOF
  7995. if ac_fn_c_try_compile "$LINENO"; then :
  7996. xorg_cv_cc_flag_unused_command_line_argument=yes
  7997. else
  7998. xorg_cv_cc_flag_unused_command_line_argument=no
  7999. fi
  8000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8001. fi
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8003. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8004. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8005. CFLAGS="$xorg_testset_save_CFLAGS"
  8006. fi
  8007. found="no"
  8008. if test $found = "no" ; then
  8009. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8010. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8011. fi
  8012. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8013. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8014. fi
  8015. CFLAGS="$CFLAGS -Waddress"
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8017. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8018. cacheid=xorg_cv_cc_flag__Waddress
  8019. if eval \${$cacheid+:} false; then :
  8020. $as_echo_n "(cached) " >&6
  8021. else
  8022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8023. /* end confdefs.h. */
  8024. int i;
  8025. int
  8026. main ()
  8027. {
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. if ac_fn_c_try_link "$LINENO"; then :
  8033. eval $cacheid=yes
  8034. else
  8035. eval $cacheid=no
  8036. fi
  8037. rm -f core conftest.err conftest.$ac_objext \
  8038. conftest$ac_exeext conftest.$ac_ext
  8039. fi
  8040. CFLAGS="$xorg_testset_save_CFLAGS"
  8041. eval supported=\$$cacheid
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8043. $as_echo "$supported" >&6; }
  8044. if test "$supported" = "yes" ; then
  8045. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8046. found="yes"
  8047. fi
  8048. fi
  8049. xorg_testset_save_CFLAGS="$CFLAGS"
  8050. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8051. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8053. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8054. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8055. $as_echo_n "(cached) " >&6
  8056. else
  8057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8058. /* end confdefs.h. */
  8059. int i;
  8060. _ACEOF
  8061. if ac_fn_c_try_compile "$LINENO"; then :
  8062. xorg_cv_cc_flag_unknown_warning_option=yes
  8063. else
  8064. xorg_cv_cc_flag_unknown_warning_option=no
  8065. fi
  8066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8067. fi
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8069. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8070. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8071. CFLAGS="$xorg_testset_save_CFLAGS"
  8072. fi
  8073. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8074. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8075. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8076. fi
  8077. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8079. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8080. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8081. $as_echo_n "(cached) " >&6
  8082. else
  8083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8084. /* end confdefs.h. */
  8085. int i;
  8086. _ACEOF
  8087. if ac_fn_c_try_compile "$LINENO"; then :
  8088. xorg_cv_cc_flag_unused_command_line_argument=yes
  8089. else
  8090. xorg_cv_cc_flag_unused_command_line_argument=no
  8091. fi
  8092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8093. fi
  8094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8095. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8096. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8097. CFLAGS="$xorg_testset_save_CFLAGS"
  8098. fi
  8099. found="no"
  8100. if test $found = "no" ; then
  8101. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8102. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8103. fi
  8104. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8105. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8106. fi
  8107. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8109. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8110. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8111. if eval \${$cacheid+:} false; then :
  8112. $as_echo_n "(cached) " >&6
  8113. else
  8114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8115. /* end confdefs.h. */
  8116. int i;
  8117. int
  8118. main ()
  8119. {
  8120. ;
  8121. return 0;
  8122. }
  8123. _ACEOF
  8124. if ac_fn_c_try_link "$LINENO"; then :
  8125. eval $cacheid=yes
  8126. else
  8127. eval $cacheid=no
  8128. fi
  8129. rm -f core conftest.err conftest.$ac_objext \
  8130. conftest$ac_exeext conftest.$ac_ext
  8131. fi
  8132. CFLAGS="$xorg_testset_save_CFLAGS"
  8133. eval supported=\$$cacheid
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8135. $as_echo "$supported" >&6; }
  8136. if test "$supported" = "yes" ; then
  8137. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8138. found="yes"
  8139. fi
  8140. fi
  8141. xorg_testset_save_CFLAGS="$CFLAGS"
  8142. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8145. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8146. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8147. $as_echo_n "(cached) " >&6
  8148. else
  8149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8150. /* end confdefs.h. */
  8151. int i;
  8152. _ACEOF
  8153. if ac_fn_c_try_compile "$LINENO"; then :
  8154. xorg_cv_cc_flag_unknown_warning_option=yes
  8155. else
  8156. xorg_cv_cc_flag_unknown_warning_option=no
  8157. fi
  8158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8159. fi
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8161. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8162. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8163. CFLAGS="$xorg_testset_save_CFLAGS"
  8164. fi
  8165. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8166. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8167. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8168. fi
  8169. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8171. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8172. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int i;
  8178. _ACEOF
  8179. if ac_fn_c_try_compile "$LINENO"; then :
  8180. xorg_cv_cc_flag_unused_command_line_argument=yes
  8181. else
  8182. xorg_cv_cc_flag_unused_command_line_argument=no
  8183. fi
  8184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8187. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8188. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8189. CFLAGS="$xorg_testset_save_CFLAGS"
  8190. fi
  8191. found="no"
  8192. if test $found = "no" ; then
  8193. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8194. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8195. fi
  8196. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8197. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8198. fi
  8199. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8201. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8202. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8203. if eval \${$cacheid+:} false; then :
  8204. $as_echo_n "(cached) " >&6
  8205. else
  8206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8207. /* end confdefs.h. */
  8208. int i;
  8209. int
  8210. main ()
  8211. {
  8212. ;
  8213. return 0;
  8214. }
  8215. _ACEOF
  8216. if ac_fn_c_try_link "$LINENO"; then :
  8217. eval $cacheid=yes
  8218. else
  8219. eval $cacheid=no
  8220. fi
  8221. rm -f core conftest.err conftest.$ac_objext \
  8222. conftest$ac_exeext conftest.$ac_ext
  8223. fi
  8224. CFLAGS="$xorg_testset_save_CFLAGS"
  8225. eval supported=\$$cacheid
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8227. $as_echo "$supported" >&6; }
  8228. if test "$supported" = "yes" ; then
  8229. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8230. found="yes"
  8231. fi
  8232. fi
  8233. fi
  8234. CWARNFLAGS="$BASE_CFLAGS"
  8235. if test "x$GCC" = xyes ; then
  8236. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8237. fi
  8238. # Check whether --enable-strict-compilation was given.
  8239. if test "${enable_strict_compilation+set}" = set; then :
  8240. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8241. else
  8242. STRICT_COMPILE=no
  8243. fi
  8244. STRICT_CFLAGS=""
  8245. xorg_testset_save_CFLAGS="$CFLAGS"
  8246. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8247. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8249. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8250. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8251. $as_echo_n "(cached) " >&6
  8252. else
  8253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8254. /* end confdefs.h. */
  8255. int i;
  8256. _ACEOF
  8257. if ac_fn_c_try_compile "$LINENO"; then :
  8258. xorg_cv_cc_flag_unknown_warning_option=yes
  8259. else
  8260. xorg_cv_cc_flag_unknown_warning_option=no
  8261. fi
  8262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8263. fi
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8265. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8266. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8267. CFLAGS="$xorg_testset_save_CFLAGS"
  8268. fi
  8269. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8270. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8271. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8272. fi
  8273. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8275. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8276. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8277. $as_echo_n "(cached) " >&6
  8278. else
  8279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8280. /* end confdefs.h. */
  8281. int i;
  8282. _ACEOF
  8283. if ac_fn_c_try_compile "$LINENO"; then :
  8284. xorg_cv_cc_flag_unused_command_line_argument=yes
  8285. else
  8286. xorg_cv_cc_flag_unused_command_line_argument=no
  8287. fi
  8288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8291. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8292. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8293. CFLAGS="$xorg_testset_save_CFLAGS"
  8294. fi
  8295. found="no"
  8296. if test $found = "no" ; then
  8297. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8298. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8299. fi
  8300. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8301. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8302. fi
  8303. CFLAGS="$CFLAGS -pedantic"
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8305. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8306. cacheid=xorg_cv_cc_flag__pedantic
  8307. if eval \${$cacheid+:} false; then :
  8308. $as_echo_n "(cached) " >&6
  8309. else
  8310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8311. /* end confdefs.h. */
  8312. int i;
  8313. int
  8314. main ()
  8315. {
  8316. ;
  8317. return 0;
  8318. }
  8319. _ACEOF
  8320. if ac_fn_c_try_link "$LINENO"; then :
  8321. eval $cacheid=yes
  8322. else
  8323. eval $cacheid=no
  8324. fi
  8325. rm -f core conftest.err conftest.$ac_objext \
  8326. conftest$ac_exeext conftest.$ac_ext
  8327. fi
  8328. CFLAGS="$xorg_testset_save_CFLAGS"
  8329. eval supported=\$$cacheid
  8330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8331. $as_echo "$supported" >&6; }
  8332. if test "$supported" = "yes" ; then
  8333. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8334. found="yes"
  8335. fi
  8336. fi
  8337. xorg_testset_save_CFLAGS="$CFLAGS"
  8338. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8341. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8342. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8343. $as_echo_n "(cached) " >&6
  8344. else
  8345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8346. /* end confdefs.h. */
  8347. int i;
  8348. _ACEOF
  8349. if ac_fn_c_try_compile "$LINENO"; then :
  8350. xorg_cv_cc_flag_unknown_warning_option=yes
  8351. else
  8352. xorg_cv_cc_flag_unknown_warning_option=no
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8355. fi
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8357. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8358. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8359. CFLAGS="$xorg_testset_save_CFLAGS"
  8360. fi
  8361. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8362. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8363. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8364. fi
  8365. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8367. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8368. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8369. $as_echo_n "(cached) " >&6
  8370. else
  8371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8372. /* end confdefs.h. */
  8373. int i;
  8374. _ACEOF
  8375. if ac_fn_c_try_compile "$LINENO"; then :
  8376. xorg_cv_cc_flag_unused_command_line_argument=yes
  8377. else
  8378. xorg_cv_cc_flag_unused_command_line_argument=no
  8379. fi
  8380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8383. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8384. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8385. CFLAGS="$xorg_testset_save_CFLAGS"
  8386. fi
  8387. found="no"
  8388. if test $found = "no" ; then
  8389. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8390. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8391. fi
  8392. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8393. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8394. fi
  8395. CFLAGS="$CFLAGS -Werror"
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8397. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8398. cacheid=xorg_cv_cc_flag__Werror
  8399. if eval \${$cacheid+:} false; then :
  8400. $as_echo_n "(cached) " >&6
  8401. else
  8402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8403. /* end confdefs.h. */
  8404. int i;
  8405. int
  8406. main ()
  8407. {
  8408. ;
  8409. return 0;
  8410. }
  8411. _ACEOF
  8412. if ac_fn_c_try_link "$LINENO"; then :
  8413. eval $cacheid=yes
  8414. else
  8415. eval $cacheid=no
  8416. fi
  8417. rm -f core conftest.err conftest.$ac_objext \
  8418. conftest$ac_exeext conftest.$ac_ext
  8419. fi
  8420. CFLAGS="$xorg_testset_save_CFLAGS"
  8421. eval supported=\$$cacheid
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8423. $as_echo "$supported" >&6; }
  8424. if test "$supported" = "yes" ; then
  8425. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8426. found="yes"
  8427. fi
  8428. fi
  8429. if test $found = "no" ; then
  8430. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8432. fi
  8433. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8434. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8435. fi
  8436. CFLAGS="$CFLAGS -errwarn"
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8438. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8439. cacheid=xorg_cv_cc_flag__errwarn
  8440. if eval \${$cacheid+:} false; then :
  8441. $as_echo_n "(cached) " >&6
  8442. else
  8443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8444. /* end confdefs.h. */
  8445. int i;
  8446. int
  8447. main ()
  8448. {
  8449. ;
  8450. return 0;
  8451. }
  8452. _ACEOF
  8453. if ac_fn_c_try_link "$LINENO"; then :
  8454. eval $cacheid=yes
  8455. else
  8456. eval $cacheid=no
  8457. fi
  8458. rm -f core conftest.err conftest.$ac_objext \
  8459. conftest$ac_exeext conftest.$ac_ext
  8460. fi
  8461. CFLAGS="$xorg_testset_save_CFLAGS"
  8462. eval supported=\$$cacheid
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8464. $as_echo "$supported" >&6; }
  8465. if test "$supported" = "yes" ; then
  8466. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8467. found="yes"
  8468. fi
  8469. fi
  8470. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8471. # activate it with -Werror, so we add it here explicitly.
  8472. xorg_testset_save_CFLAGS="$CFLAGS"
  8473. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8474. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8476. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8477. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8481. /* end confdefs.h. */
  8482. int i;
  8483. _ACEOF
  8484. if ac_fn_c_try_compile "$LINENO"; then :
  8485. xorg_cv_cc_flag_unknown_warning_option=yes
  8486. else
  8487. xorg_cv_cc_flag_unknown_warning_option=no
  8488. fi
  8489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8490. fi
  8491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8492. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8493. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8494. CFLAGS="$xorg_testset_save_CFLAGS"
  8495. fi
  8496. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8497. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8498. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8499. fi
  8500. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8502. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8503. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8504. $as_echo_n "(cached) " >&6
  8505. else
  8506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8507. /* end confdefs.h. */
  8508. int i;
  8509. _ACEOF
  8510. if ac_fn_c_try_compile "$LINENO"; then :
  8511. xorg_cv_cc_flag_unused_command_line_argument=yes
  8512. else
  8513. xorg_cv_cc_flag_unused_command_line_argument=no
  8514. fi
  8515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8516. fi
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8518. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8519. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8520. CFLAGS="$xorg_testset_save_CFLAGS"
  8521. fi
  8522. found="no"
  8523. if test $found = "no" ; then
  8524. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8526. fi
  8527. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8528. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8529. fi
  8530. CFLAGS="$CFLAGS -Werror=attributes"
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8532. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8533. cacheid=xorg_cv_cc_flag__Werror_attributes
  8534. if eval \${$cacheid+:} false; then :
  8535. $as_echo_n "(cached) " >&6
  8536. else
  8537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8538. /* end confdefs.h. */
  8539. int i;
  8540. int
  8541. main ()
  8542. {
  8543. ;
  8544. return 0;
  8545. }
  8546. _ACEOF
  8547. if ac_fn_c_try_link "$LINENO"; then :
  8548. eval $cacheid=yes
  8549. else
  8550. eval $cacheid=no
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext \
  8553. conftest$ac_exeext conftest.$ac_ext
  8554. fi
  8555. CFLAGS="$xorg_testset_save_CFLAGS"
  8556. eval supported=\$$cacheid
  8557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8558. $as_echo "$supported" >&6; }
  8559. if test "$supported" = "yes" ; then
  8560. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8561. found="yes"
  8562. fi
  8563. fi
  8564. if test "x$STRICT_COMPILE" = "xyes"; then
  8565. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8566. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8567. fi
  8568. cat >>confdefs.h <<_ACEOF
  8569. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8570. _ACEOF
  8571. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8572. if test "x$PVM" = "x"; then
  8573. PVM="0"
  8574. fi
  8575. cat >>confdefs.h <<_ACEOF
  8576. #define PACKAGE_VERSION_MINOR $PVM
  8577. _ACEOF
  8578. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8579. if test "x$PVP" = "x"; then
  8580. PVP="0"
  8581. fi
  8582. cat >>confdefs.h <<_ACEOF
  8583. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8584. _ACEOF
  8585. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8586. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8587. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8588. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8589. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8590. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8591. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8592. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8593. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8594. if test x$APP_MAN_SUFFIX = x ; then
  8595. APP_MAN_SUFFIX=1
  8596. fi
  8597. if test x$APP_MAN_DIR = x ; then
  8598. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8599. fi
  8600. if test x$LIB_MAN_SUFFIX = x ; then
  8601. LIB_MAN_SUFFIX=3
  8602. fi
  8603. if test x$LIB_MAN_DIR = x ; then
  8604. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8605. fi
  8606. if test x$FILE_MAN_SUFFIX = x ; then
  8607. case $host_os in
  8608. solaris*) FILE_MAN_SUFFIX=4 ;;
  8609. *) FILE_MAN_SUFFIX=5 ;;
  8610. esac
  8611. fi
  8612. if test x$FILE_MAN_DIR = x ; then
  8613. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8614. fi
  8615. if test x$MISC_MAN_SUFFIX = x ; then
  8616. case $host_os in
  8617. solaris*) MISC_MAN_SUFFIX=5 ;;
  8618. *) MISC_MAN_SUFFIX=7 ;;
  8619. esac
  8620. fi
  8621. if test x$MISC_MAN_DIR = x ; then
  8622. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8623. fi
  8624. if test x$DRIVER_MAN_SUFFIX = x ; then
  8625. case $host_os in
  8626. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8627. *) DRIVER_MAN_SUFFIX=4 ;;
  8628. esac
  8629. fi
  8630. if test x$DRIVER_MAN_DIR = x ; then
  8631. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8632. fi
  8633. if test x$ADMIN_MAN_SUFFIX = x ; then
  8634. case $host_os in
  8635. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8636. *) ADMIN_MAN_SUFFIX=8 ;;
  8637. esac
  8638. fi
  8639. if test x$ADMIN_MAN_DIR = x ; then
  8640. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8641. fi
  8642. XORG_MAN_PAGE="X Version 11"
  8643. MAN_SUBSTS="\
  8644. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8645. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8646. -e 's|__xservername__|Xorg|g' \
  8647. -e 's|__xconfigfile__|xorg.conf|g' \
  8648. -e 's|__projectroot__|\$(prefix)|g' \
  8649. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8650. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8651. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8652. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8653. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8654. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8655. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8656. # Check whether --enable-silent-rules was given.
  8657. if test "${enable_silent_rules+set}" = set; then :
  8658. enableval=$enable_silent_rules;
  8659. fi
  8660. case $enable_silent_rules in # (((
  8661. yes) AM_DEFAULT_VERBOSITY=0;;
  8662. no) AM_DEFAULT_VERBOSITY=1;;
  8663. *) AM_DEFAULT_VERBOSITY=0;;
  8664. esac
  8665. am_make=${MAKE-make}
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8667. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8668. if ${am_cv_make_support_nested_variables+:} false; then :
  8669. $as_echo_n "(cached) " >&6
  8670. else
  8671. if $as_echo 'TRUE=$(BAR$(V))
  8672. BAR0=false
  8673. BAR1=true
  8674. V=1
  8675. am__doit:
  8676. @$(TRUE)
  8677. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8678. am_cv_make_support_nested_variables=yes
  8679. else
  8680. am_cv_make_support_nested_variables=no
  8681. fi
  8682. fi
  8683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8684. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8685. if test $am_cv_make_support_nested_variables = yes; then
  8686. AM_V='$(V)'
  8687. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8688. else
  8689. AM_V=$AM_DEFAULT_VERBOSITY
  8690. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8691. fi
  8692. AM_BACKSLASH='\'
  8693. ac_config_files="$ac_config_files Makefile presentproto.pc"
  8694. cat >confcache <<\_ACEOF
  8695. # This file is a shell script that caches the results of configure
  8696. # tests run on this system so they can be shared between configure
  8697. # scripts and configure runs, see configure's option --config-cache.
  8698. # It is not useful on other systems. If it contains results you don't
  8699. # want to keep, you may remove or edit it.
  8700. #
  8701. # config.status only pays attention to the cache file if you give it
  8702. # the --recheck option to rerun configure.
  8703. #
  8704. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8705. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8706. # following values.
  8707. _ACEOF
  8708. # The following way of writing the cache mishandles newlines in values,
  8709. # but we know of no workaround that is simple, portable, and efficient.
  8710. # So, we kill variables containing newlines.
  8711. # Ultrix sh set writes to stderr and can't be redirected directly,
  8712. # and sets the high bit in the cache file unless we assign to the vars.
  8713. (
  8714. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8715. eval ac_val=\$$ac_var
  8716. case $ac_val in #(
  8717. *${as_nl}*)
  8718. case $ac_var in #(
  8719. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8720. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8721. esac
  8722. case $ac_var in #(
  8723. _ | IFS | as_nl) ;; #(
  8724. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8725. *) { eval $ac_var=; unset $ac_var;} ;;
  8726. esac ;;
  8727. esac
  8728. done
  8729. (set) 2>&1 |
  8730. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8731. *${as_nl}ac_space=\ *)
  8732. # `set' does not quote correctly, so add quotes: double-quote
  8733. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8734. sed -n \
  8735. "s/'/'\\\\''/g;
  8736. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8737. ;; #(
  8738. *)
  8739. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8740. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8741. ;;
  8742. esac |
  8743. sort
  8744. ) |
  8745. sed '
  8746. /^ac_cv_env_/b end
  8747. t clear
  8748. :clear
  8749. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8750. t end
  8751. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8752. :end' >>confcache
  8753. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8754. if test -w "$cache_file"; then
  8755. if test "x$cache_file" != "x/dev/null"; then
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8757. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8758. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8759. cat confcache >"$cache_file"
  8760. else
  8761. case $cache_file in #(
  8762. */* | ?:*)
  8763. mv -f confcache "$cache_file"$$ &&
  8764. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8765. *)
  8766. mv -f confcache "$cache_file" ;;
  8767. esac
  8768. fi
  8769. fi
  8770. else
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8772. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8773. fi
  8774. fi
  8775. rm -f confcache
  8776. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8777. # Let make expand exec_prefix.
  8778. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8779. # Transform confdefs.h into DEFS.
  8780. # Protect against shell expansion while executing Makefile rules.
  8781. # Protect against Makefile macro expansion.
  8782. #
  8783. # If the first sed substitution is executed (which looks for macros that
  8784. # take arguments), then branch to the quote section. Otherwise,
  8785. # look for a macro that doesn't take arguments.
  8786. ac_script='
  8787. :mline
  8788. /\\$/{
  8789. N
  8790. s,\\\n,,
  8791. b mline
  8792. }
  8793. t clear
  8794. :clear
  8795. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  8796. t quote
  8797. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  8798. t quote
  8799. b any
  8800. :quote
  8801. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  8802. s/\[/\\&/g
  8803. s/\]/\\&/g
  8804. s/\$/$$/g
  8805. H
  8806. :any
  8807. ${
  8808. g
  8809. s/^\n//
  8810. s/\n/ /g
  8811. p
  8812. }
  8813. '
  8814. DEFS=`sed -n "$ac_script" confdefs.h`
  8815. ac_libobjs=
  8816. ac_ltlibobjs=
  8817. U=
  8818. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8819. # 1. Remove the extension, and $U if already installed.
  8820. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8821. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8822. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8823. # will be set to the directory where LIBOBJS objects are built.
  8824. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8825. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8826. done
  8827. LIBOBJS=$ac_libobjs
  8828. LTLIBOBJS=$ac_ltlibobjs
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8830. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8831. if test -n "$am_sleep_pid"; then
  8832. # Hide warnings about reused PIDs.
  8833. wait $am_sleep_pid 2>/dev/null
  8834. fi
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8836. $as_echo "done" >&6; }
  8837. if test -n "$EXEEXT"; then
  8838. am__EXEEXT_TRUE=
  8839. am__EXEEXT_FALSE='#'
  8840. else
  8841. am__EXEEXT_TRUE='#'
  8842. am__EXEEXT_FALSE=
  8843. fi
  8844. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  8845. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  8846. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8847. fi
  8848. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8849. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8850. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8851. fi
  8852. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8853. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8855. fi
  8856. : "${CONFIG_STATUS=./config.status}"
  8857. ac_write_fail=0
  8858. ac_clean_files_save=$ac_clean_files
  8859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8861. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8862. as_write_fail=0
  8863. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8864. #! $SHELL
  8865. # Generated by $as_me.
  8866. # Run this file to recreate the current configuration.
  8867. # Compiler output produced by configure, useful for debugging
  8868. # configure, is in config.log if it exists.
  8869. debug=false
  8870. ac_cs_recheck=false
  8871. ac_cs_silent=false
  8872. SHELL=\${CONFIG_SHELL-$SHELL}
  8873. export SHELL
  8874. _ASEOF
  8875. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8876. ## -------------------- ##
  8877. ## M4sh Initialization. ##
  8878. ## -------------------- ##
  8879. # Be more Bourne compatible
  8880. DUALCASE=1; export DUALCASE # for MKS sh
  8881. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8882. emulate sh
  8883. NULLCMD=:
  8884. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8885. # is contrary to our usage. Disable this feature.
  8886. alias -g '${1+"$@"}'='"$@"'
  8887. setopt NO_GLOB_SUBST
  8888. else
  8889. case `(set -o) 2>/dev/null` in #(
  8890. *posix*) :
  8891. set -o posix ;; #(
  8892. *) :
  8893. ;;
  8894. esac
  8895. fi
  8896. as_nl='
  8897. '
  8898. export as_nl
  8899. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8900. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8901. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8902. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8903. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8904. # but without wasting forks for bash or zsh.
  8905. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8906. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8907. as_echo='print -r --'
  8908. as_echo_n='print -rn --'
  8909. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8910. as_echo='printf %s\n'
  8911. as_echo_n='printf %s'
  8912. else
  8913. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8914. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8915. as_echo_n='/usr/ucb/echo -n'
  8916. else
  8917. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8918. as_echo_n_body='eval
  8919. arg=$1;
  8920. case $arg in #(
  8921. *"$as_nl"*)
  8922. expr "X$arg" : "X\\(.*\\)$as_nl";
  8923. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8924. esac;
  8925. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8926. '
  8927. export as_echo_n_body
  8928. as_echo_n='sh -c $as_echo_n_body as_echo'
  8929. fi
  8930. export as_echo_body
  8931. as_echo='sh -c $as_echo_body as_echo'
  8932. fi
  8933. # The user is always right.
  8934. if test "${PATH_SEPARATOR+set}" != set; then
  8935. PATH_SEPARATOR=:
  8936. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8937. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8938. PATH_SEPARATOR=';'
  8939. }
  8940. fi
  8941. # IFS
  8942. # We need space, tab and new line, in precisely that order. Quoting is
  8943. # there to prevent editors from complaining about space-tab.
  8944. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8945. # splitting by setting IFS to empty value.)
  8946. IFS=" "" $as_nl"
  8947. # Find who we are. Look in the path if we contain no directory separator.
  8948. as_myself=
  8949. case $0 in #((
  8950. *[\\/]* ) as_myself=$0 ;;
  8951. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8952. for as_dir in $PATH
  8953. do
  8954. IFS=$as_save_IFS
  8955. test -z "$as_dir" && as_dir=.
  8956. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8957. done
  8958. IFS=$as_save_IFS
  8959. ;;
  8960. esac
  8961. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8962. # in which case we are not to be found in the path.
  8963. if test "x$as_myself" = x; then
  8964. as_myself=$0
  8965. fi
  8966. if test ! -f "$as_myself"; then
  8967. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8968. exit 1
  8969. fi
  8970. # Unset variables that we do not need and which cause bugs (e.g. in
  8971. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8972. # suppresses any "Segmentation fault" message there. '((' could
  8973. # trigger a bug in pdksh 5.2.14.
  8974. for as_var in BASH_ENV ENV MAIL MAILPATH
  8975. do eval test x\${$as_var+set} = xset \
  8976. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8977. done
  8978. PS1='$ '
  8979. PS2='> '
  8980. PS4='+ '
  8981. # NLS nuisances.
  8982. LC_ALL=C
  8983. export LC_ALL
  8984. LANGUAGE=C
  8985. export LANGUAGE
  8986. # CDPATH.
  8987. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8988. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8989. # ----------------------------------------
  8990. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8991. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8992. # script with STATUS, using 1 if that was 0.
  8993. as_fn_error ()
  8994. {
  8995. as_status=$1; test $as_status -eq 0 && as_status=1
  8996. if test "$4"; then
  8997. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8998. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8999. fi
  9000. $as_echo "$as_me: error: $2" >&2
  9001. as_fn_exit $as_status
  9002. } # as_fn_error
  9003. # as_fn_set_status STATUS
  9004. # -----------------------
  9005. # Set $? to STATUS, without forking.
  9006. as_fn_set_status ()
  9007. {
  9008. return $1
  9009. } # as_fn_set_status
  9010. # as_fn_exit STATUS
  9011. # -----------------
  9012. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9013. as_fn_exit ()
  9014. {
  9015. set +e
  9016. as_fn_set_status $1
  9017. exit $1
  9018. } # as_fn_exit
  9019. # as_fn_unset VAR
  9020. # ---------------
  9021. # Portably unset VAR.
  9022. as_fn_unset ()
  9023. {
  9024. { eval $1=; unset $1;}
  9025. }
  9026. as_unset=as_fn_unset
  9027. # as_fn_append VAR VALUE
  9028. # ----------------------
  9029. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9030. # advantage of any shell optimizations that allow amortized linear growth over
  9031. # repeated appends, instead of the typical quadratic growth present in naive
  9032. # implementations.
  9033. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9034. eval 'as_fn_append ()
  9035. {
  9036. eval $1+=\$2
  9037. }'
  9038. else
  9039. as_fn_append ()
  9040. {
  9041. eval $1=\$$1\$2
  9042. }
  9043. fi # as_fn_append
  9044. # as_fn_arith ARG...
  9045. # ------------------
  9046. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9047. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9048. # must be portable across $(()) and expr.
  9049. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9050. eval 'as_fn_arith ()
  9051. {
  9052. as_val=$(( $* ))
  9053. }'
  9054. else
  9055. as_fn_arith ()
  9056. {
  9057. as_val=`expr "$@" || test $? -eq 1`
  9058. }
  9059. fi # as_fn_arith
  9060. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9061. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9062. as_expr=expr
  9063. else
  9064. as_expr=false
  9065. fi
  9066. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9067. as_basename=basename
  9068. else
  9069. as_basename=false
  9070. fi
  9071. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9072. as_dirname=dirname
  9073. else
  9074. as_dirname=false
  9075. fi
  9076. as_me=`$as_basename -- "$0" ||
  9077. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9078. X"$0" : 'X\(//\)$' \| \
  9079. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9080. $as_echo X/"$0" |
  9081. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9082. s//\1/
  9083. q
  9084. }
  9085. /^X\/\(\/\/\)$/{
  9086. s//\1/
  9087. q
  9088. }
  9089. /^X\/\(\/\).*/{
  9090. s//\1/
  9091. q
  9092. }
  9093. s/.*/./; q'`
  9094. # Avoid depending upon Character Ranges.
  9095. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9096. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9097. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9098. as_cr_digits='0123456789'
  9099. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9100. ECHO_C= ECHO_N= ECHO_T=
  9101. case `echo -n x` in #(((((
  9102. -n*)
  9103. case `echo 'xy\c'` in
  9104. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9105. xy) ECHO_C='\c';;
  9106. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9107. ECHO_T=' ';;
  9108. esac;;
  9109. *)
  9110. ECHO_N='-n';;
  9111. esac
  9112. rm -f conf$$ conf$$.exe conf$$.file
  9113. if test -d conf$$.dir; then
  9114. rm -f conf$$.dir/conf$$.file
  9115. else
  9116. rm -f conf$$.dir
  9117. mkdir conf$$.dir 2>/dev/null
  9118. fi
  9119. if (echo >conf$$.file) 2>/dev/null; then
  9120. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9121. as_ln_s='ln -s'
  9122. # ... but there are two gotchas:
  9123. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9124. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9125. # In both cases, we have to default to `cp -pR'.
  9126. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9127. as_ln_s='cp -pR'
  9128. elif ln conf$$.file conf$$ 2>/dev/null; then
  9129. as_ln_s=ln
  9130. else
  9131. as_ln_s='cp -pR'
  9132. fi
  9133. else
  9134. as_ln_s='cp -pR'
  9135. fi
  9136. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9137. rmdir conf$$.dir 2>/dev/null
  9138. # as_fn_mkdir_p
  9139. # -------------
  9140. # Create "$as_dir" as a directory, including parents if necessary.
  9141. as_fn_mkdir_p ()
  9142. {
  9143. case $as_dir in #(
  9144. -*) as_dir=./$as_dir;;
  9145. esac
  9146. test -d "$as_dir" || eval $as_mkdir_p || {
  9147. as_dirs=
  9148. while :; do
  9149. case $as_dir in #(
  9150. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9151. *) as_qdir=$as_dir;;
  9152. esac
  9153. as_dirs="'$as_qdir' $as_dirs"
  9154. as_dir=`$as_dirname -- "$as_dir" ||
  9155. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9156. X"$as_dir" : 'X\(//\)[^/]' \| \
  9157. X"$as_dir" : 'X\(//\)$' \| \
  9158. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9159. $as_echo X"$as_dir" |
  9160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9161. s//\1/
  9162. q
  9163. }
  9164. /^X\(\/\/\)[^/].*/{
  9165. s//\1/
  9166. q
  9167. }
  9168. /^X\(\/\/\)$/{
  9169. s//\1/
  9170. q
  9171. }
  9172. /^X\(\/\).*/{
  9173. s//\1/
  9174. q
  9175. }
  9176. s/.*/./; q'`
  9177. test -d "$as_dir" && break
  9178. done
  9179. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9180. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9181. } # as_fn_mkdir_p
  9182. if mkdir -p . 2>/dev/null; then
  9183. as_mkdir_p='mkdir -p "$as_dir"'
  9184. else
  9185. test -d ./-p && rmdir ./-p
  9186. as_mkdir_p=false
  9187. fi
  9188. # as_fn_executable_p FILE
  9189. # -----------------------
  9190. # Test if FILE is an executable regular file.
  9191. as_fn_executable_p ()
  9192. {
  9193. test -f "$1" && test -x "$1"
  9194. } # as_fn_executable_p
  9195. as_test_x='test -x'
  9196. as_executable_p=as_fn_executable_p
  9197. # Sed expression to map a string onto a valid CPP name.
  9198. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9199. # Sed expression to map a string onto a valid variable name.
  9200. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9201. exec 6>&1
  9202. ## ----------------------------------- ##
  9203. ## Main body of $CONFIG_STATUS script. ##
  9204. ## ----------------------------------- ##
  9205. _ASEOF
  9206. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9208. # Save the log message, to keep $0 and so on meaningful, and to
  9209. # report actual input values of CONFIG_FILES etc. instead of their
  9210. # values after options handling.
  9211. ac_log="
  9212. This file was extended by PresentProto $as_me 1.0, which was
  9213. generated by GNU Autoconf 2.69. Invocation command line was
  9214. CONFIG_FILES = $CONFIG_FILES
  9215. CONFIG_HEADERS = $CONFIG_HEADERS
  9216. CONFIG_LINKS = $CONFIG_LINKS
  9217. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9218. $ $0 $@
  9219. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9220. "
  9221. _ACEOF
  9222. case $ac_config_files in *"
  9223. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9224. esac
  9225. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9226. # Files that config.status was made for.
  9227. config_files="$ac_config_files"
  9228. config_commands="$ac_config_commands"
  9229. _ACEOF
  9230. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9231. ac_cs_usage="\
  9232. \`$as_me' instantiates files and other configuration actions
  9233. from templates according to the current configuration. Unless the files
  9234. and actions are specified as TAGs, all are instantiated by default.
  9235. Usage: $0 [OPTION]... [TAG]...
  9236. -h, --help print this help, then exit
  9237. -V, --version print version number and configuration settings, then exit
  9238. --config print configuration, then exit
  9239. -q, --quiet, --silent
  9240. do not print progress messages
  9241. -d, --debug don't remove temporary files
  9242. --recheck update $as_me by reconfiguring in the same conditions
  9243. --file=FILE[:TEMPLATE]
  9244. instantiate the configuration file FILE
  9245. Configuration files:
  9246. $config_files
  9247. Configuration commands:
  9248. $config_commands
  9249. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9250. _ACEOF
  9251. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9252. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9253. ac_cs_version="\\
  9254. PresentProto config.status 1.0
  9255. configured by $0, generated by GNU Autoconf 2.69,
  9256. with options \\"\$ac_cs_config\\"
  9257. Copyright (C) 2012 Free Software Foundation, Inc.
  9258. This config.status script is free software; the Free Software Foundation
  9259. gives unlimited permission to copy, distribute and modify it."
  9260. ac_pwd='$ac_pwd'
  9261. srcdir='$srcdir'
  9262. INSTALL='$INSTALL'
  9263. MKDIR_P='$MKDIR_P'
  9264. AWK='$AWK'
  9265. test -n "\$AWK" || AWK=awk
  9266. _ACEOF
  9267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9268. # The default lists apply if the user does not specify any file.
  9269. ac_need_defaults=:
  9270. while test $# != 0
  9271. do
  9272. case $1 in
  9273. --*=?*)
  9274. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9275. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9276. ac_shift=:
  9277. ;;
  9278. --*=)
  9279. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9280. ac_optarg=
  9281. ac_shift=:
  9282. ;;
  9283. *)
  9284. ac_option=$1
  9285. ac_optarg=$2
  9286. ac_shift=shift
  9287. ;;
  9288. esac
  9289. case $ac_option in
  9290. # Handling of the options.
  9291. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9292. ac_cs_recheck=: ;;
  9293. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9294. $as_echo "$ac_cs_version"; exit ;;
  9295. --config | --confi | --conf | --con | --co | --c )
  9296. $as_echo "$ac_cs_config"; exit ;;
  9297. --debug | --debu | --deb | --de | --d | -d )
  9298. debug=: ;;
  9299. --file | --fil | --fi | --f )
  9300. $ac_shift
  9301. case $ac_optarg in
  9302. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9303. '') as_fn_error $? "missing file argument" ;;
  9304. esac
  9305. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9306. ac_need_defaults=false;;
  9307. --he | --h | --help | --hel | -h )
  9308. $as_echo "$ac_cs_usage"; exit ;;
  9309. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9310. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9311. ac_cs_silent=: ;;
  9312. # This is an error.
  9313. -*) as_fn_error $? "unrecognized option: \`$1'
  9314. Try \`$0 --help' for more information." ;;
  9315. *) as_fn_append ac_config_targets " $1"
  9316. ac_need_defaults=false ;;
  9317. esac
  9318. shift
  9319. done
  9320. ac_configure_extra_args=
  9321. if $ac_cs_silent; then
  9322. exec 6>/dev/null
  9323. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9324. fi
  9325. _ACEOF
  9326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9327. if \$ac_cs_recheck; then
  9328. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9329. shift
  9330. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9331. CONFIG_SHELL='$SHELL'
  9332. export CONFIG_SHELL
  9333. exec "\$@"
  9334. fi
  9335. _ACEOF
  9336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9337. exec 5>>config.log
  9338. {
  9339. echo
  9340. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9341. ## Running $as_me. ##
  9342. _ASBOX
  9343. $as_echo "$ac_log"
  9344. } >&5
  9345. _ACEOF
  9346. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9347. #
  9348. # INIT-COMMANDS
  9349. #
  9350. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9351. _ACEOF
  9352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9353. # Handling of arguments.
  9354. for ac_config_target in $ac_config_targets
  9355. do
  9356. case $ac_config_target in
  9357. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9358. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9359. "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
  9360. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9361. esac
  9362. done
  9363. # If the user did not use the arguments to specify the items to instantiate,
  9364. # then the envvar interface is used. Set only those that are not.
  9365. # We use the long form for the default assignment because of an extremely
  9366. # bizarre bug on SunOS 4.1.3.
  9367. if $ac_need_defaults; then
  9368. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9369. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9370. fi
  9371. # Have a temporary directory for convenience. Make it in the build tree
  9372. # simply because there is no reason against having it here, and in addition,
  9373. # creating and moving files from /tmp can sometimes cause problems.
  9374. # Hook for its removal unless debugging.
  9375. # Note that there is a small window in which the directory will not be cleaned:
  9376. # after its creation but before its name has been assigned to `$tmp'.
  9377. $debug ||
  9378. {
  9379. tmp= ac_tmp=
  9380. trap 'exit_status=$?
  9381. : "${ac_tmp:=$tmp}"
  9382. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9383. ' 0
  9384. trap 'as_fn_exit 1' 1 2 13 15
  9385. }
  9386. # Create a (secure) tmp directory for tmp files.
  9387. {
  9388. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9389. test -d "$tmp"
  9390. } ||
  9391. {
  9392. tmp=./conf$$-$RANDOM
  9393. (umask 077 && mkdir "$tmp")
  9394. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9395. ac_tmp=$tmp
  9396. # Set up the scripts for CONFIG_FILES section.
  9397. # No need to generate them if there are no CONFIG_FILES.
  9398. # This happens for instance with `./config.status config.h'.
  9399. if test -n "$CONFIG_FILES"; then
  9400. ac_cr=`echo X | tr X '\015'`
  9401. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9402. # But we know of no other shell where ac_cr would be empty at this
  9403. # point, so we can use a bashism as a fallback.
  9404. if test "x$ac_cr" = x; then
  9405. eval ac_cr=\$\'\\r\'
  9406. fi
  9407. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9408. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9409. ac_cs_awk_cr='\\r'
  9410. else
  9411. ac_cs_awk_cr=$ac_cr
  9412. fi
  9413. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9414. _ACEOF
  9415. {
  9416. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9417. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9418. echo "_ACEOF"
  9419. } >conf$$subs.sh ||
  9420. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9421. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9422. ac_delim='%!_!# '
  9423. for ac_last_try in false false false false false :; do
  9424. . ./conf$$subs.sh ||
  9425. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9426. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9427. if test $ac_delim_n = $ac_delim_num; then
  9428. break
  9429. elif $ac_last_try; then
  9430. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9431. else
  9432. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9433. fi
  9434. done
  9435. rm -f conf$$subs.sh
  9436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9437. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9438. _ACEOF
  9439. sed -n '
  9440. h
  9441. s/^/S["/; s/!.*/"]=/
  9442. p
  9443. g
  9444. s/^[^!]*!//
  9445. :repl
  9446. t repl
  9447. s/'"$ac_delim"'$//
  9448. t delim
  9449. :nl
  9450. h
  9451. s/\(.\{148\}\)..*/\1/
  9452. t more1
  9453. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9454. p
  9455. n
  9456. b repl
  9457. :more1
  9458. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9459. p
  9460. g
  9461. s/.\{148\}//
  9462. t nl
  9463. :delim
  9464. h
  9465. s/\(.\{148\}\)..*/\1/
  9466. t more2
  9467. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9468. p
  9469. b
  9470. :more2
  9471. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9472. p
  9473. g
  9474. s/.\{148\}//
  9475. t delim
  9476. ' <conf$$subs.awk | sed '
  9477. /^[^""]/{
  9478. N
  9479. s/\n//
  9480. }
  9481. ' >>$CONFIG_STATUS || ac_write_fail=1
  9482. rm -f conf$$subs.awk
  9483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9484. _ACAWK
  9485. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9486. for (key in S) S_is_set[key] = 1
  9487. FS = ""
  9488. }
  9489. {
  9490. line = $ 0
  9491. nfields = split(line, field, "@")
  9492. substed = 0
  9493. len = length(field[1])
  9494. for (i = 2; i < nfields; i++) {
  9495. key = field[i]
  9496. keylen = length(key)
  9497. if (S_is_set[key]) {
  9498. value = S[key]
  9499. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9500. len += length(value) + length(field[++i])
  9501. substed = 1
  9502. } else
  9503. len += 1 + keylen
  9504. }
  9505. print line
  9506. }
  9507. _ACAWK
  9508. _ACEOF
  9509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9510. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9511. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9512. else
  9513. cat
  9514. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9515. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9516. _ACEOF
  9517. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9518. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9519. # trailing colons and then remove the whole line if VPATH becomes empty
  9520. # (actually we leave an empty line to preserve line numbers).
  9521. if test "x$srcdir" = x.; then
  9522. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9523. h
  9524. s///
  9525. s/^/:/
  9526. s/[ ]*$/:/
  9527. s/:\$(srcdir):/:/g
  9528. s/:\${srcdir}:/:/g
  9529. s/:@srcdir@:/:/g
  9530. s/^:*//
  9531. s/:*$//
  9532. x
  9533. s/\(=[ ]*\).*/\1/
  9534. G
  9535. s/\n//
  9536. s/^[^=]*=[ ]*$//
  9537. }'
  9538. fi
  9539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9540. fi # test -n "$CONFIG_FILES"
  9541. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  9542. shift
  9543. for ac_tag
  9544. do
  9545. case $ac_tag in
  9546. :[FHLC]) ac_mode=$ac_tag; continue;;
  9547. esac
  9548. case $ac_mode$ac_tag in
  9549. :[FHL]*:*);;
  9550. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9551. :[FH]-) ac_tag=-:-;;
  9552. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9553. esac
  9554. ac_save_IFS=$IFS
  9555. IFS=:
  9556. set x $ac_tag
  9557. IFS=$ac_save_IFS
  9558. shift
  9559. ac_file=$1
  9560. shift
  9561. case $ac_mode in
  9562. :L) ac_source=$1;;
  9563. :[FH])
  9564. ac_file_inputs=
  9565. for ac_f
  9566. do
  9567. case $ac_f in
  9568. -) ac_f="$ac_tmp/stdin";;
  9569. *) # Look for the file first in the build tree, then in the source tree
  9570. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9571. # because $ac_f cannot contain `:'.
  9572. test -f "$ac_f" ||
  9573. case $ac_f in
  9574. [\\/$]*) false;;
  9575. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9576. esac ||
  9577. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9578. esac
  9579. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9580. as_fn_append ac_file_inputs " '$ac_f'"
  9581. done
  9582. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9583. # use $as_me), people would be surprised to read:
  9584. # /* config.h. Generated by config.status. */
  9585. configure_input='Generated from '`
  9586. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9587. `' by configure.'
  9588. if test x"$ac_file" != x-; then
  9589. configure_input="$ac_file. $configure_input"
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9591. $as_echo "$as_me: creating $ac_file" >&6;}
  9592. fi
  9593. # Neutralize special characters interpreted by sed in replacement strings.
  9594. case $configure_input in #(
  9595. *\&* | *\|* | *\\* )
  9596. ac_sed_conf_input=`$as_echo "$configure_input" |
  9597. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9598. *) ac_sed_conf_input=$configure_input;;
  9599. esac
  9600. case $ac_tag in
  9601. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9602. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9603. esac
  9604. ;;
  9605. esac
  9606. ac_dir=`$as_dirname -- "$ac_file" ||
  9607. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9608. X"$ac_file" : 'X\(//\)[^/]' \| \
  9609. X"$ac_file" : 'X\(//\)$' \| \
  9610. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9611. $as_echo X"$ac_file" |
  9612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9613. s//\1/
  9614. q
  9615. }
  9616. /^X\(\/\/\)[^/].*/{
  9617. s//\1/
  9618. q
  9619. }
  9620. /^X\(\/\/\)$/{
  9621. s//\1/
  9622. q
  9623. }
  9624. /^X\(\/\).*/{
  9625. s//\1/
  9626. q
  9627. }
  9628. s/.*/./; q'`
  9629. as_dir="$ac_dir"; as_fn_mkdir_p
  9630. ac_builddir=.
  9631. case "$ac_dir" in
  9632. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9633. *)
  9634. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9635. # A ".." for each directory in $ac_dir_suffix.
  9636. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9637. case $ac_top_builddir_sub in
  9638. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9639. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9640. esac ;;
  9641. esac
  9642. ac_abs_top_builddir=$ac_pwd
  9643. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9644. # for backward compatibility:
  9645. ac_top_builddir=$ac_top_build_prefix
  9646. case $srcdir in
  9647. .) # We are building in place.
  9648. ac_srcdir=.
  9649. ac_top_srcdir=$ac_top_builddir_sub
  9650. ac_abs_top_srcdir=$ac_pwd ;;
  9651. [\\/]* | ?:[\\/]* ) # Absolute name.
  9652. ac_srcdir=$srcdir$ac_dir_suffix;
  9653. ac_top_srcdir=$srcdir
  9654. ac_abs_top_srcdir=$srcdir ;;
  9655. *) # Relative name.
  9656. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9657. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9658. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9659. esac
  9660. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9661. case $ac_mode in
  9662. :F)
  9663. #
  9664. # CONFIG_FILE
  9665. #
  9666. case $INSTALL in
  9667. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9668. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9669. esac
  9670. ac_MKDIR_P=$MKDIR_P
  9671. case $MKDIR_P in
  9672. [\\/$]* | ?:[\\/]* ) ;;
  9673. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9674. esac
  9675. _ACEOF
  9676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9677. # If the template does not know about datarootdir, expand it.
  9678. # FIXME: This hack should be removed a few years after 2.60.
  9679. ac_datarootdir_hack=; ac_datarootdir_seen=
  9680. ac_sed_dataroot='
  9681. /datarootdir/ {
  9682. p
  9683. q
  9684. }
  9685. /@datadir@/p
  9686. /@docdir@/p
  9687. /@infodir@/p
  9688. /@localedir@/p
  9689. /@mandir@/p'
  9690. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9691. *datarootdir*) ac_datarootdir_seen=yes;;
  9692. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9694. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9695. _ACEOF
  9696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9697. ac_datarootdir_hack='
  9698. s&@datadir@&$datadir&g
  9699. s&@docdir@&$docdir&g
  9700. s&@infodir@&$infodir&g
  9701. s&@localedir@&$localedir&g
  9702. s&@mandir@&$mandir&g
  9703. s&\\\${datarootdir}&$datarootdir&g' ;;
  9704. esac
  9705. _ACEOF
  9706. # Neutralize VPATH when `$srcdir' = `.'.
  9707. # Shell code in configure.ac might set extrasub.
  9708. # FIXME: do we really want to maintain this feature?
  9709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9710. ac_sed_extra="$ac_vpsub
  9711. $extrasub
  9712. _ACEOF
  9713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9714. :t
  9715. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9716. s|@configure_input@|$ac_sed_conf_input|;t t
  9717. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9718. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9719. s&@srcdir@&$ac_srcdir&;t t
  9720. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9721. s&@top_srcdir@&$ac_top_srcdir&;t t
  9722. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9723. s&@builddir@&$ac_builddir&;t t
  9724. s&@abs_builddir@&$ac_abs_builddir&;t t
  9725. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9726. s&@INSTALL@&$ac_INSTALL&;t t
  9727. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9728. $ac_datarootdir_hack
  9729. "
  9730. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9731. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9732. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9733. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9734. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9735. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9737. which seems to be undefined. Please make sure it is defined" >&5
  9738. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9739. which seems to be undefined. Please make sure it is defined" >&2;}
  9740. rm -f "$ac_tmp/stdin"
  9741. case $ac_file in
  9742. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9743. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9744. esac \
  9745. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9746. ;;
  9747. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9748. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9749. ;;
  9750. esac
  9751. case $ac_file$ac_mode in
  9752. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  9753. # Older Autoconf quotes --file arguments for eval, but not when files
  9754. # are listed without --file. Let's play safe and only enable the eval
  9755. # if we detect the quoting.
  9756. case $CONFIG_FILES in
  9757. *\'*) eval set x "$CONFIG_FILES" ;;
  9758. *) set x $CONFIG_FILES ;;
  9759. esac
  9760. shift
  9761. for mf
  9762. do
  9763. # Strip MF so we end up with the name of the file.
  9764. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9765. # Check whether this is an Automake generated Makefile or not.
  9766. # We used to match only the files named 'Makefile.in', but
  9767. # some people rename them; so instead we look at the file content.
  9768. # Grep'ing the first line is not enough: some people post-process
  9769. # each Makefile.in and add a new line on top of each file to say so.
  9770. # Grep'ing the whole file is not good either: AIX grep has a line
  9771. # limit of 2048, but all sed's we know have understand at least 4000.
  9772. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9773. dirpart=`$as_dirname -- "$mf" ||
  9774. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9775. X"$mf" : 'X\(//\)[^/]' \| \
  9776. X"$mf" : 'X\(//\)$' \| \
  9777. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9778. $as_echo X"$mf" |
  9779. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9780. s//\1/
  9781. q
  9782. }
  9783. /^X\(\/\/\)[^/].*/{
  9784. s//\1/
  9785. q
  9786. }
  9787. /^X\(\/\/\)$/{
  9788. s//\1/
  9789. q
  9790. }
  9791. /^X\(\/\).*/{
  9792. s//\1/
  9793. q
  9794. }
  9795. s/.*/./; q'`
  9796. else
  9797. continue
  9798. fi
  9799. # Extract the definition of DEPDIR, am__include, and am__quote
  9800. # from the Makefile without running 'make'.
  9801. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9802. test -z "$DEPDIR" && continue
  9803. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9804. test -z "$am__include" && continue
  9805. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9806. # Find all dependency output files, they are included files with
  9807. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9808. # simplest approach to changing $(DEPDIR) to its actual value in the
  9809. # expansion.
  9810. for file in `sed -n "
  9811. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9812. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  9813. # Make sure the directory exists.
  9814. test -f "$dirpart/$file" && continue
  9815. fdir=`$as_dirname -- "$file" ||
  9816. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9817. X"$file" : 'X\(//\)[^/]' \| \
  9818. X"$file" : 'X\(//\)$' \| \
  9819. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9820. $as_echo X"$file" |
  9821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9822. s//\1/
  9823. q
  9824. }
  9825. /^X\(\/\/\)[^/].*/{
  9826. s//\1/
  9827. q
  9828. }
  9829. /^X\(\/\/\)$/{
  9830. s//\1/
  9831. q
  9832. }
  9833. /^X\(\/\).*/{
  9834. s//\1/
  9835. q
  9836. }
  9837. s/.*/./; q'`
  9838. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  9839. # echo "creating $dirpart/$file"
  9840. echo '# dummy' > "$dirpart/$file"
  9841. done
  9842. done
  9843. }
  9844. ;;
  9845. esac
  9846. done # for ac_tag
  9847. as_fn_exit 0
  9848. _ACEOF
  9849. ac_clean_files=$ac_clean_files_save
  9850. test $ac_write_fail = 0 ||
  9851. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9852. # configure is writing to config.log, and then calls config.status.
  9853. # config.status does its own redirection, appending to config.log.
  9854. # Unfortunately, on DOS this fails, as config.log is still kept open
  9855. # by configure, so config.status won't be able to write to it; its
  9856. # output is simply discarded. So we exec the FD to /dev/null,
  9857. # effectively closing config.log, so it can be properly (re)opened and
  9858. # appended to by config.status. When coming back to configure, we
  9859. # need to make the FD available again.
  9860. if test "$no_create" != yes; then
  9861. ac_cs_success=:
  9862. ac_config_status_args=
  9863. test "$silent" = yes &&
  9864. ac_config_status_args="$ac_config_status_args --quiet"
  9865. exec 5>/dev/null
  9866. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9867. exec 5>>config.log
  9868. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9869. # would make configure fail if this is the last instruction.
  9870. $ac_cs_success || as_fn_exit 1
  9871. fi
  9872. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9874. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9875. fi