configure 333 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xdriinfo 1.0.5.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. 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='xdriinfo'
  535. PACKAGE_TARNAME='xdriinfo'
  536. PACKAGE_VERSION='1.0.5'
  537. PACKAGE_STRING='xdriinfo 1.0.5'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XDRIINFO_LIBS
  581. XDRIINFO_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. CHANGELOG_CMD
  614. STRICT_CFLAGS
  615. CWARNFLAGS
  616. BASE_CFLAGS
  617. EGREP
  618. GREP
  619. CPP
  620. am__fastdepCC_FALSE
  621. am__fastdepCC_TRUE
  622. CCDEPMODE
  623. am__nodep
  624. AMDEPBACKSLASH
  625. AMDEP_FALSE
  626. AMDEP_TRUE
  627. am__quote
  628. am__include
  629. DEPDIR
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  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_dependency_tracking
  702. enable_selective_werror
  703. enable_strict_compilation
  704. enable_silent_rules
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. PKG_CONFIG
  716. PKG_CONFIG_PATH
  717. PKG_CONFIG_LIBDIR
  718. XDRIINFO_CFLAGS
  719. XDRIINFO_LIBS'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures xdriinfo 1.0.5 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/xdriinfo]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of xdriinfo 1.0.5:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dependency-tracking
  1257. do not reject slow dependency extractors
  1258. --disable-dependency-tracking
  1259. speeds up one-time build
  1260. --disable-selective-werror
  1261. Turn off selective compiler errors. (default:
  1262. enabled)
  1263. --enable-strict-compilation
  1264. Enable all warnings from compiler and make them
  1265. errors (default: disabled)
  1266. --enable-silent-rules less verbose build output (undo: "make V=1")
  1267. --disable-silent-rules verbose build output (undo: "make V=0")
  1268. Some influential environment variables:
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1272. nonstandard directory <lib dir>
  1273. LIBS libraries to pass to the linker, e.g. -l<library>
  1274. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1275. you have headers in a nonstandard directory <include dir>
  1276. CPP C preprocessor
  1277. PKG_CONFIG path to pkg-config utility
  1278. PKG_CONFIG_PATH
  1279. directories to add to pkg-config's search path
  1280. PKG_CONFIG_LIBDIR
  1281. path overriding pkg-config's built-in search path
  1282. XDRIINFO_CFLAGS
  1283. C compiler flags for XDRIINFO, overriding pkg-config
  1284. XDRIINFO_LIBS
  1285. linker flags for XDRIINFO, overriding pkg-config
  1286. Use these variables to override the choices made by `configure' or to help
  1287. it to find libraries and programs with nonstandard names/locations.
  1288. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1289. _ACEOF
  1290. ac_status=$?
  1291. fi
  1292. if test "$ac_init_help" = "recursive"; then
  1293. # If there are subdirs, report their specific --help.
  1294. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1295. test -d "$ac_dir" ||
  1296. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1297. continue
  1298. ac_builddir=.
  1299. case "$ac_dir" in
  1300. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *)
  1302. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1303. # A ".." for each directory in $ac_dir_suffix.
  1304. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1305. case $ac_top_builddir_sub in
  1306. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1308. esac ;;
  1309. esac
  1310. ac_abs_top_builddir=$ac_pwd
  1311. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1312. # for backward compatibility:
  1313. ac_top_builddir=$ac_top_build_prefix
  1314. case $srcdir in
  1315. .) # We are building in place.
  1316. ac_srcdir=.
  1317. ac_top_srcdir=$ac_top_builddir_sub
  1318. ac_abs_top_srcdir=$ac_pwd ;;
  1319. [\\/]* | ?:[\\/]* ) # Absolute name.
  1320. ac_srcdir=$srcdir$ac_dir_suffix;
  1321. ac_top_srcdir=$srcdir
  1322. ac_abs_top_srcdir=$srcdir ;;
  1323. *) # Relative name.
  1324. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1325. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1326. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1327. esac
  1328. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1329. cd "$ac_dir" || { ac_status=$?; continue; }
  1330. # Check for guested configure.
  1331. if test -f "$ac_srcdir/configure.gnu"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1334. elif test -f "$ac_srcdir/configure"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure" --help=recursive
  1337. else
  1338. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1339. fi || ac_status=$?
  1340. cd "$ac_pwd" || { ac_status=$?; break; }
  1341. done
  1342. fi
  1343. test -n "$ac_init_help" && exit $ac_status
  1344. if $ac_init_version; then
  1345. cat <<\_ACEOF
  1346. xdriinfo configure 1.0.5
  1347. generated by GNU Autoconf 2.69
  1348. Copyright (C) 2012 Free Software Foundation, Inc.
  1349. This configure script is free software; the Free Software Foundation
  1350. gives unlimited permission to copy, distribute and modify it.
  1351. _ACEOF
  1352. exit
  1353. fi
  1354. ## ------------------------ ##
  1355. ## Autoconf initialization. ##
  1356. ## ------------------------ ##
  1357. # ac_fn_c_try_compile LINENO
  1358. # --------------------------
  1359. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1360. ac_fn_c_try_compile ()
  1361. {
  1362. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1363. rm -f conftest.$ac_objext
  1364. if { { ac_try="$ac_compile"
  1365. case "(($ac_try" in
  1366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1367. *) ac_try_echo=$ac_try;;
  1368. esac
  1369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1370. $as_echo "$ac_try_echo"; } >&5
  1371. (eval "$ac_compile") 2>conftest.err
  1372. ac_status=$?
  1373. if test -s conftest.err; then
  1374. grep -v '^ *+' conftest.err >conftest.er1
  1375. cat conftest.er1 >&5
  1376. mv -f conftest.er1 conftest.err
  1377. fi
  1378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1379. test $ac_status = 0; } && {
  1380. test -z "$ac_c_werror_flag" ||
  1381. test ! -s conftest.err
  1382. } && test -s conftest.$ac_objext; then :
  1383. ac_retval=0
  1384. else
  1385. $as_echo "$as_me: failed program was:" >&5
  1386. sed 's/^/| /' conftest.$ac_ext >&5
  1387. ac_retval=1
  1388. fi
  1389. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1390. as_fn_set_status $ac_retval
  1391. } # ac_fn_c_try_compile
  1392. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1393. # ---------------------------------------------
  1394. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1395. # accordingly.
  1396. ac_fn_c_check_decl ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1400. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1402. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1403. if eval \${$3+:} false; then :
  1404. $as_echo_n "(cached) " >&6
  1405. else
  1406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1407. /* end confdefs.h. */
  1408. $4
  1409. int
  1410. main ()
  1411. {
  1412. #ifndef $as_decl_name
  1413. #ifdef __cplusplus
  1414. (void) $as_decl_use;
  1415. #else
  1416. (void) $as_decl_name;
  1417. #endif
  1418. #endif
  1419. ;
  1420. return 0;
  1421. }
  1422. _ACEOF
  1423. if ac_fn_c_try_compile "$LINENO"; then :
  1424. eval "$3=yes"
  1425. else
  1426. eval "$3=no"
  1427. fi
  1428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1429. fi
  1430. eval ac_res=\$$3
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1432. $as_echo "$ac_res" >&6; }
  1433. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1434. } # ac_fn_c_check_decl
  1435. # ac_fn_c_try_cpp LINENO
  1436. # ----------------------
  1437. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1438. ac_fn_c_try_cpp ()
  1439. {
  1440. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1441. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } > conftest.i && {
  1457. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: failed program was:" >&5
  1463. sed 's/^/| /' conftest.$ac_ext >&5
  1464. ac_retval=1
  1465. fi
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_c_try_cpp
  1469. # ac_fn_c_try_run LINENO
  1470. # ----------------------
  1471. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1472. # that executables *can* be run.
  1473. ac_fn_c_try_run ()
  1474. {
  1475. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1476. if { { ac_try="$ac_link"
  1477. case "(($ac_try" in
  1478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1479. *) ac_try_echo=$ac_try;;
  1480. esac
  1481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1482. $as_echo "$ac_try_echo"; } >&5
  1483. (eval "$ac_link") 2>&5
  1484. ac_status=$?
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1487. { { case "(($ac_try" in
  1488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. *) ac_try_echo=$ac_try;;
  1490. esac
  1491. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. $as_echo "$ac_try_echo"; } >&5
  1493. (eval "$ac_try") 2>&5
  1494. ac_status=$?
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; }; }; then :
  1497. ac_retval=0
  1498. else
  1499. $as_echo "$as_me: program exited with status $ac_status" >&5
  1500. $as_echo "$as_me: failed program was:" >&5
  1501. sed 's/^/| /' conftest.$ac_ext >&5
  1502. ac_retval=$ac_status
  1503. fi
  1504. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1505. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1506. as_fn_set_status $ac_retval
  1507. } # ac_fn_c_try_run
  1508. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1509. # -------------------------------------------------------
  1510. # Tests whether HEADER exists and can be compiled using the include files in
  1511. # INCLUDES, setting the cache variable VAR accordingly.
  1512. ac_fn_c_check_header_compile ()
  1513. {
  1514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1516. $as_echo_n "checking for $2... " >&6; }
  1517. if eval \${$3+:} false; then :
  1518. $as_echo_n "(cached) " >&6
  1519. else
  1520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1521. /* end confdefs.h. */
  1522. $4
  1523. #include <$2>
  1524. _ACEOF
  1525. if ac_fn_c_try_compile "$LINENO"; then :
  1526. eval "$3=yes"
  1527. else
  1528. eval "$3=no"
  1529. fi
  1530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. } # ac_fn_c_check_header_compile
  1537. # ac_fn_c_try_link LINENO
  1538. # -----------------------
  1539. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1540. ac_fn_c_try_link ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. rm -f conftest.$ac_objext conftest$ac_exeext
  1544. if { { ac_try="$ac_link"
  1545. case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. $as_echo "$ac_try_echo"; } >&5
  1551. (eval "$ac_link") 2>conftest.err
  1552. ac_status=$?
  1553. if test -s conftest.err; then
  1554. grep -v '^ *+' conftest.err >conftest.er1
  1555. cat conftest.er1 >&5
  1556. mv -f conftest.er1 conftest.err
  1557. fi
  1558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } && {
  1560. test -z "$ac_c_werror_flag" ||
  1561. test ! -s conftest.err
  1562. } && test -s conftest$ac_exeext && {
  1563. test "$cross_compiling" = yes ||
  1564. test -x conftest$ac_exeext
  1565. }; then :
  1566. ac_retval=0
  1567. else
  1568. $as_echo "$as_me: failed program was:" >&5
  1569. sed 's/^/| /' conftest.$ac_ext >&5
  1570. ac_retval=1
  1571. fi
  1572. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1573. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1574. # interfere with the next link command; also delete a directory that is
  1575. # left behind by Apple's compiler. We do this before executing the actions.
  1576. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1578. as_fn_set_status $ac_retval
  1579. } # ac_fn_c_try_link
  1580. cat >config.log <<_ACEOF
  1581. This file contains any messages produced by compilers while
  1582. running configure, to aid debugging if configure makes a mistake.
  1583. It was created by xdriinfo $as_me 1.0.5, which was
  1584. generated by GNU Autoconf 2.69. Invocation command line was
  1585. $ $0 $@
  1586. _ACEOF
  1587. exec 5>>config.log
  1588. {
  1589. cat <<_ASUNAME
  1590. ## --------- ##
  1591. ## Platform. ##
  1592. ## --------- ##
  1593. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1594. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1595. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1596. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1597. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1598. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1599. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1600. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1601. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1602. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1603. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1604. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1605. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1606. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1607. _ASUNAME
  1608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1609. for as_dir in $PATH
  1610. do
  1611. IFS=$as_save_IFS
  1612. test -z "$as_dir" && as_dir=.
  1613. $as_echo "PATH: $as_dir"
  1614. done
  1615. IFS=$as_save_IFS
  1616. } >&5
  1617. cat >&5 <<_ACEOF
  1618. ## ----------- ##
  1619. ## Core tests. ##
  1620. ## ----------- ##
  1621. _ACEOF
  1622. # Keep a trace of the command line.
  1623. # Strip out --no-create and --no-recursion so they do not pile up.
  1624. # Strip out --silent because we don't want to record it for future runs.
  1625. # Also quote any args containing shell meta-characters.
  1626. # Make two passes to allow for proper duplicate-argument suppression.
  1627. ac_configure_args=
  1628. ac_configure_args0=
  1629. ac_configure_args1=
  1630. ac_must_keep_next=false
  1631. for ac_pass in 1 2
  1632. do
  1633. for ac_arg
  1634. do
  1635. case $ac_arg in
  1636. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1637. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1638. | -silent | --silent | --silen | --sile | --sil)
  1639. continue ;;
  1640. *\'*)
  1641. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1642. esac
  1643. case $ac_pass in
  1644. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1645. 2)
  1646. as_fn_append ac_configure_args1 " '$ac_arg'"
  1647. if test $ac_must_keep_next = true; then
  1648. ac_must_keep_next=false # Got value, back to normal.
  1649. else
  1650. case $ac_arg in
  1651. *=* | --config-cache | -C | -disable-* | --disable-* \
  1652. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1653. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1654. | -with-* | --with-* | -without-* | --without-* | --x)
  1655. case "$ac_configure_args0 " in
  1656. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1657. esac
  1658. ;;
  1659. -* ) ac_must_keep_next=true ;;
  1660. esac
  1661. fi
  1662. as_fn_append ac_configure_args " '$ac_arg'"
  1663. ;;
  1664. esac
  1665. done
  1666. done
  1667. { ac_configure_args0=; unset ac_configure_args0;}
  1668. { ac_configure_args1=; unset ac_configure_args1;}
  1669. # When interrupted or exit'd, cleanup temporary files, and complete
  1670. # config.log. We remove comments because anyway the quotes in there
  1671. # would cause problems or look ugly.
  1672. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1673. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1674. trap 'exit_status=$?
  1675. # Save into config.log some information that might help in debugging.
  1676. {
  1677. echo
  1678. $as_echo "## ---------------- ##
  1679. ## Cache variables. ##
  1680. ## ---------------- ##"
  1681. echo
  1682. # The following way of writing the cache mishandles newlines in values,
  1683. (
  1684. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1685. eval ac_val=\$$ac_var
  1686. case $ac_val in #(
  1687. *${as_nl}*)
  1688. case $ac_var in #(
  1689. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1690. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1691. esac
  1692. case $ac_var in #(
  1693. _ | IFS | as_nl) ;; #(
  1694. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1695. *) { eval $ac_var=; unset $ac_var;} ;;
  1696. esac ;;
  1697. esac
  1698. done
  1699. (set) 2>&1 |
  1700. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1701. *${as_nl}ac_space=\ *)
  1702. sed -n \
  1703. "s/'\''/'\''\\\\'\'''\''/g;
  1704. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1705. ;; #(
  1706. *)
  1707. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1708. ;;
  1709. esac |
  1710. sort
  1711. )
  1712. echo
  1713. $as_echo "## ----------------- ##
  1714. ## Output variables. ##
  1715. ## ----------------- ##"
  1716. echo
  1717. for ac_var in $ac_subst_vars
  1718. do
  1719. eval ac_val=\$$ac_var
  1720. case $ac_val in
  1721. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1722. esac
  1723. $as_echo "$ac_var='\''$ac_val'\''"
  1724. done | sort
  1725. echo
  1726. if test -n "$ac_subst_files"; then
  1727. $as_echo "## ------------------- ##
  1728. ## File substitutions. ##
  1729. ## ------------------- ##"
  1730. echo
  1731. for ac_var in $ac_subst_files
  1732. do
  1733. eval ac_val=\$$ac_var
  1734. case $ac_val in
  1735. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1736. esac
  1737. $as_echo "$ac_var='\''$ac_val'\''"
  1738. done | sort
  1739. echo
  1740. fi
  1741. if test -s confdefs.h; then
  1742. $as_echo "## ----------- ##
  1743. ## confdefs.h. ##
  1744. ## ----------- ##"
  1745. echo
  1746. cat confdefs.h
  1747. echo
  1748. fi
  1749. test "$ac_signal" != 0 &&
  1750. $as_echo "$as_me: caught signal $ac_signal"
  1751. $as_echo "$as_me: exit $exit_status"
  1752. } >&5
  1753. rm -f core *.core core.conftest.* &&
  1754. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1755. exit $exit_status
  1756. ' 0
  1757. for ac_signal in 1 2 13 15; do
  1758. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1759. done
  1760. ac_signal=0
  1761. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1762. rm -f -r conftest* confdefs.h
  1763. $as_echo "/* confdefs.h */" > confdefs.h
  1764. # Predefined preprocessor variables.
  1765. cat >>confdefs.h <<_ACEOF
  1766. #define PACKAGE_NAME "$PACKAGE_NAME"
  1767. _ACEOF
  1768. cat >>confdefs.h <<_ACEOF
  1769. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1770. _ACEOF
  1771. cat >>confdefs.h <<_ACEOF
  1772. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1773. _ACEOF
  1774. cat >>confdefs.h <<_ACEOF
  1775. #define PACKAGE_STRING "$PACKAGE_STRING"
  1776. _ACEOF
  1777. cat >>confdefs.h <<_ACEOF
  1778. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1779. _ACEOF
  1780. cat >>confdefs.h <<_ACEOF
  1781. #define PACKAGE_URL "$PACKAGE_URL"
  1782. _ACEOF
  1783. # Let the site file select an alternate cache file if it wants to.
  1784. # Prefer an explicitly selected file to automatically selected ones.
  1785. ac_site_file1=NONE
  1786. ac_site_file2=NONE
  1787. if test -n "$CONFIG_SITE"; then
  1788. # We do not want a PATH search for config.site.
  1789. case $CONFIG_SITE in #((
  1790. -*) ac_site_file1=./$CONFIG_SITE;;
  1791. */*) ac_site_file1=$CONFIG_SITE;;
  1792. *) ac_site_file1=./$CONFIG_SITE;;
  1793. esac
  1794. elif test "x$prefix" != xNONE; then
  1795. ac_site_file1=$prefix/share/config.site
  1796. ac_site_file2=$prefix/etc/config.site
  1797. else
  1798. ac_site_file1=$ac_default_prefix/share/config.site
  1799. ac_site_file2=$ac_default_prefix/etc/config.site
  1800. fi
  1801. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1802. do
  1803. test "x$ac_site_file" = xNONE && continue
  1804. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1806. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1807. sed 's/^/| /' "$ac_site_file" >&5
  1808. . "$ac_site_file" \
  1809. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1810. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1811. as_fn_error $? "failed to load site script $ac_site_file
  1812. See \`config.log' for more details" "$LINENO" 5; }
  1813. fi
  1814. done
  1815. if test -r "$cache_file"; then
  1816. # Some versions of bash will fail to source /dev/null (special files
  1817. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1818. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1820. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1821. case $cache_file in
  1822. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1823. *) . "./$cache_file";;
  1824. esac
  1825. fi
  1826. else
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1828. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1829. >$cache_file
  1830. fi
  1831. # Check that the precious variables saved in the cache have kept the same
  1832. # value.
  1833. ac_cache_corrupted=false
  1834. for ac_var in $ac_precious_vars; do
  1835. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1836. eval ac_new_set=\$ac_env_${ac_var}_set
  1837. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1838. eval ac_new_val=\$ac_env_${ac_var}_value
  1839. case $ac_old_set,$ac_new_set in
  1840. set,)
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1842. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1843. ac_cache_corrupted=: ;;
  1844. ,set)
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1846. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1847. ac_cache_corrupted=: ;;
  1848. ,);;
  1849. *)
  1850. if test "x$ac_old_val" != "x$ac_new_val"; then
  1851. # differences in whitespace do not lead to failure.
  1852. ac_old_val_w=`echo x $ac_old_val`
  1853. ac_new_val_w=`echo x $ac_new_val`
  1854. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1856. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1857. ac_cache_corrupted=:
  1858. else
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1860. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1861. eval $ac_var=\$ac_old_val
  1862. fi
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1864. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1866. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1867. fi;;
  1868. esac
  1869. # Pass precious variables to config.status.
  1870. if test "$ac_new_set" = set; then
  1871. case $ac_new_val in
  1872. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1873. *) ac_arg=$ac_var=$ac_new_val ;;
  1874. esac
  1875. case " $ac_configure_args " in
  1876. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1877. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1878. esac
  1879. fi
  1880. done
  1881. if $ac_cache_corrupted; then
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1883. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1885. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1886. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1887. fi
  1888. ## -------------------- ##
  1889. ## Main body of script. ##
  1890. ## -------------------- ##
  1891. ac_ext=c
  1892. ac_cpp='$CPP $CPPFLAGS'
  1893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1896. ac_config_headers="$ac_config_headers config.h"
  1897. # Initialize Automake
  1898. am__api_version='1.12'
  1899. ac_aux_dir=
  1900. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1901. if 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/install.sh"; then
  1906. ac_aux_dir=$ac_dir
  1907. ac_install_sh="$ac_aux_dir/install.sh -c"
  1908. break
  1909. elif test -f "$ac_dir/shtool"; then
  1910. ac_aux_dir=$ac_dir
  1911. ac_install_sh="$ac_aux_dir/shtool install -c"
  1912. break
  1913. fi
  1914. done
  1915. if test -z "$ac_aux_dir"; then
  1916. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1917. fi
  1918. # These three variables are undocumented and unsupported,
  1919. # and are intended to be withdrawn in a future Autoconf release.
  1920. # They can cause serious problems if a builder's source tree is in a directory
  1921. # whose full name contains unusual characters.
  1922. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1923. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1924. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1925. # Find a good install program. We prefer a C program (faster),
  1926. # so one script is as good as another. But avoid the broken or
  1927. # incompatible versions:
  1928. # SysV /etc/install, /usr/sbin/install
  1929. # SunOS /usr/etc/install
  1930. # IRIX /sbin/install
  1931. # AIX /bin/install
  1932. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1933. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1934. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1935. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1936. # OS/2's system install, which has a completely different semantic
  1937. # ./install, which can be erroneously created by make from ./install.sh.
  1938. # Reject install programs that cannot install multiple files.
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1940. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1941. if test -z "$INSTALL"; then
  1942. if ${ac_cv_path_install+:} false; then :
  1943. $as_echo_n "(cached) " >&6
  1944. else
  1945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1946. for as_dir in $PATH
  1947. do
  1948. IFS=$as_save_IFS
  1949. test -z "$as_dir" && as_dir=.
  1950. # Account for people who put trailing slashes in PATH elements.
  1951. case $as_dir/ in #((
  1952. ./ | .// | /[cC]/* | \
  1953. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1954. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1955. /usr/ucb/* ) ;;
  1956. *)
  1957. # OSF1 and SCO ODT 3.0 have their own names for install.
  1958. # Don't use installbsd from OSF since it installs stuff as root
  1959. # by default.
  1960. for ac_prog in ginstall scoinst install; do
  1961. for ac_exec_ext in '' $ac_executable_extensions; do
  1962. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1963. if test $ac_prog = install &&
  1964. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1965. # AIX install. It has an incompatible calling convention.
  1966. :
  1967. elif test $ac_prog = install &&
  1968. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1969. # program-specific install script used by HP pwplus--don't use.
  1970. :
  1971. else
  1972. rm -rf conftest.one conftest.two conftest.dir
  1973. echo one > conftest.one
  1974. echo two > conftest.two
  1975. mkdir conftest.dir
  1976. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1977. test -s conftest.one && test -s conftest.two &&
  1978. test -s conftest.dir/conftest.one &&
  1979. test -s conftest.dir/conftest.two
  1980. then
  1981. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1982. break 3
  1983. fi
  1984. fi
  1985. fi
  1986. done
  1987. done
  1988. ;;
  1989. esac
  1990. done
  1991. IFS=$as_save_IFS
  1992. rm -rf conftest.one conftest.two conftest.dir
  1993. fi
  1994. if test "${ac_cv_path_install+set}" = set; then
  1995. INSTALL=$ac_cv_path_install
  1996. else
  1997. # As a last resort, use the slow shell script. Don't cache a
  1998. # value for INSTALL within a source directory, because that will
  1999. # break other packages using the cache if that directory is
  2000. # removed, or if the value is a relative name.
  2001. INSTALL=$ac_install_sh
  2002. fi
  2003. fi
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2005. $as_echo "$INSTALL" >&6; }
  2006. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2007. # It thinks the first close brace ends the variable substitution.
  2008. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2009. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2010. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2012. $as_echo_n "checking whether build environment is sane... " >&6; }
  2013. # Reject unsafe characters in $srcdir or the absolute working directory
  2014. # name. Accept space and tab only in the latter.
  2015. am_lf='
  2016. '
  2017. case `pwd` in
  2018. *[\\\"\#\$\&\'\`$am_lf]*)
  2019. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2020. esac
  2021. case $srcdir in
  2022. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2023. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2024. esac
  2025. # Do 'set' in a subshell so we don't clobber the current shell's
  2026. # arguments. Must try -L first in case configure is actually a
  2027. # symlink; some systems play weird games with the mod time of symlinks
  2028. # (eg FreeBSD returns the mod time of the symlink's containing
  2029. # directory).
  2030. if (
  2031. am_has_slept=no
  2032. for am_try in 1 2; do
  2033. echo "timestamp, slept: $am_has_slept" > conftest.file
  2034. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2035. if test "$*" = "X"; then
  2036. # -L didn't work.
  2037. set X `ls -t "$srcdir/configure" conftest.file`
  2038. fi
  2039. if test "$*" != "X $srcdir/configure conftest.file" \
  2040. && test "$*" != "X conftest.file $srcdir/configure"; then
  2041. # If neither matched, then we have a broken ls. This can happen
  2042. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2043. # broken ls alias from the environment. This has actually
  2044. # happened. Such a system could not be considered "sane".
  2045. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2046. alias in your environment" "$LINENO" 5
  2047. fi
  2048. if test "$2" = conftest.file || test $am_try -eq 2; then
  2049. break
  2050. fi
  2051. # Just in case.
  2052. sleep 1
  2053. am_has_slept=yes
  2054. done
  2055. test "$2" = conftest.file
  2056. )
  2057. then
  2058. # Ok.
  2059. :
  2060. else
  2061. as_fn_error $? "newly created file is older than distributed files!
  2062. Check your system clock" "$LINENO" 5
  2063. fi
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2065. $as_echo "yes" >&6; }
  2066. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2067. # generated files are strictly newer.
  2068. am_sleep_pid=
  2069. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2070. ( sleep 1 ) &
  2071. am_sleep_pid=$!
  2072. fi
  2073. rm -f conftest.file
  2074. test "$program_prefix" != NONE &&
  2075. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2076. # Use a double $ so make ignores it.
  2077. test "$program_suffix" != NONE &&
  2078. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2079. # Double any \ or $.
  2080. # By default was `s,x,x', remove it if useless.
  2081. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2082. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2083. # expand $ac_aux_dir to an absolute path
  2084. am_aux_dir=`cd $ac_aux_dir && pwd`
  2085. if test x"${MISSING+set}" != xset; then
  2086. case $am_aux_dir in
  2087. *\ * | *\ *)
  2088. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2089. *)
  2090. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2091. esac
  2092. fi
  2093. # Use eval to expand $SHELL
  2094. if eval "$MISSING --run true"; then
  2095. am_missing_run="$MISSING --run "
  2096. else
  2097. am_missing_run=
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2099. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2100. fi
  2101. if test x"${install_sh}" != xset; then
  2102. case $am_aux_dir in
  2103. *\ * | *\ *)
  2104. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2105. *)
  2106. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2107. esac
  2108. fi
  2109. # Installed binaries are usually stripped using 'strip' when the user
  2110. # run "make install-strip". However 'strip' might not be the right
  2111. # tool to use in cross-compilation environments, therefore Automake
  2112. # will honor the 'STRIP' environment variable to overrule this program.
  2113. if test "$cross_compiling" != no; then
  2114. if test -n "$ac_tool_prefix"; then
  2115. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2116. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2118. $as_echo_n "checking for $ac_word... " >&6; }
  2119. if ${ac_cv_prog_STRIP+:} false; then :
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. if test -n "$STRIP"; then
  2123. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2124. else
  2125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2126. for as_dir in $PATH
  2127. do
  2128. IFS=$as_save_IFS
  2129. test -z "$as_dir" && as_dir=.
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2132. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2134. break 2
  2135. fi
  2136. done
  2137. done
  2138. IFS=$as_save_IFS
  2139. fi
  2140. fi
  2141. STRIP=$ac_cv_prog_STRIP
  2142. if test -n "$STRIP"; then
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2144. $as_echo "$STRIP" >&6; }
  2145. else
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2147. $as_echo "no" >&6; }
  2148. fi
  2149. fi
  2150. if test -z "$ac_cv_prog_STRIP"; then
  2151. ac_ct_STRIP=$STRIP
  2152. # Extract the first word of "strip", so it can be a program name with args.
  2153. set dummy strip; ac_word=$2
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2155. $as_echo_n "checking for $ac_word... " >&6; }
  2156. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. if test -n "$ac_ct_STRIP"; then
  2160. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2161. else
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. for ac_exec_ext in '' $ac_executable_extensions; do
  2168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2169. ac_cv_prog_ac_ct_STRIP="strip"
  2170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2171. break 2
  2172. fi
  2173. done
  2174. done
  2175. IFS=$as_save_IFS
  2176. fi
  2177. fi
  2178. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2179. if test -n "$ac_ct_STRIP"; then
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2181. $as_echo "$ac_ct_STRIP" >&6; }
  2182. else
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2184. $as_echo "no" >&6; }
  2185. fi
  2186. if test "x$ac_ct_STRIP" = x; then
  2187. STRIP=":"
  2188. else
  2189. case $cross_compiling:$ac_tool_warned in
  2190. yes:)
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2193. ac_tool_warned=yes ;;
  2194. esac
  2195. STRIP=$ac_ct_STRIP
  2196. fi
  2197. else
  2198. STRIP="$ac_cv_prog_STRIP"
  2199. fi
  2200. fi
  2201. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2203. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2204. if test -z "$MKDIR_P"; then
  2205. if ${ac_cv_path_mkdir+:} false; then :
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2209. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2210. do
  2211. IFS=$as_save_IFS
  2212. test -z "$as_dir" && as_dir=.
  2213. for ac_prog in mkdir gmkdir; do
  2214. for ac_exec_ext in '' $ac_executable_extensions; do
  2215. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2216. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2217. 'mkdir (GNU coreutils) '* | \
  2218. 'mkdir (coreutils) '* | \
  2219. 'mkdir (fileutils) '4.1*)
  2220. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2221. break 3;;
  2222. esac
  2223. done
  2224. done
  2225. done
  2226. IFS=$as_save_IFS
  2227. fi
  2228. test -d ./--version && rmdir ./--version
  2229. if test "${ac_cv_path_mkdir+set}" = set; then
  2230. MKDIR_P="$ac_cv_path_mkdir -p"
  2231. else
  2232. # As a last resort, use the slow shell script. Don't cache a
  2233. # value for MKDIR_P within a source directory, because that will
  2234. # break other packages using the cache if that directory is
  2235. # removed, or if the value is a relative name.
  2236. MKDIR_P="$ac_install_sh -d"
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2240. $as_echo "$MKDIR_P" >&6; }
  2241. for ac_prog in gawk mawk nawk awk
  2242. do
  2243. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2244. set dummy $ac_prog; ac_word=$2
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2246. $as_echo_n "checking for $ac_word... " >&6; }
  2247. if ${ac_cv_prog_AWK+:} false; then :
  2248. $as_echo_n "(cached) " >&6
  2249. else
  2250. if test -n "$AWK"; then
  2251. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2252. else
  2253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2254. for as_dir in $PATH
  2255. do
  2256. IFS=$as_save_IFS
  2257. test -z "$as_dir" && as_dir=.
  2258. for ac_exec_ext in '' $ac_executable_extensions; do
  2259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2260. ac_cv_prog_AWK="$ac_prog"
  2261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2262. break 2
  2263. fi
  2264. done
  2265. done
  2266. IFS=$as_save_IFS
  2267. fi
  2268. fi
  2269. AWK=$ac_cv_prog_AWK
  2270. if test -n "$AWK"; then
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2272. $as_echo "$AWK" >&6; }
  2273. else
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2275. $as_echo "no" >&6; }
  2276. fi
  2277. test -n "$AWK" && break
  2278. done
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2280. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2281. set x ${MAKE-make}
  2282. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2283. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2284. $as_echo_n "(cached) " >&6
  2285. else
  2286. cat >conftest.make <<\_ACEOF
  2287. SHELL = /bin/sh
  2288. all:
  2289. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2290. _ACEOF
  2291. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2292. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2293. *@@@%%%=?*=@@@%%%*)
  2294. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2295. *)
  2296. eval ac_cv_prog_make_${ac_make}_set=no;;
  2297. esac
  2298. rm -f conftest.make
  2299. fi
  2300. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2302. $as_echo "yes" >&6; }
  2303. SET_MAKE=
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2306. $as_echo "no" >&6; }
  2307. SET_MAKE="MAKE=${MAKE-make}"
  2308. fi
  2309. rm -rf .tst 2>/dev/null
  2310. mkdir .tst 2>/dev/null
  2311. if test -d .tst; then
  2312. am__leading_dot=.
  2313. else
  2314. am__leading_dot=_
  2315. fi
  2316. rmdir .tst 2>/dev/null
  2317. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2318. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2319. # is not polluted with repeated "-I."
  2320. am__isrc=' -I$(srcdir)'
  2321. # test to see if srcdir already configured
  2322. if test -f $srcdir/config.status; then
  2323. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2324. fi
  2325. fi
  2326. # test whether we have cygpath
  2327. if test -z "$CYGPATH_W"; then
  2328. if (cygpath --version) >/dev/null 2>/dev/null; then
  2329. CYGPATH_W='cygpath -w'
  2330. else
  2331. CYGPATH_W=echo
  2332. fi
  2333. fi
  2334. # Define the identity of the package.
  2335. PACKAGE='xdriinfo'
  2336. VERSION='1.0.5'
  2337. cat >>confdefs.h <<_ACEOF
  2338. #define PACKAGE "$PACKAGE"
  2339. _ACEOF
  2340. cat >>confdefs.h <<_ACEOF
  2341. #define VERSION "$VERSION"
  2342. _ACEOF
  2343. # Some tools Automake needs.
  2344. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2345. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2346. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2347. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2348. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2349. # For better backward compatibility. To be removed once Automake 1.9.x
  2350. # dies out for good. For more background, see:
  2351. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2352. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2353. mkdir_p='$(MKDIR_P)'
  2354. # We need awk for the "check" target. The system "awk" is bad on
  2355. # some platforms.
  2356. # Always define AMTAR for backward compatibility. Yes, it's still used
  2357. # in the wild :-( We should find a proper way to deprecate it ...
  2358. AMTAR='$${TAR-tar}'
  2359. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2360. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2361. DEPDIR="${am__leading_dot}deps"
  2362. ac_config_commands="$ac_config_commands depfiles"
  2363. am_make=${MAKE-make}
  2364. cat > confinc << 'END'
  2365. am__doit:
  2366. @echo this is the am__doit target
  2367. .PHONY: am__doit
  2368. END
  2369. # If we don't find an include directive, just comment out the code.
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2371. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2372. am__include="#"
  2373. am__quote=
  2374. _am_result=none
  2375. # First try GNU make style include.
  2376. echo "include confinc" > confmf
  2377. # Ignore all kinds of additional output from 'make'.
  2378. case `$am_make -s -f confmf 2> /dev/null` in #(
  2379. *the\ am__doit\ target*)
  2380. am__include=include
  2381. am__quote=
  2382. _am_result=GNU
  2383. ;;
  2384. esac
  2385. # Now try BSD make style include.
  2386. if test "$am__include" = "#"; then
  2387. echo '.include "confinc"' > confmf
  2388. case `$am_make -s -f confmf 2> /dev/null` in #(
  2389. *the\ am__doit\ target*)
  2390. am__include=.include
  2391. am__quote="\""
  2392. _am_result=BSD
  2393. ;;
  2394. esac
  2395. fi
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2397. $as_echo "$_am_result" >&6; }
  2398. rm -f confinc confmf
  2399. # Check whether --enable-dependency-tracking was given.
  2400. if test "${enable_dependency_tracking+set}" = set; then :
  2401. enableval=$enable_dependency_tracking;
  2402. fi
  2403. if test "x$enable_dependency_tracking" != xno; then
  2404. am_depcomp="$ac_aux_dir/depcomp"
  2405. AMDEPBACKSLASH='\'
  2406. am__nodep='_no'
  2407. fi
  2408. if test "x$enable_dependency_tracking" != xno; then
  2409. AMDEP_TRUE=
  2410. AMDEP_FALSE='#'
  2411. else
  2412. AMDEP_TRUE='#'
  2413. AMDEP_FALSE=
  2414. fi
  2415. ac_ext=c
  2416. ac_cpp='$CPP $CPPFLAGS'
  2417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2420. if test -n "$ac_tool_prefix"; then
  2421. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2422. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2424. $as_echo_n "checking for $ac_word... " >&6; }
  2425. if ${ac_cv_prog_CC+:} false; then :
  2426. $as_echo_n "(cached) " >&6
  2427. else
  2428. if test -n "$CC"; then
  2429. ac_cv_prog_CC="$CC" # Let the user override the test.
  2430. else
  2431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2432. for as_dir in $PATH
  2433. do
  2434. IFS=$as_save_IFS
  2435. test -z "$as_dir" && as_dir=.
  2436. for ac_exec_ext in '' $ac_executable_extensions; do
  2437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2438. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2440. break 2
  2441. fi
  2442. done
  2443. done
  2444. IFS=$as_save_IFS
  2445. fi
  2446. fi
  2447. CC=$ac_cv_prog_CC
  2448. if test -n "$CC"; then
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2450. $as_echo "$CC" >&6; }
  2451. else
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2453. $as_echo "no" >&6; }
  2454. fi
  2455. fi
  2456. if test -z "$ac_cv_prog_CC"; then
  2457. ac_ct_CC=$CC
  2458. # Extract the first word of "gcc", so it can be a program name with args.
  2459. set dummy gcc; ac_word=$2
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2461. $as_echo_n "checking for $ac_word... " >&6; }
  2462. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test -n "$ac_ct_CC"; then
  2466. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2467. else
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. ac_cv_prog_ac_ct_CC="gcc"
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2477. break 2
  2478. fi
  2479. done
  2480. done
  2481. IFS=$as_save_IFS
  2482. fi
  2483. fi
  2484. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2485. if test -n "$ac_ct_CC"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2487. $as_echo "$ac_ct_CC" >&6; }
  2488. else
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. fi
  2492. if test "x$ac_ct_CC" = x; then
  2493. CC=""
  2494. else
  2495. case $cross_compiling:$ac_tool_warned in
  2496. yes:)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2499. ac_tool_warned=yes ;;
  2500. esac
  2501. CC=$ac_ct_CC
  2502. fi
  2503. else
  2504. CC="$ac_cv_prog_CC"
  2505. fi
  2506. if test -z "$CC"; then
  2507. if test -n "$ac_tool_prefix"; then
  2508. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2509. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511. $as_echo_n "checking for $ac_word... " >&6; }
  2512. if ${ac_cv_prog_CC+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$CC"; then
  2516. ac_cv_prog_CC="$CC" # Let the user override the test.
  2517. else
  2518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2519. for as_dir in $PATH
  2520. do
  2521. IFS=$as_save_IFS
  2522. test -z "$as_dir" && as_dir=.
  2523. for ac_exec_ext in '' $ac_executable_extensions; do
  2524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2525. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2527. break 2
  2528. fi
  2529. done
  2530. done
  2531. IFS=$as_save_IFS
  2532. fi
  2533. fi
  2534. CC=$ac_cv_prog_CC
  2535. if test -n "$CC"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2537. $as_echo "$CC" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. fi
  2543. fi
  2544. if test -z "$CC"; then
  2545. # Extract the first word of "cc", so it can be a program name with args.
  2546. set dummy cc; ac_word=$2
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2548. $as_echo_n "checking for $ac_word... " >&6; }
  2549. if ${ac_cv_prog_CC+:} false; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. if test -n "$CC"; then
  2553. ac_cv_prog_CC="$CC" # Let the user override the test.
  2554. else
  2555. ac_prog_rejected=no
  2556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2557. for as_dir in $PATH
  2558. do
  2559. IFS=$as_save_IFS
  2560. test -z "$as_dir" && as_dir=.
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2563. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2564. ac_prog_rejected=yes
  2565. continue
  2566. fi
  2567. ac_cv_prog_CC="cc"
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2569. break 2
  2570. fi
  2571. done
  2572. done
  2573. IFS=$as_save_IFS
  2574. if test $ac_prog_rejected = yes; then
  2575. # We found a bogon in the path, so make sure we never use it.
  2576. set dummy $ac_cv_prog_CC
  2577. shift
  2578. if test $# != 0; then
  2579. # We chose a different compiler from the bogus one.
  2580. # However, it has the same basename, so the bogon will be chosen
  2581. # first if we set CC to just the basename; use the full file name.
  2582. shift
  2583. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2584. fi
  2585. fi
  2586. fi
  2587. fi
  2588. CC=$ac_cv_prog_CC
  2589. if test -n "$CC"; then
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2591. $as_echo "$CC" >&6; }
  2592. else
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. fi
  2596. fi
  2597. if test -z "$CC"; then
  2598. if test -n "$ac_tool_prefix"; then
  2599. for ac_prog in cl.exe
  2600. do
  2601. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2602. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2604. $as_echo_n "checking for $ac_word... " >&6; }
  2605. if ${ac_cv_prog_CC+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. if test -n "$CC"; then
  2609. ac_cv_prog_CC="$CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. IFS=$as_save_IFS
  2625. fi
  2626. fi
  2627. CC=$ac_cv_prog_CC
  2628. if test -n "$CC"; then
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2630. $as_echo "$CC" >&6; }
  2631. else
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2633. $as_echo "no" >&6; }
  2634. fi
  2635. test -n "$CC" && break
  2636. done
  2637. fi
  2638. if test -z "$CC"; then
  2639. ac_ct_CC=$CC
  2640. for ac_prog in cl.exe
  2641. do
  2642. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2643. set dummy $ac_prog; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$ac_ct_CC"; then
  2650. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. ac_cv_prog_ac_ct_CC="$ac_prog"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2669. if test -n "$ac_ct_CC"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2671. $as_echo "$ac_ct_CC" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. test -n "$ac_ct_CC" && break
  2677. done
  2678. if test "x$ac_ct_CC" = x; then
  2679. CC=""
  2680. else
  2681. case $cross_compiling:$ac_tool_warned in
  2682. yes:)
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2685. ac_tool_warned=yes ;;
  2686. esac
  2687. CC=$ac_ct_CC
  2688. fi
  2689. fi
  2690. fi
  2691. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2693. as_fn_error $? "no acceptable C compiler found in \$PATH
  2694. See \`config.log' for more details" "$LINENO" 5; }
  2695. # Provide some information about the compiler.
  2696. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2697. set X $ac_compile
  2698. ac_compiler=$2
  2699. for ac_option in --version -v -V -qversion; do
  2700. { { ac_try="$ac_compiler $ac_option >&5"
  2701. case "(($ac_try" in
  2702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2703. *) ac_try_echo=$ac_try;;
  2704. esac
  2705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2706. $as_echo "$ac_try_echo"; } >&5
  2707. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2708. ac_status=$?
  2709. if test -s conftest.err; then
  2710. sed '10a\
  2711. ... rest of stderr output deleted ...
  2712. 10q' conftest.err >conftest.er1
  2713. cat conftest.er1 >&5
  2714. fi
  2715. rm -f conftest.er1 conftest.err
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2717. test $ac_status = 0; }
  2718. done
  2719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2720. /* end confdefs.h. */
  2721. int
  2722. main ()
  2723. {
  2724. ;
  2725. return 0;
  2726. }
  2727. _ACEOF
  2728. ac_clean_files_save=$ac_clean_files
  2729. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2730. # Try to create an executable without -o first, disregard a.out.
  2731. # It will help us diagnose broken compilers, and finding out an intuition
  2732. # of exeext.
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2734. $as_echo_n "checking whether the C compiler works... " >&6; }
  2735. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2736. # The possible output files:
  2737. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2738. ac_rmfiles=
  2739. for ac_file in $ac_files
  2740. do
  2741. case $ac_file in
  2742. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2743. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2744. esac
  2745. done
  2746. rm -f $ac_rmfiles
  2747. if { { ac_try="$ac_link_default"
  2748. case "(($ac_try" in
  2749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2750. *) ac_try_echo=$ac_try;;
  2751. esac
  2752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2753. $as_echo "$ac_try_echo"; } >&5
  2754. (eval "$ac_link_default") 2>&5
  2755. ac_status=$?
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2757. test $ac_status = 0; }; then :
  2758. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2759. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2760. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2761. # so that the user can short-circuit this test for compilers unknown to
  2762. # Autoconf.
  2763. for ac_file in $ac_files ''
  2764. do
  2765. test -f "$ac_file" || continue
  2766. case $ac_file in
  2767. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2768. ;;
  2769. [ab].out )
  2770. # We found the default executable, but exeext='' is most
  2771. # certainly right.
  2772. break;;
  2773. *.* )
  2774. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2775. then :; else
  2776. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2777. fi
  2778. # We set ac_cv_exeext here because the later test for it is not
  2779. # safe: cross compilers may not add the suffix if given an `-o'
  2780. # argument, so we may need to know it at that point already.
  2781. # Even if this section looks crufty: it has the advantage of
  2782. # actually working.
  2783. break;;
  2784. * )
  2785. break;;
  2786. esac
  2787. done
  2788. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2789. else
  2790. ac_file=''
  2791. fi
  2792. if test -z "$ac_file"; then :
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. $as_echo "$as_me: failed program was:" >&5
  2796. sed 's/^/| /' conftest.$ac_ext >&5
  2797. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2798. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2799. as_fn_error 77 "C compiler cannot create executables
  2800. See \`config.log' for more details" "$LINENO" 5; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2803. $as_echo "yes" >&6; }
  2804. fi
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2806. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2808. $as_echo "$ac_file" >&6; }
  2809. ac_exeext=$ac_cv_exeext
  2810. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2811. ac_clean_files=$ac_clean_files_save
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2813. $as_echo_n "checking for suffix of executables... " >&6; }
  2814. if { { ac_try="$ac_link"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2820. $as_echo "$ac_try_echo"; } >&5
  2821. (eval "$ac_link") 2>&5
  2822. ac_status=$?
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2824. test $ac_status = 0; }; then :
  2825. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2826. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2827. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2828. # `rm'.
  2829. for ac_file in conftest.exe conftest conftest.*; do
  2830. test -f "$ac_file" || continue
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2833. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2834. break;;
  2835. * ) break;;
  2836. esac
  2837. done
  2838. else
  2839. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2841. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2842. See \`config.log' for more details" "$LINENO" 5; }
  2843. fi
  2844. rm -f conftest conftest$ac_cv_exeext
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2846. $as_echo "$ac_cv_exeext" >&6; }
  2847. rm -f conftest.$ac_ext
  2848. EXEEXT=$ac_cv_exeext
  2849. ac_exeext=$EXEEXT
  2850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2851. /* end confdefs.h. */
  2852. #include <stdio.h>
  2853. int
  2854. main ()
  2855. {
  2856. FILE *f = fopen ("conftest.out", "w");
  2857. return ferror (f) || fclose (f) != 0;
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. ac_clean_files="$ac_clean_files conftest.out"
  2863. # Check that the compiler produces executables we can run. If not, either
  2864. # the compiler is broken, or we cross compile.
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2866. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2867. if test "$cross_compiling" != yes; then
  2868. { { ac_try="$ac_link"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_link") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }
  2879. if { ac_try='./conftest$ac_cv_exeext'
  2880. { { case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2885. $as_echo "$ac_try_echo"; } >&5
  2886. (eval "$ac_try") 2>&5
  2887. ac_status=$?
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2889. test $ac_status = 0; }; }; then
  2890. cross_compiling=no
  2891. else
  2892. if test "$cross_compiling" = maybe; then
  2893. cross_compiling=yes
  2894. else
  2895. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2896. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2897. as_fn_error $? "cannot run C compiled programs.
  2898. If you meant to cross compile, use \`--host'.
  2899. See \`config.log' for more details" "$LINENO" 5; }
  2900. fi
  2901. fi
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2904. $as_echo "$cross_compiling" >&6; }
  2905. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2906. ac_clean_files=$ac_clean_files_save
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2908. $as_echo_n "checking for suffix of object files... " >&6; }
  2909. if ${ac_cv_objext+:} false; then :
  2910. $as_echo_n "(cached) " >&6
  2911. else
  2912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2913. /* end confdefs.h. */
  2914. int
  2915. main ()
  2916. {
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. rm -f conftest.o conftest.obj
  2922. if { { ac_try="$ac_compile"
  2923. case "(($ac_try" in
  2924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925. *) ac_try_echo=$ac_try;;
  2926. esac
  2927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2928. $as_echo "$ac_try_echo"; } >&5
  2929. (eval "$ac_compile") 2>&5
  2930. ac_status=$?
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2932. test $ac_status = 0; }; then :
  2933. for ac_file in conftest.o conftest.obj conftest.*; do
  2934. test -f "$ac_file" || continue;
  2935. case $ac_file in
  2936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2937. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2938. break;;
  2939. esac
  2940. done
  2941. else
  2942. $as_echo "$as_me: failed program was:" >&5
  2943. sed 's/^/| /' conftest.$ac_ext >&5
  2944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2946. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2947. See \`config.log' for more details" "$LINENO" 5; }
  2948. fi
  2949. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2952. $as_echo "$ac_cv_objext" >&6; }
  2953. OBJEXT=$ac_cv_objext
  2954. ac_objext=$OBJEXT
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2956. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2957. if ${ac_cv_c_compiler_gnu+:} false; then :
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2961. /* end confdefs.h. */
  2962. int
  2963. main ()
  2964. {
  2965. #ifndef __GNUC__
  2966. choke me
  2967. #endif
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. if ac_fn_c_try_compile "$LINENO"; then :
  2973. ac_compiler_gnu=yes
  2974. else
  2975. ac_compiler_gnu=no
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2979. fi
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2981. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2982. if test $ac_compiler_gnu = yes; then
  2983. GCC=yes
  2984. else
  2985. GCC=
  2986. fi
  2987. ac_test_CFLAGS=${CFLAGS+set}
  2988. ac_save_CFLAGS=$CFLAGS
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2990. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2991. if ${ac_cv_prog_cc_g+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. ac_save_c_werror_flag=$ac_c_werror_flag
  2995. ac_c_werror_flag=yes
  2996. ac_cv_prog_cc_g=no
  2997. CFLAGS="-g"
  2998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2999. /* end confdefs.h. */
  3000. int
  3001. main ()
  3002. {
  3003. ;
  3004. return 0;
  3005. }
  3006. _ACEOF
  3007. if ac_fn_c_try_compile "$LINENO"; then :
  3008. ac_cv_prog_cc_g=yes
  3009. else
  3010. CFLAGS=""
  3011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3012. /* end confdefs.h. */
  3013. int
  3014. main ()
  3015. {
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. if ac_fn_c_try_compile "$LINENO"; then :
  3021. else
  3022. ac_c_werror_flag=$ac_save_c_werror_flag
  3023. CFLAGS="-g"
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. if ac_fn_c_try_compile "$LINENO"; then :
  3034. ac_cv_prog_cc_g=yes
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3037. fi
  3038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3041. ac_c_werror_flag=$ac_save_c_werror_flag
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3044. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3045. if test "$ac_test_CFLAGS" = set; then
  3046. CFLAGS=$ac_save_CFLAGS
  3047. elif test $ac_cv_prog_cc_g = yes; then
  3048. if test "$GCC" = yes; then
  3049. CFLAGS="-g -O2"
  3050. else
  3051. CFLAGS="-g"
  3052. fi
  3053. else
  3054. if test "$GCC" = yes; then
  3055. CFLAGS="-O2"
  3056. else
  3057. CFLAGS=
  3058. fi
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3061. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3062. if ${ac_cv_prog_cc_c89+:} false; then :
  3063. $as_echo_n "(cached) " >&6
  3064. else
  3065. ac_cv_prog_cc_c89=no
  3066. ac_save_CC=$CC
  3067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3068. /* end confdefs.h. */
  3069. #include <stdarg.h>
  3070. #include <stdio.h>
  3071. struct stat;
  3072. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3073. struct buf { int x; };
  3074. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3075. static char *e (p, i)
  3076. char **p;
  3077. int i;
  3078. {
  3079. return p[i];
  3080. }
  3081. static char *f (char * (*g) (char **, int), char **p, ...)
  3082. {
  3083. char *s;
  3084. va_list v;
  3085. va_start (v,p);
  3086. s = g (p, va_arg (v,int));
  3087. va_end (v);
  3088. return s;
  3089. }
  3090. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3091. function prototypes and stuff, but not '\xHH' hex character constants.
  3092. These don't provoke an error unfortunately, instead are silently treated
  3093. as 'x'. The following induces an error, until -std is added to get
  3094. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3095. array size at least. It's necessary to write '\x00'==0 to get something
  3096. that's true only with -std. */
  3097. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3098. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3099. inside strings and character constants. */
  3100. #define FOO(x) 'x'
  3101. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3102. int test (int i, double x);
  3103. struct s1 {int (*f) (int a);};
  3104. struct s2 {int (*f) (double a);};
  3105. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3106. int argc;
  3107. char **argv;
  3108. int
  3109. main ()
  3110. {
  3111. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3117. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3118. do
  3119. CC="$ac_save_CC $ac_arg"
  3120. if ac_fn_c_try_compile "$LINENO"; then :
  3121. ac_cv_prog_cc_c89=$ac_arg
  3122. fi
  3123. rm -f core conftest.err conftest.$ac_objext
  3124. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3125. done
  3126. rm -f conftest.$ac_ext
  3127. CC=$ac_save_CC
  3128. fi
  3129. # AC_CACHE_VAL
  3130. case "x$ac_cv_prog_cc_c89" in
  3131. x)
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3133. $as_echo "none needed" >&6; } ;;
  3134. xno)
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3136. $as_echo "unsupported" >&6; } ;;
  3137. *)
  3138. CC="$CC $ac_cv_prog_cc_c89"
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3140. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3141. esac
  3142. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3143. fi
  3144. ac_ext=c
  3145. ac_cpp='$CPP $CPPFLAGS'
  3146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3149. depcc="$CC" am_compiler_list=
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3151. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3152. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3153. $as_echo_n "(cached) " >&6
  3154. else
  3155. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3156. # We make a subdir and do the tests there. Otherwise we can end up
  3157. # making bogus files that we don't know about and never remove. For
  3158. # instance it was reported that on HP-UX the gcc test will end up
  3159. # making a dummy file named 'D' -- because '-MD' means "put the output
  3160. # in D".
  3161. rm -rf conftest.dir
  3162. mkdir conftest.dir
  3163. # Copy depcomp to subdir because otherwise we won't find it if we're
  3164. # using a relative directory.
  3165. cp "$am_depcomp" conftest.dir
  3166. cd conftest.dir
  3167. # We will build objects and dependencies in a subdirectory because
  3168. # it helps to detect inapplicable dependency modes. For instance
  3169. # both Tru64's cc and ICC support -MD to output dependencies as a
  3170. # side effect of compilation, but ICC will put the dependencies in
  3171. # the current directory while Tru64 will put them in the object
  3172. # directory.
  3173. mkdir sub
  3174. am_cv_CC_dependencies_compiler_type=none
  3175. if test "$am_compiler_list" = ""; then
  3176. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3177. fi
  3178. am__universal=false
  3179. case " $depcc " in #(
  3180. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3181. esac
  3182. for depmode in $am_compiler_list; do
  3183. # Setup a source with many dependencies, because some compilers
  3184. # like to wrap large dependency lists on column 80 (with \), and
  3185. # we should not choose a depcomp mode which is confused by this.
  3186. #
  3187. # We need to recreate these files for each test, as the compiler may
  3188. # overwrite some of them when testing with obscure command lines.
  3189. # This happens at least with the AIX C compiler.
  3190. : > sub/conftest.c
  3191. for i in 1 2 3 4 5 6; do
  3192. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3193. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3194. # Solaris 10 /bin/sh.
  3195. echo '/* dummy */' > sub/conftst$i.h
  3196. done
  3197. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3198. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3199. # mode. It turns out that the SunPro C++ compiler does not properly
  3200. # handle '-M -o', and we need to detect this. Also, some Intel
  3201. # versions had trouble with output in subdirs.
  3202. am__obj=sub/conftest.${OBJEXT-o}
  3203. am__minus_obj="-o $am__obj"
  3204. case $depmode in
  3205. gcc)
  3206. # This depmode causes a compiler race in universal mode.
  3207. test "$am__universal" = false || continue
  3208. ;;
  3209. nosideeffect)
  3210. # After this tag, mechanisms are not by side-effect, so they'll
  3211. # only be used when explicitly requested.
  3212. if test "x$enable_dependency_tracking" = xyes; then
  3213. continue
  3214. else
  3215. break
  3216. fi
  3217. ;;
  3218. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3219. # This compiler won't grok '-c -o', but also, the minuso test has
  3220. # not run yet. These depmodes are late enough in the game, and
  3221. # so weak that their functioning should not be impacted.
  3222. am__obj=conftest.${OBJEXT-o}
  3223. am__minus_obj=
  3224. ;;
  3225. none) break ;;
  3226. esac
  3227. if depmode=$depmode \
  3228. source=sub/conftest.c object=$am__obj \
  3229. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3230. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3231. >/dev/null 2>conftest.err &&
  3232. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3233. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3234. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3235. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3236. # icc doesn't choke on unknown options, it will just issue warnings
  3237. # or remarks (even with -Werror). So we grep stderr for any message
  3238. # that says an option was ignored or not supported.
  3239. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3240. # icc: Command line warning: ignoring option '-M'; no argument required
  3241. # The diagnosis changed in icc 8.0:
  3242. # icc: Command line remark: option '-MP' not supported
  3243. if (grep 'ignoring option' conftest.err ||
  3244. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3245. am_cv_CC_dependencies_compiler_type=$depmode
  3246. break
  3247. fi
  3248. fi
  3249. done
  3250. cd ..
  3251. rm -rf conftest.dir
  3252. else
  3253. am_cv_CC_dependencies_compiler_type=none
  3254. fi
  3255. fi
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3257. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3258. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3259. if
  3260. test "x$enable_dependency_tracking" != xno \
  3261. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3262. am__fastdepCC_TRUE=
  3263. am__fastdepCC_FALSE='#'
  3264. else
  3265. am__fastdepCC_TRUE='#'
  3266. am__fastdepCC_FALSE=
  3267. fi
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3269. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3270. if ${ac_cv_prog_cc_c99+:} false; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. ac_cv_prog_cc_c99=no
  3274. ac_save_CC=$CC
  3275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. #include <stdarg.h>
  3278. #include <stdbool.h>
  3279. #include <stdlib.h>
  3280. #include <wchar.h>
  3281. #include <stdio.h>
  3282. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3283. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3284. #define showlist(...) puts (#__VA_ARGS__)
  3285. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3286. static void
  3287. test_varargs_macros (void)
  3288. {
  3289. int x = 1234;
  3290. int y = 5678;
  3291. debug ("Flag");
  3292. debug ("X = %d\n", x);
  3293. showlist (The first, second, and third items.);
  3294. report (x>y, "x is %d but y is %d", x, y);
  3295. }
  3296. // Check long long types.
  3297. #define BIG64 18446744073709551615ull
  3298. #define BIG32 4294967295ul
  3299. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3300. #if !BIG_OK
  3301. your preprocessor is broken;
  3302. #endif
  3303. #if BIG_OK
  3304. #else
  3305. your preprocessor is broken;
  3306. #endif
  3307. static long long int bignum = -9223372036854775807LL;
  3308. static unsigned long long int ubignum = BIG64;
  3309. struct incomplete_array
  3310. {
  3311. int datasize;
  3312. double data[];
  3313. };
  3314. struct named_init {
  3315. int number;
  3316. const wchar_t *name;
  3317. double average;
  3318. };
  3319. typedef const char *ccp;
  3320. static inline int
  3321. test_restrict (ccp restrict text)
  3322. {
  3323. // See if C++-style comments work.
  3324. // Iterate through items via the restricted pointer.
  3325. // Also check for declarations in for loops.
  3326. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3327. continue;
  3328. return 0;
  3329. }
  3330. // Check varargs and va_copy.
  3331. static void
  3332. test_varargs (const char *format, ...)
  3333. {
  3334. va_list args;
  3335. va_start (args, format);
  3336. va_list args_copy;
  3337. va_copy (args_copy, args);
  3338. const char *str;
  3339. int number;
  3340. float fnumber;
  3341. while (*format)
  3342. {
  3343. switch (*format++)
  3344. {
  3345. case 's': // string
  3346. str = va_arg (args_copy, const char *);
  3347. break;
  3348. case 'd': // int
  3349. number = va_arg (args_copy, int);
  3350. break;
  3351. case 'f': // float
  3352. fnumber = va_arg (args_copy, double);
  3353. break;
  3354. default:
  3355. break;
  3356. }
  3357. }
  3358. va_end (args_copy);
  3359. va_end (args);
  3360. }
  3361. int
  3362. main ()
  3363. {
  3364. // Check bool.
  3365. _Bool success = false;
  3366. // Check restrict.
  3367. if (test_restrict ("String literal") == 0)
  3368. success = true;
  3369. char *restrict newvar = "Another string";
  3370. // Check varargs.
  3371. test_varargs ("s, d' f .", "string", 65, 34.234);
  3372. test_varargs_macros ();
  3373. // Check flexible array members.
  3374. struct incomplete_array *ia =
  3375. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3376. ia->datasize = 10;
  3377. for (int i = 0; i < ia->datasize; ++i)
  3378. ia->data[i] = i * 1.234;
  3379. // Check named initializers.
  3380. struct named_init ni = {
  3381. .number = 34,
  3382. .name = L"Test wide string",
  3383. .average = 543.34343,
  3384. };
  3385. ni.number = 58;
  3386. int dynamic_array[ni.number];
  3387. dynamic_array[ni.number - 1] = 543;
  3388. // work around unused variable warnings
  3389. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3390. || dynamic_array[ni.number - 1] != 543);
  3391. ;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3396. do
  3397. CC="$ac_save_CC $ac_arg"
  3398. if ac_fn_c_try_compile "$LINENO"; then :
  3399. ac_cv_prog_cc_c99=$ac_arg
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext
  3402. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3403. done
  3404. rm -f conftest.$ac_ext
  3405. CC=$ac_save_CC
  3406. fi
  3407. # AC_CACHE_VAL
  3408. case "x$ac_cv_prog_cc_c99" in
  3409. x)
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3411. $as_echo "none needed" >&6; } ;;
  3412. xno)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3414. $as_echo "unsupported" >&6; } ;;
  3415. *)
  3416. CC="$CC $ac_cv_prog_cc_c99"
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3418. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3419. esac
  3420. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3421. fi
  3422. ac_ext=c
  3423. ac_cpp='$CPP $CPPFLAGS'
  3424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3428. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3429. # On Suns, sometimes $CPP names a directory.
  3430. if test -n "$CPP" && test -d "$CPP"; then
  3431. CPP=
  3432. fi
  3433. if test -z "$CPP"; then
  3434. if ${ac_cv_prog_CPP+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. # Double quotes because CPP needs to be expanded
  3438. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3439. do
  3440. ac_preproc_ok=false
  3441. for ac_c_preproc_warn_flag in '' yes
  3442. do
  3443. # Use a header file that comes with gcc, so configuring glibc
  3444. # with a fresh cross-compiler works.
  3445. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3446. # <limits.h> exists even on freestanding compilers.
  3447. # On the NeXT, cc -E runs the code through the compiler's parser,
  3448. # not just through cpp. "Syntax error" is here to catch this case.
  3449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3450. /* end confdefs.h. */
  3451. #ifdef __STDC__
  3452. # include <limits.h>
  3453. #else
  3454. # include <assert.h>
  3455. #endif
  3456. Syntax error
  3457. _ACEOF
  3458. if ac_fn_c_try_cpp "$LINENO"; then :
  3459. else
  3460. # Broken: fails on valid input.
  3461. continue
  3462. fi
  3463. rm -f conftest.err conftest.i conftest.$ac_ext
  3464. # OK, works on sane cases. Now check whether nonexistent headers
  3465. # can be detected and how.
  3466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3467. /* end confdefs.h. */
  3468. #include <ac_nonexistent.h>
  3469. _ACEOF
  3470. if ac_fn_c_try_cpp "$LINENO"; then :
  3471. # Broken: success on invalid input.
  3472. continue
  3473. else
  3474. # Passes both tests.
  3475. ac_preproc_ok=:
  3476. break
  3477. fi
  3478. rm -f conftest.err conftest.i conftest.$ac_ext
  3479. done
  3480. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3481. rm -f conftest.i conftest.err conftest.$ac_ext
  3482. if $ac_preproc_ok; then :
  3483. break
  3484. fi
  3485. done
  3486. ac_cv_prog_CPP=$CPP
  3487. fi
  3488. CPP=$ac_cv_prog_CPP
  3489. else
  3490. ac_cv_prog_CPP=$CPP
  3491. fi
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3493. $as_echo "$CPP" >&6; }
  3494. ac_preproc_ok=false
  3495. for ac_c_preproc_warn_flag in '' yes
  3496. do
  3497. # Use a header file that comes with gcc, so configuring glibc
  3498. # with a fresh cross-compiler works.
  3499. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3500. # <limits.h> exists even on freestanding compilers.
  3501. # On the NeXT, cc -E runs the code through the compiler's parser,
  3502. # not just through cpp. "Syntax error" is here to catch this case.
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. #ifdef __STDC__
  3506. # include <limits.h>
  3507. #else
  3508. # include <assert.h>
  3509. #endif
  3510. Syntax error
  3511. _ACEOF
  3512. if ac_fn_c_try_cpp "$LINENO"; then :
  3513. else
  3514. # Broken: fails on valid input.
  3515. continue
  3516. fi
  3517. rm -f conftest.err conftest.i conftest.$ac_ext
  3518. # OK, works on sane cases. Now check whether nonexistent headers
  3519. # can be detected and how.
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. #include <ac_nonexistent.h>
  3523. _ACEOF
  3524. if ac_fn_c_try_cpp "$LINENO"; then :
  3525. # Broken: success on invalid input.
  3526. continue
  3527. else
  3528. # Passes both tests.
  3529. ac_preproc_ok=:
  3530. break
  3531. fi
  3532. rm -f conftest.err conftest.i conftest.$ac_ext
  3533. done
  3534. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3535. rm -f conftest.i conftest.err conftest.$ac_ext
  3536. if $ac_preproc_ok; then :
  3537. else
  3538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3540. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3541. See \`config.log' for more details" "$LINENO" 5; }
  3542. fi
  3543. ac_ext=c
  3544. ac_cpp='$CPP $CPPFLAGS'
  3545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3549. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3550. if ${ac_cv_path_GREP+:} false; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. if test -z "$GREP"; then
  3554. ac_path_GREP_found=false
  3555. # Loop through the user's path and test for each of PROGNAME-LIST
  3556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3557. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3558. do
  3559. IFS=$as_save_IFS
  3560. test -z "$as_dir" && as_dir=.
  3561. for ac_prog in grep ggrep; do
  3562. for ac_exec_ext in '' $ac_executable_extensions; do
  3563. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3564. as_fn_executable_p "$ac_path_GREP" || continue
  3565. # Check for GNU ac_path_GREP and select it if it is found.
  3566. # Check for GNU $ac_path_GREP
  3567. case `"$ac_path_GREP" --version 2>&1` in
  3568. *GNU*)
  3569. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3570. *)
  3571. ac_count=0
  3572. $as_echo_n 0123456789 >"conftest.in"
  3573. while :
  3574. do
  3575. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3576. mv "conftest.tmp" "conftest.in"
  3577. cp "conftest.in" "conftest.nl"
  3578. $as_echo 'GREP' >> "conftest.nl"
  3579. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3580. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3581. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3582. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3583. # Best one so far, save it but keep looking for a better one
  3584. ac_cv_path_GREP="$ac_path_GREP"
  3585. ac_path_GREP_max=$ac_count
  3586. fi
  3587. # 10*(2^10) chars as input seems more than enough
  3588. test $ac_count -gt 10 && break
  3589. done
  3590. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3591. esac
  3592. $ac_path_GREP_found && break 3
  3593. done
  3594. done
  3595. done
  3596. IFS=$as_save_IFS
  3597. if test -z "$ac_cv_path_GREP"; then
  3598. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3599. fi
  3600. else
  3601. ac_cv_path_GREP=$GREP
  3602. fi
  3603. fi
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3605. $as_echo "$ac_cv_path_GREP" >&6; }
  3606. GREP="$ac_cv_path_GREP"
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3608. $as_echo_n "checking for egrep... " >&6; }
  3609. if ${ac_cv_path_EGREP+:} false; then :
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3613. then ac_cv_path_EGREP="$GREP -E"
  3614. else
  3615. if test -z "$EGREP"; then
  3616. ac_path_EGREP_found=false
  3617. # Loop through the user's path and test for each of PROGNAME-LIST
  3618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3619. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3620. do
  3621. IFS=$as_save_IFS
  3622. test -z "$as_dir" && as_dir=.
  3623. for ac_prog in egrep; do
  3624. for ac_exec_ext in '' $ac_executable_extensions; do
  3625. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3626. as_fn_executable_p "$ac_path_EGREP" || continue
  3627. # Check for GNU ac_path_EGREP and select it if it is found.
  3628. # Check for GNU $ac_path_EGREP
  3629. case `"$ac_path_EGREP" --version 2>&1` in
  3630. *GNU*)
  3631. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3632. *)
  3633. ac_count=0
  3634. $as_echo_n 0123456789 >"conftest.in"
  3635. while :
  3636. do
  3637. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3638. mv "conftest.tmp" "conftest.in"
  3639. cp "conftest.in" "conftest.nl"
  3640. $as_echo 'EGREP' >> "conftest.nl"
  3641. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3642. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3643. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3644. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3645. # Best one so far, save it but keep looking for a better one
  3646. ac_cv_path_EGREP="$ac_path_EGREP"
  3647. ac_path_EGREP_max=$ac_count
  3648. fi
  3649. # 10*(2^10) chars as input seems more than enough
  3650. test $ac_count -gt 10 && break
  3651. done
  3652. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3653. esac
  3654. $ac_path_EGREP_found && break 3
  3655. done
  3656. done
  3657. done
  3658. IFS=$as_save_IFS
  3659. if test -z "$ac_cv_path_EGREP"; then
  3660. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3661. fi
  3662. else
  3663. ac_cv_path_EGREP=$EGREP
  3664. fi
  3665. fi
  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3668. $as_echo "$ac_cv_path_EGREP" >&6; }
  3669. EGREP="$ac_cv_path_EGREP"
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3671. $as_echo_n "checking for ANSI C header files... " >&6; }
  3672. if ${ac_cv_header_stdc+:} false; then :
  3673. $as_echo_n "(cached) " >&6
  3674. else
  3675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3676. /* end confdefs.h. */
  3677. #include <stdlib.h>
  3678. #include <stdarg.h>
  3679. #include <string.h>
  3680. #include <float.h>
  3681. int
  3682. main ()
  3683. {
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. if ac_fn_c_try_compile "$LINENO"; then :
  3689. ac_cv_header_stdc=yes
  3690. else
  3691. ac_cv_header_stdc=no
  3692. fi
  3693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3694. if test $ac_cv_header_stdc = yes; then
  3695. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3697. /* end confdefs.h. */
  3698. #include <string.h>
  3699. _ACEOF
  3700. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3701. $EGREP "memchr" >/dev/null 2>&1; then :
  3702. else
  3703. ac_cv_header_stdc=no
  3704. fi
  3705. rm -f conftest*
  3706. fi
  3707. if test $ac_cv_header_stdc = yes; then
  3708. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3710. /* end confdefs.h. */
  3711. #include <stdlib.h>
  3712. _ACEOF
  3713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3714. $EGREP "free" >/dev/null 2>&1; then :
  3715. else
  3716. ac_cv_header_stdc=no
  3717. fi
  3718. rm -f conftest*
  3719. fi
  3720. if test $ac_cv_header_stdc = yes; then
  3721. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3722. if test "$cross_compiling" = yes; then :
  3723. :
  3724. else
  3725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3726. /* end confdefs.h. */
  3727. #include <ctype.h>
  3728. #include <stdlib.h>
  3729. #if ((' ' & 0x0FF) == 0x020)
  3730. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3731. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3732. #else
  3733. # define ISLOWER(c) \
  3734. (('a' <= (c) && (c) <= 'i') \
  3735. || ('j' <= (c) && (c) <= 'r') \
  3736. || ('s' <= (c) && (c) <= 'z'))
  3737. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3738. #endif
  3739. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3740. int
  3741. main ()
  3742. {
  3743. int i;
  3744. for (i = 0; i < 256; i++)
  3745. if (XOR (islower (i), ISLOWER (i))
  3746. || toupper (i) != TOUPPER (i))
  3747. return 2;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. if ac_fn_c_try_run "$LINENO"; then :
  3752. else
  3753. ac_cv_header_stdc=no
  3754. fi
  3755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3756. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3757. fi
  3758. fi
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3761. $as_echo "$ac_cv_header_stdc" >&6; }
  3762. if test $ac_cv_header_stdc = yes; then
  3763. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3764. fi
  3765. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3766. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3767. inttypes.h stdint.h unistd.h
  3768. do :
  3769. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3770. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3771. "
  3772. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3773. cat >>confdefs.h <<_ACEOF
  3774. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3775. _ACEOF
  3776. fi
  3777. done
  3778. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3779. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3780. CLANGCC="yes"
  3781. else
  3782. CLANGCC="no"
  3783. fi
  3784. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3785. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3786. INTELCC="yes"
  3787. else
  3788. INTELCC="no"
  3789. fi
  3790. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3791. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3792. SUNCC="yes"
  3793. else
  3794. SUNCC="no"
  3795. fi
  3796. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3797. if test -n "$ac_tool_prefix"; then
  3798. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3799. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3801. $as_echo_n "checking for $ac_word... " >&6; }
  3802. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. case $PKG_CONFIG in
  3806. [\\/]* | ?:[\\/]*)
  3807. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3808. ;;
  3809. *)
  3810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3811. for as_dir in $PATH
  3812. do
  3813. IFS=$as_save_IFS
  3814. test -z "$as_dir" && as_dir=.
  3815. for ac_exec_ext in '' $ac_executable_extensions; do
  3816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3817. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819. break 2
  3820. fi
  3821. done
  3822. done
  3823. IFS=$as_save_IFS
  3824. ;;
  3825. esac
  3826. fi
  3827. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3828. if test -n "$PKG_CONFIG"; then
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3830. $as_echo "$PKG_CONFIG" >&6; }
  3831. else
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. fi
  3836. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3837. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3838. # Extract the first word of "pkg-config", so it can be a program name with args.
  3839. set dummy pkg-config; ac_word=$2
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3841. $as_echo_n "checking for $ac_word... " >&6; }
  3842. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. case $ac_pt_PKG_CONFIG in
  3846. [\\/]* | ?:[\\/]*)
  3847. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3848. ;;
  3849. *)
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. test -z "$as_dir" && as_dir=.
  3855. for ac_exec_ext in '' $ac_executable_extensions; do
  3856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3857. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3859. break 2
  3860. fi
  3861. done
  3862. done
  3863. IFS=$as_save_IFS
  3864. ;;
  3865. esac
  3866. fi
  3867. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3868. if test -n "$ac_pt_PKG_CONFIG"; then
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3870. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3871. else
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3873. $as_echo "no" >&6; }
  3874. fi
  3875. if test "x$ac_pt_PKG_CONFIG" = x; then
  3876. PKG_CONFIG=""
  3877. else
  3878. case $cross_compiling:$ac_tool_warned in
  3879. yes:)
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3882. ac_tool_warned=yes ;;
  3883. esac
  3884. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3885. fi
  3886. else
  3887. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3888. fi
  3889. fi
  3890. if test -n "$PKG_CONFIG"; then
  3891. _pkg_min_version=0.9.0
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3893. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3894. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3896. $as_echo "yes" >&6; }
  3897. else
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. PKG_CONFIG=""
  3901. fi
  3902. fi
  3903. # Make sure we can run config.sub.
  3904. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3905. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3907. $as_echo_n "checking build system type... " >&6; }
  3908. if ${ac_cv_build+:} false; then :
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. ac_build_alias=$build_alias
  3912. test "x$ac_build_alias" = x &&
  3913. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3914. test "x$ac_build_alias" = x &&
  3915. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3916. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3917. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3918. fi
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3920. $as_echo "$ac_cv_build" >&6; }
  3921. case $ac_cv_build in
  3922. *-*-*) ;;
  3923. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3924. esac
  3925. build=$ac_cv_build
  3926. ac_save_IFS=$IFS; IFS='-'
  3927. set x $ac_cv_build
  3928. shift
  3929. build_cpu=$1
  3930. build_vendor=$2
  3931. shift; shift
  3932. # Remember, the first character of IFS is used to create $*,
  3933. # except with old shells:
  3934. build_os=$*
  3935. IFS=$ac_save_IFS
  3936. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3938. $as_echo_n "checking host system type... " >&6; }
  3939. if ${ac_cv_host+:} false; then :
  3940. $as_echo_n "(cached) " >&6
  3941. else
  3942. if test "x$host_alias" = x; then
  3943. ac_cv_host=$ac_cv_build
  3944. else
  3945. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3946. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3947. fi
  3948. fi
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3950. $as_echo "$ac_cv_host" >&6; }
  3951. case $ac_cv_host in
  3952. *-*-*) ;;
  3953. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3954. esac
  3955. host=$ac_cv_host
  3956. ac_save_IFS=$IFS; IFS='-'
  3957. set x $ac_cv_host
  3958. shift
  3959. host_cpu=$1
  3960. host_vendor=$2
  3961. shift; shift
  3962. # Remember, the first character of IFS is used to create $*,
  3963. # except with old shells:
  3964. host_os=$*
  3965. IFS=$ac_save_IFS
  3966. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3968. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3969. if ${ac_cv_path_SED+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3973. for ac_i in 1 2 3 4 5 6 7; do
  3974. ac_script="$ac_script$as_nl$ac_script"
  3975. done
  3976. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3977. { ac_script=; unset ac_script;}
  3978. if test -z "$SED"; then
  3979. ac_path_SED_found=false
  3980. # Loop through the user's path and test for each of PROGNAME-LIST
  3981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3982. for as_dir in $PATH
  3983. do
  3984. IFS=$as_save_IFS
  3985. test -z "$as_dir" && as_dir=.
  3986. for ac_prog in sed gsed; do
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3989. as_fn_executable_p "$ac_path_SED" || continue
  3990. # Check for GNU ac_path_SED and select it if it is found.
  3991. # Check for GNU $ac_path_SED
  3992. case `"$ac_path_SED" --version 2>&1` in
  3993. *GNU*)
  3994. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3995. *)
  3996. ac_count=0
  3997. $as_echo_n 0123456789 >"conftest.in"
  3998. while :
  3999. do
  4000. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4001. mv "conftest.tmp" "conftest.in"
  4002. cp "conftest.in" "conftest.nl"
  4003. $as_echo '' >> "conftest.nl"
  4004. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4005. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4006. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4007. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4008. # Best one so far, save it but keep looking for a better one
  4009. ac_cv_path_SED="$ac_path_SED"
  4010. ac_path_SED_max=$ac_count
  4011. fi
  4012. # 10*(2^10) chars as input seems more than enough
  4013. test $ac_count -gt 10 && break
  4014. done
  4015. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4016. esac
  4017. $ac_path_SED_found && break 3
  4018. done
  4019. done
  4020. done
  4021. IFS=$as_save_IFS
  4022. if test -z "$ac_cv_path_SED"; then
  4023. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4024. fi
  4025. else
  4026. ac_cv_path_SED=$SED
  4027. fi
  4028. fi
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4030. $as_echo "$ac_cv_path_SED" >&6; }
  4031. SED="$ac_cv_path_SED"
  4032. rm -f conftest.sed
  4033. # Check whether --enable-selective-werror was given.
  4034. if test "${enable_selective_werror+set}" = set; then :
  4035. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4036. else
  4037. SELECTIVE_WERROR=yes
  4038. fi
  4039. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4040. if test "x$SUNCC" = "xyes"; then
  4041. BASE_CFLAGS="-v"
  4042. else
  4043. BASE_CFLAGS=""
  4044. fi
  4045. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4046. xorg_testset_save_CFLAGS="$CFLAGS"
  4047. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4048. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4050. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4051. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. /* end confdefs.h. */
  4056. int i;
  4057. _ACEOF
  4058. if ac_fn_c_try_compile "$LINENO"; then :
  4059. xorg_cv_cc_flag_unknown_warning_option=yes
  4060. else
  4061. xorg_cv_cc_flag_unknown_warning_option=no
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4064. fi
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4066. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4067. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4068. CFLAGS="$xorg_testset_save_CFLAGS"
  4069. fi
  4070. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4071. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4073. fi
  4074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4076. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4077. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int i;
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"; then :
  4085. xorg_cv_cc_flag_unused_command_line_argument=yes
  4086. else
  4087. xorg_cv_cc_flag_unused_command_line_argument=no
  4088. fi
  4089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4092. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4093. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4094. CFLAGS="$xorg_testset_save_CFLAGS"
  4095. fi
  4096. found="no"
  4097. if test $found = "no" ; then
  4098. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4100. fi
  4101. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4102. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4103. fi
  4104. CFLAGS="$CFLAGS -Wall"
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4106. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4107. cacheid=xorg_cv_cc_flag__Wall
  4108. if eval \${$cacheid+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4112. /* end confdefs.h. */
  4113. int i;
  4114. int
  4115. main ()
  4116. {
  4117. ;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. if ac_fn_c_try_link "$LINENO"; then :
  4122. eval $cacheid=yes
  4123. else
  4124. eval $cacheid=no
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext \
  4127. conftest$ac_exeext conftest.$ac_ext
  4128. fi
  4129. CFLAGS="$xorg_testset_save_CFLAGS"
  4130. eval supported=\$$cacheid
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4132. $as_echo "$supported" >&6; }
  4133. if test "$supported" = "yes" ; then
  4134. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4135. found="yes"
  4136. fi
  4137. fi
  4138. xorg_testset_save_CFLAGS="$CFLAGS"
  4139. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4140. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4142. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4143. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4147. /* end confdefs.h. */
  4148. int i;
  4149. _ACEOF
  4150. if ac_fn_c_try_compile "$LINENO"; then :
  4151. xorg_cv_cc_flag_unknown_warning_option=yes
  4152. else
  4153. xorg_cv_cc_flag_unknown_warning_option=no
  4154. fi
  4155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4158. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4159. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4160. CFLAGS="$xorg_testset_save_CFLAGS"
  4161. fi
  4162. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4163. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4165. fi
  4166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4168. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4169. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4173. /* end confdefs.h. */
  4174. int i;
  4175. _ACEOF
  4176. if ac_fn_c_try_compile "$LINENO"; then :
  4177. xorg_cv_cc_flag_unused_command_line_argument=yes
  4178. else
  4179. xorg_cv_cc_flag_unused_command_line_argument=no
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4182. fi
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4184. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4185. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4186. CFLAGS="$xorg_testset_save_CFLAGS"
  4187. fi
  4188. found="no"
  4189. if test $found = "no" ; then
  4190. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4191. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4192. fi
  4193. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4194. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4195. fi
  4196. CFLAGS="$CFLAGS -Wpointer-arith"
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4198. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4199. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4200. if eval \${$cacheid+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. int i;
  4206. int
  4207. main ()
  4208. {
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. if ac_fn_c_try_link "$LINENO"; then :
  4214. eval $cacheid=yes
  4215. else
  4216. eval $cacheid=no
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext \
  4219. conftest$ac_exeext conftest.$ac_ext
  4220. fi
  4221. CFLAGS="$xorg_testset_save_CFLAGS"
  4222. eval supported=\$$cacheid
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4224. $as_echo "$supported" >&6; }
  4225. if test "$supported" = "yes" ; then
  4226. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4227. found="yes"
  4228. fi
  4229. fi
  4230. xorg_testset_save_CFLAGS="$CFLAGS"
  4231. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4232. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4234. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4235. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4239. /* end confdefs.h. */
  4240. int i;
  4241. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. xorg_cv_cc_flag_unknown_warning_option=yes
  4244. else
  4245. xorg_cv_cc_flag_unknown_warning_option=no
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4250. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4251. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4252. CFLAGS="$xorg_testset_save_CFLAGS"
  4253. fi
  4254. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4255. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4257. fi
  4258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4260. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4261. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. int i;
  4267. _ACEOF
  4268. if ac_fn_c_try_compile "$LINENO"; then :
  4269. xorg_cv_cc_flag_unused_command_line_argument=yes
  4270. else
  4271. xorg_cv_cc_flag_unused_command_line_argument=no
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4276. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4277. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4278. CFLAGS="$xorg_testset_save_CFLAGS"
  4279. fi
  4280. found="no"
  4281. if test $found = "no" ; then
  4282. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4283. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4284. fi
  4285. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4286. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4287. fi
  4288. CFLAGS="$CFLAGS -Wmissing-declarations"
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4290. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4291. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4292. if eval \${$cacheid+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. int i;
  4298. int
  4299. main ()
  4300. {
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. if ac_fn_c_try_link "$LINENO"; then :
  4306. eval $cacheid=yes
  4307. else
  4308. eval $cacheid=no
  4309. fi
  4310. rm -f core conftest.err conftest.$ac_objext \
  4311. conftest$ac_exeext conftest.$ac_ext
  4312. fi
  4313. CFLAGS="$xorg_testset_save_CFLAGS"
  4314. eval supported=\$$cacheid
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4316. $as_echo "$supported" >&6; }
  4317. if test "$supported" = "yes" ; then
  4318. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4319. found="yes"
  4320. fi
  4321. fi
  4322. xorg_testset_save_CFLAGS="$CFLAGS"
  4323. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4324. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4326. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4327. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end confdefs.h. */
  4332. int i;
  4333. _ACEOF
  4334. if ac_fn_c_try_compile "$LINENO"; then :
  4335. xorg_cv_cc_flag_unknown_warning_option=yes
  4336. else
  4337. xorg_cv_cc_flag_unknown_warning_option=no
  4338. fi
  4339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4342. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4343. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4344. CFLAGS="$xorg_testset_save_CFLAGS"
  4345. fi
  4346. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4347. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4349. fi
  4350. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4352. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4353. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int i;
  4359. _ACEOF
  4360. if ac_fn_c_try_compile "$LINENO"; then :
  4361. xorg_cv_cc_flag_unused_command_line_argument=yes
  4362. else
  4363. xorg_cv_cc_flag_unused_command_line_argument=no
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4368. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4369. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4370. CFLAGS="$xorg_testset_save_CFLAGS"
  4371. fi
  4372. found="no"
  4373. if test $found = "no" ; then
  4374. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4375. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4376. fi
  4377. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4378. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4379. fi
  4380. CFLAGS="$CFLAGS -Wformat=2"
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4382. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4383. cacheid=xorg_cv_cc_flag__Wformat_2
  4384. if eval \${$cacheid+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4388. /* end confdefs.h. */
  4389. int i;
  4390. int
  4391. main ()
  4392. {
  4393. ;
  4394. return 0;
  4395. }
  4396. _ACEOF
  4397. if ac_fn_c_try_link "$LINENO"; then :
  4398. eval $cacheid=yes
  4399. else
  4400. eval $cacheid=no
  4401. fi
  4402. rm -f core conftest.err conftest.$ac_objext \
  4403. conftest$ac_exeext conftest.$ac_ext
  4404. fi
  4405. CFLAGS="$xorg_testset_save_CFLAGS"
  4406. eval supported=\$$cacheid
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4408. $as_echo "$supported" >&6; }
  4409. if test "$supported" = "yes" ; then
  4410. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4411. found="yes"
  4412. fi
  4413. fi
  4414. if test $found = "no" ; then
  4415. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4416. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4417. fi
  4418. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4419. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4420. fi
  4421. CFLAGS="$CFLAGS -Wformat"
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4423. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4424. cacheid=xorg_cv_cc_flag__Wformat
  4425. if eval \${$cacheid+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4429. /* end confdefs.h. */
  4430. int i;
  4431. int
  4432. main ()
  4433. {
  4434. ;
  4435. return 0;
  4436. }
  4437. _ACEOF
  4438. if ac_fn_c_try_link "$LINENO"; then :
  4439. eval $cacheid=yes
  4440. else
  4441. eval $cacheid=no
  4442. fi
  4443. rm -f core conftest.err conftest.$ac_objext \
  4444. conftest$ac_exeext conftest.$ac_ext
  4445. fi
  4446. CFLAGS="$xorg_testset_save_CFLAGS"
  4447. eval supported=\$$cacheid
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4449. $as_echo "$supported" >&6; }
  4450. if test "$supported" = "yes" ; then
  4451. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4452. found="yes"
  4453. fi
  4454. fi
  4455. xorg_testset_save_CFLAGS="$CFLAGS"
  4456. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4457. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4459. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4460. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4461. $as_echo_n "(cached) " >&6
  4462. else
  4463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4464. /* end confdefs.h. */
  4465. int i;
  4466. _ACEOF
  4467. if ac_fn_c_try_compile "$LINENO"; then :
  4468. xorg_cv_cc_flag_unknown_warning_option=yes
  4469. else
  4470. xorg_cv_cc_flag_unknown_warning_option=no
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4475. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4476. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4477. CFLAGS="$xorg_testset_save_CFLAGS"
  4478. fi
  4479. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4480. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4482. fi
  4483. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4485. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4486. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. int i;
  4492. _ACEOF
  4493. if ac_fn_c_try_compile "$LINENO"; then :
  4494. xorg_cv_cc_flag_unused_command_line_argument=yes
  4495. else
  4496. xorg_cv_cc_flag_unused_command_line_argument=no
  4497. fi
  4498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. fi
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4501. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4502. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4503. CFLAGS="$xorg_testset_save_CFLAGS"
  4504. fi
  4505. found="no"
  4506. if test $found = "no" ; then
  4507. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4508. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4509. fi
  4510. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4511. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4512. fi
  4513. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4515. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4516. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4517. if eval \${$cacheid+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4521. /* end confdefs.h. */
  4522. int i;
  4523. int
  4524. main ()
  4525. {
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. if ac_fn_c_try_link "$LINENO"; then :
  4531. eval $cacheid=yes
  4532. else
  4533. eval $cacheid=no
  4534. fi
  4535. rm -f core conftest.err conftest.$ac_objext \
  4536. conftest$ac_exeext conftest.$ac_ext
  4537. fi
  4538. CFLAGS="$xorg_testset_save_CFLAGS"
  4539. eval supported=\$$cacheid
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4541. $as_echo "$supported" >&6; }
  4542. if test "$supported" = "yes" ; then
  4543. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4544. found="yes"
  4545. fi
  4546. fi
  4547. xorg_testset_save_CFLAGS="$CFLAGS"
  4548. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4549. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4551. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4552. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. int i;
  4558. _ACEOF
  4559. if ac_fn_c_try_compile "$LINENO"; then :
  4560. xorg_cv_cc_flag_unknown_warning_option=yes
  4561. else
  4562. xorg_cv_cc_flag_unknown_warning_option=no
  4563. fi
  4564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4565. fi
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4567. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4568. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4569. CFLAGS="$xorg_testset_save_CFLAGS"
  4570. fi
  4571. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4572. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4574. fi
  4575. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4577. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4578. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. int i;
  4584. _ACEOF
  4585. if ac_fn_c_try_compile "$LINENO"; then :
  4586. xorg_cv_cc_flag_unused_command_line_argument=yes
  4587. else
  4588. xorg_cv_cc_flag_unused_command_line_argument=no
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4593. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4594. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4595. CFLAGS="$xorg_testset_save_CFLAGS"
  4596. fi
  4597. found="no"
  4598. if test $found = "no" ; then
  4599. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4600. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4601. fi
  4602. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4603. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4604. fi
  4605. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4607. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4608. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4609. if eval \${$cacheid+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4613. /* end confdefs.h. */
  4614. int i;
  4615. int
  4616. main ()
  4617. {
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. if ac_fn_c_try_link "$LINENO"; then :
  4623. eval $cacheid=yes
  4624. else
  4625. eval $cacheid=no
  4626. fi
  4627. rm -f core conftest.err conftest.$ac_objext \
  4628. conftest$ac_exeext conftest.$ac_ext
  4629. fi
  4630. CFLAGS="$xorg_testset_save_CFLAGS"
  4631. eval supported=\$$cacheid
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4633. $as_echo "$supported" >&6; }
  4634. if test "$supported" = "yes" ; then
  4635. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4636. found="yes"
  4637. fi
  4638. fi
  4639. xorg_testset_save_CFLAGS="$CFLAGS"
  4640. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4641. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4643. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4644. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4648. /* end confdefs.h. */
  4649. int i;
  4650. _ACEOF
  4651. if ac_fn_c_try_compile "$LINENO"; then :
  4652. xorg_cv_cc_flag_unknown_warning_option=yes
  4653. else
  4654. xorg_cv_cc_flag_unknown_warning_option=no
  4655. fi
  4656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4659. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4660. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4661. CFLAGS="$xorg_testset_save_CFLAGS"
  4662. fi
  4663. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4664. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4666. fi
  4667. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4669. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4670. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h. */
  4675. int i;
  4676. _ACEOF
  4677. if ac_fn_c_try_compile "$LINENO"; then :
  4678. xorg_cv_cc_flag_unused_command_line_argument=yes
  4679. else
  4680. xorg_cv_cc_flag_unused_command_line_argument=no
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4685. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4686. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4687. CFLAGS="$xorg_testset_save_CFLAGS"
  4688. fi
  4689. found="no"
  4690. if test $found = "no" ; then
  4691. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4692. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4693. fi
  4694. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4695. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4696. fi
  4697. CFLAGS="$CFLAGS -Wnested-externs"
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4699. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4700. cacheid=xorg_cv_cc_flag__Wnested_externs
  4701. if eval \${$cacheid+:} false; then :
  4702. $as_echo_n "(cached) " >&6
  4703. else
  4704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4705. /* end confdefs.h. */
  4706. int i;
  4707. int
  4708. main ()
  4709. {
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_c_try_link "$LINENO"; then :
  4715. eval $cacheid=yes
  4716. else
  4717. eval $cacheid=no
  4718. fi
  4719. rm -f core conftest.err conftest.$ac_objext \
  4720. conftest$ac_exeext conftest.$ac_ext
  4721. fi
  4722. CFLAGS="$xorg_testset_save_CFLAGS"
  4723. eval supported=\$$cacheid
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4725. $as_echo "$supported" >&6; }
  4726. if test "$supported" = "yes" ; then
  4727. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4728. found="yes"
  4729. fi
  4730. fi
  4731. xorg_testset_save_CFLAGS="$CFLAGS"
  4732. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4733. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4735. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4736. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4740. /* end confdefs.h. */
  4741. int i;
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"; then :
  4744. xorg_cv_cc_flag_unknown_warning_option=yes
  4745. else
  4746. xorg_cv_cc_flag_unknown_warning_option=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4751. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4752. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4753. CFLAGS="$xorg_testset_save_CFLAGS"
  4754. fi
  4755. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4756. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4758. fi
  4759. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4761. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4762. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. int i;
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. xorg_cv_cc_flag_unused_command_line_argument=yes
  4771. else
  4772. xorg_cv_cc_flag_unused_command_line_argument=no
  4773. fi
  4774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4777. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4778. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4779. CFLAGS="$xorg_testset_save_CFLAGS"
  4780. fi
  4781. found="no"
  4782. if test $found = "no" ; then
  4783. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4784. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4785. fi
  4786. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4787. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4788. fi
  4789. CFLAGS="$CFLAGS -Wbad-function-cast"
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4791. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4792. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4793. if eval \${$cacheid+:} false; then :
  4794. $as_echo_n "(cached) " >&6
  4795. else
  4796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end confdefs.h. */
  4798. int i;
  4799. int
  4800. main ()
  4801. {
  4802. ;
  4803. return 0;
  4804. }
  4805. _ACEOF
  4806. if ac_fn_c_try_link "$LINENO"; then :
  4807. eval $cacheid=yes
  4808. else
  4809. eval $cacheid=no
  4810. fi
  4811. rm -f core conftest.err conftest.$ac_objext \
  4812. conftest$ac_exeext conftest.$ac_ext
  4813. fi
  4814. CFLAGS="$xorg_testset_save_CFLAGS"
  4815. eval supported=\$$cacheid
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4817. $as_echo "$supported" >&6; }
  4818. if test "$supported" = "yes" ; then
  4819. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4820. found="yes"
  4821. fi
  4822. fi
  4823. xorg_testset_save_CFLAGS="$CFLAGS"
  4824. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4825. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4827. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4828. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833. int i;
  4834. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. xorg_cv_cc_flag_unknown_warning_option=yes
  4837. else
  4838. xorg_cv_cc_flag_unknown_warning_option=no
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4843. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4844. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4845. CFLAGS="$xorg_testset_save_CFLAGS"
  4846. fi
  4847. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4848. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4850. fi
  4851. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4853. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4854. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4858. /* end confdefs.h. */
  4859. int i;
  4860. _ACEOF
  4861. if ac_fn_c_try_compile "$LINENO"; then :
  4862. xorg_cv_cc_flag_unused_command_line_argument=yes
  4863. else
  4864. xorg_cv_cc_flag_unused_command_line_argument=no
  4865. fi
  4866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4869. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4870. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4871. CFLAGS="$xorg_testset_save_CFLAGS"
  4872. fi
  4873. found="no"
  4874. if test $found = "no" ; then
  4875. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4876. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4877. fi
  4878. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4879. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4880. fi
  4881. CFLAGS="$CFLAGS -Wold-style-definition"
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4883. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4884. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4885. if eval \${$cacheid+:} false; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4889. /* end confdefs.h. */
  4890. int i;
  4891. int
  4892. main ()
  4893. {
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. if ac_fn_c_try_link "$LINENO"; then :
  4899. eval $cacheid=yes
  4900. else
  4901. eval $cacheid=no
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext \
  4904. conftest$ac_exeext conftest.$ac_ext
  4905. fi
  4906. CFLAGS="$xorg_testset_save_CFLAGS"
  4907. eval supported=\$$cacheid
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4909. $as_echo "$supported" >&6; }
  4910. if test "$supported" = "yes" ; then
  4911. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4912. found="yes"
  4913. fi
  4914. fi
  4915. if test $found = "no" ; then
  4916. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4917. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4918. fi
  4919. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4920. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4921. fi
  4922. CFLAGS="$CFLAGS -fd"
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  4924. $as_echo_n "checking if $CC supports -fd... " >&6; }
  4925. cacheid=xorg_cv_cc_flag__fd
  4926. if eval \${$cacheid+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4930. /* end confdefs.h. */
  4931. int i;
  4932. int
  4933. main ()
  4934. {
  4935. ;
  4936. return 0;
  4937. }
  4938. _ACEOF
  4939. if ac_fn_c_try_link "$LINENO"; then :
  4940. eval $cacheid=yes
  4941. else
  4942. eval $cacheid=no
  4943. fi
  4944. rm -f core conftest.err conftest.$ac_objext \
  4945. conftest$ac_exeext conftest.$ac_ext
  4946. fi
  4947. CFLAGS="$xorg_testset_save_CFLAGS"
  4948. eval supported=\$$cacheid
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4950. $as_echo "$supported" >&6; }
  4951. if test "$supported" = "yes" ; then
  4952. BASE_CFLAGS="$BASE_CFLAGS -fd"
  4953. found="yes"
  4954. fi
  4955. fi
  4956. xorg_testset_save_CFLAGS="$CFLAGS"
  4957. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4958. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4960. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4961. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4965. /* end confdefs.h. */
  4966. int i;
  4967. _ACEOF
  4968. if ac_fn_c_try_compile "$LINENO"; then :
  4969. xorg_cv_cc_flag_unknown_warning_option=yes
  4970. else
  4971. xorg_cv_cc_flag_unknown_warning_option=no
  4972. fi
  4973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4974. fi
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4976. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4977. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4978. CFLAGS="$xorg_testset_save_CFLAGS"
  4979. fi
  4980. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4981. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4982. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4983. fi
  4984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4986. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4987. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4988. $as_echo_n "(cached) " >&6
  4989. else
  4990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4991. /* end confdefs.h. */
  4992. int i;
  4993. _ACEOF
  4994. if ac_fn_c_try_compile "$LINENO"; then :
  4995. xorg_cv_cc_flag_unused_command_line_argument=yes
  4996. else
  4997. xorg_cv_cc_flag_unused_command_line_argument=no
  4998. fi
  4999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5000. fi
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5002. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5003. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5004. CFLAGS="$xorg_testset_save_CFLAGS"
  5005. fi
  5006. found="no"
  5007. if test $found = "no" ; then
  5008. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5009. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5010. fi
  5011. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5012. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5013. fi
  5014. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5016. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5017. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5018. if eval \${$cacheid+:} false; then :
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h. */
  5023. int i;
  5024. int
  5025. main ()
  5026. {
  5027. ;
  5028. return 0;
  5029. }
  5030. _ACEOF
  5031. if ac_fn_c_try_link "$LINENO"; then :
  5032. eval $cacheid=yes
  5033. else
  5034. eval $cacheid=no
  5035. fi
  5036. rm -f core conftest.err conftest.$ac_objext \
  5037. conftest$ac_exeext conftest.$ac_ext
  5038. fi
  5039. CFLAGS="$xorg_testset_save_CFLAGS"
  5040. eval supported=\$$cacheid
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5042. $as_echo "$supported" >&6; }
  5043. if test "$supported" = "yes" ; then
  5044. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5045. found="yes"
  5046. fi
  5047. fi
  5048. # This chunk adds additional warnings that could catch undesired effects.
  5049. xorg_testset_save_CFLAGS="$CFLAGS"
  5050. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5051. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5053. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5054. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5058. /* end confdefs.h. */
  5059. int i;
  5060. _ACEOF
  5061. if ac_fn_c_try_compile "$LINENO"; then :
  5062. xorg_cv_cc_flag_unknown_warning_option=yes
  5063. else
  5064. xorg_cv_cc_flag_unknown_warning_option=no
  5065. fi
  5066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5067. fi
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5069. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5070. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5071. CFLAGS="$xorg_testset_save_CFLAGS"
  5072. fi
  5073. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5074. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5075. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5076. fi
  5077. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5079. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5080. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5081. $as_echo_n "(cached) " >&6
  5082. else
  5083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5084. /* end confdefs.h. */
  5085. int i;
  5086. _ACEOF
  5087. if ac_fn_c_try_compile "$LINENO"; then :
  5088. xorg_cv_cc_flag_unused_command_line_argument=yes
  5089. else
  5090. xorg_cv_cc_flag_unused_command_line_argument=no
  5091. fi
  5092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5093. fi
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5095. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5096. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5097. CFLAGS="$xorg_testset_save_CFLAGS"
  5098. fi
  5099. found="no"
  5100. if test $found = "no" ; then
  5101. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5102. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5103. fi
  5104. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5105. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5106. fi
  5107. CFLAGS="$CFLAGS -Wunused"
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5109. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5110. cacheid=xorg_cv_cc_flag__Wunused
  5111. if eval \${$cacheid+:} false; then :
  5112. $as_echo_n "(cached) " >&6
  5113. else
  5114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5115. /* end confdefs.h. */
  5116. int i;
  5117. int
  5118. main ()
  5119. {
  5120. ;
  5121. return 0;
  5122. }
  5123. _ACEOF
  5124. if ac_fn_c_try_link "$LINENO"; then :
  5125. eval $cacheid=yes
  5126. else
  5127. eval $cacheid=no
  5128. fi
  5129. rm -f core conftest.err conftest.$ac_objext \
  5130. conftest$ac_exeext conftest.$ac_ext
  5131. fi
  5132. CFLAGS="$xorg_testset_save_CFLAGS"
  5133. eval supported=\$$cacheid
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5135. $as_echo "$supported" >&6; }
  5136. if test "$supported" = "yes" ; then
  5137. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5138. found="yes"
  5139. fi
  5140. fi
  5141. xorg_testset_save_CFLAGS="$CFLAGS"
  5142. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5145. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5146. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int i;
  5152. _ACEOF
  5153. if ac_fn_c_try_compile "$LINENO"; then :
  5154. xorg_cv_cc_flag_unknown_warning_option=yes
  5155. else
  5156. xorg_cv_cc_flag_unknown_warning_option=no
  5157. fi
  5158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5161. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5162. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5163. CFLAGS="$xorg_testset_save_CFLAGS"
  5164. fi
  5165. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5166. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5167. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5168. fi
  5169. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5171. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5172. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5176. /* end confdefs.h. */
  5177. int i;
  5178. _ACEOF
  5179. if ac_fn_c_try_compile "$LINENO"; then :
  5180. xorg_cv_cc_flag_unused_command_line_argument=yes
  5181. else
  5182. xorg_cv_cc_flag_unused_command_line_argument=no
  5183. fi
  5184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5185. fi
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5187. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5188. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5189. CFLAGS="$xorg_testset_save_CFLAGS"
  5190. fi
  5191. found="no"
  5192. if test $found = "no" ; then
  5193. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5194. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5195. fi
  5196. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5197. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5198. fi
  5199. CFLAGS="$CFLAGS -Wuninitialized"
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5201. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5202. cacheid=xorg_cv_cc_flag__Wuninitialized
  5203. if eval \${$cacheid+:} false; then :
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5207. /* end confdefs.h. */
  5208. int i;
  5209. int
  5210. main ()
  5211. {
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. if ac_fn_c_try_link "$LINENO"; then :
  5217. eval $cacheid=yes
  5218. else
  5219. eval $cacheid=no
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext \
  5222. conftest$ac_exeext conftest.$ac_ext
  5223. fi
  5224. CFLAGS="$xorg_testset_save_CFLAGS"
  5225. eval supported=\$$cacheid
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5227. $as_echo "$supported" >&6; }
  5228. if test "$supported" = "yes" ; then
  5229. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5230. found="yes"
  5231. fi
  5232. fi
  5233. xorg_testset_save_CFLAGS="$CFLAGS"
  5234. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5237. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5238. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5242. /* end confdefs.h. */
  5243. int i;
  5244. _ACEOF
  5245. if ac_fn_c_try_compile "$LINENO"; then :
  5246. xorg_cv_cc_flag_unknown_warning_option=yes
  5247. else
  5248. xorg_cv_cc_flag_unknown_warning_option=no
  5249. fi
  5250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5251. fi
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5253. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5254. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5255. CFLAGS="$xorg_testset_save_CFLAGS"
  5256. fi
  5257. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5258. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5259. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5260. fi
  5261. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5263. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5264. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5268. /* end confdefs.h. */
  5269. int i;
  5270. _ACEOF
  5271. if ac_fn_c_try_compile "$LINENO"; then :
  5272. xorg_cv_cc_flag_unused_command_line_argument=yes
  5273. else
  5274. xorg_cv_cc_flag_unused_command_line_argument=no
  5275. fi
  5276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5279. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5280. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5281. CFLAGS="$xorg_testset_save_CFLAGS"
  5282. fi
  5283. found="no"
  5284. if test $found = "no" ; then
  5285. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5286. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5287. fi
  5288. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5289. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5290. fi
  5291. CFLAGS="$CFLAGS -Wshadow"
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5293. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5294. cacheid=xorg_cv_cc_flag__Wshadow
  5295. if eval \${$cacheid+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5299. /* end confdefs.h. */
  5300. int i;
  5301. int
  5302. main ()
  5303. {
  5304. ;
  5305. return 0;
  5306. }
  5307. _ACEOF
  5308. if ac_fn_c_try_link "$LINENO"; then :
  5309. eval $cacheid=yes
  5310. else
  5311. eval $cacheid=no
  5312. fi
  5313. rm -f core conftest.err conftest.$ac_objext \
  5314. conftest$ac_exeext conftest.$ac_ext
  5315. fi
  5316. CFLAGS="$xorg_testset_save_CFLAGS"
  5317. eval supported=\$$cacheid
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5319. $as_echo "$supported" >&6; }
  5320. if test "$supported" = "yes" ; then
  5321. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5322. found="yes"
  5323. fi
  5324. fi
  5325. xorg_testset_save_CFLAGS="$CFLAGS"
  5326. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5327. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5329. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5330. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5334. /* end confdefs.h. */
  5335. int i;
  5336. _ACEOF
  5337. if ac_fn_c_try_compile "$LINENO"; then :
  5338. xorg_cv_cc_flag_unknown_warning_option=yes
  5339. else
  5340. xorg_cv_cc_flag_unknown_warning_option=no
  5341. fi
  5342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5343. fi
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5345. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5346. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5347. CFLAGS="$xorg_testset_save_CFLAGS"
  5348. fi
  5349. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5350. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5351. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5352. fi
  5353. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5355. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5356. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. int i;
  5362. _ACEOF
  5363. if ac_fn_c_try_compile "$LINENO"; then :
  5364. xorg_cv_cc_flag_unused_command_line_argument=yes
  5365. else
  5366. xorg_cv_cc_flag_unused_command_line_argument=no
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5371. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5372. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5373. CFLAGS="$xorg_testset_save_CFLAGS"
  5374. fi
  5375. found="no"
  5376. if test $found = "no" ; then
  5377. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5378. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5379. fi
  5380. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5381. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5382. fi
  5383. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5385. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5386. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5387. if eval \${$cacheid+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5391. /* end confdefs.h. */
  5392. int i;
  5393. int
  5394. main ()
  5395. {
  5396. ;
  5397. return 0;
  5398. }
  5399. _ACEOF
  5400. if ac_fn_c_try_link "$LINENO"; then :
  5401. eval $cacheid=yes
  5402. else
  5403. eval $cacheid=no
  5404. fi
  5405. rm -f core conftest.err conftest.$ac_objext \
  5406. conftest$ac_exeext conftest.$ac_ext
  5407. fi
  5408. CFLAGS="$xorg_testset_save_CFLAGS"
  5409. eval supported=\$$cacheid
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5411. $as_echo "$supported" >&6; }
  5412. if test "$supported" = "yes" ; then
  5413. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5414. found="yes"
  5415. fi
  5416. fi
  5417. xorg_testset_save_CFLAGS="$CFLAGS"
  5418. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5419. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5421. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5422. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. int i;
  5428. _ACEOF
  5429. if ac_fn_c_try_compile "$LINENO"; then :
  5430. xorg_cv_cc_flag_unknown_warning_option=yes
  5431. else
  5432. xorg_cv_cc_flag_unknown_warning_option=no
  5433. fi
  5434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5437. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5438. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5439. CFLAGS="$xorg_testset_save_CFLAGS"
  5440. fi
  5441. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5442. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5443. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5444. fi
  5445. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5447. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5448. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5452. /* end confdefs.h. */
  5453. int i;
  5454. _ACEOF
  5455. if ac_fn_c_try_compile "$LINENO"; then :
  5456. xorg_cv_cc_flag_unused_command_line_argument=yes
  5457. else
  5458. xorg_cv_cc_flag_unused_command_line_argument=no
  5459. fi
  5460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5461. fi
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5463. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5464. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5465. CFLAGS="$xorg_testset_save_CFLAGS"
  5466. fi
  5467. found="no"
  5468. if test $found = "no" ; then
  5469. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5470. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5471. fi
  5472. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5473. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5474. fi
  5475. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5477. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5478. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5479. if eval \${$cacheid+:} false; then :
  5480. $as_echo_n "(cached) " >&6
  5481. else
  5482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5483. /* end confdefs.h. */
  5484. int i;
  5485. int
  5486. main ()
  5487. {
  5488. ;
  5489. return 0;
  5490. }
  5491. _ACEOF
  5492. if ac_fn_c_try_link "$LINENO"; then :
  5493. eval $cacheid=yes
  5494. else
  5495. eval $cacheid=no
  5496. fi
  5497. rm -f core conftest.err conftest.$ac_objext \
  5498. conftest$ac_exeext conftest.$ac_ext
  5499. fi
  5500. CFLAGS="$xorg_testset_save_CFLAGS"
  5501. eval supported=\$$cacheid
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5503. $as_echo "$supported" >&6; }
  5504. if test "$supported" = "yes" ; then
  5505. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5506. found="yes"
  5507. fi
  5508. fi
  5509. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5510. xorg_testset_save_CFLAGS="$CFLAGS"
  5511. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5512. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5514. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5515. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5519. /* end confdefs.h. */
  5520. int i;
  5521. _ACEOF
  5522. if ac_fn_c_try_compile "$LINENO"; then :
  5523. xorg_cv_cc_flag_unknown_warning_option=yes
  5524. else
  5525. xorg_cv_cc_flag_unknown_warning_option=no
  5526. fi
  5527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5528. fi
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5530. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5531. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5532. CFLAGS="$xorg_testset_save_CFLAGS"
  5533. fi
  5534. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5535. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5536. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5537. fi
  5538. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5540. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5541. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5545. /* end confdefs.h. */
  5546. int i;
  5547. _ACEOF
  5548. if ac_fn_c_try_compile "$LINENO"; then :
  5549. xorg_cv_cc_flag_unused_command_line_argument=yes
  5550. else
  5551. xorg_cv_cc_flag_unused_command_line_argument=no
  5552. fi
  5553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5554. fi
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5556. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5557. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5558. CFLAGS="$xorg_testset_save_CFLAGS"
  5559. fi
  5560. found="no"
  5561. if test $found = "no" ; then
  5562. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5563. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5564. fi
  5565. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5566. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5567. fi
  5568. CFLAGS="$CFLAGS -Wlogical-op"
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5570. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5571. cacheid=xorg_cv_cc_flag__Wlogical_op
  5572. if eval \${$cacheid+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5576. /* end confdefs.h. */
  5577. int i;
  5578. int
  5579. main ()
  5580. {
  5581. ;
  5582. return 0;
  5583. }
  5584. _ACEOF
  5585. if ac_fn_c_try_link "$LINENO"; then :
  5586. eval $cacheid=yes
  5587. else
  5588. eval $cacheid=no
  5589. fi
  5590. rm -f core conftest.err conftest.$ac_objext \
  5591. conftest$ac_exeext conftest.$ac_ext
  5592. fi
  5593. CFLAGS="$xorg_testset_save_CFLAGS"
  5594. eval supported=\$$cacheid
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5596. $as_echo "$supported" >&6; }
  5597. if test "$supported" = "yes" ; then
  5598. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5599. found="yes"
  5600. fi
  5601. fi
  5602. # These are currently disabled because they are noisy. They will be enabled
  5603. # in the future once the codebase is sufficiently modernized to silence
  5604. # them. For now, I don't want them to drown out the other warnings.
  5605. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5606. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5607. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5608. # Turn some warnings into errors, so we don't accidently get successful builds
  5609. # when there are problems that should be fixed.
  5610. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5611. xorg_testset_save_CFLAGS="$CFLAGS"
  5612. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5613. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5615. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5616. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5620. /* end confdefs.h. */
  5621. int i;
  5622. _ACEOF
  5623. if ac_fn_c_try_compile "$LINENO"; then :
  5624. xorg_cv_cc_flag_unknown_warning_option=yes
  5625. else
  5626. xorg_cv_cc_flag_unknown_warning_option=no
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5629. fi
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5631. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5632. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5633. CFLAGS="$xorg_testset_save_CFLAGS"
  5634. fi
  5635. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5636. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5637. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5638. fi
  5639. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5641. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5642. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5646. /* end confdefs.h. */
  5647. int i;
  5648. _ACEOF
  5649. if ac_fn_c_try_compile "$LINENO"; then :
  5650. xorg_cv_cc_flag_unused_command_line_argument=yes
  5651. else
  5652. xorg_cv_cc_flag_unused_command_line_argument=no
  5653. fi
  5654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5655. fi
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5657. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5658. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5659. CFLAGS="$xorg_testset_save_CFLAGS"
  5660. fi
  5661. found="no"
  5662. if test $found = "no" ; then
  5663. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5664. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5665. fi
  5666. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5667. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5668. fi
  5669. CFLAGS="$CFLAGS -Werror=implicit"
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5671. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5672. cacheid=xorg_cv_cc_flag__Werror_implicit
  5673. if eval \${$cacheid+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5677. /* end confdefs.h. */
  5678. int i;
  5679. int
  5680. main ()
  5681. {
  5682. ;
  5683. return 0;
  5684. }
  5685. _ACEOF
  5686. if ac_fn_c_try_link "$LINENO"; then :
  5687. eval $cacheid=yes
  5688. else
  5689. eval $cacheid=no
  5690. fi
  5691. rm -f core conftest.err conftest.$ac_objext \
  5692. conftest$ac_exeext conftest.$ac_ext
  5693. fi
  5694. CFLAGS="$xorg_testset_save_CFLAGS"
  5695. eval supported=\$$cacheid
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5697. $as_echo "$supported" >&6; }
  5698. if test "$supported" = "yes" ; then
  5699. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5700. found="yes"
  5701. fi
  5702. fi
  5703. if test $found = "no" ; then
  5704. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5705. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5706. fi
  5707. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5708. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5709. fi
  5710. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5712. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5713. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5714. if eval \${$cacheid+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5718. /* end confdefs.h. */
  5719. int i;
  5720. int
  5721. main ()
  5722. {
  5723. ;
  5724. return 0;
  5725. }
  5726. _ACEOF
  5727. if ac_fn_c_try_link "$LINENO"; then :
  5728. eval $cacheid=yes
  5729. else
  5730. eval $cacheid=no
  5731. fi
  5732. rm -f core conftest.err conftest.$ac_objext \
  5733. conftest$ac_exeext conftest.$ac_ext
  5734. fi
  5735. CFLAGS="$xorg_testset_save_CFLAGS"
  5736. eval supported=\$$cacheid
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5738. $as_echo "$supported" >&6; }
  5739. if test "$supported" = "yes" ; then
  5740. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5741. found="yes"
  5742. fi
  5743. fi
  5744. xorg_testset_save_CFLAGS="$CFLAGS"
  5745. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5746. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5748. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5749. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5753. /* end confdefs.h. */
  5754. int i;
  5755. _ACEOF
  5756. if ac_fn_c_try_compile "$LINENO"; then :
  5757. xorg_cv_cc_flag_unknown_warning_option=yes
  5758. else
  5759. xorg_cv_cc_flag_unknown_warning_option=no
  5760. fi
  5761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5764. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5765. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5766. CFLAGS="$xorg_testset_save_CFLAGS"
  5767. fi
  5768. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5769. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5770. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5771. fi
  5772. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5774. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5775. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5776. $as_echo_n "(cached) " >&6
  5777. else
  5778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5779. /* end confdefs.h. */
  5780. int i;
  5781. _ACEOF
  5782. if ac_fn_c_try_compile "$LINENO"; then :
  5783. xorg_cv_cc_flag_unused_command_line_argument=yes
  5784. else
  5785. xorg_cv_cc_flag_unused_command_line_argument=no
  5786. fi
  5787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5788. fi
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5790. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5791. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5792. CFLAGS="$xorg_testset_save_CFLAGS"
  5793. fi
  5794. found="no"
  5795. if test $found = "no" ; then
  5796. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5797. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5798. fi
  5799. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5800. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5801. fi
  5802. CFLAGS="$CFLAGS -Werror=nonnull"
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5804. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5805. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5806. if eval \${$cacheid+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5810. /* end confdefs.h. */
  5811. int i;
  5812. int
  5813. main ()
  5814. {
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. if ac_fn_c_try_link "$LINENO"; then :
  5820. eval $cacheid=yes
  5821. else
  5822. eval $cacheid=no
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext \
  5825. conftest$ac_exeext conftest.$ac_ext
  5826. fi
  5827. CFLAGS="$xorg_testset_save_CFLAGS"
  5828. eval supported=\$$cacheid
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5830. $as_echo "$supported" >&6; }
  5831. if test "$supported" = "yes" ; then
  5832. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5833. found="yes"
  5834. fi
  5835. fi
  5836. xorg_testset_save_CFLAGS="$CFLAGS"
  5837. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5838. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5840. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5841. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5842. $as_echo_n "(cached) " >&6
  5843. else
  5844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5845. /* end confdefs.h. */
  5846. int i;
  5847. _ACEOF
  5848. if ac_fn_c_try_compile "$LINENO"; then :
  5849. xorg_cv_cc_flag_unknown_warning_option=yes
  5850. else
  5851. xorg_cv_cc_flag_unknown_warning_option=no
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5854. fi
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5856. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5857. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5858. CFLAGS="$xorg_testset_save_CFLAGS"
  5859. fi
  5860. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5861. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5862. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5863. fi
  5864. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5866. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5867. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5871. /* end confdefs.h. */
  5872. int i;
  5873. _ACEOF
  5874. if ac_fn_c_try_compile "$LINENO"; then :
  5875. xorg_cv_cc_flag_unused_command_line_argument=yes
  5876. else
  5877. xorg_cv_cc_flag_unused_command_line_argument=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5882. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5883. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5884. CFLAGS="$xorg_testset_save_CFLAGS"
  5885. fi
  5886. found="no"
  5887. if test $found = "no" ; then
  5888. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5889. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5890. fi
  5891. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5892. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5893. fi
  5894. CFLAGS="$CFLAGS -Werror=init-self"
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5896. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5897. cacheid=xorg_cv_cc_flag__Werror_init_self
  5898. if eval \${$cacheid+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5902. /* end confdefs.h. */
  5903. int i;
  5904. int
  5905. main ()
  5906. {
  5907. ;
  5908. return 0;
  5909. }
  5910. _ACEOF
  5911. if ac_fn_c_try_link "$LINENO"; then :
  5912. eval $cacheid=yes
  5913. else
  5914. eval $cacheid=no
  5915. fi
  5916. rm -f core conftest.err conftest.$ac_objext \
  5917. conftest$ac_exeext conftest.$ac_ext
  5918. fi
  5919. CFLAGS="$xorg_testset_save_CFLAGS"
  5920. eval supported=\$$cacheid
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5922. $as_echo "$supported" >&6; }
  5923. if test "$supported" = "yes" ; then
  5924. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5925. found="yes"
  5926. fi
  5927. fi
  5928. xorg_testset_save_CFLAGS="$CFLAGS"
  5929. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5930. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5932. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5933. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5937. /* end confdefs.h. */
  5938. int i;
  5939. _ACEOF
  5940. if ac_fn_c_try_compile "$LINENO"; then :
  5941. xorg_cv_cc_flag_unknown_warning_option=yes
  5942. else
  5943. xorg_cv_cc_flag_unknown_warning_option=no
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5946. fi
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5948. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5949. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5950. CFLAGS="$xorg_testset_save_CFLAGS"
  5951. fi
  5952. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5953. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5954. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5955. fi
  5956. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5958. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5959. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5960. $as_echo_n "(cached) " >&6
  5961. else
  5962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5963. /* end confdefs.h. */
  5964. int i;
  5965. _ACEOF
  5966. if ac_fn_c_try_compile "$LINENO"; then :
  5967. xorg_cv_cc_flag_unused_command_line_argument=yes
  5968. else
  5969. xorg_cv_cc_flag_unused_command_line_argument=no
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5974. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5975. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5976. CFLAGS="$xorg_testset_save_CFLAGS"
  5977. fi
  5978. found="no"
  5979. if test $found = "no" ; then
  5980. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5982. fi
  5983. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5985. fi
  5986. CFLAGS="$CFLAGS -Werror=main"
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  5988. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  5989. cacheid=xorg_cv_cc_flag__Werror_main
  5990. if eval \${$cacheid+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5994. /* end confdefs.h. */
  5995. int i;
  5996. int
  5997. main ()
  5998. {
  5999. ;
  6000. return 0;
  6001. }
  6002. _ACEOF
  6003. if ac_fn_c_try_link "$LINENO"; then :
  6004. eval $cacheid=yes
  6005. else
  6006. eval $cacheid=no
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext \
  6009. conftest$ac_exeext conftest.$ac_ext
  6010. fi
  6011. CFLAGS="$xorg_testset_save_CFLAGS"
  6012. eval supported=\$$cacheid
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6014. $as_echo "$supported" >&6; }
  6015. if test "$supported" = "yes" ; then
  6016. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6017. found="yes"
  6018. fi
  6019. fi
  6020. xorg_testset_save_CFLAGS="$CFLAGS"
  6021. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6022. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6024. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6025. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end confdefs.h. */
  6030. int i;
  6031. _ACEOF
  6032. if ac_fn_c_try_compile "$LINENO"; then :
  6033. xorg_cv_cc_flag_unknown_warning_option=yes
  6034. else
  6035. xorg_cv_cc_flag_unknown_warning_option=no
  6036. fi
  6037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6038. fi
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6040. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6041. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6042. CFLAGS="$xorg_testset_save_CFLAGS"
  6043. fi
  6044. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6045. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6047. fi
  6048. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6050. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6051. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. int i;
  6057. _ACEOF
  6058. if ac_fn_c_try_compile "$LINENO"; then :
  6059. xorg_cv_cc_flag_unused_command_line_argument=yes
  6060. else
  6061. xorg_cv_cc_flag_unused_command_line_argument=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. fi
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6066. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6067. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6068. CFLAGS="$xorg_testset_save_CFLAGS"
  6069. fi
  6070. found="no"
  6071. if test $found = "no" ; then
  6072. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6073. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6074. fi
  6075. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6076. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6077. fi
  6078. CFLAGS="$CFLAGS -Werror=missing-braces"
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6080. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6081. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6082. if eval \${$cacheid+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6086. /* end confdefs.h. */
  6087. int i;
  6088. int
  6089. main ()
  6090. {
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. if ac_fn_c_try_link "$LINENO"; then :
  6096. eval $cacheid=yes
  6097. else
  6098. eval $cacheid=no
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext \
  6101. conftest$ac_exeext conftest.$ac_ext
  6102. fi
  6103. CFLAGS="$xorg_testset_save_CFLAGS"
  6104. eval supported=\$$cacheid
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6106. $as_echo "$supported" >&6; }
  6107. if test "$supported" = "yes" ; then
  6108. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6109. found="yes"
  6110. fi
  6111. fi
  6112. xorg_testset_save_CFLAGS="$CFLAGS"
  6113. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6114. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6116. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6117. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6121. /* end confdefs.h. */
  6122. int i;
  6123. _ACEOF
  6124. if ac_fn_c_try_compile "$LINENO"; then :
  6125. xorg_cv_cc_flag_unknown_warning_option=yes
  6126. else
  6127. xorg_cv_cc_flag_unknown_warning_option=no
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130. fi
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6132. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6133. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6134. CFLAGS="$xorg_testset_save_CFLAGS"
  6135. fi
  6136. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6137. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6138. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6139. fi
  6140. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6142. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6143. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. int i;
  6149. _ACEOF
  6150. if ac_fn_c_try_compile "$LINENO"; then :
  6151. xorg_cv_cc_flag_unused_command_line_argument=yes
  6152. else
  6153. xorg_cv_cc_flag_unused_command_line_argument=no
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6156. fi
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6158. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6159. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6160. CFLAGS="$xorg_testset_save_CFLAGS"
  6161. fi
  6162. found="no"
  6163. if test $found = "no" ; then
  6164. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6165. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6166. fi
  6167. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6168. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6169. fi
  6170. CFLAGS="$CFLAGS -Werror=sequence-point"
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6172. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6173. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6174. if eval \${$cacheid+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. int i;
  6180. int
  6181. main ()
  6182. {
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. if ac_fn_c_try_link "$LINENO"; then :
  6188. eval $cacheid=yes
  6189. else
  6190. eval $cacheid=no
  6191. fi
  6192. rm -f core conftest.err conftest.$ac_objext \
  6193. conftest$ac_exeext conftest.$ac_ext
  6194. fi
  6195. CFLAGS="$xorg_testset_save_CFLAGS"
  6196. eval supported=\$$cacheid
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6198. $as_echo "$supported" >&6; }
  6199. if test "$supported" = "yes" ; then
  6200. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6201. found="yes"
  6202. fi
  6203. fi
  6204. xorg_testset_save_CFLAGS="$CFLAGS"
  6205. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6206. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6208. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6209. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. int i;
  6215. _ACEOF
  6216. if ac_fn_c_try_compile "$LINENO"; then :
  6217. xorg_cv_cc_flag_unknown_warning_option=yes
  6218. else
  6219. xorg_cv_cc_flag_unknown_warning_option=no
  6220. fi
  6221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6224. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6225. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6226. CFLAGS="$xorg_testset_save_CFLAGS"
  6227. fi
  6228. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6229. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6230. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6231. fi
  6232. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6234. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6235. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6239. /* end confdefs.h. */
  6240. int i;
  6241. _ACEOF
  6242. if ac_fn_c_try_compile "$LINENO"; then :
  6243. xorg_cv_cc_flag_unused_command_line_argument=yes
  6244. else
  6245. xorg_cv_cc_flag_unused_command_line_argument=no
  6246. fi
  6247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6250. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6251. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6252. CFLAGS="$xorg_testset_save_CFLAGS"
  6253. fi
  6254. found="no"
  6255. if test $found = "no" ; then
  6256. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6257. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6258. fi
  6259. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6260. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6261. fi
  6262. CFLAGS="$CFLAGS -Werror=return-type"
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6264. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6265. cacheid=xorg_cv_cc_flag__Werror_return_type
  6266. if eval \${$cacheid+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6270. /* end confdefs.h. */
  6271. int i;
  6272. int
  6273. main ()
  6274. {
  6275. ;
  6276. return 0;
  6277. }
  6278. _ACEOF
  6279. if ac_fn_c_try_link "$LINENO"; then :
  6280. eval $cacheid=yes
  6281. else
  6282. eval $cacheid=no
  6283. fi
  6284. rm -f core conftest.err conftest.$ac_objext \
  6285. conftest$ac_exeext conftest.$ac_ext
  6286. fi
  6287. CFLAGS="$xorg_testset_save_CFLAGS"
  6288. eval supported=\$$cacheid
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6290. $as_echo "$supported" >&6; }
  6291. if test "$supported" = "yes" ; then
  6292. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6293. found="yes"
  6294. fi
  6295. fi
  6296. if test $found = "no" ; then
  6297. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6298. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6299. fi
  6300. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6301. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6302. fi
  6303. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6305. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6306. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6307. if eval \${$cacheid+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. int i;
  6313. int
  6314. main ()
  6315. {
  6316. ;
  6317. return 0;
  6318. }
  6319. _ACEOF
  6320. if ac_fn_c_try_link "$LINENO"; then :
  6321. eval $cacheid=yes
  6322. else
  6323. eval $cacheid=no
  6324. fi
  6325. rm -f core conftest.err conftest.$ac_objext \
  6326. conftest$ac_exeext conftest.$ac_ext
  6327. fi
  6328. CFLAGS="$xorg_testset_save_CFLAGS"
  6329. eval supported=\$$cacheid
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6331. $as_echo "$supported" >&6; }
  6332. if test "$supported" = "yes" ; then
  6333. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6334. found="yes"
  6335. fi
  6336. fi
  6337. xorg_testset_save_CFLAGS="$CFLAGS"
  6338. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6341. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6342. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6346. /* end confdefs.h. */
  6347. int i;
  6348. _ACEOF
  6349. if ac_fn_c_try_compile "$LINENO"; then :
  6350. xorg_cv_cc_flag_unknown_warning_option=yes
  6351. else
  6352. xorg_cv_cc_flag_unknown_warning_option=no
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. fi
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6357. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6358. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6359. CFLAGS="$xorg_testset_save_CFLAGS"
  6360. fi
  6361. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6362. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6363. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6364. fi
  6365. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6367. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6368. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6372. /* end confdefs.h. */
  6373. int i;
  6374. _ACEOF
  6375. if ac_fn_c_try_compile "$LINENO"; then :
  6376. xorg_cv_cc_flag_unused_command_line_argument=yes
  6377. else
  6378. xorg_cv_cc_flag_unused_command_line_argument=no
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6381. fi
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6383. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6384. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6385. CFLAGS="$xorg_testset_save_CFLAGS"
  6386. fi
  6387. found="no"
  6388. if test $found = "no" ; then
  6389. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6390. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6391. fi
  6392. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6393. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6394. fi
  6395. CFLAGS="$CFLAGS -Werror=trigraphs"
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6397. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6398. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6399. if eval \${$cacheid+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int i;
  6405. int
  6406. main ()
  6407. {
  6408. ;
  6409. return 0;
  6410. }
  6411. _ACEOF
  6412. if ac_fn_c_try_link "$LINENO"; then :
  6413. eval $cacheid=yes
  6414. else
  6415. eval $cacheid=no
  6416. fi
  6417. rm -f core conftest.err conftest.$ac_objext \
  6418. conftest$ac_exeext conftest.$ac_ext
  6419. fi
  6420. CFLAGS="$xorg_testset_save_CFLAGS"
  6421. eval supported=\$$cacheid
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6423. $as_echo "$supported" >&6; }
  6424. if test "$supported" = "yes" ; then
  6425. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6426. found="yes"
  6427. fi
  6428. fi
  6429. xorg_testset_save_CFLAGS="$CFLAGS"
  6430. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6433. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6434. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6438. /* end confdefs.h. */
  6439. int i;
  6440. _ACEOF
  6441. if ac_fn_c_try_compile "$LINENO"; then :
  6442. xorg_cv_cc_flag_unknown_warning_option=yes
  6443. else
  6444. xorg_cv_cc_flag_unknown_warning_option=no
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. fi
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6449. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6450. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6451. CFLAGS="$xorg_testset_save_CFLAGS"
  6452. fi
  6453. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6454. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6455. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6456. fi
  6457. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6459. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6460. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. int i;
  6466. _ACEOF
  6467. if ac_fn_c_try_compile "$LINENO"; then :
  6468. xorg_cv_cc_flag_unused_command_line_argument=yes
  6469. else
  6470. xorg_cv_cc_flag_unused_command_line_argument=no
  6471. fi
  6472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6475. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6476. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6477. CFLAGS="$xorg_testset_save_CFLAGS"
  6478. fi
  6479. found="no"
  6480. if test $found = "no" ; then
  6481. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6482. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6483. fi
  6484. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6485. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6486. fi
  6487. CFLAGS="$CFLAGS -Werror=array-bounds"
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6489. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6490. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6491. if eval \${$cacheid+:} false; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6495. /* end confdefs.h. */
  6496. int i;
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_link "$LINENO"; then :
  6505. eval $cacheid=yes
  6506. else
  6507. eval $cacheid=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext \
  6510. conftest$ac_exeext conftest.$ac_ext
  6511. fi
  6512. CFLAGS="$xorg_testset_save_CFLAGS"
  6513. eval supported=\$$cacheid
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6515. $as_echo "$supported" >&6; }
  6516. if test "$supported" = "yes" ; then
  6517. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6518. found="yes"
  6519. fi
  6520. fi
  6521. xorg_testset_save_CFLAGS="$CFLAGS"
  6522. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6525. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6526. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6530. /* end confdefs.h. */
  6531. int i;
  6532. _ACEOF
  6533. if ac_fn_c_try_compile "$LINENO"; then :
  6534. xorg_cv_cc_flag_unknown_warning_option=yes
  6535. else
  6536. xorg_cv_cc_flag_unknown_warning_option=no
  6537. fi
  6538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6539. fi
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6541. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6542. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6543. CFLAGS="$xorg_testset_save_CFLAGS"
  6544. fi
  6545. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6546. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6547. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6548. fi
  6549. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6551. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6552. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. int i;
  6558. _ACEOF
  6559. if ac_fn_c_try_compile "$LINENO"; then :
  6560. xorg_cv_cc_flag_unused_command_line_argument=yes
  6561. else
  6562. xorg_cv_cc_flag_unused_command_line_argument=no
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6565. fi
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6567. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6568. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6569. CFLAGS="$xorg_testset_save_CFLAGS"
  6570. fi
  6571. found="no"
  6572. if test $found = "no" ; then
  6573. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6574. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6575. fi
  6576. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6577. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6578. fi
  6579. CFLAGS="$CFLAGS -Werror=write-strings"
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6581. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6582. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6583. if eval \${$cacheid+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6587. /* end confdefs.h. */
  6588. int i;
  6589. int
  6590. main ()
  6591. {
  6592. ;
  6593. return 0;
  6594. }
  6595. _ACEOF
  6596. if ac_fn_c_try_link "$LINENO"; then :
  6597. eval $cacheid=yes
  6598. else
  6599. eval $cacheid=no
  6600. fi
  6601. rm -f core conftest.err conftest.$ac_objext \
  6602. conftest$ac_exeext conftest.$ac_ext
  6603. fi
  6604. CFLAGS="$xorg_testset_save_CFLAGS"
  6605. eval supported=\$$cacheid
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6607. $as_echo "$supported" >&6; }
  6608. if test "$supported" = "yes" ; then
  6609. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6610. found="yes"
  6611. fi
  6612. fi
  6613. xorg_testset_save_CFLAGS="$CFLAGS"
  6614. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6615. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6617. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6618. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. int i;
  6624. _ACEOF
  6625. if ac_fn_c_try_compile "$LINENO"; then :
  6626. xorg_cv_cc_flag_unknown_warning_option=yes
  6627. else
  6628. xorg_cv_cc_flag_unknown_warning_option=no
  6629. fi
  6630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6633. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6634. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6635. CFLAGS="$xorg_testset_save_CFLAGS"
  6636. fi
  6637. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6638. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6640. fi
  6641. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6643. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6644. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. int i;
  6650. _ACEOF
  6651. if ac_fn_c_try_compile "$LINENO"; then :
  6652. xorg_cv_cc_flag_unused_command_line_argument=yes
  6653. else
  6654. xorg_cv_cc_flag_unused_command_line_argument=no
  6655. fi
  6656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6659. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6660. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6661. CFLAGS="$xorg_testset_save_CFLAGS"
  6662. fi
  6663. found="no"
  6664. if test $found = "no" ; then
  6665. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6666. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6667. fi
  6668. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6669. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6670. fi
  6671. CFLAGS="$CFLAGS -Werror=address"
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6673. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6674. cacheid=xorg_cv_cc_flag__Werror_address
  6675. if eval \${$cacheid+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6679. /* end confdefs.h. */
  6680. int i;
  6681. int
  6682. main ()
  6683. {
  6684. ;
  6685. return 0;
  6686. }
  6687. _ACEOF
  6688. if ac_fn_c_try_link "$LINENO"; then :
  6689. eval $cacheid=yes
  6690. else
  6691. eval $cacheid=no
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext \
  6694. conftest$ac_exeext conftest.$ac_ext
  6695. fi
  6696. CFLAGS="$xorg_testset_save_CFLAGS"
  6697. eval supported=\$$cacheid
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6699. $as_echo "$supported" >&6; }
  6700. if test "$supported" = "yes" ; then
  6701. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6702. found="yes"
  6703. fi
  6704. fi
  6705. xorg_testset_save_CFLAGS="$CFLAGS"
  6706. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6707. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6709. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6710. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6714. /* end confdefs.h. */
  6715. int i;
  6716. _ACEOF
  6717. if ac_fn_c_try_compile "$LINENO"; then :
  6718. xorg_cv_cc_flag_unknown_warning_option=yes
  6719. else
  6720. xorg_cv_cc_flag_unknown_warning_option=no
  6721. fi
  6722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6723. fi
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6725. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6726. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6727. CFLAGS="$xorg_testset_save_CFLAGS"
  6728. fi
  6729. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6730. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6731. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6732. fi
  6733. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6735. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6736. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6740. /* end confdefs.h. */
  6741. int i;
  6742. _ACEOF
  6743. if ac_fn_c_try_compile "$LINENO"; then :
  6744. xorg_cv_cc_flag_unused_command_line_argument=yes
  6745. else
  6746. xorg_cv_cc_flag_unused_command_line_argument=no
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6751. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6752. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6753. CFLAGS="$xorg_testset_save_CFLAGS"
  6754. fi
  6755. found="no"
  6756. if test $found = "no" ; then
  6757. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6758. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6759. fi
  6760. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6761. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6762. fi
  6763. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6765. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6766. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6767. if eval \${$cacheid+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6771. /* end confdefs.h. */
  6772. int i;
  6773. int
  6774. main ()
  6775. {
  6776. ;
  6777. return 0;
  6778. }
  6779. _ACEOF
  6780. if ac_fn_c_try_link "$LINENO"; then :
  6781. eval $cacheid=yes
  6782. else
  6783. eval $cacheid=no
  6784. fi
  6785. rm -f core conftest.err conftest.$ac_objext \
  6786. conftest$ac_exeext conftest.$ac_ext
  6787. fi
  6788. CFLAGS="$xorg_testset_save_CFLAGS"
  6789. eval supported=\$$cacheid
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6791. $as_echo "$supported" >&6; }
  6792. if test "$supported" = "yes" ; then
  6793. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6794. found="yes"
  6795. fi
  6796. fi
  6797. if test $found = "no" ; then
  6798. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6799. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6800. fi
  6801. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6802. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6803. fi
  6804. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6806. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6807. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6808. if eval \${$cacheid+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6812. /* end confdefs.h. */
  6813. int i;
  6814. int
  6815. main ()
  6816. {
  6817. ;
  6818. return 0;
  6819. }
  6820. _ACEOF
  6821. if ac_fn_c_try_link "$LINENO"; then :
  6822. eval $cacheid=yes
  6823. else
  6824. eval $cacheid=no
  6825. fi
  6826. rm -f core conftest.err conftest.$ac_objext \
  6827. conftest$ac_exeext conftest.$ac_ext
  6828. fi
  6829. CFLAGS="$xorg_testset_save_CFLAGS"
  6830. eval supported=\$$cacheid
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6832. $as_echo "$supported" >&6; }
  6833. if test "$supported" = "yes" ; then
  6834. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6835. found="yes"
  6836. fi
  6837. fi
  6838. xorg_testset_save_CFLAGS="$CFLAGS"
  6839. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6840. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6842. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6843. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6847. /* end confdefs.h. */
  6848. int i;
  6849. _ACEOF
  6850. if ac_fn_c_try_compile "$LINENO"; then :
  6851. xorg_cv_cc_flag_unknown_warning_option=yes
  6852. else
  6853. xorg_cv_cc_flag_unknown_warning_option=no
  6854. fi
  6855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6856. fi
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6858. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6859. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6860. CFLAGS="$xorg_testset_save_CFLAGS"
  6861. fi
  6862. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6863. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6864. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6865. fi
  6866. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6868. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6869. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6870. $as_echo_n "(cached) " >&6
  6871. else
  6872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6873. /* end confdefs.h. */
  6874. int i;
  6875. _ACEOF
  6876. if ac_fn_c_try_compile "$LINENO"; then :
  6877. xorg_cv_cc_flag_unused_command_line_argument=yes
  6878. else
  6879. xorg_cv_cc_flag_unused_command_line_argument=no
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6884. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6885. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6886. CFLAGS="$xorg_testset_save_CFLAGS"
  6887. fi
  6888. found="no"
  6889. if test $found = "no" ; then
  6890. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6891. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6892. fi
  6893. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6894. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6895. fi
  6896. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6898. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6899. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6900. if eval \${$cacheid+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6904. /* end confdefs.h. */
  6905. int i;
  6906. int
  6907. main ()
  6908. {
  6909. ;
  6910. return 0;
  6911. }
  6912. _ACEOF
  6913. if ac_fn_c_try_link "$LINENO"; then :
  6914. eval $cacheid=yes
  6915. else
  6916. eval $cacheid=no
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext \
  6919. conftest$ac_exeext conftest.$ac_ext
  6920. fi
  6921. CFLAGS="$xorg_testset_save_CFLAGS"
  6922. eval supported=\$$cacheid
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6924. $as_echo "$supported" >&6; }
  6925. if test "$supported" = "yes" ; then
  6926. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6927. found="yes"
  6928. fi
  6929. fi
  6930. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6931. else
  6932. { $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
  6933. $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;}
  6934. xorg_testset_save_CFLAGS="$CFLAGS"
  6935. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6936. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6938. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6939. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6940. $as_echo_n "(cached) " >&6
  6941. else
  6942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6943. /* end confdefs.h. */
  6944. int i;
  6945. _ACEOF
  6946. if ac_fn_c_try_compile "$LINENO"; then :
  6947. xorg_cv_cc_flag_unknown_warning_option=yes
  6948. else
  6949. xorg_cv_cc_flag_unknown_warning_option=no
  6950. fi
  6951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6952. fi
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6954. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6955. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6956. CFLAGS="$xorg_testset_save_CFLAGS"
  6957. fi
  6958. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6959. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6960. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6961. fi
  6962. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6964. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6965. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6966. $as_echo_n "(cached) " >&6
  6967. else
  6968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6969. /* end confdefs.h. */
  6970. int i;
  6971. _ACEOF
  6972. if ac_fn_c_try_compile "$LINENO"; then :
  6973. xorg_cv_cc_flag_unused_command_line_argument=yes
  6974. else
  6975. xorg_cv_cc_flag_unused_command_line_argument=no
  6976. fi
  6977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6980. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6981. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6982. CFLAGS="$xorg_testset_save_CFLAGS"
  6983. fi
  6984. found="no"
  6985. if test $found = "no" ; then
  6986. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6987. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6988. fi
  6989. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6990. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6991. fi
  6992. CFLAGS="$CFLAGS -Wimplicit"
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  6994. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  6995. cacheid=xorg_cv_cc_flag__Wimplicit
  6996. if eval \${$cacheid+:} false; then :
  6997. $as_echo_n "(cached) " >&6
  6998. else
  6999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7000. /* end confdefs.h. */
  7001. int i;
  7002. int
  7003. main ()
  7004. {
  7005. ;
  7006. return 0;
  7007. }
  7008. _ACEOF
  7009. if ac_fn_c_try_link "$LINENO"; then :
  7010. eval $cacheid=yes
  7011. else
  7012. eval $cacheid=no
  7013. fi
  7014. rm -f core conftest.err conftest.$ac_objext \
  7015. conftest$ac_exeext conftest.$ac_ext
  7016. fi
  7017. CFLAGS="$xorg_testset_save_CFLAGS"
  7018. eval supported=\$$cacheid
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7020. $as_echo "$supported" >&6; }
  7021. if test "$supported" = "yes" ; then
  7022. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7023. found="yes"
  7024. fi
  7025. fi
  7026. xorg_testset_save_CFLAGS="$CFLAGS"
  7027. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7030. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7031. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7035. /* end confdefs.h. */
  7036. int i;
  7037. _ACEOF
  7038. if ac_fn_c_try_compile "$LINENO"; then :
  7039. xorg_cv_cc_flag_unknown_warning_option=yes
  7040. else
  7041. xorg_cv_cc_flag_unknown_warning_option=no
  7042. fi
  7043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7046. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7047. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7048. CFLAGS="$xorg_testset_save_CFLAGS"
  7049. fi
  7050. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7051. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7052. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7053. fi
  7054. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7056. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7057. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7061. /* end confdefs.h. */
  7062. int i;
  7063. _ACEOF
  7064. if ac_fn_c_try_compile "$LINENO"; then :
  7065. xorg_cv_cc_flag_unused_command_line_argument=yes
  7066. else
  7067. xorg_cv_cc_flag_unused_command_line_argument=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7072. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7073. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7074. CFLAGS="$xorg_testset_save_CFLAGS"
  7075. fi
  7076. found="no"
  7077. if test $found = "no" ; then
  7078. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7079. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7080. fi
  7081. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7082. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7083. fi
  7084. CFLAGS="$CFLAGS -Wnonnull"
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7086. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7087. cacheid=xorg_cv_cc_flag__Wnonnull
  7088. if eval \${$cacheid+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7092. /* end confdefs.h. */
  7093. int i;
  7094. int
  7095. main ()
  7096. {
  7097. ;
  7098. return 0;
  7099. }
  7100. _ACEOF
  7101. if ac_fn_c_try_link "$LINENO"; then :
  7102. eval $cacheid=yes
  7103. else
  7104. eval $cacheid=no
  7105. fi
  7106. rm -f core conftest.err conftest.$ac_objext \
  7107. conftest$ac_exeext conftest.$ac_ext
  7108. fi
  7109. CFLAGS="$xorg_testset_save_CFLAGS"
  7110. eval supported=\$$cacheid
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7112. $as_echo "$supported" >&6; }
  7113. if test "$supported" = "yes" ; then
  7114. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7115. found="yes"
  7116. fi
  7117. fi
  7118. xorg_testset_save_CFLAGS="$CFLAGS"
  7119. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7120. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7122. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7123. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7127. /* end confdefs.h. */
  7128. int i;
  7129. _ACEOF
  7130. if ac_fn_c_try_compile "$LINENO"; then :
  7131. xorg_cv_cc_flag_unknown_warning_option=yes
  7132. else
  7133. xorg_cv_cc_flag_unknown_warning_option=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. fi
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7138. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7139. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7140. CFLAGS="$xorg_testset_save_CFLAGS"
  7141. fi
  7142. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7143. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7145. fi
  7146. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7148. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7149. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. int i;
  7155. _ACEOF
  7156. if ac_fn_c_try_compile "$LINENO"; then :
  7157. xorg_cv_cc_flag_unused_command_line_argument=yes
  7158. else
  7159. xorg_cv_cc_flag_unused_command_line_argument=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7164. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7165. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7166. CFLAGS="$xorg_testset_save_CFLAGS"
  7167. fi
  7168. found="no"
  7169. if test $found = "no" ; then
  7170. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7171. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7172. fi
  7173. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7174. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7175. fi
  7176. CFLAGS="$CFLAGS -Winit-self"
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7178. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7179. cacheid=xorg_cv_cc_flag__Winit_self
  7180. if eval \${$cacheid+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7184. /* end confdefs.h. */
  7185. int i;
  7186. int
  7187. main ()
  7188. {
  7189. ;
  7190. return 0;
  7191. }
  7192. _ACEOF
  7193. if ac_fn_c_try_link "$LINENO"; then :
  7194. eval $cacheid=yes
  7195. else
  7196. eval $cacheid=no
  7197. fi
  7198. rm -f core conftest.err conftest.$ac_objext \
  7199. conftest$ac_exeext conftest.$ac_ext
  7200. fi
  7201. CFLAGS="$xorg_testset_save_CFLAGS"
  7202. eval supported=\$$cacheid
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7204. $as_echo "$supported" >&6; }
  7205. if test "$supported" = "yes" ; then
  7206. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7207. found="yes"
  7208. fi
  7209. fi
  7210. xorg_testset_save_CFLAGS="$CFLAGS"
  7211. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7212. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7214. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7215. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7219. /* end confdefs.h. */
  7220. int i;
  7221. _ACEOF
  7222. if ac_fn_c_try_compile "$LINENO"; then :
  7223. xorg_cv_cc_flag_unknown_warning_option=yes
  7224. else
  7225. xorg_cv_cc_flag_unknown_warning_option=no
  7226. fi
  7227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7230. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7231. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7232. CFLAGS="$xorg_testset_save_CFLAGS"
  7233. fi
  7234. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7235. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7237. fi
  7238. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7240. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7241. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h. */
  7246. int i;
  7247. _ACEOF
  7248. if ac_fn_c_try_compile "$LINENO"; then :
  7249. xorg_cv_cc_flag_unused_command_line_argument=yes
  7250. else
  7251. xorg_cv_cc_flag_unused_command_line_argument=no
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7256. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7257. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7258. CFLAGS="$xorg_testset_save_CFLAGS"
  7259. fi
  7260. found="no"
  7261. if test $found = "no" ; then
  7262. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7263. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7264. fi
  7265. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7266. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7267. fi
  7268. CFLAGS="$CFLAGS -Wmain"
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7270. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7271. cacheid=xorg_cv_cc_flag__Wmain
  7272. if eval \${$cacheid+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7276. /* end confdefs.h. */
  7277. int i;
  7278. int
  7279. main ()
  7280. {
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_c_try_link "$LINENO"; then :
  7286. eval $cacheid=yes
  7287. else
  7288. eval $cacheid=no
  7289. fi
  7290. rm -f core conftest.err conftest.$ac_objext \
  7291. conftest$ac_exeext conftest.$ac_ext
  7292. fi
  7293. CFLAGS="$xorg_testset_save_CFLAGS"
  7294. eval supported=\$$cacheid
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7296. $as_echo "$supported" >&6; }
  7297. if test "$supported" = "yes" ; then
  7298. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7299. found="yes"
  7300. fi
  7301. fi
  7302. xorg_testset_save_CFLAGS="$CFLAGS"
  7303. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7304. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7306. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7307. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7308. $as_echo_n "(cached) " >&6
  7309. else
  7310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7311. /* end confdefs.h. */
  7312. int i;
  7313. _ACEOF
  7314. if ac_fn_c_try_compile "$LINENO"; then :
  7315. xorg_cv_cc_flag_unknown_warning_option=yes
  7316. else
  7317. xorg_cv_cc_flag_unknown_warning_option=no
  7318. fi
  7319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7322. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7323. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7324. CFLAGS="$xorg_testset_save_CFLAGS"
  7325. fi
  7326. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7327. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7329. fi
  7330. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7332. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7333. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7337. /* end confdefs.h. */
  7338. int i;
  7339. _ACEOF
  7340. if ac_fn_c_try_compile "$LINENO"; then :
  7341. xorg_cv_cc_flag_unused_command_line_argument=yes
  7342. else
  7343. xorg_cv_cc_flag_unused_command_line_argument=no
  7344. fi
  7345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7348. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7349. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7350. CFLAGS="$xorg_testset_save_CFLAGS"
  7351. fi
  7352. found="no"
  7353. if test $found = "no" ; then
  7354. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7355. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7356. fi
  7357. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7358. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7359. fi
  7360. CFLAGS="$CFLAGS -Wmissing-braces"
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7362. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7363. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7364. if eval \${$cacheid+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7368. /* end confdefs.h. */
  7369. int i;
  7370. int
  7371. main ()
  7372. {
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. if ac_fn_c_try_link "$LINENO"; then :
  7378. eval $cacheid=yes
  7379. else
  7380. eval $cacheid=no
  7381. fi
  7382. rm -f core conftest.err conftest.$ac_objext \
  7383. conftest$ac_exeext conftest.$ac_ext
  7384. fi
  7385. CFLAGS="$xorg_testset_save_CFLAGS"
  7386. eval supported=\$$cacheid
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7388. $as_echo "$supported" >&6; }
  7389. if test "$supported" = "yes" ; then
  7390. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7391. found="yes"
  7392. fi
  7393. fi
  7394. xorg_testset_save_CFLAGS="$CFLAGS"
  7395. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7396. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7398. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7399. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7403. /* end confdefs.h. */
  7404. int i;
  7405. _ACEOF
  7406. if ac_fn_c_try_compile "$LINENO"; then :
  7407. xorg_cv_cc_flag_unknown_warning_option=yes
  7408. else
  7409. xorg_cv_cc_flag_unknown_warning_option=no
  7410. fi
  7411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7414. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7415. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7416. CFLAGS="$xorg_testset_save_CFLAGS"
  7417. fi
  7418. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7419. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7420. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7421. fi
  7422. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7424. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7425. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7426. $as_echo_n "(cached) " >&6
  7427. else
  7428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7429. /* end confdefs.h. */
  7430. int i;
  7431. _ACEOF
  7432. if ac_fn_c_try_compile "$LINENO"; then :
  7433. xorg_cv_cc_flag_unused_command_line_argument=yes
  7434. else
  7435. xorg_cv_cc_flag_unused_command_line_argument=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. fi
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7440. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7441. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7442. CFLAGS="$xorg_testset_save_CFLAGS"
  7443. fi
  7444. found="no"
  7445. if test $found = "no" ; then
  7446. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7447. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7448. fi
  7449. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7450. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7451. fi
  7452. CFLAGS="$CFLAGS -Wsequence-point"
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7454. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7455. cacheid=xorg_cv_cc_flag__Wsequence_point
  7456. if eval \${$cacheid+:} false; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7460. /* end confdefs.h. */
  7461. int i;
  7462. int
  7463. main ()
  7464. {
  7465. ;
  7466. return 0;
  7467. }
  7468. _ACEOF
  7469. if ac_fn_c_try_link "$LINENO"; then :
  7470. eval $cacheid=yes
  7471. else
  7472. eval $cacheid=no
  7473. fi
  7474. rm -f core conftest.err conftest.$ac_objext \
  7475. conftest$ac_exeext conftest.$ac_ext
  7476. fi
  7477. CFLAGS="$xorg_testset_save_CFLAGS"
  7478. eval supported=\$$cacheid
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7480. $as_echo "$supported" >&6; }
  7481. if test "$supported" = "yes" ; then
  7482. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7483. found="yes"
  7484. fi
  7485. fi
  7486. xorg_testset_save_CFLAGS="$CFLAGS"
  7487. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7488. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7490. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7491. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7492. $as_echo_n "(cached) " >&6
  7493. else
  7494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7495. /* end confdefs.h. */
  7496. int i;
  7497. _ACEOF
  7498. if ac_fn_c_try_compile "$LINENO"; then :
  7499. xorg_cv_cc_flag_unknown_warning_option=yes
  7500. else
  7501. xorg_cv_cc_flag_unknown_warning_option=no
  7502. fi
  7503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7506. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7507. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7508. CFLAGS="$xorg_testset_save_CFLAGS"
  7509. fi
  7510. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7511. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7512. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7513. fi
  7514. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7516. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7517. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. int i;
  7523. _ACEOF
  7524. if ac_fn_c_try_compile "$LINENO"; then :
  7525. xorg_cv_cc_flag_unused_command_line_argument=yes
  7526. else
  7527. xorg_cv_cc_flag_unused_command_line_argument=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7532. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7533. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7534. CFLAGS="$xorg_testset_save_CFLAGS"
  7535. fi
  7536. found="no"
  7537. if test $found = "no" ; then
  7538. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7539. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7540. fi
  7541. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7542. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7543. fi
  7544. CFLAGS="$CFLAGS -Wreturn-type"
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7546. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7547. cacheid=xorg_cv_cc_flag__Wreturn_type
  7548. if eval \${$cacheid+:} false; then :
  7549. $as_echo_n "(cached) " >&6
  7550. else
  7551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7552. /* end confdefs.h. */
  7553. int i;
  7554. int
  7555. main ()
  7556. {
  7557. ;
  7558. return 0;
  7559. }
  7560. _ACEOF
  7561. if ac_fn_c_try_link "$LINENO"; then :
  7562. eval $cacheid=yes
  7563. else
  7564. eval $cacheid=no
  7565. fi
  7566. rm -f core conftest.err conftest.$ac_objext \
  7567. conftest$ac_exeext conftest.$ac_ext
  7568. fi
  7569. CFLAGS="$xorg_testset_save_CFLAGS"
  7570. eval supported=\$$cacheid
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7572. $as_echo "$supported" >&6; }
  7573. if test "$supported" = "yes" ; then
  7574. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7575. found="yes"
  7576. fi
  7577. fi
  7578. xorg_testset_save_CFLAGS="$CFLAGS"
  7579. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7580. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7582. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7583. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7584. $as_echo_n "(cached) " >&6
  7585. else
  7586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7587. /* end confdefs.h. */
  7588. int i;
  7589. _ACEOF
  7590. if ac_fn_c_try_compile "$LINENO"; then :
  7591. xorg_cv_cc_flag_unknown_warning_option=yes
  7592. else
  7593. xorg_cv_cc_flag_unknown_warning_option=no
  7594. fi
  7595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7596. fi
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7598. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7599. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7600. CFLAGS="$xorg_testset_save_CFLAGS"
  7601. fi
  7602. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7603. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7604. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7605. fi
  7606. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7608. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7609. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7613. /* end confdefs.h. */
  7614. int i;
  7615. _ACEOF
  7616. if ac_fn_c_try_compile "$LINENO"; then :
  7617. xorg_cv_cc_flag_unused_command_line_argument=yes
  7618. else
  7619. xorg_cv_cc_flag_unused_command_line_argument=no
  7620. fi
  7621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7622. fi
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7624. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7625. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7626. CFLAGS="$xorg_testset_save_CFLAGS"
  7627. fi
  7628. found="no"
  7629. if test $found = "no" ; then
  7630. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7631. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7632. fi
  7633. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7634. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7635. fi
  7636. CFLAGS="$CFLAGS -Wtrigraphs"
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7638. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7639. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7640. if eval \${$cacheid+:} false; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. int i;
  7646. int
  7647. main ()
  7648. {
  7649. ;
  7650. return 0;
  7651. }
  7652. _ACEOF
  7653. if ac_fn_c_try_link "$LINENO"; then :
  7654. eval $cacheid=yes
  7655. else
  7656. eval $cacheid=no
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext \
  7659. conftest$ac_exeext conftest.$ac_ext
  7660. fi
  7661. CFLAGS="$xorg_testset_save_CFLAGS"
  7662. eval supported=\$$cacheid
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7664. $as_echo "$supported" >&6; }
  7665. if test "$supported" = "yes" ; then
  7666. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7667. found="yes"
  7668. fi
  7669. fi
  7670. xorg_testset_save_CFLAGS="$CFLAGS"
  7671. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7672. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7674. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7675. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7676. $as_echo_n "(cached) " >&6
  7677. else
  7678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7679. /* end confdefs.h. */
  7680. int i;
  7681. _ACEOF
  7682. if ac_fn_c_try_compile "$LINENO"; then :
  7683. xorg_cv_cc_flag_unknown_warning_option=yes
  7684. else
  7685. xorg_cv_cc_flag_unknown_warning_option=no
  7686. fi
  7687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7688. fi
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7690. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7691. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7692. CFLAGS="$xorg_testset_save_CFLAGS"
  7693. fi
  7694. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7695. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7696. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7697. fi
  7698. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7700. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7701. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7702. $as_echo_n "(cached) " >&6
  7703. else
  7704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7705. /* end confdefs.h. */
  7706. int i;
  7707. _ACEOF
  7708. if ac_fn_c_try_compile "$LINENO"; then :
  7709. xorg_cv_cc_flag_unused_command_line_argument=yes
  7710. else
  7711. xorg_cv_cc_flag_unused_command_line_argument=no
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7714. fi
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7716. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7717. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7718. CFLAGS="$xorg_testset_save_CFLAGS"
  7719. fi
  7720. found="no"
  7721. if test $found = "no" ; then
  7722. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7723. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7724. fi
  7725. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7726. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7727. fi
  7728. CFLAGS="$CFLAGS -Warray-bounds"
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7730. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7731. cacheid=xorg_cv_cc_flag__Warray_bounds
  7732. if eval \${$cacheid+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7736. /* end confdefs.h. */
  7737. int i;
  7738. int
  7739. main ()
  7740. {
  7741. ;
  7742. return 0;
  7743. }
  7744. _ACEOF
  7745. if ac_fn_c_try_link "$LINENO"; then :
  7746. eval $cacheid=yes
  7747. else
  7748. eval $cacheid=no
  7749. fi
  7750. rm -f core conftest.err conftest.$ac_objext \
  7751. conftest$ac_exeext conftest.$ac_ext
  7752. fi
  7753. CFLAGS="$xorg_testset_save_CFLAGS"
  7754. eval supported=\$$cacheid
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7756. $as_echo "$supported" >&6; }
  7757. if test "$supported" = "yes" ; then
  7758. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7759. found="yes"
  7760. fi
  7761. fi
  7762. xorg_testset_save_CFLAGS="$CFLAGS"
  7763. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7764. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7766. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7767. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7768. $as_echo_n "(cached) " >&6
  7769. else
  7770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h. */
  7772. int i;
  7773. _ACEOF
  7774. if ac_fn_c_try_compile "$LINENO"; then :
  7775. xorg_cv_cc_flag_unknown_warning_option=yes
  7776. else
  7777. xorg_cv_cc_flag_unknown_warning_option=no
  7778. fi
  7779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7782. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7783. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7784. CFLAGS="$xorg_testset_save_CFLAGS"
  7785. fi
  7786. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7787. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7788. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7789. fi
  7790. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7792. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7793. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7794. $as_echo_n "(cached) " >&6
  7795. else
  7796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7797. /* end confdefs.h. */
  7798. int i;
  7799. _ACEOF
  7800. if ac_fn_c_try_compile "$LINENO"; then :
  7801. xorg_cv_cc_flag_unused_command_line_argument=yes
  7802. else
  7803. xorg_cv_cc_flag_unused_command_line_argument=no
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7808. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7809. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7810. CFLAGS="$xorg_testset_save_CFLAGS"
  7811. fi
  7812. found="no"
  7813. if test $found = "no" ; then
  7814. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7815. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7816. fi
  7817. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7818. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7819. fi
  7820. CFLAGS="$CFLAGS -Wwrite-strings"
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7822. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7823. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7824. if eval \${$cacheid+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7828. /* end confdefs.h. */
  7829. int i;
  7830. int
  7831. main ()
  7832. {
  7833. ;
  7834. return 0;
  7835. }
  7836. _ACEOF
  7837. if ac_fn_c_try_link "$LINENO"; then :
  7838. eval $cacheid=yes
  7839. else
  7840. eval $cacheid=no
  7841. fi
  7842. rm -f core conftest.err conftest.$ac_objext \
  7843. conftest$ac_exeext conftest.$ac_ext
  7844. fi
  7845. CFLAGS="$xorg_testset_save_CFLAGS"
  7846. eval supported=\$$cacheid
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7848. $as_echo "$supported" >&6; }
  7849. if test "$supported" = "yes" ; then
  7850. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7851. found="yes"
  7852. fi
  7853. fi
  7854. xorg_testset_save_CFLAGS="$CFLAGS"
  7855. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7856. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7858. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7859. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7860. $as_echo_n "(cached) " >&6
  7861. else
  7862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7863. /* end confdefs.h. */
  7864. int i;
  7865. _ACEOF
  7866. if ac_fn_c_try_compile "$LINENO"; then :
  7867. xorg_cv_cc_flag_unknown_warning_option=yes
  7868. else
  7869. xorg_cv_cc_flag_unknown_warning_option=no
  7870. fi
  7871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7872. fi
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7874. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7875. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7876. CFLAGS="$xorg_testset_save_CFLAGS"
  7877. fi
  7878. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7879. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7880. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7881. fi
  7882. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7884. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7885. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7886. $as_echo_n "(cached) " >&6
  7887. else
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. int i;
  7891. _ACEOF
  7892. if ac_fn_c_try_compile "$LINENO"; then :
  7893. xorg_cv_cc_flag_unused_command_line_argument=yes
  7894. else
  7895. xorg_cv_cc_flag_unused_command_line_argument=no
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7898. fi
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7900. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7901. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7902. CFLAGS="$xorg_testset_save_CFLAGS"
  7903. fi
  7904. found="no"
  7905. if test $found = "no" ; then
  7906. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7907. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7908. fi
  7909. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7910. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7911. fi
  7912. CFLAGS="$CFLAGS -Waddress"
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7914. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7915. cacheid=xorg_cv_cc_flag__Waddress
  7916. if eval \${$cacheid+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7920. /* end confdefs.h. */
  7921. int i;
  7922. int
  7923. main ()
  7924. {
  7925. ;
  7926. return 0;
  7927. }
  7928. _ACEOF
  7929. if ac_fn_c_try_link "$LINENO"; then :
  7930. eval $cacheid=yes
  7931. else
  7932. eval $cacheid=no
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext \
  7935. conftest$ac_exeext conftest.$ac_ext
  7936. fi
  7937. CFLAGS="$xorg_testset_save_CFLAGS"
  7938. eval supported=\$$cacheid
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7940. $as_echo "$supported" >&6; }
  7941. if test "$supported" = "yes" ; then
  7942. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7943. found="yes"
  7944. fi
  7945. fi
  7946. xorg_testset_save_CFLAGS="$CFLAGS"
  7947. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7948. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7950. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7951. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7952. $as_echo_n "(cached) " >&6
  7953. else
  7954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7955. /* end confdefs.h. */
  7956. int i;
  7957. _ACEOF
  7958. if ac_fn_c_try_compile "$LINENO"; then :
  7959. xorg_cv_cc_flag_unknown_warning_option=yes
  7960. else
  7961. xorg_cv_cc_flag_unknown_warning_option=no
  7962. fi
  7963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7966. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7967. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7968. CFLAGS="$xorg_testset_save_CFLAGS"
  7969. fi
  7970. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7971. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7972. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7973. fi
  7974. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7976. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7977. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7978. $as_echo_n "(cached) " >&6
  7979. else
  7980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7981. /* end confdefs.h. */
  7982. int i;
  7983. _ACEOF
  7984. if ac_fn_c_try_compile "$LINENO"; then :
  7985. xorg_cv_cc_flag_unused_command_line_argument=yes
  7986. else
  7987. xorg_cv_cc_flag_unused_command_line_argument=no
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7992. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7993. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7994. CFLAGS="$xorg_testset_save_CFLAGS"
  7995. fi
  7996. found="no"
  7997. if test $found = "no" ; then
  7998. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7999. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8000. fi
  8001. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8002. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8003. fi
  8004. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8006. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8007. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8008. if eval \${$cacheid+:} false; then :
  8009. $as_echo_n "(cached) " >&6
  8010. else
  8011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8012. /* end confdefs.h. */
  8013. int i;
  8014. int
  8015. main ()
  8016. {
  8017. ;
  8018. return 0;
  8019. }
  8020. _ACEOF
  8021. if ac_fn_c_try_link "$LINENO"; then :
  8022. eval $cacheid=yes
  8023. else
  8024. eval $cacheid=no
  8025. fi
  8026. rm -f core conftest.err conftest.$ac_objext \
  8027. conftest$ac_exeext conftest.$ac_ext
  8028. fi
  8029. CFLAGS="$xorg_testset_save_CFLAGS"
  8030. eval supported=\$$cacheid
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8032. $as_echo "$supported" >&6; }
  8033. if test "$supported" = "yes" ; then
  8034. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8035. found="yes"
  8036. fi
  8037. fi
  8038. xorg_testset_save_CFLAGS="$CFLAGS"
  8039. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8040. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8042. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8043. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8044. $as_echo_n "(cached) " >&6
  8045. else
  8046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8047. /* end confdefs.h. */
  8048. int i;
  8049. _ACEOF
  8050. if ac_fn_c_try_compile "$LINENO"; then :
  8051. xorg_cv_cc_flag_unknown_warning_option=yes
  8052. else
  8053. xorg_cv_cc_flag_unknown_warning_option=no
  8054. fi
  8055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8056. fi
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8058. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8059. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8060. CFLAGS="$xorg_testset_save_CFLAGS"
  8061. fi
  8062. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8063. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8064. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8065. fi
  8066. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8068. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8069. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8070. $as_echo_n "(cached) " >&6
  8071. else
  8072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8073. /* end confdefs.h. */
  8074. int i;
  8075. _ACEOF
  8076. if ac_fn_c_try_compile "$LINENO"; then :
  8077. xorg_cv_cc_flag_unused_command_line_argument=yes
  8078. else
  8079. xorg_cv_cc_flag_unused_command_line_argument=no
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8084. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8085. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8086. CFLAGS="$xorg_testset_save_CFLAGS"
  8087. fi
  8088. found="no"
  8089. if test $found = "no" ; then
  8090. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8091. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8092. fi
  8093. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8094. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8095. fi
  8096. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8098. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8099. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8100. if eval \${$cacheid+:} false; then :
  8101. $as_echo_n "(cached) " >&6
  8102. else
  8103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8104. /* end confdefs.h. */
  8105. int i;
  8106. int
  8107. main ()
  8108. {
  8109. ;
  8110. return 0;
  8111. }
  8112. _ACEOF
  8113. if ac_fn_c_try_link "$LINENO"; then :
  8114. eval $cacheid=yes
  8115. else
  8116. eval $cacheid=no
  8117. fi
  8118. rm -f core conftest.err conftest.$ac_objext \
  8119. conftest$ac_exeext conftest.$ac_ext
  8120. fi
  8121. CFLAGS="$xorg_testset_save_CFLAGS"
  8122. eval supported=\$$cacheid
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8124. $as_echo "$supported" >&6; }
  8125. if test "$supported" = "yes" ; then
  8126. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8127. found="yes"
  8128. fi
  8129. fi
  8130. fi
  8131. CWARNFLAGS="$BASE_CFLAGS"
  8132. if test "x$GCC" = xyes ; then
  8133. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8134. fi
  8135. # Check whether --enable-strict-compilation was given.
  8136. if test "${enable_strict_compilation+set}" = set; then :
  8137. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8138. else
  8139. STRICT_COMPILE=no
  8140. fi
  8141. STRICT_CFLAGS=""
  8142. xorg_testset_save_CFLAGS="$CFLAGS"
  8143. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8146. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8147. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8148. $as_echo_n "(cached) " >&6
  8149. else
  8150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8151. /* end confdefs.h. */
  8152. int i;
  8153. _ACEOF
  8154. if ac_fn_c_try_compile "$LINENO"; then :
  8155. xorg_cv_cc_flag_unknown_warning_option=yes
  8156. else
  8157. xorg_cv_cc_flag_unknown_warning_option=no
  8158. fi
  8159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8160. fi
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8162. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8163. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8164. CFLAGS="$xorg_testset_save_CFLAGS"
  8165. fi
  8166. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8167. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8168. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8169. fi
  8170. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8172. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8173. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8177. /* end confdefs.h. */
  8178. int i;
  8179. _ACEOF
  8180. if ac_fn_c_try_compile "$LINENO"; then :
  8181. xorg_cv_cc_flag_unused_command_line_argument=yes
  8182. else
  8183. xorg_cv_cc_flag_unused_command_line_argument=no
  8184. fi
  8185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8186. fi
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8188. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8189. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8190. CFLAGS="$xorg_testset_save_CFLAGS"
  8191. fi
  8192. found="no"
  8193. if test $found = "no" ; then
  8194. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8195. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8196. fi
  8197. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8198. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8199. fi
  8200. CFLAGS="$CFLAGS -pedantic"
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8202. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8203. cacheid=xorg_cv_cc_flag__pedantic
  8204. if eval \${$cacheid+:} false; then :
  8205. $as_echo_n "(cached) " >&6
  8206. else
  8207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8208. /* end confdefs.h. */
  8209. int i;
  8210. int
  8211. main ()
  8212. {
  8213. ;
  8214. return 0;
  8215. }
  8216. _ACEOF
  8217. if ac_fn_c_try_link "$LINENO"; then :
  8218. eval $cacheid=yes
  8219. else
  8220. eval $cacheid=no
  8221. fi
  8222. rm -f core conftest.err conftest.$ac_objext \
  8223. conftest$ac_exeext conftest.$ac_ext
  8224. fi
  8225. CFLAGS="$xorg_testset_save_CFLAGS"
  8226. eval supported=\$$cacheid
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8228. $as_echo "$supported" >&6; }
  8229. if test "$supported" = "yes" ; then
  8230. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8231. found="yes"
  8232. fi
  8233. fi
  8234. xorg_testset_save_CFLAGS="$CFLAGS"
  8235. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8238. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8239. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8240. $as_echo_n "(cached) " >&6
  8241. else
  8242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8243. /* end confdefs.h. */
  8244. int i;
  8245. _ACEOF
  8246. if ac_fn_c_try_compile "$LINENO"; then :
  8247. xorg_cv_cc_flag_unknown_warning_option=yes
  8248. else
  8249. xorg_cv_cc_flag_unknown_warning_option=no
  8250. fi
  8251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8254. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8255. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8256. CFLAGS="$xorg_testset_save_CFLAGS"
  8257. fi
  8258. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8259. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8260. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8261. fi
  8262. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8264. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8265. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8269. /* end confdefs.h. */
  8270. int i;
  8271. _ACEOF
  8272. if ac_fn_c_try_compile "$LINENO"; then :
  8273. xorg_cv_cc_flag_unused_command_line_argument=yes
  8274. else
  8275. xorg_cv_cc_flag_unused_command_line_argument=no
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8280. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8281. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8282. CFLAGS="$xorg_testset_save_CFLAGS"
  8283. fi
  8284. found="no"
  8285. if test $found = "no" ; then
  8286. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8287. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8288. fi
  8289. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8290. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8291. fi
  8292. CFLAGS="$CFLAGS -Werror"
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8294. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8295. cacheid=xorg_cv_cc_flag__Werror
  8296. if eval \${$cacheid+:} false; then :
  8297. $as_echo_n "(cached) " >&6
  8298. else
  8299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8300. /* end confdefs.h. */
  8301. int i;
  8302. int
  8303. main ()
  8304. {
  8305. ;
  8306. return 0;
  8307. }
  8308. _ACEOF
  8309. if ac_fn_c_try_link "$LINENO"; then :
  8310. eval $cacheid=yes
  8311. else
  8312. eval $cacheid=no
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. fi
  8317. CFLAGS="$xorg_testset_save_CFLAGS"
  8318. eval supported=\$$cacheid
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8320. $as_echo "$supported" >&6; }
  8321. if test "$supported" = "yes" ; then
  8322. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8323. found="yes"
  8324. fi
  8325. fi
  8326. if test $found = "no" ; then
  8327. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8329. fi
  8330. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8331. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8332. fi
  8333. CFLAGS="$CFLAGS -errwarn"
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8335. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8336. cacheid=xorg_cv_cc_flag__errwarn
  8337. if eval \${$cacheid+:} false; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8341. /* end confdefs.h. */
  8342. int i;
  8343. int
  8344. main ()
  8345. {
  8346. ;
  8347. return 0;
  8348. }
  8349. _ACEOF
  8350. if ac_fn_c_try_link "$LINENO"; then :
  8351. eval $cacheid=yes
  8352. else
  8353. eval $cacheid=no
  8354. fi
  8355. rm -f core conftest.err conftest.$ac_objext \
  8356. conftest$ac_exeext conftest.$ac_ext
  8357. fi
  8358. CFLAGS="$xorg_testset_save_CFLAGS"
  8359. eval supported=\$$cacheid
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8361. $as_echo "$supported" >&6; }
  8362. if test "$supported" = "yes" ; then
  8363. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8364. found="yes"
  8365. fi
  8366. fi
  8367. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8368. # activate it with -Werror, so we add it here explicitly.
  8369. xorg_testset_save_CFLAGS="$CFLAGS"
  8370. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8371. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8373. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8374. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8378. /* end confdefs.h. */
  8379. int i;
  8380. _ACEOF
  8381. if ac_fn_c_try_compile "$LINENO"; then :
  8382. xorg_cv_cc_flag_unknown_warning_option=yes
  8383. else
  8384. xorg_cv_cc_flag_unknown_warning_option=no
  8385. fi
  8386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8387. fi
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8389. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8390. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8391. CFLAGS="$xorg_testset_save_CFLAGS"
  8392. fi
  8393. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8394. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8395. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8396. fi
  8397. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8399. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8400. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8401. $as_echo_n "(cached) " >&6
  8402. else
  8403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8404. /* end confdefs.h. */
  8405. int i;
  8406. _ACEOF
  8407. if ac_fn_c_try_compile "$LINENO"; then :
  8408. xorg_cv_cc_flag_unused_command_line_argument=yes
  8409. else
  8410. xorg_cv_cc_flag_unused_command_line_argument=no
  8411. fi
  8412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8413. fi
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8415. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8416. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8417. CFLAGS="$xorg_testset_save_CFLAGS"
  8418. fi
  8419. found="no"
  8420. if test $found = "no" ; then
  8421. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8422. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8423. fi
  8424. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8425. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8426. fi
  8427. CFLAGS="$CFLAGS -Werror=attributes"
  8428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8429. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8430. cacheid=xorg_cv_cc_flag__Werror_attributes
  8431. if eval \${$cacheid+:} false; then :
  8432. $as_echo_n "(cached) " >&6
  8433. else
  8434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8435. /* end confdefs.h. */
  8436. int i;
  8437. int
  8438. main ()
  8439. {
  8440. ;
  8441. return 0;
  8442. }
  8443. _ACEOF
  8444. if ac_fn_c_try_link "$LINENO"; then :
  8445. eval $cacheid=yes
  8446. else
  8447. eval $cacheid=no
  8448. fi
  8449. rm -f core conftest.err conftest.$ac_objext \
  8450. conftest$ac_exeext conftest.$ac_ext
  8451. fi
  8452. CFLAGS="$xorg_testset_save_CFLAGS"
  8453. eval supported=\$$cacheid
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8455. $as_echo "$supported" >&6; }
  8456. if test "$supported" = "yes" ; then
  8457. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8458. found="yes"
  8459. fi
  8460. fi
  8461. if test "x$STRICT_COMPILE" = "xyes"; then
  8462. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8463. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8464. fi
  8465. cat >>confdefs.h <<_ACEOF
  8466. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8467. _ACEOF
  8468. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8469. if test "x$PVM" = "x"; then
  8470. PVM="0"
  8471. fi
  8472. cat >>confdefs.h <<_ACEOF
  8473. #define PACKAGE_VERSION_MINOR $PVM
  8474. _ACEOF
  8475. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8476. if test "x$PVP" = "x"; then
  8477. PVP="0"
  8478. fi
  8479. cat >>confdefs.h <<_ACEOF
  8480. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8481. _ACEOF
  8482. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8483. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8484. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8485. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8486. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8487. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8488. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8489. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8490. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8491. if test x$APP_MAN_SUFFIX = x ; then
  8492. APP_MAN_SUFFIX=1
  8493. fi
  8494. if test x$APP_MAN_DIR = x ; then
  8495. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8496. fi
  8497. if test x$LIB_MAN_SUFFIX = x ; then
  8498. LIB_MAN_SUFFIX=3
  8499. fi
  8500. if test x$LIB_MAN_DIR = x ; then
  8501. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8502. fi
  8503. if test x$FILE_MAN_SUFFIX = x ; then
  8504. case $host_os in
  8505. solaris*) FILE_MAN_SUFFIX=4 ;;
  8506. *) FILE_MAN_SUFFIX=5 ;;
  8507. esac
  8508. fi
  8509. if test x$FILE_MAN_DIR = x ; then
  8510. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8511. fi
  8512. if test x$MISC_MAN_SUFFIX = x ; then
  8513. case $host_os in
  8514. solaris*) MISC_MAN_SUFFIX=5 ;;
  8515. *) MISC_MAN_SUFFIX=7 ;;
  8516. esac
  8517. fi
  8518. if test x$MISC_MAN_DIR = x ; then
  8519. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8520. fi
  8521. if test x$DRIVER_MAN_SUFFIX = x ; then
  8522. case $host_os in
  8523. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8524. *) DRIVER_MAN_SUFFIX=4 ;;
  8525. esac
  8526. fi
  8527. if test x$DRIVER_MAN_DIR = x ; then
  8528. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8529. fi
  8530. if test x$ADMIN_MAN_SUFFIX = x ; then
  8531. case $host_os in
  8532. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8533. *) ADMIN_MAN_SUFFIX=8 ;;
  8534. esac
  8535. fi
  8536. if test x$ADMIN_MAN_DIR = x ; then
  8537. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8538. fi
  8539. XORG_MAN_PAGE="X Version 11"
  8540. MAN_SUBSTS="\
  8541. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8542. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8543. -e 's|__xservername__|Xorg|g' \
  8544. -e 's|__xconfigfile__|xorg.conf|g' \
  8545. -e 's|__projectroot__|\$(prefix)|g' \
  8546. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8547. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8548. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8549. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8550. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8551. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8552. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8553. # Check whether --enable-silent-rules was given.
  8554. if test "${enable_silent_rules+set}" = set; then :
  8555. enableval=$enable_silent_rules;
  8556. fi
  8557. case $enable_silent_rules in # (((
  8558. yes) AM_DEFAULT_VERBOSITY=0;;
  8559. no) AM_DEFAULT_VERBOSITY=1;;
  8560. *) AM_DEFAULT_VERBOSITY=0;;
  8561. esac
  8562. am_make=${MAKE-make}
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8564. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8565. if ${am_cv_make_support_nested_variables+:} false; then :
  8566. $as_echo_n "(cached) " >&6
  8567. else
  8568. if $as_echo 'TRUE=$(BAR$(V))
  8569. BAR0=false
  8570. BAR1=true
  8571. V=1
  8572. am__doit:
  8573. @$(TRUE)
  8574. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8575. am_cv_make_support_nested_variables=yes
  8576. else
  8577. am_cv_make_support_nested_variables=no
  8578. fi
  8579. fi
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8581. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8582. if test $am_cv_make_support_nested_variables = yes; then
  8583. AM_V='$(V)'
  8584. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8585. else
  8586. AM_V=$AM_DEFAULT_VERBOSITY
  8587. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8588. fi
  8589. AM_BACKSLASH='\'
  8590. # Checks for pkg-config packages
  8591. pkg_failed=no
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDRIINFO" >&5
  8593. $as_echo_n "checking for XDRIINFO... " >&6; }
  8594. if test -n "$XDRIINFO_CFLAGS"; then
  8595. pkg_cv_XDRIINFO_CFLAGS="$XDRIINFO_CFLAGS"
  8596. elif test -n "$PKG_CONFIG"; then
  8597. if test -n "$PKG_CONFIG" && \
  8598. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 glproto\""; } >&5
  8599. ($PKG_CONFIG --exists --print-errors "xext x11 glproto") 2>&5
  8600. ac_status=$?
  8601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8602. test $ac_status = 0; }; then
  8603. pkg_cv_XDRIINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 glproto" 2>/dev/null`
  8604. test "x$?" != "x0" && pkg_failed=yes
  8605. else
  8606. pkg_failed=yes
  8607. fi
  8608. else
  8609. pkg_failed=untried
  8610. fi
  8611. if test -n "$XDRIINFO_LIBS"; then
  8612. pkg_cv_XDRIINFO_LIBS="$XDRIINFO_LIBS"
  8613. elif test -n "$PKG_CONFIG"; then
  8614. if test -n "$PKG_CONFIG" && \
  8615. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 glproto\""; } >&5
  8616. ($PKG_CONFIG --exists --print-errors "xext x11 glproto") 2>&5
  8617. ac_status=$?
  8618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8619. test $ac_status = 0; }; then
  8620. pkg_cv_XDRIINFO_LIBS=`$PKG_CONFIG --libs "xext x11 glproto" 2>/dev/null`
  8621. test "x$?" != "x0" && pkg_failed=yes
  8622. else
  8623. pkg_failed=yes
  8624. fi
  8625. else
  8626. pkg_failed=untried
  8627. fi
  8628. if test $pkg_failed = yes; then
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8630. $as_echo "no" >&6; }
  8631. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8632. _pkg_short_errors_supported=yes
  8633. else
  8634. _pkg_short_errors_supported=no
  8635. fi
  8636. if test $_pkg_short_errors_supported = yes; then
  8637. XDRIINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext x11 glproto" 2>&1`
  8638. else
  8639. XDRIINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext x11 glproto" 2>&1`
  8640. fi
  8641. # Put the nasty error message in config.log where it belongs
  8642. echo "$XDRIINFO_PKG_ERRORS" >&5
  8643. as_fn_error $? "Package requirements (xext x11 glproto) were not met:
  8644. $XDRIINFO_PKG_ERRORS
  8645. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8646. installed software in a non-standard prefix.
  8647. Alternatively, you may set the environment variables XDRIINFO_CFLAGS
  8648. and XDRIINFO_LIBS to avoid the need to call pkg-config.
  8649. See the pkg-config man page for more details." "$LINENO" 5
  8650. elif test $pkg_failed = untried; then
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8652. $as_echo "no" >&6; }
  8653. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8655. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8656. is in your PATH or set the PKG_CONFIG environment variable to the full
  8657. path to pkg-config.
  8658. Alternatively, you may set the environment variables XDRIINFO_CFLAGS
  8659. and XDRIINFO_LIBS to avoid the need to call pkg-config.
  8660. See the pkg-config man page for more details.
  8661. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8662. See \`config.log' for more details" "$LINENO" 5; }
  8663. else
  8664. XDRIINFO_CFLAGS=$pkg_cv_XDRIINFO_CFLAGS
  8665. XDRIINFO_LIBS=$pkg_cv_XDRIINFO_LIBS
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8667. $as_echo "yes" >&6; }
  8668. fi
  8669. # Checks for non-pkg-config packages (Mesa or vendor OpenGL)
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glXGetProcAddressARB" >&5
  8671. $as_echo_n "checking for library containing glXGetProcAddressARB... " >&6; }
  8672. if ${ac_cv_search_glXGetProcAddressARB+:} false; then :
  8673. $as_echo_n "(cached) " >&6
  8674. else
  8675. ac_func_search_save_LIBS=$LIBS
  8676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8677. /* end confdefs.h. */
  8678. /* Override any GCC internal prototype to avoid an error.
  8679. Use char because int might match the return type of a GCC
  8680. builtin and then its argument prototype would still apply. */
  8681. #ifdef __cplusplus
  8682. extern "C"
  8683. #endif
  8684. char glXGetProcAddressARB ();
  8685. int
  8686. main ()
  8687. {
  8688. return glXGetProcAddressARB ();
  8689. ;
  8690. return 0;
  8691. }
  8692. _ACEOF
  8693. for ac_lib in '' GL; do
  8694. if test -z "$ac_lib"; then
  8695. ac_res="none required"
  8696. else
  8697. ac_res=-l$ac_lib
  8698. LIBS="-l$ac_lib $XDRIINFO_LIBS $ac_func_search_save_LIBS"
  8699. fi
  8700. if ac_fn_c_try_link "$LINENO"; then :
  8701. ac_cv_search_glXGetProcAddressARB=$ac_res
  8702. fi
  8703. rm -f core conftest.err conftest.$ac_objext \
  8704. conftest$ac_exeext
  8705. if ${ac_cv_search_glXGetProcAddressARB+:} false; then :
  8706. break
  8707. fi
  8708. done
  8709. if ${ac_cv_search_glXGetProcAddressARB+:} false; then :
  8710. else
  8711. ac_cv_search_glXGetProcAddressARB=no
  8712. fi
  8713. rm conftest.$ac_ext
  8714. LIBS=$ac_func_search_save_LIBS
  8715. fi
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glXGetProcAddressARB" >&5
  8717. $as_echo "$ac_cv_search_glXGetProcAddressARB" >&6; }
  8718. ac_res=$ac_cv_search_glXGetProcAddressARB
  8719. if test "$ac_res" != no; then :
  8720. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8721. else
  8722. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8723. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8724. as_fn_error $? "cannot find GL library - make sure Mesa or other OpenGL package is installed
  8725. See \`config.log' for more details" "$LINENO" 5; }
  8726. fi
  8727. ac_config_files="$ac_config_files Makefile man/Makefile"
  8728. cat >confcache <<\_ACEOF
  8729. # This file is a shell script that caches the results of configure
  8730. # tests run on this system so they can be shared between configure
  8731. # scripts and configure runs, see configure's option --config-cache.
  8732. # It is not useful on other systems. If it contains results you don't
  8733. # want to keep, you may remove or edit it.
  8734. #
  8735. # config.status only pays attention to the cache file if you give it
  8736. # the --recheck option to rerun configure.
  8737. #
  8738. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8739. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8740. # following values.
  8741. _ACEOF
  8742. # The following way of writing the cache mishandles newlines in values,
  8743. # but we know of no workaround that is simple, portable, and efficient.
  8744. # So, we kill variables containing newlines.
  8745. # Ultrix sh set writes to stderr and can't be redirected directly,
  8746. # and sets the high bit in the cache file unless we assign to the vars.
  8747. (
  8748. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8749. eval ac_val=\$$ac_var
  8750. case $ac_val in #(
  8751. *${as_nl}*)
  8752. case $ac_var in #(
  8753. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8754. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8755. esac
  8756. case $ac_var in #(
  8757. _ | IFS | as_nl) ;; #(
  8758. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8759. *) { eval $ac_var=; unset $ac_var;} ;;
  8760. esac ;;
  8761. esac
  8762. done
  8763. (set) 2>&1 |
  8764. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8765. *${as_nl}ac_space=\ *)
  8766. # `set' does not quote correctly, so add quotes: double-quote
  8767. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8768. sed -n \
  8769. "s/'/'\\\\''/g;
  8770. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8771. ;; #(
  8772. *)
  8773. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8774. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8775. ;;
  8776. esac |
  8777. sort
  8778. ) |
  8779. sed '
  8780. /^ac_cv_env_/b end
  8781. t clear
  8782. :clear
  8783. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8784. t end
  8785. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8786. :end' >>confcache
  8787. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8788. if test -w "$cache_file"; then
  8789. if test "x$cache_file" != "x/dev/null"; then
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8791. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8792. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8793. cat confcache >"$cache_file"
  8794. else
  8795. case $cache_file in #(
  8796. */* | ?:*)
  8797. mv -f confcache "$cache_file"$$ &&
  8798. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8799. *)
  8800. mv -f confcache "$cache_file" ;;
  8801. esac
  8802. fi
  8803. fi
  8804. else
  8805. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8806. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8807. fi
  8808. fi
  8809. rm -f confcache
  8810. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8811. # Let make expand exec_prefix.
  8812. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8813. DEFS=-DHAVE_CONFIG_H
  8814. ac_libobjs=
  8815. ac_ltlibobjs=
  8816. U=
  8817. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8818. # 1. Remove the extension, and $U if already installed.
  8819. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8820. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8821. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8822. # will be set to the directory where LIBOBJS objects are built.
  8823. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8824. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8825. done
  8826. LIBOBJS=$ac_libobjs
  8827. LTLIBOBJS=$ac_ltlibobjs
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8829. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8830. if test -n "$am_sleep_pid"; then
  8831. # Hide warnings about reused PIDs.
  8832. wait $am_sleep_pid 2>/dev/null
  8833. fi
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8835. $as_echo "done" >&6; }
  8836. if test -n "$EXEEXT"; then
  8837. am__EXEEXT_TRUE=
  8838. am__EXEEXT_FALSE='#'
  8839. else
  8840. am__EXEEXT_TRUE='#'
  8841. am__EXEEXT_FALSE=
  8842. fi
  8843. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8844. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8845. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8846. fi
  8847. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8848. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8849. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8850. fi
  8851. : "${CONFIG_STATUS=./config.status}"
  8852. ac_write_fail=0
  8853. ac_clean_files_save=$ac_clean_files
  8854. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8856. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8857. as_write_fail=0
  8858. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8859. #! $SHELL
  8860. # Generated by $as_me.
  8861. # Run this file to recreate the current configuration.
  8862. # Compiler output produced by configure, useful for debugging
  8863. # configure, is in config.log if it exists.
  8864. debug=false
  8865. ac_cs_recheck=false
  8866. ac_cs_silent=false
  8867. SHELL=\${CONFIG_SHELL-$SHELL}
  8868. export SHELL
  8869. _ASEOF
  8870. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8871. ## -------------------- ##
  8872. ## M4sh Initialization. ##
  8873. ## -------------------- ##
  8874. # Be more Bourne compatible
  8875. DUALCASE=1; export DUALCASE # for MKS sh
  8876. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8877. emulate sh
  8878. NULLCMD=:
  8879. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8880. # is contrary to our usage. Disable this feature.
  8881. alias -g '${1+"$@"}'='"$@"'
  8882. setopt NO_GLOB_SUBST
  8883. else
  8884. case `(set -o) 2>/dev/null` in #(
  8885. *posix*) :
  8886. set -o posix ;; #(
  8887. *) :
  8888. ;;
  8889. esac
  8890. fi
  8891. as_nl='
  8892. '
  8893. export as_nl
  8894. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8895. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8896. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8897. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8898. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8899. # but without wasting forks for bash or zsh.
  8900. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8901. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8902. as_echo='print -r --'
  8903. as_echo_n='print -rn --'
  8904. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8905. as_echo='printf %s\n'
  8906. as_echo_n='printf %s'
  8907. else
  8908. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8909. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8910. as_echo_n='/usr/ucb/echo -n'
  8911. else
  8912. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8913. as_echo_n_body='eval
  8914. arg=$1;
  8915. case $arg in #(
  8916. *"$as_nl"*)
  8917. expr "X$arg" : "X\\(.*\\)$as_nl";
  8918. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8919. esac;
  8920. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8921. '
  8922. export as_echo_n_body
  8923. as_echo_n='sh -c $as_echo_n_body as_echo'
  8924. fi
  8925. export as_echo_body
  8926. as_echo='sh -c $as_echo_body as_echo'
  8927. fi
  8928. # The user is always right.
  8929. if test "${PATH_SEPARATOR+set}" != set; then
  8930. PATH_SEPARATOR=:
  8931. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8932. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8933. PATH_SEPARATOR=';'
  8934. }
  8935. fi
  8936. # IFS
  8937. # We need space, tab and new line, in precisely that order. Quoting is
  8938. # there to prevent editors from complaining about space-tab.
  8939. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8940. # splitting by setting IFS to empty value.)
  8941. IFS=" "" $as_nl"
  8942. # Find who we are. Look in the path if we contain no directory separator.
  8943. as_myself=
  8944. case $0 in #((
  8945. *[\\/]* ) as_myself=$0 ;;
  8946. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8947. for as_dir in $PATH
  8948. do
  8949. IFS=$as_save_IFS
  8950. test -z "$as_dir" && as_dir=.
  8951. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8952. done
  8953. IFS=$as_save_IFS
  8954. ;;
  8955. esac
  8956. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8957. # in which case we are not to be found in the path.
  8958. if test "x$as_myself" = x; then
  8959. as_myself=$0
  8960. fi
  8961. if test ! -f "$as_myself"; then
  8962. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8963. exit 1
  8964. fi
  8965. # Unset variables that we do not need and which cause bugs (e.g. in
  8966. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8967. # suppresses any "Segmentation fault" message there. '((' could
  8968. # trigger a bug in pdksh 5.2.14.
  8969. for as_var in BASH_ENV ENV MAIL MAILPATH
  8970. do eval test x\${$as_var+set} = xset \
  8971. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8972. done
  8973. PS1='$ '
  8974. PS2='> '
  8975. PS4='+ '
  8976. # NLS nuisances.
  8977. LC_ALL=C
  8978. export LC_ALL
  8979. LANGUAGE=C
  8980. export LANGUAGE
  8981. # CDPATH.
  8982. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8983. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8984. # ----------------------------------------
  8985. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8986. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8987. # script with STATUS, using 1 if that was 0.
  8988. as_fn_error ()
  8989. {
  8990. as_status=$1; test $as_status -eq 0 && as_status=1
  8991. if test "$4"; then
  8992. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8993. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8994. fi
  8995. $as_echo "$as_me: error: $2" >&2
  8996. as_fn_exit $as_status
  8997. } # as_fn_error
  8998. # as_fn_set_status STATUS
  8999. # -----------------------
  9000. # Set $? to STATUS, without forking.
  9001. as_fn_set_status ()
  9002. {
  9003. return $1
  9004. } # as_fn_set_status
  9005. # as_fn_exit STATUS
  9006. # -----------------
  9007. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9008. as_fn_exit ()
  9009. {
  9010. set +e
  9011. as_fn_set_status $1
  9012. exit $1
  9013. } # as_fn_exit
  9014. # as_fn_unset VAR
  9015. # ---------------
  9016. # Portably unset VAR.
  9017. as_fn_unset ()
  9018. {
  9019. { eval $1=; unset $1;}
  9020. }
  9021. as_unset=as_fn_unset
  9022. # as_fn_append VAR VALUE
  9023. # ----------------------
  9024. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9025. # advantage of any shell optimizations that allow amortized linear growth over
  9026. # repeated appends, instead of the typical quadratic growth present in naive
  9027. # implementations.
  9028. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9029. eval 'as_fn_append ()
  9030. {
  9031. eval $1+=\$2
  9032. }'
  9033. else
  9034. as_fn_append ()
  9035. {
  9036. eval $1=\$$1\$2
  9037. }
  9038. fi # as_fn_append
  9039. # as_fn_arith ARG...
  9040. # ------------------
  9041. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9042. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9043. # must be portable across $(()) and expr.
  9044. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9045. eval 'as_fn_arith ()
  9046. {
  9047. as_val=$(( $* ))
  9048. }'
  9049. else
  9050. as_fn_arith ()
  9051. {
  9052. as_val=`expr "$@" || test $? -eq 1`
  9053. }
  9054. fi # as_fn_arith
  9055. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9056. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9057. as_expr=expr
  9058. else
  9059. as_expr=false
  9060. fi
  9061. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9062. as_basename=basename
  9063. else
  9064. as_basename=false
  9065. fi
  9066. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9067. as_dirname=dirname
  9068. else
  9069. as_dirname=false
  9070. fi
  9071. as_me=`$as_basename -- "$0" ||
  9072. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9073. X"$0" : 'X\(//\)$' \| \
  9074. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9075. $as_echo X/"$0" |
  9076. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9077. s//\1/
  9078. q
  9079. }
  9080. /^X\/\(\/\/\)$/{
  9081. s//\1/
  9082. q
  9083. }
  9084. /^X\/\(\/\).*/{
  9085. s//\1/
  9086. q
  9087. }
  9088. s/.*/./; q'`
  9089. # Avoid depending upon Character Ranges.
  9090. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9091. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9092. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9093. as_cr_digits='0123456789'
  9094. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9095. ECHO_C= ECHO_N= ECHO_T=
  9096. case `echo -n x` in #(((((
  9097. -n*)
  9098. case `echo 'xy\c'` in
  9099. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9100. xy) ECHO_C='\c';;
  9101. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9102. ECHO_T=' ';;
  9103. esac;;
  9104. *)
  9105. ECHO_N='-n';;
  9106. esac
  9107. rm -f conf$$ conf$$.exe conf$$.file
  9108. if test -d conf$$.dir; then
  9109. rm -f conf$$.dir/conf$$.file
  9110. else
  9111. rm -f conf$$.dir
  9112. mkdir conf$$.dir 2>/dev/null
  9113. fi
  9114. if (echo >conf$$.file) 2>/dev/null; then
  9115. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9116. as_ln_s='ln -s'
  9117. # ... but there are two gotchas:
  9118. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9119. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9120. # In both cases, we have to default to `cp -pR'.
  9121. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9122. as_ln_s='cp -pR'
  9123. elif ln conf$$.file conf$$ 2>/dev/null; then
  9124. as_ln_s=ln
  9125. else
  9126. as_ln_s='cp -pR'
  9127. fi
  9128. else
  9129. as_ln_s='cp -pR'
  9130. fi
  9131. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9132. rmdir conf$$.dir 2>/dev/null
  9133. # as_fn_mkdir_p
  9134. # -------------
  9135. # Create "$as_dir" as a directory, including parents if necessary.
  9136. as_fn_mkdir_p ()
  9137. {
  9138. case $as_dir in #(
  9139. -*) as_dir=./$as_dir;;
  9140. esac
  9141. test -d "$as_dir" || eval $as_mkdir_p || {
  9142. as_dirs=
  9143. while :; do
  9144. case $as_dir in #(
  9145. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9146. *) as_qdir=$as_dir;;
  9147. esac
  9148. as_dirs="'$as_qdir' $as_dirs"
  9149. as_dir=`$as_dirname -- "$as_dir" ||
  9150. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9151. X"$as_dir" : 'X\(//\)[^/]' \| \
  9152. X"$as_dir" : 'X\(//\)$' \| \
  9153. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9154. $as_echo X"$as_dir" |
  9155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9156. s//\1/
  9157. q
  9158. }
  9159. /^X\(\/\/\)[^/].*/{
  9160. s//\1/
  9161. q
  9162. }
  9163. /^X\(\/\/\)$/{
  9164. s//\1/
  9165. q
  9166. }
  9167. /^X\(\/\).*/{
  9168. s//\1/
  9169. q
  9170. }
  9171. s/.*/./; q'`
  9172. test -d "$as_dir" && break
  9173. done
  9174. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9175. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9176. } # as_fn_mkdir_p
  9177. if mkdir -p . 2>/dev/null; then
  9178. as_mkdir_p='mkdir -p "$as_dir"'
  9179. else
  9180. test -d ./-p && rmdir ./-p
  9181. as_mkdir_p=false
  9182. fi
  9183. # as_fn_executable_p FILE
  9184. # -----------------------
  9185. # Test if FILE is an executable regular file.
  9186. as_fn_executable_p ()
  9187. {
  9188. test -f "$1" && test -x "$1"
  9189. } # as_fn_executable_p
  9190. as_test_x='test -x'
  9191. as_executable_p=as_fn_executable_p
  9192. # Sed expression to map a string onto a valid CPP name.
  9193. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9194. # Sed expression to map a string onto a valid variable name.
  9195. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9196. exec 6>&1
  9197. ## ----------------------------------- ##
  9198. ## Main body of $CONFIG_STATUS script. ##
  9199. ## ----------------------------------- ##
  9200. _ASEOF
  9201. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9202. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9203. # Save the log message, to keep $0 and so on meaningful, and to
  9204. # report actual input values of CONFIG_FILES etc. instead of their
  9205. # values after options handling.
  9206. ac_log="
  9207. This file was extended by xdriinfo $as_me 1.0.5, which was
  9208. generated by GNU Autoconf 2.69. Invocation command line was
  9209. CONFIG_FILES = $CONFIG_FILES
  9210. CONFIG_HEADERS = $CONFIG_HEADERS
  9211. CONFIG_LINKS = $CONFIG_LINKS
  9212. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9213. $ $0 $@
  9214. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9215. "
  9216. _ACEOF
  9217. case $ac_config_files in *"
  9218. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9219. esac
  9220. case $ac_config_headers in *"
  9221. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9222. esac
  9223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9224. # Files that config.status was made for.
  9225. config_files="$ac_config_files"
  9226. config_headers="$ac_config_headers"
  9227. config_commands="$ac_config_commands"
  9228. _ACEOF
  9229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9230. ac_cs_usage="\
  9231. \`$as_me' instantiates files and other configuration actions
  9232. from templates according to the current configuration. Unless the files
  9233. and actions are specified as TAGs, all are instantiated by default.
  9234. Usage: $0 [OPTION]... [TAG]...
  9235. -h, --help print this help, then exit
  9236. -V, --version print version number and configuration settings, then exit
  9237. --config print configuration, then exit
  9238. -q, --quiet, --silent
  9239. do not print progress messages
  9240. -d, --debug don't remove temporary files
  9241. --recheck update $as_me by reconfiguring in the same conditions
  9242. --file=FILE[:TEMPLATE]
  9243. instantiate the configuration file FILE
  9244. --header=FILE[:TEMPLATE]
  9245. instantiate the configuration header FILE
  9246. Configuration files:
  9247. $config_files
  9248. Configuration headers:
  9249. $config_headers
  9250. Configuration commands:
  9251. $config_commands
  9252. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9253. _ACEOF
  9254. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9255. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9256. ac_cs_version="\\
  9257. xdriinfo config.status 1.0.5
  9258. configured by $0, generated by GNU Autoconf 2.69,
  9259. with options \\"\$ac_cs_config\\"
  9260. Copyright (C) 2012 Free Software Foundation, Inc.
  9261. This config.status script is free software; the Free Software Foundation
  9262. gives unlimited permission to copy, distribute and modify it."
  9263. ac_pwd='$ac_pwd'
  9264. srcdir='$srcdir'
  9265. INSTALL='$INSTALL'
  9266. MKDIR_P='$MKDIR_P'
  9267. AWK='$AWK'
  9268. test -n "\$AWK" || AWK=awk
  9269. _ACEOF
  9270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9271. # The default lists apply if the user does not specify any file.
  9272. ac_need_defaults=:
  9273. while test $# != 0
  9274. do
  9275. case $1 in
  9276. --*=?*)
  9277. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9278. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9279. ac_shift=:
  9280. ;;
  9281. --*=)
  9282. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9283. ac_optarg=
  9284. ac_shift=:
  9285. ;;
  9286. *)
  9287. ac_option=$1
  9288. ac_optarg=$2
  9289. ac_shift=shift
  9290. ;;
  9291. esac
  9292. case $ac_option in
  9293. # Handling of the options.
  9294. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9295. ac_cs_recheck=: ;;
  9296. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9297. $as_echo "$ac_cs_version"; exit ;;
  9298. --config | --confi | --conf | --con | --co | --c )
  9299. $as_echo "$ac_cs_config"; exit ;;
  9300. --debug | --debu | --deb | --de | --d | -d )
  9301. debug=: ;;
  9302. --file | --fil | --fi | --f )
  9303. $ac_shift
  9304. case $ac_optarg in
  9305. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9306. '') as_fn_error $? "missing file argument" ;;
  9307. esac
  9308. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9309. ac_need_defaults=false;;
  9310. --header | --heade | --head | --hea )
  9311. $ac_shift
  9312. case $ac_optarg in
  9313. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9314. esac
  9315. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9316. ac_need_defaults=false;;
  9317. --he | --h)
  9318. # Conflict between --help and --header
  9319. as_fn_error $? "ambiguous option: \`$1'
  9320. Try \`$0 --help' for more information.";;
  9321. --help | --hel | -h )
  9322. $as_echo "$ac_cs_usage"; exit ;;
  9323. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9324. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9325. ac_cs_silent=: ;;
  9326. # This is an error.
  9327. -*) as_fn_error $? "unrecognized option: \`$1'
  9328. Try \`$0 --help' for more information." ;;
  9329. *) as_fn_append ac_config_targets " $1"
  9330. ac_need_defaults=false ;;
  9331. esac
  9332. shift
  9333. done
  9334. ac_configure_extra_args=
  9335. if $ac_cs_silent; then
  9336. exec 6>/dev/null
  9337. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9338. fi
  9339. _ACEOF
  9340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9341. if \$ac_cs_recheck; then
  9342. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9343. shift
  9344. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9345. CONFIG_SHELL='$SHELL'
  9346. export CONFIG_SHELL
  9347. exec "\$@"
  9348. fi
  9349. _ACEOF
  9350. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9351. exec 5>>config.log
  9352. {
  9353. echo
  9354. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9355. ## Running $as_me. ##
  9356. _ASBOX
  9357. $as_echo "$ac_log"
  9358. } >&5
  9359. _ACEOF
  9360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9361. #
  9362. # INIT-COMMANDS
  9363. #
  9364. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9365. _ACEOF
  9366. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9367. # Handling of arguments.
  9368. for ac_config_target in $ac_config_targets
  9369. do
  9370. case $ac_config_target in
  9371. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9372. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9373. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9374. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9375. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9376. esac
  9377. done
  9378. # If the user did not use the arguments to specify the items to instantiate,
  9379. # then the envvar interface is used. Set only those that are not.
  9380. # We use the long form for the default assignment because of an extremely
  9381. # bizarre bug on SunOS 4.1.3.
  9382. if $ac_need_defaults; then
  9383. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9384. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9385. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9386. fi
  9387. # Have a temporary directory for convenience. Make it in the build tree
  9388. # simply because there is no reason against having it here, and in addition,
  9389. # creating and moving files from /tmp can sometimes cause problems.
  9390. # Hook for its removal unless debugging.
  9391. # Note that there is a small window in which the directory will not be cleaned:
  9392. # after its creation but before its name has been assigned to `$tmp'.
  9393. $debug ||
  9394. {
  9395. tmp= ac_tmp=
  9396. trap 'exit_status=$?
  9397. : "${ac_tmp:=$tmp}"
  9398. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9399. ' 0
  9400. trap 'as_fn_exit 1' 1 2 13 15
  9401. }
  9402. # Create a (secure) tmp directory for tmp files.
  9403. {
  9404. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9405. test -d "$tmp"
  9406. } ||
  9407. {
  9408. tmp=./conf$$-$RANDOM
  9409. (umask 077 && mkdir "$tmp")
  9410. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9411. ac_tmp=$tmp
  9412. # Set up the scripts for CONFIG_FILES section.
  9413. # No need to generate them if there are no CONFIG_FILES.
  9414. # This happens for instance with `./config.status config.h'.
  9415. if test -n "$CONFIG_FILES"; then
  9416. ac_cr=`echo X | tr X '\015'`
  9417. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9418. # But we know of no other shell where ac_cr would be empty at this
  9419. # point, so we can use a bashism as a fallback.
  9420. if test "x$ac_cr" = x; then
  9421. eval ac_cr=\$\'\\r\'
  9422. fi
  9423. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9424. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9425. ac_cs_awk_cr='\\r'
  9426. else
  9427. ac_cs_awk_cr=$ac_cr
  9428. fi
  9429. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9430. _ACEOF
  9431. {
  9432. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9433. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9434. echo "_ACEOF"
  9435. } >conf$$subs.sh ||
  9436. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9437. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9438. ac_delim='%!_!# '
  9439. for ac_last_try in false false false false false :; do
  9440. . ./conf$$subs.sh ||
  9441. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9442. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9443. if test $ac_delim_n = $ac_delim_num; then
  9444. break
  9445. elif $ac_last_try; then
  9446. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9447. else
  9448. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9449. fi
  9450. done
  9451. rm -f conf$$subs.sh
  9452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9453. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9454. _ACEOF
  9455. sed -n '
  9456. h
  9457. s/^/S["/; s/!.*/"]=/
  9458. p
  9459. g
  9460. s/^[^!]*!//
  9461. :repl
  9462. t repl
  9463. s/'"$ac_delim"'$//
  9464. t delim
  9465. :nl
  9466. h
  9467. s/\(.\{148\}\)..*/\1/
  9468. t more1
  9469. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9470. p
  9471. n
  9472. b repl
  9473. :more1
  9474. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9475. p
  9476. g
  9477. s/.\{148\}//
  9478. t nl
  9479. :delim
  9480. h
  9481. s/\(.\{148\}\)..*/\1/
  9482. t more2
  9483. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9484. p
  9485. b
  9486. :more2
  9487. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9488. p
  9489. g
  9490. s/.\{148\}//
  9491. t delim
  9492. ' <conf$$subs.awk | sed '
  9493. /^[^""]/{
  9494. N
  9495. s/\n//
  9496. }
  9497. ' >>$CONFIG_STATUS || ac_write_fail=1
  9498. rm -f conf$$subs.awk
  9499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9500. _ACAWK
  9501. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9502. for (key in S) S_is_set[key] = 1
  9503. FS = ""
  9504. }
  9505. {
  9506. line = $ 0
  9507. nfields = split(line, field, "@")
  9508. substed = 0
  9509. len = length(field[1])
  9510. for (i = 2; i < nfields; i++) {
  9511. key = field[i]
  9512. keylen = length(key)
  9513. if (S_is_set[key]) {
  9514. value = S[key]
  9515. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9516. len += length(value) + length(field[++i])
  9517. substed = 1
  9518. } else
  9519. len += 1 + keylen
  9520. }
  9521. print line
  9522. }
  9523. _ACAWK
  9524. _ACEOF
  9525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9526. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9527. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9528. else
  9529. cat
  9530. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9531. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9532. _ACEOF
  9533. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9534. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9535. # trailing colons and then remove the whole line if VPATH becomes empty
  9536. # (actually we leave an empty line to preserve line numbers).
  9537. if test "x$srcdir" = x.; then
  9538. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9539. h
  9540. s///
  9541. s/^/:/
  9542. s/[ ]*$/:/
  9543. s/:\$(srcdir):/:/g
  9544. s/:\${srcdir}:/:/g
  9545. s/:@srcdir@:/:/g
  9546. s/^:*//
  9547. s/:*$//
  9548. x
  9549. s/\(=[ ]*\).*/\1/
  9550. G
  9551. s/\n//
  9552. s/^[^=]*=[ ]*$//
  9553. }'
  9554. fi
  9555. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9556. fi # test -n "$CONFIG_FILES"
  9557. # Set up the scripts for CONFIG_HEADERS section.
  9558. # No need to generate them if there are no CONFIG_HEADERS.
  9559. # This happens for instance with `./config.status Makefile'.
  9560. if test -n "$CONFIG_HEADERS"; then
  9561. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9562. BEGIN {
  9563. _ACEOF
  9564. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9565. # here-document in config.status, that substitutes the proper values into
  9566. # config.h.in to produce config.h.
  9567. # Create a delimiter string that does not exist in confdefs.h, to ease
  9568. # handling of long lines.
  9569. ac_delim='%!_!# '
  9570. for ac_last_try in false false :; do
  9571. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9572. if test -z "$ac_tt"; then
  9573. break
  9574. elif $ac_last_try; then
  9575. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9576. else
  9577. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9578. fi
  9579. done
  9580. # For the awk script, D is an array of macro values keyed by name,
  9581. # likewise P contains macro parameters if any. Preserve backslash
  9582. # newline sequences.
  9583. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9584. sed -n '
  9585. s/.\{148\}/&'"$ac_delim"'/g
  9586. t rset
  9587. :rset
  9588. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9589. t def
  9590. d
  9591. :def
  9592. s/\\$//
  9593. t bsnl
  9594. s/["\\]/\\&/g
  9595. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9596. D["\1"]=" \3"/p
  9597. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9598. d
  9599. :bsnl
  9600. s/["\\]/\\&/g
  9601. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9602. D["\1"]=" \3\\\\\\n"\\/p
  9603. t cont
  9604. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9605. t cont
  9606. d
  9607. :cont
  9608. n
  9609. s/.\{148\}/&'"$ac_delim"'/g
  9610. t clear
  9611. :clear
  9612. s/\\$//
  9613. t bsnlc
  9614. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9615. d
  9616. :bsnlc
  9617. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9618. b cont
  9619. ' <confdefs.h | sed '
  9620. s/'"$ac_delim"'/"\\\
  9621. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9622. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9623. for (key in D) D_is_set[key] = 1
  9624. FS = ""
  9625. }
  9626. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9627. line = \$ 0
  9628. split(line, arg, " ")
  9629. if (arg[1] == "#") {
  9630. defundef = arg[2]
  9631. mac1 = arg[3]
  9632. } else {
  9633. defundef = substr(arg[1], 2)
  9634. mac1 = arg[2]
  9635. }
  9636. split(mac1, mac2, "(") #)
  9637. macro = mac2[1]
  9638. prefix = substr(line, 1, index(line, defundef) - 1)
  9639. if (D_is_set[macro]) {
  9640. # Preserve the white space surrounding the "#".
  9641. print prefix "define", macro P[macro] D[macro]
  9642. next
  9643. } else {
  9644. # Replace #undef with comments. This is necessary, for example,
  9645. # in the case of _POSIX_SOURCE, which is predefined and required
  9646. # on some systems where configure will not decide to define it.
  9647. if (defundef == "undef") {
  9648. print "/*", prefix defundef, macro, "*/"
  9649. next
  9650. }
  9651. }
  9652. }
  9653. { print }
  9654. _ACAWK
  9655. _ACEOF
  9656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9657. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9658. fi # test -n "$CONFIG_HEADERS"
  9659. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9660. shift
  9661. for ac_tag
  9662. do
  9663. case $ac_tag in
  9664. :[FHLC]) ac_mode=$ac_tag; continue;;
  9665. esac
  9666. case $ac_mode$ac_tag in
  9667. :[FHL]*:*);;
  9668. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9669. :[FH]-) ac_tag=-:-;;
  9670. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9671. esac
  9672. ac_save_IFS=$IFS
  9673. IFS=:
  9674. set x $ac_tag
  9675. IFS=$ac_save_IFS
  9676. shift
  9677. ac_file=$1
  9678. shift
  9679. case $ac_mode in
  9680. :L) ac_source=$1;;
  9681. :[FH])
  9682. ac_file_inputs=
  9683. for ac_f
  9684. do
  9685. case $ac_f in
  9686. -) ac_f="$ac_tmp/stdin";;
  9687. *) # Look for the file first in the build tree, then in the source tree
  9688. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9689. # because $ac_f cannot contain `:'.
  9690. test -f "$ac_f" ||
  9691. case $ac_f in
  9692. [\\/$]*) false;;
  9693. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9694. esac ||
  9695. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9696. esac
  9697. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9698. as_fn_append ac_file_inputs " '$ac_f'"
  9699. done
  9700. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9701. # use $as_me), people would be surprised to read:
  9702. # /* config.h. Generated by config.status. */
  9703. configure_input='Generated from '`
  9704. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9705. `' by configure.'
  9706. if test x"$ac_file" != x-; then
  9707. configure_input="$ac_file. $configure_input"
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9709. $as_echo "$as_me: creating $ac_file" >&6;}
  9710. fi
  9711. # Neutralize special characters interpreted by sed in replacement strings.
  9712. case $configure_input in #(
  9713. *\&* | *\|* | *\\* )
  9714. ac_sed_conf_input=`$as_echo "$configure_input" |
  9715. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9716. *) ac_sed_conf_input=$configure_input;;
  9717. esac
  9718. case $ac_tag in
  9719. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9720. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9721. esac
  9722. ;;
  9723. esac
  9724. ac_dir=`$as_dirname -- "$ac_file" ||
  9725. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9726. X"$ac_file" : 'X\(//\)[^/]' \| \
  9727. X"$ac_file" : 'X\(//\)$' \| \
  9728. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9729. $as_echo X"$ac_file" |
  9730. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9731. s//\1/
  9732. q
  9733. }
  9734. /^X\(\/\/\)[^/].*/{
  9735. s//\1/
  9736. q
  9737. }
  9738. /^X\(\/\/\)$/{
  9739. s//\1/
  9740. q
  9741. }
  9742. /^X\(\/\).*/{
  9743. s//\1/
  9744. q
  9745. }
  9746. s/.*/./; q'`
  9747. as_dir="$ac_dir"; as_fn_mkdir_p
  9748. ac_builddir=.
  9749. case "$ac_dir" in
  9750. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9751. *)
  9752. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9753. # A ".." for each directory in $ac_dir_suffix.
  9754. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9755. case $ac_top_builddir_sub in
  9756. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9757. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9758. esac ;;
  9759. esac
  9760. ac_abs_top_builddir=$ac_pwd
  9761. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9762. # for backward compatibility:
  9763. ac_top_builddir=$ac_top_build_prefix
  9764. case $srcdir in
  9765. .) # We are building in place.
  9766. ac_srcdir=.
  9767. ac_top_srcdir=$ac_top_builddir_sub
  9768. ac_abs_top_srcdir=$ac_pwd ;;
  9769. [\\/]* | ?:[\\/]* ) # Absolute name.
  9770. ac_srcdir=$srcdir$ac_dir_suffix;
  9771. ac_top_srcdir=$srcdir
  9772. ac_abs_top_srcdir=$srcdir ;;
  9773. *) # Relative name.
  9774. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9775. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9776. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9777. esac
  9778. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9779. case $ac_mode in
  9780. :F)
  9781. #
  9782. # CONFIG_FILE
  9783. #
  9784. case $INSTALL in
  9785. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9786. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9787. esac
  9788. ac_MKDIR_P=$MKDIR_P
  9789. case $MKDIR_P in
  9790. [\\/$]* | ?:[\\/]* ) ;;
  9791. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9792. esac
  9793. _ACEOF
  9794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9795. # If the template does not know about datarootdir, expand it.
  9796. # FIXME: This hack should be removed a few years after 2.60.
  9797. ac_datarootdir_hack=; ac_datarootdir_seen=
  9798. ac_sed_dataroot='
  9799. /datarootdir/ {
  9800. p
  9801. q
  9802. }
  9803. /@datadir@/p
  9804. /@docdir@/p
  9805. /@infodir@/p
  9806. /@localedir@/p
  9807. /@mandir@/p'
  9808. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9809. *datarootdir*) ac_datarootdir_seen=yes;;
  9810. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9812. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9813. _ACEOF
  9814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9815. ac_datarootdir_hack='
  9816. s&@datadir@&$datadir&g
  9817. s&@docdir@&$docdir&g
  9818. s&@infodir@&$infodir&g
  9819. s&@localedir@&$localedir&g
  9820. s&@mandir@&$mandir&g
  9821. s&\\\${datarootdir}&$datarootdir&g' ;;
  9822. esac
  9823. _ACEOF
  9824. # Neutralize VPATH when `$srcdir' = `.'.
  9825. # Shell code in configure.ac might set extrasub.
  9826. # FIXME: do we really want to maintain this feature?
  9827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9828. ac_sed_extra="$ac_vpsub
  9829. $extrasub
  9830. _ACEOF
  9831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9832. :t
  9833. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9834. s|@configure_input@|$ac_sed_conf_input|;t t
  9835. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9836. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9837. s&@srcdir@&$ac_srcdir&;t t
  9838. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9839. s&@top_srcdir@&$ac_top_srcdir&;t t
  9840. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9841. s&@builddir@&$ac_builddir&;t t
  9842. s&@abs_builddir@&$ac_abs_builddir&;t t
  9843. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9844. s&@INSTALL@&$ac_INSTALL&;t t
  9845. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9846. $ac_datarootdir_hack
  9847. "
  9848. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9849. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9850. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9851. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9852. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9853. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9855. which seems to be undefined. Please make sure it is defined" >&5
  9856. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9857. which seems to be undefined. Please make sure it is defined" >&2;}
  9858. rm -f "$ac_tmp/stdin"
  9859. case $ac_file in
  9860. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9861. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9862. esac \
  9863. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9864. ;;
  9865. :H)
  9866. #
  9867. # CONFIG_HEADER
  9868. #
  9869. if test x"$ac_file" != x-; then
  9870. {
  9871. $as_echo "/* $configure_input */" \
  9872. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9873. } >"$ac_tmp/config.h" \
  9874. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9875. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9877. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9878. else
  9879. rm -f "$ac_file"
  9880. mv "$ac_tmp/config.h" "$ac_file" \
  9881. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9882. fi
  9883. else
  9884. $as_echo "/* $configure_input */" \
  9885. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9886. || as_fn_error $? "could not create -" "$LINENO" 5
  9887. fi
  9888. # Compute "$ac_file"'s index in $config_headers.
  9889. _am_arg="$ac_file"
  9890. _am_stamp_count=1
  9891. for _am_header in $config_headers :; do
  9892. case $_am_header in
  9893. $_am_arg | $_am_arg:* )
  9894. break ;;
  9895. * )
  9896. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9897. esac
  9898. done
  9899. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9900. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9901. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9902. X"$_am_arg" : 'X\(//\)$' \| \
  9903. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9904. $as_echo X"$_am_arg" |
  9905. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9906. s//\1/
  9907. q
  9908. }
  9909. /^X\(\/\/\)[^/].*/{
  9910. s//\1/
  9911. q
  9912. }
  9913. /^X\(\/\/\)$/{
  9914. s//\1/
  9915. q
  9916. }
  9917. /^X\(\/\).*/{
  9918. s//\1/
  9919. q
  9920. }
  9921. s/.*/./; q'`/stamp-h$_am_stamp_count
  9922. ;;
  9923. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9924. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9925. ;;
  9926. esac
  9927. case $ac_file$ac_mode in
  9928. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  9929. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  9930. # are listed without --file. Let's play safe and only enable the eval
  9931. # if we detect the quoting.
  9932. case $CONFIG_FILES in
  9933. *\'*) eval set x "$CONFIG_FILES" ;;
  9934. *) set x $CONFIG_FILES ;;
  9935. esac
  9936. shift
  9937. for mf
  9938. do
  9939. # Strip MF so we end up with the name of the file.
  9940. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9941. # Check whether this is an Automake generated Makefile or not.
  9942. # We used to match only the files named 'Makefile.in', but
  9943. # some people rename them; so instead we look at the file content.
  9944. # Grep'ing the first line is not enough: some people post-process
  9945. # each Makefile.in and add a new line on top of each file to say so.
  9946. # Grep'ing the whole file is not good either: AIX grep has a line
  9947. # limit of 2048, but all sed's we know have understand at least 4000.
  9948. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9949. dirpart=`$as_dirname -- "$mf" ||
  9950. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9951. X"$mf" : 'X\(//\)[^/]' \| \
  9952. X"$mf" : 'X\(//\)$' \| \
  9953. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9954. $as_echo X"$mf" |
  9955. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9956. s//\1/
  9957. q
  9958. }
  9959. /^X\(\/\/\)[^/].*/{
  9960. s//\1/
  9961. q
  9962. }
  9963. /^X\(\/\/\)$/{
  9964. s//\1/
  9965. q
  9966. }
  9967. /^X\(\/\).*/{
  9968. s//\1/
  9969. q
  9970. }
  9971. s/.*/./; q'`
  9972. else
  9973. continue
  9974. fi
  9975. # Extract the definition of DEPDIR, am__include, and am__quote
  9976. # from the Makefile without running 'make'.
  9977. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9978. test -z "$DEPDIR" && continue
  9979. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9980. test -z "am__include" && continue
  9981. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9982. # Find all dependency output files, they are included files with
  9983. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9984. # simplest approach to changing $(DEPDIR) to its actual value in the
  9985. # expansion.
  9986. for file in `sed -n "
  9987. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9988. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  9989. # Make sure the directory exists.
  9990. test -f "$dirpart/$file" && continue
  9991. fdir=`$as_dirname -- "$file" ||
  9992. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9993. X"$file" : 'X\(//\)[^/]' \| \
  9994. X"$file" : 'X\(//\)$' \| \
  9995. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9996. $as_echo X"$file" |
  9997. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9998. s//\1/
  9999. q
  10000. }
  10001. /^X\(\/\/\)[^/].*/{
  10002. s//\1/
  10003. q
  10004. }
  10005. /^X\(\/\/\)$/{
  10006. s//\1/
  10007. q
  10008. }
  10009. /^X\(\/\).*/{
  10010. s//\1/
  10011. q
  10012. }
  10013. s/.*/./; q'`
  10014. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10015. # echo "creating $dirpart/$file"
  10016. echo '# dummy' > "$dirpart/$file"
  10017. done
  10018. done
  10019. }
  10020. ;;
  10021. esac
  10022. done # for ac_tag
  10023. as_fn_exit 0
  10024. _ACEOF
  10025. ac_clean_files=$ac_clean_files_save
  10026. test $ac_write_fail = 0 ||
  10027. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10028. # configure is writing to config.log, and then calls config.status.
  10029. # config.status does its own redirection, appending to config.log.
  10030. # Unfortunately, on DOS this fails, as config.log is still kept open
  10031. # by configure, so config.status won't be able to write to it; its
  10032. # output is simply discarded. So we exec the FD to /dev/null,
  10033. # effectively closing config.log, so it can be properly (re)opened and
  10034. # appended to by config.status. When coming back to configure, we
  10035. # need to make the FD available again.
  10036. if test "$no_create" != yes; then
  10037. ac_cs_success=:
  10038. ac_config_status_args=
  10039. test "$silent" = yes &&
  10040. ac_config_status_args="$ac_config_status_args --quiet"
  10041. exec 5>/dev/null
  10042. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10043. exec 5>>config.log
  10044. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10045. # would make configure fail if this is the last instruction.
  10046. $ac_cs_success || as_fn_exit 1
  10047. fi
  10048. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10050. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10051. fi