configure 335 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xkbevd 1.1.4.
  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='xkbevd'
  535. PACKAGE_TARNAME='xkbevd'
  536. PACKAGE_VERSION='1.1.4'
  537. PACKAGE_STRING='xkbevd 1.1.4'
  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. XKBEVD_LIBS
  581. XKBEVD_CFLAGS
  582. YACC_INST
  583. YFLAGS
  584. YACC
  585. AM_BACKSLASH
  586. AM_DEFAULT_VERBOSITY
  587. AM_DEFAULT_V
  588. AM_V
  589. MAN_SUBSTS
  590. XORG_MAN_PAGE
  591. ADMIN_MAN_DIR
  592. DRIVER_MAN_DIR
  593. MISC_MAN_DIR
  594. FILE_MAN_DIR
  595. LIB_MAN_DIR
  596. APP_MAN_DIR
  597. ADMIN_MAN_SUFFIX
  598. DRIVER_MAN_SUFFIX
  599. MISC_MAN_SUFFIX
  600. FILE_MAN_SUFFIX
  601. LIB_MAN_SUFFIX
  602. APP_MAN_SUFFIX
  603. SED
  604. host_os
  605. host_vendor
  606. host_cpu
  607. host
  608. build_os
  609. build_vendor
  610. build_cpu
  611. build
  612. INSTALL_CMD
  613. PKG_CONFIG_LIBDIR
  614. PKG_CONFIG_PATH
  615. PKG_CONFIG
  616. CHANGELOG_CMD
  617. STRICT_CFLAGS
  618. CWARNFLAGS
  619. BASE_CFLAGS
  620. EGREP
  621. GREP
  622. CPP
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. am__nodep
  627. AMDEPBACKSLASH
  628. AMDEP_FALSE
  629. AMDEP_TRUE
  630. am__quote
  631. am__include
  632. DEPDIR
  633. OBJEXT
  634. EXEEXT
  635. ac_ct_CC
  636. CPPFLAGS
  637. LDFLAGS
  638. CFLAGS
  639. CC
  640. am__untar
  641. am__tar
  642. AMTAR
  643. am__leading_dot
  644. SET_MAKE
  645. AWK
  646. mkdir_p
  647. MKDIR_P
  648. INSTALL_STRIP_PROGRAM
  649. STRIP
  650. install_sh
  651. MAKEINFO
  652. AUTOHEADER
  653. AUTOMAKE
  654. AUTOCONF
  655. ACLOCAL
  656. VERSION
  657. PACKAGE
  658. CYGPATH_W
  659. am__isrc
  660. INSTALL_DATA
  661. INSTALL_SCRIPT
  662. INSTALL_PROGRAM
  663. target_alias
  664. host_alias
  665. build_alias
  666. LIBS
  667. ECHO_T
  668. ECHO_N
  669. ECHO_C
  670. DEFS
  671. mandir
  672. localedir
  673. libdir
  674. psdir
  675. pdfdir
  676. dvidir
  677. htmldir
  678. infodir
  679. docdir
  680. oldincludedir
  681. includedir
  682. localstatedir
  683. sharedstatedir
  684. sysconfdir
  685. datadir
  686. datarootdir
  687. libexecdir
  688. sbindir
  689. bindir
  690. program_transform_name
  691. prefix
  692. exec_prefix
  693. PACKAGE_URL
  694. PACKAGE_BUGREPORT
  695. PACKAGE_STRING
  696. PACKAGE_VERSION
  697. PACKAGE_TARNAME
  698. PACKAGE_NAME
  699. PATH_SEPARATOR
  700. SHELL'
  701. ac_subst_files=''
  702. ac_user_opts='
  703. enable_option_checking
  704. enable_dependency_tracking
  705. enable_selective_werror
  706. enable_strict_compilation
  707. enable_silent_rules
  708. '
  709. ac_precious_vars='build_alias
  710. host_alias
  711. target_alias
  712. CC
  713. CFLAGS
  714. LDFLAGS
  715. LIBS
  716. CPPFLAGS
  717. CPP
  718. PKG_CONFIG
  719. PKG_CONFIG_PATH
  720. PKG_CONFIG_LIBDIR
  721. YACC
  722. YFLAGS
  723. XKBEVD_CFLAGS
  724. XKBEVD_LIBS'
  725. # Initialize some variables set by options.
  726. ac_init_help=
  727. ac_init_version=false
  728. ac_unrecognized_opts=
  729. ac_unrecognized_sep=
  730. # The variables have the same names as the options, with
  731. # dashes changed to underlines.
  732. cache_file=/dev/null
  733. exec_prefix=NONE
  734. no_create=
  735. no_recursion=
  736. prefix=NONE
  737. program_prefix=NONE
  738. program_suffix=NONE
  739. program_transform_name=s,x,x,
  740. silent=
  741. site=
  742. srcdir=
  743. verbose=
  744. x_includes=NONE
  745. x_libraries=NONE
  746. # Installation directory options.
  747. # These are left unexpanded so users can "make install exec_prefix=/foo"
  748. # and all the variables that are supposed to be based on exec_prefix
  749. # by default will actually change.
  750. # Use braces instead of parens because sh, perl, etc. also accept them.
  751. # (The list follows the same order as the GNU Coding Standards.)
  752. bindir='${exec_prefix}/bin'
  753. sbindir='${exec_prefix}/sbin'
  754. libexecdir='${exec_prefix}/libexec'
  755. datarootdir='${prefix}/share'
  756. datadir='${datarootdir}'
  757. sysconfdir='${prefix}/etc'
  758. sharedstatedir='${prefix}/com'
  759. localstatedir='${prefix}/var'
  760. includedir='${prefix}/include'
  761. oldincludedir='/usr/include'
  762. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  763. infodir='${datarootdir}/info'
  764. htmldir='${docdir}'
  765. dvidir='${docdir}'
  766. pdfdir='${docdir}'
  767. psdir='${docdir}'
  768. libdir='${exec_prefix}/lib'
  769. localedir='${datarootdir}/locale'
  770. mandir='${datarootdir}/man'
  771. ac_prev=
  772. ac_dashdash=
  773. for ac_option
  774. do
  775. # If the previous option needs an argument, assign it.
  776. if test -n "$ac_prev"; then
  777. eval $ac_prev=\$ac_option
  778. ac_prev=
  779. continue
  780. fi
  781. case $ac_option in
  782. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  783. *=) ac_optarg= ;;
  784. *) ac_optarg=yes ;;
  785. esac
  786. # Accept the important Cygnus configure options, so we can diagnose typos.
  787. case $ac_dashdash$ac_option in
  788. --)
  789. ac_dashdash=yes ;;
  790. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  791. ac_prev=bindir ;;
  792. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  793. bindir=$ac_optarg ;;
  794. -build | --build | --buil | --bui | --bu)
  795. ac_prev=build_alias ;;
  796. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  797. build_alias=$ac_optarg ;;
  798. -cache-file | --cache-file | --cache-fil | --cache-fi \
  799. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  800. ac_prev=cache_file ;;
  801. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  802. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  803. cache_file=$ac_optarg ;;
  804. --config-cache | -C)
  805. cache_file=config.cache ;;
  806. -datadir | --datadir | --datadi | --datad)
  807. ac_prev=datadir ;;
  808. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  809. datadir=$ac_optarg ;;
  810. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  811. | --dataroo | --dataro | --datar)
  812. ac_prev=datarootdir ;;
  813. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  814. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  815. datarootdir=$ac_optarg ;;
  816. -disable-* | --disable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error $? "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=no ;;
  831. -docdir | --docdir | --docdi | --doc | --do)
  832. ac_prev=docdir ;;
  833. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  834. docdir=$ac_optarg ;;
  835. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  836. ac_prev=dvidir ;;
  837. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  838. dvidir=$ac_optarg ;;
  839. -enable-* | --enable-*)
  840. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  843. as_fn_error $? "invalid feature name: $ac_useropt"
  844. ac_useropt_orig=$ac_useropt
  845. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  846. case $ac_user_opts in
  847. *"
  848. "enable_$ac_useropt"
  849. "*) ;;
  850. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  851. ac_unrecognized_sep=', ';;
  852. esac
  853. eval enable_$ac_useropt=\$ac_optarg ;;
  854. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  855. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  856. | --exec | --exe | --ex)
  857. ac_prev=exec_prefix ;;
  858. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  859. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  860. | --exec=* | --exe=* | --ex=*)
  861. exec_prefix=$ac_optarg ;;
  862. -gas | --gas | --ga | --g)
  863. # Obsolete; use --with-gas.
  864. with_gas=yes ;;
  865. -help | --help | --hel | --he | -h)
  866. ac_init_help=long ;;
  867. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  868. ac_init_help=recursive ;;
  869. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  870. ac_init_help=short ;;
  871. -host | --host | --hos | --ho)
  872. ac_prev=host_alias ;;
  873. -host=* | --host=* | --hos=* | --ho=*)
  874. host_alias=$ac_optarg ;;
  875. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  876. ac_prev=htmldir ;;
  877. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  878. | --ht=*)
  879. htmldir=$ac_optarg ;;
  880. -includedir | --includedir | --includedi | --included | --include \
  881. | --includ | --inclu | --incl | --inc)
  882. ac_prev=includedir ;;
  883. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  884. | --includ=* | --inclu=* | --incl=* | --inc=*)
  885. includedir=$ac_optarg ;;
  886. -infodir | --infodir | --infodi | --infod | --info | --inf)
  887. ac_prev=infodir ;;
  888. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  889. infodir=$ac_optarg ;;
  890. -libdir | --libdir | --libdi | --libd)
  891. ac_prev=libdir ;;
  892. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  893. libdir=$ac_optarg ;;
  894. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  895. | --libexe | --libex | --libe)
  896. ac_prev=libexecdir ;;
  897. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  898. | --libexe=* | --libex=* | --libe=*)
  899. libexecdir=$ac_optarg ;;
  900. -localedir | --localedir | --localedi | --localed | --locale)
  901. ac_prev=localedir ;;
  902. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  903. localedir=$ac_optarg ;;
  904. -localstatedir | --localstatedir | --localstatedi | --localstated \
  905. | --localstate | --localstat | --localsta | --localst | --locals)
  906. ac_prev=localstatedir ;;
  907. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  908. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  909. localstatedir=$ac_optarg ;;
  910. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  911. ac_prev=mandir ;;
  912. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  913. mandir=$ac_optarg ;;
  914. -nfp | --nfp | --nf)
  915. # Obsolete; use --without-fp.
  916. with_fp=no ;;
  917. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  918. | --no-cr | --no-c | -n)
  919. no_create=yes ;;
  920. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  921. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  922. no_recursion=yes ;;
  923. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  924. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  925. | --oldin | --oldi | --old | --ol | --o)
  926. ac_prev=oldincludedir ;;
  927. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  928. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  929. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  930. oldincludedir=$ac_optarg ;;
  931. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  932. ac_prev=prefix ;;
  933. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  934. prefix=$ac_optarg ;;
  935. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  936. | --program-pre | --program-pr | --program-p)
  937. ac_prev=program_prefix ;;
  938. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  939. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  940. program_prefix=$ac_optarg ;;
  941. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  942. | --program-suf | --program-su | --program-s)
  943. ac_prev=program_suffix ;;
  944. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  945. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  946. program_suffix=$ac_optarg ;;
  947. -program-transform-name | --program-transform-name \
  948. | --program-transform-nam | --program-transform-na \
  949. | --program-transform-n | --program-transform- \
  950. | --program-transform | --program-transfor \
  951. | --program-transfo | --program-transf \
  952. | --program-trans | --program-tran \
  953. | --progr-tra | --program-tr | --program-t)
  954. ac_prev=program_transform_name ;;
  955. -program-transform-name=* | --program-transform-name=* \
  956. | --program-transform-nam=* | --program-transform-na=* \
  957. | --program-transform-n=* | --program-transform-=* \
  958. | --program-transform=* | --program-transfor=* \
  959. | --program-transfo=* | --program-transf=* \
  960. | --program-trans=* | --program-tran=* \
  961. | --progr-tra=* | --program-tr=* | --program-t=*)
  962. program_transform_name=$ac_optarg ;;
  963. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  964. ac_prev=pdfdir ;;
  965. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  966. pdfdir=$ac_optarg ;;
  967. -psdir | --psdir | --psdi | --psd | --ps)
  968. ac_prev=psdir ;;
  969. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  970. psdir=$ac_optarg ;;
  971. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  972. | -silent | --silent | --silen | --sile | --sil)
  973. silent=yes ;;
  974. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  975. ac_prev=sbindir ;;
  976. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  977. | --sbi=* | --sb=*)
  978. sbindir=$ac_optarg ;;
  979. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  980. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  981. | --sharedst | --shareds | --shared | --share | --shar \
  982. | --sha | --sh)
  983. ac_prev=sharedstatedir ;;
  984. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  985. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  986. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  987. | --sha=* | --sh=*)
  988. sharedstatedir=$ac_optarg ;;
  989. -site | --site | --sit)
  990. ac_prev=site ;;
  991. -site=* | --site=* | --sit=*)
  992. site=$ac_optarg ;;
  993. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  994. ac_prev=srcdir ;;
  995. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  996. srcdir=$ac_optarg ;;
  997. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  998. | --syscon | --sysco | --sysc | --sys | --sy)
  999. ac_prev=sysconfdir ;;
  1000. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1001. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1002. sysconfdir=$ac_optarg ;;
  1003. -target | --target | --targe | --targ | --tar | --ta | --t)
  1004. ac_prev=target_alias ;;
  1005. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1006. target_alias=$ac_optarg ;;
  1007. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1008. verbose=yes ;;
  1009. -version | --version | --versio | --versi | --vers | -V)
  1010. ac_init_version=: ;;
  1011. -with-* | --with-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error $? "invalid package name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "with_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval with_$ac_useropt=\$ac_optarg ;;
  1026. -without-* | --without-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=no ;;
  1041. --x)
  1042. # Obsolete; use --with-x.
  1043. with_x=yes ;;
  1044. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1045. | --x-incl | --x-inc | --x-in | --x-i)
  1046. ac_prev=x_includes ;;
  1047. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1048. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1049. x_includes=$ac_optarg ;;
  1050. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1051. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1052. ac_prev=x_libraries ;;
  1053. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1054. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1055. x_libraries=$ac_optarg ;;
  1056. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1057. Try \`$0 --help' for more information"
  1058. ;;
  1059. *=*)
  1060. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1061. # Reject names that are not valid shell variable names.
  1062. case $ac_envvar in #(
  1063. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1064. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1065. esac
  1066. eval $ac_envvar=\$ac_optarg
  1067. export $ac_envvar ;;
  1068. *)
  1069. # FIXME: should be removed in autoconf 3.0.
  1070. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1071. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1072. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1073. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1074. ;;
  1075. esac
  1076. done
  1077. if test -n "$ac_prev"; then
  1078. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1079. as_fn_error $? "missing argument to $ac_option"
  1080. fi
  1081. if test -n "$ac_unrecognized_opts"; then
  1082. case $enable_option_checking in
  1083. no) ;;
  1084. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1085. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1086. esac
  1087. fi
  1088. # Check all directory arguments for consistency.
  1089. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1090. datadir sysconfdir sharedstatedir localstatedir includedir \
  1091. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1092. libdir localedir mandir
  1093. do
  1094. eval ac_val=\$$ac_var
  1095. # Remove trailing slashes.
  1096. case $ac_val in
  1097. */ )
  1098. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1099. eval $ac_var=\$ac_val;;
  1100. esac
  1101. # Be sure to have absolute directory names.
  1102. case $ac_val in
  1103. [\\/$]* | ?:[\\/]* ) continue;;
  1104. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1105. esac
  1106. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1107. done
  1108. # There might be people who depend on the old broken behavior: `$host'
  1109. # used to hold the argument of --host etc.
  1110. # FIXME: To remove some day.
  1111. build=$build_alias
  1112. host=$host_alias
  1113. target=$target_alias
  1114. # FIXME: To remove some day.
  1115. if test "x$host_alias" != x; then
  1116. if test "x$build_alias" = x; then
  1117. cross_compiling=maybe
  1118. elif test "x$build_alias" != "x$host_alias"; then
  1119. cross_compiling=yes
  1120. fi
  1121. fi
  1122. ac_tool_prefix=
  1123. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1124. test "$silent" = yes && exec 6>/dev/null
  1125. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1126. ac_ls_di=`ls -di .` &&
  1127. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1128. as_fn_error $? "working directory cannot be determined"
  1129. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1130. as_fn_error $? "pwd does not report name of working directory"
  1131. # Find the source files, if location was not specified.
  1132. if test -z "$srcdir"; then
  1133. ac_srcdir_defaulted=yes
  1134. # Try the directory containing this script, then the parent directory.
  1135. ac_confdir=`$as_dirname -- "$as_myself" ||
  1136. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1137. X"$as_myself" : 'X\(//\)[^/]' \| \
  1138. X"$as_myself" : 'X\(//\)$' \| \
  1139. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1140. $as_echo X"$as_myself" |
  1141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)[^/].*/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\).*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. s/.*/./; q'`
  1158. srcdir=$ac_confdir
  1159. if test ! -r "$srcdir/$ac_unique_file"; then
  1160. srcdir=..
  1161. fi
  1162. else
  1163. ac_srcdir_defaulted=no
  1164. fi
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1167. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1168. fi
  1169. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1170. ac_abs_confdir=`(
  1171. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1172. pwd)`
  1173. # When building in place, set srcdir=.
  1174. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1175. srcdir=.
  1176. fi
  1177. # Remove unnecessary trailing slashes from srcdir.
  1178. # Double slashes in file names in object file debugging info
  1179. # mess up M-x gdb in Emacs.
  1180. case $srcdir in
  1181. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1182. esac
  1183. for ac_var in $ac_precious_vars; do
  1184. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1185. eval ac_env_${ac_var}_value=\$${ac_var}
  1186. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1187. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1188. done
  1189. #
  1190. # Report the --help message.
  1191. #
  1192. if test "$ac_init_help" = "long"; then
  1193. # Omit some internal or obsolete options to make the list less imposing.
  1194. # This message is too long to be a string in the A/UX 3.1 sh.
  1195. cat <<_ACEOF
  1196. \`configure' configures xkbevd 1.1.4 to adapt to many kinds of systems.
  1197. Usage: $0 [OPTION]... [VAR=VALUE]...
  1198. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1199. VAR=VALUE. See below for descriptions of some of the useful variables.
  1200. Defaults for the options are specified in brackets.
  1201. Configuration:
  1202. -h, --help display this help and exit
  1203. --help=short display options specific to this package
  1204. --help=recursive display the short help of all the included packages
  1205. -V, --version display version information and exit
  1206. -q, --quiet, --silent do not print \`checking ...' messages
  1207. --cache-file=FILE cache test results in FILE [disabled]
  1208. -C, --config-cache alias for \`--cache-file=config.cache'
  1209. -n, --no-create do not create output files
  1210. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1211. Installation directories:
  1212. --prefix=PREFIX install architecture-independent files in PREFIX
  1213. [$ac_default_prefix]
  1214. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1215. [PREFIX]
  1216. By default, \`make install' will install all the files in
  1217. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1218. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1219. for instance \`--prefix=\$HOME'.
  1220. For better control, use the options below.
  1221. Fine tuning of the installation directories:
  1222. --bindir=DIR user executables [EPREFIX/bin]
  1223. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1224. --libexecdir=DIR program executables [EPREFIX/libexec]
  1225. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1226. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1227. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1228. --libdir=DIR object code libraries [EPREFIX/lib]
  1229. --includedir=DIR C header files [PREFIX/include]
  1230. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1231. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1232. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1233. --infodir=DIR info documentation [DATAROOTDIR/info]
  1234. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1235. --mandir=DIR man documentation [DATAROOTDIR/man]
  1236. --docdir=DIR documentation root [DATAROOTDIR/doc/xkbevd]
  1237. --htmldir=DIR html documentation [DOCDIR]
  1238. --dvidir=DIR dvi documentation [DOCDIR]
  1239. --pdfdir=DIR pdf documentation [DOCDIR]
  1240. --psdir=DIR ps documentation [DOCDIR]
  1241. _ACEOF
  1242. cat <<\_ACEOF
  1243. Program names:
  1244. --program-prefix=PREFIX prepend PREFIX to installed program names
  1245. --program-suffix=SUFFIX append SUFFIX to installed program names
  1246. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1247. System types:
  1248. --build=BUILD configure for building on BUILD [guessed]
  1249. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1250. _ACEOF
  1251. fi
  1252. if test -n "$ac_init_help"; then
  1253. case $ac_init_help in
  1254. short | recursive ) echo "Configuration of xkbevd 1.1.4:";;
  1255. esac
  1256. cat <<\_ACEOF
  1257. Optional Features:
  1258. --disable-option-checking ignore unrecognized --enable/--with options
  1259. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1260. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1261. --enable-dependency-tracking
  1262. do not reject slow dependency extractors
  1263. --disable-dependency-tracking
  1264. speeds up one-time build
  1265. --disable-selective-werror
  1266. Turn off selective compiler errors. (default:
  1267. enabled)
  1268. --enable-strict-compilation
  1269. Enable all warnings from compiler and make them
  1270. errors (default: disabled)
  1271. --enable-silent-rules less verbose build output (undo: "make V=1")
  1272. --disable-silent-rules verbose build output (undo: "make V=0")
  1273. Some influential environment variables:
  1274. CC C compiler command
  1275. CFLAGS C compiler flags
  1276. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1277. nonstandard directory <lib dir>
  1278. LIBS libraries to pass to the linker, e.g. -l<library>
  1279. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1280. you have headers in a nonstandard directory <include dir>
  1281. CPP C preprocessor
  1282. PKG_CONFIG path to pkg-config utility
  1283. PKG_CONFIG_PATH
  1284. directories to add to pkg-config's search path
  1285. PKG_CONFIG_LIBDIR
  1286. path overriding pkg-config's built-in search path
  1287. YACC The `Yet Another Compiler Compiler' implementation to use.
  1288. Defaults to the first program found out of: `bison -y', `byacc',
  1289. `yacc'.
  1290. YFLAGS The list of arguments that will be passed by default to $YACC.
  1291. This script will default YFLAGS to the empty string to avoid a
  1292. default value of `-d' given by some make applications.
  1293. XKBEVD_CFLAGS
  1294. C compiler flags for XKBEVD, overriding pkg-config
  1295. XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
  1296. Use these variables to override the choices made by `configure' or to help
  1297. it to find libraries and programs with nonstandard names/locations.
  1298. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1299. _ACEOF
  1300. ac_status=$?
  1301. fi
  1302. if test "$ac_init_help" = "recursive"; then
  1303. # If there are subdirs, report their specific --help.
  1304. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1305. test -d "$ac_dir" ||
  1306. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1307. continue
  1308. ac_builddir=.
  1309. case "$ac_dir" in
  1310. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1311. *)
  1312. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1313. # A ".." for each directory in $ac_dir_suffix.
  1314. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1315. case $ac_top_builddir_sub in
  1316. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1317. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1318. esac ;;
  1319. esac
  1320. ac_abs_top_builddir=$ac_pwd
  1321. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1322. # for backward compatibility:
  1323. ac_top_builddir=$ac_top_build_prefix
  1324. case $srcdir in
  1325. .) # We are building in place.
  1326. ac_srcdir=.
  1327. ac_top_srcdir=$ac_top_builddir_sub
  1328. ac_abs_top_srcdir=$ac_pwd ;;
  1329. [\\/]* | ?:[\\/]* ) # Absolute name.
  1330. ac_srcdir=$srcdir$ac_dir_suffix;
  1331. ac_top_srcdir=$srcdir
  1332. ac_abs_top_srcdir=$srcdir ;;
  1333. *) # Relative name.
  1334. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1335. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1336. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1337. esac
  1338. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1339. cd "$ac_dir" || { ac_status=$?; continue; }
  1340. # Check for guested configure.
  1341. if test -f "$ac_srcdir/configure.gnu"; then
  1342. echo &&
  1343. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1344. elif test -f "$ac_srcdir/configure"; then
  1345. echo &&
  1346. $SHELL "$ac_srcdir/configure" --help=recursive
  1347. else
  1348. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1349. fi || ac_status=$?
  1350. cd "$ac_pwd" || { ac_status=$?; break; }
  1351. done
  1352. fi
  1353. test -n "$ac_init_help" && exit $ac_status
  1354. if $ac_init_version; then
  1355. cat <<\_ACEOF
  1356. xkbevd configure 1.1.4
  1357. generated by GNU Autoconf 2.69
  1358. Copyright (C) 2012 Free Software Foundation, Inc.
  1359. This configure script is free software; the Free Software Foundation
  1360. gives unlimited permission to copy, distribute and modify it.
  1361. _ACEOF
  1362. exit
  1363. fi
  1364. ## ------------------------ ##
  1365. ## Autoconf initialization. ##
  1366. ## ------------------------ ##
  1367. # ac_fn_c_try_compile LINENO
  1368. # --------------------------
  1369. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1370. ac_fn_c_try_compile ()
  1371. {
  1372. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1373. rm -f conftest.$ac_objext
  1374. if { { ac_try="$ac_compile"
  1375. case "(($ac_try" in
  1376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1377. *) ac_try_echo=$ac_try;;
  1378. esac
  1379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1380. $as_echo "$ac_try_echo"; } >&5
  1381. (eval "$ac_compile") 2>conftest.err
  1382. ac_status=$?
  1383. if test -s conftest.err; then
  1384. grep -v '^ *+' conftest.err >conftest.er1
  1385. cat conftest.er1 >&5
  1386. mv -f conftest.er1 conftest.err
  1387. fi
  1388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1389. test $ac_status = 0; } && {
  1390. test -z "$ac_c_werror_flag" ||
  1391. test ! -s conftest.err
  1392. } && test -s conftest.$ac_objext; then :
  1393. ac_retval=0
  1394. else
  1395. $as_echo "$as_me: failed program was:" >&5
  1396. sed 's/^/| /' conftest.$ac_ext >&5
  1397. ac_retval=1
  1398. fi
  1399. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1400. as_fn_set_status $ac_retval
  1401. } # ac_fn_c_try_compile
  1402. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1403. # ---------------------------------------------
  1404. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1405. # accordingly.
  1406. ac_fn_c_check_decl ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1410. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1412. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1413. if eval \${$3+:} false; then :
  1414. $as_echo_n "(cached) " >&6
  1415. else
  1416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1417. /* end confdefs.h. */
  1418. $4
  1419. int
  1420. main ()
  1421. {
  1422. #ifndef $as_decl_name
  1423. #ifdef __cplusplus
  1424. (void) $as_decl_use;
  1425. #else
  1426. (void) $as_decl_name;
  1427. #endif
  1428. #endif
  1429. ;
  1430. return 0;
  1431. }
  1432. _ACEOF
  1433. if ac_fn_c_try_compile "$LINENO"; then :
  1434. eval "$3=yes"
  1435. else
  1436. eval "$3=no"
  1437. fi
  1438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1439. fi
  1440. eval ac_res=\$$3
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1442. $as_echo "$ac_res" >&6; }
  1443. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1444. } # ac_fn_c_check_decl
  1445. # ac_fn_c_try_cpp LINENO
  1446. # ----------------------
  1447. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1448. ac_fn_c_try_cpp ()
  1449. {
  1450. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1451. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1452. case "(($ac_try" in
  1453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1454. *) ac_try_echo=$ac_try;;
  1455. esac
  1456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1457. $as_echo "$ac_try_echo"; } >&5
  1458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1459. ac_status=$?
  1460. if test -s conftest.err; then
  1461. grep -v '^ *+' conftest.err >conftest.er1
  1462. cat conftest.er1 >&5
  1463. mv -f conftest.er1 conftest.err
  1464. fi
  1465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1466. test $ac_status = 0; } > conftest.i && {
  1467. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1468. test ! -s conftest.err
  1469. }; then :
  1470. ac_retval=0
  1471. else
  1472. $as_echo "$as_me: failed program was:" >&5
  1473. sed 's/^/| /' conftest.$ac_ext >&5
  1474. ac_retval=1
  1475. fi
  1476. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1477. as_fn_set_status $ac_retval
  1478. } # ac_fn_c_try_cpp
  1479. # ac_fn_c_try_run LINENO
  1480. # ----------------------
  1481. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1482. # that executables *can* be run.
  1483. ac_fn_c_try_run ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. if { { ac_try="$ac_link"
  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_link") 2>&5
  1494. ac_status=$?
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1497. { { case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_try") 2>&5
  1504. ac_status=$?
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; }; }; then :
  1507. ac_retval=0
  1508. else
  1509. $as_echo "$as_me: program exited with status $ac_status" >&5
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=$ac_status
  1513. fi
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_run
  1518. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1519. # -------------------------------------------------------
  1520. # Tests whether HEADER exists and can be compiled using the include files in
  1521. # INCLUDES, setting the cache variable VAR accordingly.
  1522. ac_fn_c_check_header_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if eval \${$3+:} false; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1531. /* end confdefs.h. */
  1532. $4
  1533. #include <$2>
  1534. _ACEOF
  1535. if ac_fn_c_try_compile "$LINENO"; then :
  1536. eval "$3=yes"
  1537. else
  1538. eval "$3=no"
  1539. fi
  1540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1541. fi
  1542. eval ac_res=\$$3
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1544. $as_echo "$ac_res" >&6; }
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. } # ac_fn_c_check_header_compile
  1547. # ac_fn_c_try_link LINENO
  1548. # -----------------------
  1549. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_link ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext conftest$ac_exeext
  1554. if { { ac_try="$ac_link"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_link") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest$ac_exeext && {
  1573. test "$cross_compiling" = yes ||
  1574. test -x conftest$ac_exeext
  1575. }; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1583. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1584. # interfere with the next link command; also delete a directory that is
  1585. # left behind by Apple's compiler. We do this before executing the actions.
  1586. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. as_fn_set_status $ac_retval
  1589. } # ac_fn_c_try_link
  1590. # ac_fn_c_check_func LINENO FUNC VAR
  1591. # ----------------------------------
  1592. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1593. ac_fn_c_check_func ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1597. $as_echo_n "checking for $2... " >&6; }
  1598. if eval \${$3+:} false; then :
  1599. $as_echo_n "(cached) " >&6
  1600. else
  1601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1602. /* end confdefs.h. */
  1603. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1604. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1605. #define $2 innocuous_$2
  1606. /* System header to define __stub macros and hopefully few prototypes,
  1607. which can conflict with char $2 (); below.
  1608. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1609. <limits.h> exists even on freestanding compilers. */
  1610. #ifdef __STDC__
  1611. # include <limits.h>
  1612. #else
  1613. # include <assert.h>
  1614. #endif
  1615. #undef $2
  1616. /* Override any GCC internal prototype to avoid an error.
  1617. Use char because int might match the return type of a GCC
  1618. builtin and then its argument prototype would still apply. */
  1619. #ifdef __cplusplus
  1620. extern "C"
  1621. #endif
  1622. char $2 ();
  1623. /* The GNU C library defines this for functions which it implements
  1624. to always fail with ENOSYS. Some functions are actually named
  1625. something starting with __ and the normal name is an alias. */
  1626. #if defined __stub_$2 || defined __stub___$2
  1627. choke me
  1628. #endif
  1629. int
  1630. main ()
  1631. {
  1632. return $2 ();
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. if ac_fn_c_try_link "$LINENO"; then :
  1638. eval "$3=yes"
  1639. else
  1640. eval "$3=no"
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext \
  1643. conftest$ac_exeext conftest.$ac_ext
  1644. fi
  1645. eval ac_res=\$$3
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1647. $as_echo "$ac_res" >&6; }
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. } # ac_fn_c_check_func
  1650. cat >config.log <<_ACEOF
  1651. This file contains any messages produced by compilers while
  1652. running configure, to aid debugging if configure makes a mistake.
  1653. It was created by xkbevd $as_me 1.1.4, which was
  1654. generated by GNU Autoconf 2.69. Invocation command line was
  1655. $ $0 $@
  1656. _ACEOF
  1657. exec 5>>config.log
  1658. {
  1659. cat <<_ASUNAME
  1660. ## --------- ##
  1661. ## Platform. ##
  1662. ## --------- ##
  1663. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1664. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1665. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1666. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1667. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1668. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1669. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1670. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1671. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1672. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1673. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1674. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1675. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1676. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1677. _ASUNAME
  1678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1679. for as_dir in $PATH
  1680. do
  1681. IFS=$as_save_IFS
  1682. test -z "$as_dir" && as_dir=.
  1683. $as_echo "PATH: $as_dir"
  1684. done
  1685. IFS=$as_save_IFS
  1686. } >&5
  1687. cat >&5 <<_ACEOF
  1688. ## ----------- ##
  1689. ## Core tests. ##
  1690. ## ----------- ##
  1691. _ACEOF
  1692. # Keep a trace of the command line.
  1693. # Strip out --no-create and --no-recursion so they do not pile up.
  1694. # Strip out --silent because we don't want to record it for future runs.
  1695. # Also quote any args containing shell meta-characters.
  1696. # Make two passes to allow for proper duplicate-argument suppression.
  1697. ac_configure_args=
  1698. ac_configure_args0=
  1699. ac_configure_args1=
  1700. ac_must_keep_next=false
  1701. for ac_pass in 1 2
  1702. do
  1703. for ac_arg
  1704. do
  1705. case $ac_arg in
  1706. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1707. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1708. | -silent | --silent | --silen | --sile | --sil)
  1709. continue ;;
  1710. *\'*)
  1711. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1712. esac
  1713. case $ac_pass in
  1714. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1715. 2)
  1716. as_fn_append ac_configure_args1 " '$ac_arg'"
  1717. if test $ac_must_keep_next = true; then
  1718. ac_must_keep_next=false # Got value, back to normal.
  1719. else
  1720. case $ac_arg in
  1721. *=* | --config-cache | -C | -disable-* | --disable-* \
  1722. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1723. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1724. | -with-* | --with-* | -without-* | --without-* | --x)
  1725. case "$ac_configure_args0 " in
  1726. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1727. esac
  1728. ;;
  1729. -* ) ac_must_keep_next=true ;;
  1730. esac
  1731. fi
  1732. as_fn_append ac_configure_args " '$ac_arg'"
  1733. ;;
  1734. esac
  1735. done
  1736. done
  1737. { ac_configure_args0=; unset ac_configure_args0;}
  1738. { ac_configure_args1=; unset ac_configure_args1;}
  1739. # When interrupted or exit'd, cleanup temporary files, and complete
  1740. # config.log. We remove comments because anyway the quotes in there
  1741. # would cause problems or look ugly.
  1742. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1743. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1744. trap 'exit_status=$?
  1745. # Save into config.log some information that might help in debugging.
  1746. {
  1747. echo
  1748. $as_echo "## ---------------- ##
  1749. ## Cache variables. ##
  1750. ## ---------------- ##"
  1751. echo
  1752. # The following way of writing the cache mishandles newlines in values,
  1753. (
  1754. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1755. eval ac_val=\$$ac_var
  1756. case $ac_val in #(
  1757. *${as_nl}*)
  1758. case $ac_var in #(
  1759. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1760. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1761. esac
  1762. case $ac_var in #(
  1763. _ | IFS | as_nl) ;; #(
  1764. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1765. *) { eval $ac_var=; unset $ac_var;} ;;
  1766. esac ;;
  1767. esac
  1768. done
  1769. (set) 2>&1 |
  1770. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1771. *${as_nl}ac_space=\ *)
  1772. sed -n \
  1773. "s/'\''/'\''\\\\'\'''\''/g;
  1774. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1775. ;; #(
  1776. *)
  1777. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1778. ;;
  1779. esac |
  1780. sort
  1781. )
  1782. echo
  1783. $as_echo "## ----------------- ##
  1784. ## Output variables. ##
  1785. ## ----------------- ##"
  1786. echo
  1787. for ac_var in $ac_subst_vars
  1788. do
  1789. eval ac_val=\$$ac_var
  1790. case $ac_val in
  1791. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1792. esac
  1793. $as_echo "$ac_var='\''$ac_val'\''"
  1794. done | sort
  1795. echo
  1796. if test -n "$ac_subst_files"; then
  1797. $as_echo "## ------------------- ##
  1798. ## File substitutions. ##
  1799. ## ------------------- ##"
  1800. echo
  1801. for ac_var in $ac_subst_files
  1802. do
  1803. eval ac_val=\$$ac_var
  1804. case $ac_val in
  1805. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1806. esac
  1807. $as_echo "$ac_var='\''$ac_val'\''"
  1808. done | sort
  1809. echo
  1810. fi
  1811. if test -s confdefs.h; then
  1812. $as_echo "## ----------- ##
  1813. ## confdefs.h. ##
  1814. ## ----------- ##"
  1815. echo
  1816. cat confdefs.h
  1817. echo
  1818. fi
  1819. test "$ac_signal" != 0 &&
  1820. $as_echo "$as_me: caught signal $ac_signal"
  1821. $as_echo "$as_me: exit $exit_status"
  1822. } >&5
  1823. rm -f core *.core core.conftest.* &&
  1824. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1825. exit $exit_status
  1826. ' 0
  1827. for ac_signal in 1 2 13 15; do
  1828. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1829. done
  1830. ac_signal=0
  1831. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1832. rm -f -r conftest* confdefs.h
  1833. $as_echo "/* confdefs.h */" > confdefs.h
  1834. # Predefined preprocessor variables.
  1835. cat >>confdefs.h <<_ACEOF
  1836. #define PACKAGE_NAME "$PACKAGE_NAME"
  1837. _ACEOF
  1838. cat >>confdefs.h <<_ACEOF
  1839. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1840. _ACEOF
  1841. cat >>confdefs.h <<_ACEOF
  1842. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1843. _ACEOF
  1844. cat >>confdefs.h <<_ACEOF
  1845. #define PACKAGE_STRING "$PACKAGE_STRING"
  1846. _ACEOF
  1847. cat >>confdefs.h <<_ACEOF
  1848. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1849. _ACEOF
  1850. cat >>confdefs.h <<_ACEOF
  1851. #define PACKAGE_URL "$PACKAGE_URL"
  1852. _ACEOF
  1853. # Let the site file select an alternate cache file if it wants to.
  1854. # Prefer an explicitly selected file to automatically selected ones.
  1855. ac_site_file1=NONE
  1856. ac_site_file2=NONE
  1857. if test -n "$CONFIG_SITE"; then
  1858. # We do not want a PATH search for config.site.
  1859. case $CONFIG_SITE in #((
  1860. -*) ac_site_file1=./$CONFIG_SITE;;
  1861. */*) ac_site_file1=$CONFIG_SITE;;
  1862. *) ac_site_file1=./$CONFIG_SITE;;
  1863. esac
  1864. elif test "x$prefix" != xNONE; then
  1865. ac_site_file1=$prefix/share/config.site
  1866. ac_site_file2=$prefix/etc/config.site
  1867. else
  1868. ac_site_file1=$ac_default_prefix/share/config.site
  1869. ac_site_file2=$ac_default_prefix/etc/config.site
  1870. fi
  1871. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1872. do
  1873. test "x$ac_site_file" = xNONE && continue
  1874. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1876. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1877. sed 's/^/| /' "$ac_site_file" >&5
  1878. . "$ac_site_file" \
  1879. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1881. as_fn_error $? "failed to load site script $ac_site_file
  1882. See \`config.log' for more details" "$LINENO" 5; }
  1883. fi
  1884. done
  1885. if test -r "$cache_file"; then
  1886. # Some versions of bash will fail to source /dev/null (special files
  1887. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1888. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1890. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1891. case $cache_file in
  1892. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1893. *) . "./$cache_file";;
  1894. esac
  1895. fi
  1896. else
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1898. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1899. >$cache_file
  1900. fi
  1901. # Check that the precious variables saved in the cache have kept the same
  1902. # value.
  1903. ac_cache_corrupted=false
  1904. for ac_var in $ac_precious_vars; do
  1905. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1906. eval ac_new_set=\$ac_env_${ac_var}_set
  1907. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1908. eval ac_new_val=\$ac_env_${ac_var}_value
  1909. case $ac_old_set,$ac_new_set in
  1910. set,)
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1912. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1913. ac_cache_corrupted=: ;;
  1914. ,set)
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1916. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1917. ac_cache_corrupted=: ;;
  1918. ,);;
  1919. *)
  1920. if test "x$ac_old_val" != "x$ac_new_val"; then
  1921. # differences in whitespace do not lead to failure.
  1922. ac_old_val_w=`echo x $ac_old_val`
  1923. ac_new_val_w=`echo x $ac_new_val`
  1924. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1926. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1927. ac_cache_corrupted=:
  1928. else
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1930. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1931. eval $ac_var=\$ac_old_val
  1932. fi
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1934. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1936. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1937. fi;;
  1938. esac
  1939. # Pass precious variables to config.status.
  1940. if test "$ac_new_set" = set; then
  1941. case $ac_new_val in
  1942. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1943. *) ac_arg=$ac_var=$ac_new_val ;;
  1944. esac
  1945. case " $ac_configure_args " in
  1946. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1947. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1948. esac
  1949. fi
  1950. done
  1951. if $ac_cache_corrupted; then
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1955. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1956. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1957. fi
  1958. ## -------------------- ##
  1959. ## Main body of script. ##
  1960. ## -------------------- ##
  1961. ac_ext=c
  1962. ac_cpp='$CPP $CPPFLAGS'
  1963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1966. ac_config_headers="$ac_config_headers config.h"
  1967. # Initialize Automake
  1968. am__api_version='1.12'
  1969. ac_aux_dir=
  1970. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1971. if test -f "$ac_dir/install-sh"; then
  1972. ac_aux_dir=$ac_dir
  1973. ac_install_sh="$ac_aux_dir/install-sh -c"
  1974. break
  1975. elif test -f "$ac_dir/install.sh"; then
  1976. ac_aux_dir=$ac_dir
  1977. ac_install_sh="$ac_aux_dir/install.sh -c"
  1978. break
  1979. elif test -f "$ac_dir/shtool"; then
  1980. ac_aux_dir=$ac_dir
  1981. ac_install_sh="$ac_aux_dir/shtool install -c"
  1982. break
  1983. fi
  1984. done
  1985. if test -z "$ac_aux_dir"; then
  1986. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1987. fi
  1988. # These three variables are undocumented and unsupported,
  1989. # and are intended to be withdrawn in a future Autoconf release.
  1990. # They can cause serious problems if a builder's source tree is in a directory
  1991. # whose full name contains unusual characters.
  1992. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1993. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1994. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1995. # Find a good install program. We prefer a C program (faster),
  1996. # so one script is as good as another. But avoid the broken or
  1997. # incompatible versions:
  1998. # SysV /etc/install, /usr/sbin/install
  1999. # SunOS /usr/etc/install
  2000. # IRIX /sbin/install
  2001. # AIX /bin/install
  2002. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2003. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2004. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2005. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2006. # OS/2's system install, which has a completely different semantic
  2007. # ./install, which can be erroneously created by make from ./install.sh.
  2008. # Reject install programs that cannot install multiple files.
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2010. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2011. if test -z "$INSTALL"; then
  2012. if ${ac_cv_path_install+:} false; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2016. for as_dir in $PATH
  2017. do
  2018. IFS=$as_save_IFS
  2019. test -z "$as_dir" && as_dir=.
  2020. # Account for people who put trailing slashes in PATH elements.
  2021. case $as_dir/ in #((
  2022. ./ | .// | /[cC]/* | \
  2023. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2024. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2025. /usr/ucb/* ) ;;
  2026. *)
  2027. # OSF1 and SCO ODT 3.0 have their own names for install.
  2028. # Don't use installbsd from OSF since it installs stuff as root
  2029. # by default.
  2030. for ac_prog in ginstall scoinst install; do
  2031. for ac_exec_ext in '' $ac_executable_extensions; do
  2032. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2033. if test $ac_prog = install &&
  2034. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2035. # AIX install. It has an incompatible calling convention.
  2036. :
  2037. elif test $ac_prog = install &&
  2038. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2039. # program-specific install script used by HP pwplus--don't use.
  2040. :
  2041. else
  2042. rm -rf conftest.one conftest.two conftest.dir
  2043. echo one > conftest.one
  2044. echo two > conftest.two
  2045. mkdir conftest.dir
  2046. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2047. test -s conftest.one && test -s conftest.two &&
  2048. test -s conftest.dir/conftest.one &&
  2049. test -s conftest.dir/conftest.two
  2050. then
  2051. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2052. break 3
  2053. fi
  2054. fi
  2055. fi
  2056. done
  2057. done
  2058. ;;
  2059. esac
  2060. done
  2061. IFS=$as_save_IFS
  2062. rm -rf conftest.one conftest.two conftest.dir
  2063. fi
  2064. if test "${ac_cv_path_install+set}" = set; then
  2065. INSTALL=$ac_cv_path_install
  2066. else
  2067. # As a last resort, use the slow shell script. Don't cache a
  2068. # value for INSTALL within a source directory, because that will
  2069. # break other packages using the cache if that directory is
  2070. # removed, or if the value is a relative name.
  2071. INSTALL=$ac_install_sh
  2072. fi
  2073. fi
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2075. $as_echo "$INSTALL" >&6; }
  2076. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2077. # It thinks the first close brace ends the variable substitution.
  2078. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2079. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2080. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2082. $as_echo_n "checking whether build environment is sane... " >&6; }
  2083. # Reject unsafe characters in $srcdir or the absolute working directory
  2084. # name. Accept space and tab only in the latter.
  2085. am_lf='
  2086. '
  2087. case `pwd` in
  2088. *[\\\"\#\$\&\'\`$am_lf]*)
  2089. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2090. esac
  2091. case $srcdir in
  2092. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2093. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2094. esac
  2095. # Do 'set' in a subshell so we don't clobber the current shell's
  2096. # arguments. Must try -L first in case configure is actually a
  2097. # symlink; some systems play weird games with the mod time of symlinks
  2098. # (eg FreeBSD returns the mod time of the symlink's containing
  2099. # directory).
  2100. if (
  2101. am_has_slept=no
  2102. for am_try in 1 2; do
  2103. echo "timestamp, slept: $am_has_slept" > conftest.file
  2104. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2105. if test "$*" = "X"; then
  2106. # -L didn't work.
  2107. set X `ls -t "$srcdir/configure" conftest.file`
  2108. fi
  2109. if test "$*" != "X $srcdir/configure conftest.file" \
  2110. && test "$*" != "X conftest.file $srcdir/configure"; then
  2111. # If neither matched, then we have a broken ls. This can happen
  2112. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2113. # broken ls alias from the environment. This has actually
  2114. # happened. Such a system could not be considered "sane".
  2115. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2116. alias in your environment" "$LINENO" 5
  2117. fi
  2118. if test "$2" = conftest.file || test $am_try -eq 2; then
  2119. break
  2120. fi
  2121. # Just in case.
  2122. sleep 1
  2123. am_has_slept=yes
  2124. done
  2125. test "$2" = conftest.file
  2126. )
  2127. then
  2128. # Ok.
  2129. :
  2130. else
  2131. as_fn_error $? "newly created file is older than distributed files!
  2132. Check your system clock" "$LINENO" 5
  2133. fi
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2135. $as_echo "yes" >&6; }
  2136. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2137. # generated files are strictly newer.
  2138. am_sleep_pid=
  2139. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2140. ( sleep 1 ) &
  2141. am_sleep_pid=$!
  2142. fi
  2143. rm -f conftest.file
  2144. test "$program_prefix" != NONE &&
  2145. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2146. # Use a double $ so make ignores it.
  2147. test "$program_suffix" != NONE &&
  2148. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2149. # Double any \ or $.
  2150. # By default was `s,x,x', remove it if useless.
  2151. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2152. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2153. # expand $ac_aux_dir to an absolute path
  2154. am_aux_dir=`cd $ac_aux_dir && pwd`
  2155. if test x"${MISSING+set}" != xset; then
  2156. case $am_aux_dir in
  2157. *\ * | *\ *)
  2158. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2159. *)
  2160. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2161. esac
  2162. fi
  2163. # Use eval to expand $SHELL
  2164. if eval "$MISSING --run true"; then
  2165. am_missing_run="$MISSING --run "
  2166. else
  2167. am_missing_run=
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2169. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2170. fi
  2171. if test x"${install_sh}" != xset; then
  2172. case $am_aux_dir in
  2173. *\ * | *\ *)
  2174. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2175. *)
  2176. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2177. esac
  2178. fi
  2179. # Installed binaries are usually stripped using 'strip' when the user
  2180. # run "make install-strip". However 'strip' might not be the right
  2181. # tool to use in cross-compilation environments, therefore Automake
  2182. # will honor the 'STRIP' environment variable to overrule this program.
  2183. if test "$cross_compiling" != no; then
  2184. if test -n "$ac_tool_prefix"; then
  2185. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2186. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2188. $as_echo_n "checking for $ac_word... " >&6; }
  2189. if ${ac_cv_prog_STRIP+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. if test -n "$STRIP"; then
  2193. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. for ac_exec_ext in '' $ac_executable_extensions; do
  2201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2202. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2204. break 2
  2205. fi
  2206. done
  2207. done
  2208. IFS=$as_save_IFS
  2209. fi
  2210. fi
  2211. STRIP=$ac_cv_prog_STRIP
  2212. if test -n "$STRIP"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2214. $as_echo "$STRIP" >&6; }
  2215. else
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2217. $as_echo "no" >&6; }
  2218. fi
  2219. fi
  2220. if test -z "$ac_cv_prog_STRIP"; then
  2221. ac_ct_STRIP=$STRIP
  2222. # Extract the first word of "strip", so it can be a program name with args.
  2223. set dummy strip; ac_word=$2
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2225. $as_echo_n "checking for $ac_word... " >&6; }
  2226. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2227. $as_echo_n "(cached) " >&6
  2228. else
  2229. if test -n "$ac_ct_STRIP"; then
  2230. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2231. else
  2232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2233. for as_dir in $PATH
  2234. do
  2235. IFS=$as_save_IFS
  2236. test -z "$as_dir" && as_dir=.
  2237. for ac_exec_ext in '' $ac_executable_extensions; do
  2238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2239. ac_cv_prog_ac_ct_STRIP="strip"
  2240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2241. break 2
  2242. fi
  2243. done
  2244. done
  2245. IFS=$as_save_IFS
  2246. fi
  2247. fi
  2248. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2249. if test -n "$ac_ct_STRIP"; then
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2251. $as_echo "$ac_ct_STRIP" >&6; }
  2252. else
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2254. $as_echo "no" >&6; }
  2255. fi
  2256. if test "x$ac_ct_STRIP" = x; then
  2257. STRIP=":"
  2258. else
  2259. case $cross_compiling:$ac_tool_warned in
  2260. yes:)
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2262. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2263. ac_tool_warned=yes ;;
  2264. esac
  2265. STRIP=$ac_ct_STRIP
  2266. fi
  2267. else
  2268. STRIP="$ac_cv_prog_STRIP"
  2269. fi
  2270. fi
  2271. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2273. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2274. if test -z "$MKDIR_P"; then
  2275. if ${ac_cv_path_mkdir+:} false; then :
  2276. $as_echo_n "(cached) " >&6
  2277. else
  2278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2280. do
  2281. IFS=$as_save_IFS
  2282. test -z "$as_dir" && as_dir=.
  2283. for ac_prog in mkdir gmkdir; do
  2284. for ac_exec_ext in '' $ac_executable_extensions; do
  2285. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2286. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2287. 'mkdir (GNU coreutils) '* | \
  2288. 'mkdir (coreutils) '* | \
  2289. 'mkdir (fileutils) '4.1*)
  2290. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2291. break 3;;
  2292. esac
  2293. done
  2294. done
  2295. done
  2296. IFS=$as_save_IFS
  2297. fi
  2298. test -d ./--version && rmdir ./--version
  2299. if test "${ac_cv_path_mkdir+set}" = set; then
  2300. MKDIR_P="$ac_cv_path_mkdir -p"
  2301. else
  2302. # As a last resort, use the slow shell script. Don't cache a
  2303. # value for MKDIR_P within a source directory, because that will
  2304. # break other packages using the cache if that directory is
  2305. # removed, or if the value is a relative name.
  2306. MKDIR_P="$ac_install_sh -d"
  2307. fi
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2310. $as_echo "$MKDIR_P" >&6; }
  2311. for ac_prog in gawk mawk nawk awk
  2312. do
  2313. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2314. set dummy $ac_prog; ac_word=$2
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2316. $as_echo_n "checking for $ac_word... " >&6; }
  2317. if ${ac_cv_prog_AWK+:} false; then :
  2318. $as_echo_n "(cached) " >&6
  2319. else
  2320. if test -n "$AWK"; then
  2321. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2322. else
  2323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2324. for as_dir in $PATH
  2325. do
  2326. IFS=$as_save_IFS
  2327. test -z "$as_dir" && as_dir=.
  2328. for ac_exec_ext in '' $ac_executable_extensions; do
  2329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2330. ac_cv_prog_AWK="$ac_prog"
  2331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2332. break 2
  2333. fi
  2334. done
  2335. done
  2336. IFS=$as_save_IFS
  2337. fi
  2338. fi
  2339. AWK=$ac_cv_prog_AWK
  2340. if test -n "$AWK"; then
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2342. $as_echo "$AWK" >&6; }
  2343. else
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2345. $as_echo "no" >&6; }
  2346. fi
  2347. test -n "$AWK" && break
  2348. done
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2350. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2351. set x ${MAKE-make}
  2352. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2353. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2354. $as_echo_n "(cached) " >&6
  2355. else
  2356. cat >conftest.make <<\_ACEOF
  2357. SHELL = /bin/sh
  2358. all:
  2359. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2360. _ACEOF
  2361. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2362. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2363. *@@@%%%=?*=@@@%%%*)
  2364. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2365. *)
  2366. eval ac_cv_prog_make_${ac_make}_set=no;;
  2367. esac
  2368. rm -f conftest.make
  2369. fi
  2370. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2372. $as_echo "yes" >&6; }
  2373. SET_MAKE=
  2374. else
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2376. $as_echo "no" >&6; }
  2377. SET_MAKE="MAKE=${MAKE-make}"
  2378. fi
  2379. rm -rf .tst 2>/dev/null
  2380. mkdir .tst 2>/dev/null
  2381. if test -d .tst; then
  2382. am__leading_dot=.
  2383. else
  2384. am__leading_dot=_
  2385. fi
  2386. rmdir .tst 2>/dev/null
  2387. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2388. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2389. # is not polluted with repeated "-I."
  2390. am__isrc=' -I$(srcdir)'
  2391. # test to see if srcdir already configured
  2392. if test -f $srcdir/config.status; then
  2393. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2394. fi
  2395. fi
  2396. # test whether we have cygpath
  2397. if test -z "$CYGPATH_W"; then
  2398. if (cygpath --version) >/dev/null 2>/dev/null; then
  2399. CYGPATH_W='cygpath -w'
  2400. else
  2401. CYGPATH_W=echo
  2402. fi
  2403. fi
  2404. # Define the identity of the package.
  2405. PACKAGE='xkbevd'
  2406. VERSION='1.1.4'
  2407. cat >>confdefs.h <<_ACEOF
  2408. #define PACKAGE "$PACKAGE"
  2409. _ACEOF
  2410. cat >>confdefs.h <<_ACEOF
  2411. #define VERSION "$VERSION"
  2412. _ACEOF
  2413. # Some tools Automake needs.
  2414. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2415. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2416. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2417. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2418. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2419. # For better backward compatibility. To be removed once Automake 1.9.x
  2420. # dies out for good. For more background, see:
  2421. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2422. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2423. mkdir_p='$(MKDIR_P)'
  2424. # We need awk for the "check" target. The system "awk" is bad on
  2425. # some platforms.
  2426. # Always define AMTAR for backward compatibility. Yes, it's still used
  2427. # in the wild :-( We should find a proper way to deprecate it ...
  2428. AMTAR='$${TAR-tar}'
  2429. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2430. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2431. DEPDIR="${am__leading_dot}deps"
  2432. ac_config_commands="$ac_config_commands depfiles"
  2433. am_make=${MAKE-make}
  2434. cat > confinc << 'END'
  2435. am__doit:
  2436. @echo this is the am__doit target
  2437. .PHONY: am__doit
  2438. END
  2439. # If we don't find an include directive, just comment out the code.
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2441. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2442. am__include="#"
  2443. am__quote=
  2444. _am_result=none
  2445. # First try GNU make style include.
  2446. echo "include confinc" > confmf
  2447. # Ignore all kinds of additional output from 'make'.
  2448. case `$am_make -s -f confmf 2> /dev/null` in #(
  2449. *the\ am__doit\ target*)
  2450. am__include=include
  2451. am__quote=
  2452. _am_result=GNU
  2453. ;;
  2454. esac
  2455. # Now try BSD make style include.
  2456. if test "$am__include" = "#"; then
  2457. echo '.include "confinc"' > confmf
  2458. case `$am_make -s -f confmf 2> /dev/null` in #(
  2459. *the\ am__doit\ target*)
  2460. am__include=.include
  2461. am__quote="\""
  2462. _am_result=BSD
  2463. ;;
  2464. esac
  2465. fi
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2467. $as_echo "$_am_result" >&6; }
  2468. rm -f confinc confmf
  2469. # Check whether --enable-dependency-tracking was given.
  2470. if test "${enable_dependency_tracking+set}" = set; then :
  2471. enableval=$enable_dependency_tracking;
  2472. fi
  2473. if test "x$enable_dependency_tracking" != xno; then
  2474. am_depcomp="$ac_aux_dir/depcomp"
  2475. AMDEPBACKSLASH='\'
  2476. am__nodep='_no'
  2477. fi
  2478. if test "x$enable_dependency_tracking" != xno; then
  2479. AMDEP_TRUE=
  2480. AMDEP_FALSE='#'
  2481. else
  2482. AMDEP_TRUE='#'
  2483. AMDEP_FALSE=
  2484. fi
  2485. ac_ext=c
  2486. ac_cpp='$CPP $CPPFLAGS'
  2487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2490. if test -n "$ac_tool_prefix"; then
  2491. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2492. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2494. $as_echo_n "checking for $ac_word... " >&6; }
  2495. if ${ac_cv_prog_CC+:} false; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. if test -n "$CC"; then
  2499. ac_cv_prog_CC="$CC" # Let the user override the test.
  2500. else
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. for ac_exec_ext in '' $ac_executable_extensions; do
  2507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2508. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2510. break 2
  2511. fi
  2512. done
  2513. done
  2514. IFS=$as_save_IFS
  2515. fi
  2516. fi
  2517. CC=$ac_cv_prog_CC
  2518. if test -n "$CC"; then
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2520. $as_echo "$CC" >&6; }
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2523. $as_echo "no" >&6; }
  2524. fi
  2525. fi
  2526. if test -z "$ac_cv_prog_CC"; then
  2527. ac_ct_CC=$CC
  2528. # Extract the first word of "gcc", so it can be a program name with args.
  2529. set dummy gcc; ac_word=$2
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2531. $as_echo_n "checking for $ac_word... " >&6; }
  2532. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test -n "$ac_ct_CC"; then
  2536. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2537. else
  2538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2539. for as_dir in $PATH
  2540. do
  2541. IFS=$as_save_IFS
  2542. test -z "$as_dir" && as_dir=.
  2543. for ac_exec_ext in '' $ac_executable_extensions; do
  2544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2545. ac_cv_prog_ac_ct_CC="gcc"
  2546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2547. break 2
  2548. fi
  2549. done
  2550. done
  2551. IFS=$as_save_IFS
  2552. fi
  2553. fi
  2554. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2555. if test -n "$ac_ct_CC"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2557. $as_echo "$ac_ct_CC" >&6; }
  2558. else
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2560. $as_echo "no" >&6; }
  2561. fi
  2562. if test "x$ac_ct_CC" = x; then
  2563. CC=""
  2564. else
  2565. case $cross_compiling:$ac_tool_warned in
  2566. yes:)
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2569. ac_tool_warned=yes ;;
  2570. esac
  2571. CC=$ac_ct_CC
  2572. fi
  2573. else
  2574. CC="$ac_cv_prog_CC"
  2575. fi
  2576. if test -z "$CC"; then
  2577. if test -n "$ac_tool_prefix"; then
  2578. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2579. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2581. $as_echo_n "checking for $ac_word... " >&6; }
  2582. if ${ac_cv_prog_CC+:} false; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. if test -n "$CC"; then
  2586. ac_cv_prog_CC="$CC" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2595. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597. break 2
  2598. fi
  2599. done
  2600. done
  2601. IFS=$as_save_IFS
  2602. fi
  2603. fi
  2604. CC=$ac_cv_prog_CC
  2605. if test -n "$CC"; then
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2607. $as_echo "$CC" >&6; }
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. fi
  2612. fi
  2613. fi
  2614. if test -z "$CC"; then
  2615. # Extract the first word of "cc", so it can be a program name with args.
  2616. set dummy cc; ac_word=$2
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if ${ac_cv_prog_CC+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$CC"; then
  2623. ac_cv_prog_CC="$CC" # Let the user override the test.
  2624. else
  2625. ac_prog_rejected=no
  2626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2627. for as_dir in $PATH
  2628. do
  2629. IFS=$as_save_IFS
  2630. test -z "$as_dir" && as_dir=.
  2631. for ac_exec_ext in '' $ac_executable_extensions; do
  2632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2633. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2634. ac_prog_rejected=yes
  2635. continue
  2636. fi
  2637. ac_cv_prog_CC="cc"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. if test $ac_prog_rejected = yes; then
  2645. # We found a bogon in the path, so make sure we never use it.
  2646. set dummy $ac_cv_prog_CC
  2647. shift
  2648. if test $# != 0; then
  2649. # We chose a different compiler from the bogus one.
  2650. # However, it has the same basename, so the bogon will be chosen
  2651. # first if we set CC to just the basename; use the full file name.
  2652. shift
  2653. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2654. fi
  2655. fi
  2656. fi
  2657. fi
  2658. CC=$ac_cv_prog_CC
  2659. if test -n "$CC"; then
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2661. $as_echo "$CC" >&6; }
  2662. else
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2664. $as_echo "no" >&6; }
  2665. fi
  2666. fi
  2667. if test -z "$CC"; then
  2668. if test -n "$ac_tool_prefix"; then
  2669. for ac_prog in cl.exe
  2670. do
  2671. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2672. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2674. $as_echo_n "checking for $ac_word... " >&6; }
  2675. if ${ac_cv_prog_CC+:} false; then :
  2676. $as_echo_n "(cached) " >&6
  2677. else
  2678. if test -n "$CC"; then
  2679. ac_cv_prog_CC="$CC" # Let the user override the test.
  2680. else
  2681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2682. for as_dir in $PATH
  2683. do
  2684. IFS=$as_save_IFS
  2685. test -z "$as_dir" && as_dir=.
  2686. for ac_exec_ext in '' $ac_executable_extensions; do
  2687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2688. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2690. break 2
  2691. fi
  2692. done
  2693. done
  2694. IFS=$as_save_IFS
  2695. fi
  2696. fi
  2697. CC=$ac_cv_prog_CC
  2698. if test -n "$CC"; then
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2700. $as_echo "$CC" >&6; }
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. fi
  2705. test -n "$CC" && break
  2706. done
  2707. fi
  2708. if test -z "$CC"; then
  2709. ac_ct_CC=$CC
  2710. for ac_prog in cl.exe
  2711. do
  2712. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2713. set dummy $ac_prog; ac_word=$2
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2715. $as_echo_n "checking for $ac_word... " >&6; }
  2716. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. if test -n "$ac_ct_CC"; then
  2720. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2729. ac_cv_prog_ac_ct_CC="$ac_prog"
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2731. break 2
  2732. fi
  2733. done
  2734. done
  2735. IFS=$as_save_IFS
  2736. fi
  2737. fi
  2738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2739. if test -n "$ac_ct_CC"; then
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2741. $as_echo "$ac_ct_CC" >&6; }
  2742. else
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. fi
  2746. test -n "$ac_ct_CC" && break
  2747. done
  2748. if test "x$ac_ct_CC" = x; then
  2749. CC=""
  2750. else
  2751. case $cross_compiling:$ac_tool_warned in
  2752. yes:)
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2755. ac_tool_warned=yes ;;
  2756. esac
  2757. CC=$ac_ct_CC
  2758. fi
  2759. fi
  2760. fi
  2761. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2763. as_fn_error $? "no acceptable C compiler found in \$PATH
  2764. See \`config.log' for more details" "$LINENO" 5; }
  2765. # Provide some information about the compiler.
  2766. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2767. set X $ac_compile
  2768. ac_compiler=$2
  2769. for ac_option in --version -v -V -qversion; do
  2770. { { ac_try="$ac_compiler $ac_option >&5"
  2771. case "(($ac_try" in
  2772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2773. *) ac_try_echo=$ac_try;;
  2774. esac
  2775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2776. $as_echo "$ac_try_echo"; } >&5
  2777. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2778. ac_status=$?
  2779. if test -s conftest.err; then
  2780. sed '10a\
  2781. ... rest of stderr output deleted ...
  2782. 10q' conftest.err >conftest.er1
  2783. cat conftest.er1 >&5
  2784. fi
  2785. rm -f conftest.er1 conftest.err
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2787. test $ac_status = 0; }
  2788. done
  2789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2790. /* end confdefs.h. */
  2791. int
  2792. main ()
  2793. {
  2794. ;
  2795. return 0;
  2796. }
  2797. _ACEOF
  2798. ac_clean_files_save=$ac_clean_files
  2799. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2800. # Try to create an executable without -o first, disregard a.out.
  2801. # It will help us diagnose broken compilers, and finding out an intuition
  2802. # of exeext.
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2804. $as_echo_n "checking whether the C compiler works... " >&6; }
  2805. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2806. # The possible output files:
  2807. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2808. ac_rmfiles=
  2809. for ac_file in $ac_files
  2810. do
  2811. case $ac_file in
  2812. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2813. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2814. esac
  2815. done
  2816. rm -f $ac_rmfiles
  2817. if { { ac_try="$ac_link_default"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2823. $as_echo "$ac_try_echo"; } >&5
  2824. (eval "$ac_link_default") 2>&5
  2825. ac_status=$?
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2827. test $ac_status = 0; }; then :
  2828. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2829. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2830. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2831. # so that the user can short-circuit this test for compilers unknown to
  2832. # Autoconf.
  2833. for ac_file in $ac_files ''
  2834. do
  2835. test -f "$ac_file" || continue
  2836. case $ac_file in
  2837. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2838. ;;
  2839. [ab].out )
  2840. # We found the default executable, but exeext='' is most
  2841. # certainly right.
  2842. break;;
  2843. *.* )
  2844. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2845. then :; else
  2846. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2847. fi
  2848. # We set ac_cv_exeext here because the later test for it is not
  2849. # safe: cross compilers may not add the suffix if given an `-o'
  2850. # argument, so we may need to know it at that point already.
  2851. # Even if this section looks crufty: it has the advantage of
  2852. # actually working.
  2853. break;;
  2854. * )
  2855. break;;
  2856. esac
  2857. done
  2858. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2859. else
  2860. ac_file=''
  2861. fi
  2862. if test -z "$ac_file"; then :
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. $as_echo "$as_me: failed program was:" >&5
  2866. sed 's/^/| /' conftest.$ac_ext >&5
  2867. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2868. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2869. as_fn_error 77 "C compiler cannot create executables
  2870. See \`config.log' for more details" "$LINENO" 5; }
  2871. else
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2873. $as_echo "yes" >&6; }
  2874. fi
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2876. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2878. $as_echo "$ac_file" >&6; }
  2879. ac_exeext=$ac_cv_exeext
  2880. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2881. ac_clean_files=$ac_clean_files_save
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2883. $as_echo_n "checking for suffix of executables... " >&6; }
  2884. if { { ac_try="$ac_link"
  2885. case "(($ac_try" in
  2886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2887. *) ac_try_echo=$ac_try;;
  2888. esac
  2889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2890. $as_echo "$ac_try_echo"; } >&5
  2891. (eval "$ac_link") 2>&5
  2892. ac_status=$?
  2893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2894. test $ac_status = 0; }; then :
  2895. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2896. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2897. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2898. # `rm'.
  2899. for ac_file in conftest.exe conftest conftest.*; do
  2900. test -f "$ac_file" || continue
  2901. case $ac_file in
  2902. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2903. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2904. break;;
  2905. * ) break;;
  2906. esac
  2907. done
  2908. else
  2909. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2911. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2912. See \`config.log' for more details" "$LINENO" 5; }
  2913. fi
  2914. rm -f conftest conftest$ac_cv_exeext
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2916. $as_echo "$ac_cv_exeext" >&6; }
  2917. rm -f conftest.$ac_ext
  2918. EXEEXT=$ac_cv_exeext
  2919. ac_exeext=$EXEEXT
  2920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2921. /* end confdefs.h. */
  2922. #include <stdio.h>
  2923. int
  2924. main ()
  2925. {
  2926. FILE *f = fopen ("conftest.out", "w");
  2927. return ferror (f) || fclose (f) != 0;
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. ac_clean_files="$ac_clean_files conftest.out"
  2933. # Check that the compiler produces executables we can run. If not, either
  2934. # the compiler is broken, or we cross compile.
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2936. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2937. if test "$cross_compiling" != yes; then
  2938. { { ac_try="$ac_link"
  2939. case "(($ac_try" in
  2940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2941. *) ac_try_echo=$ac_try;;
  2942. esac
  2943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2944. $as_echo "$ac_try_echo"; } >&5
  2945. (eval "$ac_link") 2>&5
  2946. ac_status=$?
  2947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2948. test $ac_status = 0; }
  2949. if { ac_try='./conftest$ac_cv_exeext'
  2950. { { case "(($ac_try" in
  2951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2952. *) ac_try_echo=$ac_try;;
  2953. esac
  2954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2955. $as_echo "$ac_try_echo"; } >&5
  2956. (eval "$ac_try") 2>&5
  2957. ac_status=$?
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2959. test $ac_status = 0; }; }; then
  2960. cross_compiling=no
  2961. else
  2962. if test "$cross_compiling" = maybe; then
  2963. cross_compiling=yes
  2964. else
  2965. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2966. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2967. as_fn_error $? "cannot run C compiled programs.
  2968. If you meant to cross compile, use \`--host'.
  2969. See \`config.log' for more details" "$LINENO" 5; }
  2970. fi
  2971. fi
  2972. fi
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2974. $as_echo "$cross_compiling" >&6; }
  2975. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2976. ac_clean_files=$ac_clean_files_save
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2978. $as_echo_n "checking for suffix of object files... " >&6; }
  2979. if ${ac_cv_objext+:} false; then :
  2980. $as_echo_n "(cached) " >&6
  2981. else
  2982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2983. /* end confdefs.h. */
  2984. int
  2985. main ()
  2986. {
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. rm -f conftest.o conftest.obj
  2992. if { { ac_try="$ac_compile"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo"; } >&5
  2999. (eval "$ac_compile") 2>&5
  3000. ac_status=$?
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3002. test $ac_status = 0; }; then :
  3003. for ac_file in conftest.o conftest.obj conftest.*; do
  3004. test -f "$ac_file" || continue;
  3005. case $ac_file in
  3006. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3007. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3008. break;;
  3009. esac
  3010. done
  3011. else
  3012. $as_echo "$as_me: failed program was:" >&5
  3013. sed 's/^/| /' conftest.$ac_ext >&5
  3014. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3016. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3017. See \`config.log' for more details" "$LINENO" 5; }
  3018. fi
  3019. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3020. fi
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3022. $as_echo "$ac_cv_objext" >&6; }
  3023. OBJEXT=$ac_cv_objext
  3024. ac_objext=$OBJEXT
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3026. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3027. if ${ac_cv_c_compiler_gnu+:} false; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. int
  3033. main ()
  3034. {
  3035. #ifndef __GNUC__
  3036. choke me
  3037. #endif
  3038. ;
  3039. return 0;
  3040. }
  3041. _ACEOF
  3042. if ac_fn_c_try_compile "$LINENO"; then :
  3043. ac_compiler_gnu=yes
  3044. else
  3045. ac_compiler_gnu=no
  3046. fi
  3047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3048. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3049. fi
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3051. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3052. if test $ac_compiler_gnu = yes; then
  3053. GCC=yes
  3054. else
  3055. GCC=
  3056. fi
  3057. ac_test_CFLAGS=${CFLAGS+set}
  3058. ac_save_CFLAGS=$CFLAGS
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3060. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3061. if ${ac_cv_prog_cc_g+:} false; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. ac_save_c_werror_flag=$ac_c_werror_flag
  3065. ac_c_werror_flag=yes
  3066. ac_cv_prog_cc_g=no
  3067. CFLAGS="-g"
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. int
  3071. main ()
  3072. {
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. if ac_fn_c_try_compile "$LINENO"; then :
  3078. ac_cv_prog_cc_g=yes
  3079. else
  3080. CFLAGS=""
  3081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end confdefs.h. */
  3083. int
  3084. main ()
  3085. {
  3086. ;
  3087. return 0;
  3088. }
  3089. _ACEOF
  3090. if ac_fn_c_try_compile "$LINENO"; then :
  3091. else
  3092. ac_c_werror_flag=$ac_save_c_werror_flag
  3093. CFLAGS="-g"
  3094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3095. /* end confdefs.h. */
  3096. int
  3097. main ()
  3098. {
  3099. ;
  3100. return 0;
  3101. }
  3102. _ACEOF
  3103. if ac_fn_c_try_compile "$LINENO"; then :
  3104. ac_cv_prog_cc_g=yes
  3105. fi
  3106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3107. fi
  3108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. ac_c_werror_flag=$ac_save_c_werror_flag
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3114. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3115. if test "$ac_test_CFLAGS" = set; then
  3116. CFLAGS=$ac_save_CFLAGS
  3117. elif test $ac_cv_prog_cc_g = yes; then
  3118. if test "$GCC" = yes; then
  3119. CFLAGS="-g -O2"
  3120. else
  3121. CFLAGS="-g"
  3122. fi
  3123. else
  3124. if test "$GCC" = yes; then
  3125. CFLAGS="-O2"
  3126. else
  3127. CFLAGS=
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3131. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3132. if ${ac_cv_prog_cc_c89+:} false; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. ac_cv_prog_cc_c89=no
  3136. ac_save_CC=$CC
  3137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3138. /* end confdefs.h. */
  3139. #include <stdarg.h>
  3140. #include <stdio.h>
  3141. struct stat;
  3142. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3143. struct buf { int x; };
  3144. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3145. static char *e (p, i)
  3146. char **p;
  3147. int i;
  3148. {
  3149. return p[i];
  3150. }
  3151. static char *f (char * (*g) (char **, int), char **p, ...)
  3152. {
  3153. char *s;
  3154. va_list v;
  3155. va_start (v,p);
  3156. s = g (p, va_arg (v,int));
  3157. va_end (v);
  3158. return s;
  3159. }
  3160. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3161. function prototypes and stuff, but not '\xHH' hex character constants.
  3162. These don't provoke an error unfortunately, instead are silently treated
  3163. as 'x'. The following induces an error, until -std is added to get
  3164. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3165. array size at least. It's necessary to write '\x00'==0 to get something
  3166. that's true only with -std. */
  3167. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3168. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3169. inside strings and character constants. */
  3170. #define FOO(x) 'x'
  3171. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3172. int test (int i, double x);
  3173. struct s1 {int (*f) (int a);};
  3174. struct s2 {int (*f) (double a);};
  3175. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3176. int argc;
  3177. char **argv;
  3178. int
  3179. main ()
  3180. {
  3181. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3182. ;
  3183. return 0;
  3184. }
  3185. _ACEOF
  3186. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3187. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3188. do
  3189. CC="$ac_save_CC $ac_arg"
  3190. if ac_fn_c_try_compile "$LINENO"; then :
  3191. ac_cv_prog_cc_c89=$ac_arg
  3192. fi
  3193. rm -f core conftest.err conftest.$ac_objext
  3194. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3195. done
  3196. rm -f conftest.$ac_ext
  3197. CC=$ac_save_CC
  3198. fi
  3199. # AC_CACHE_VAL
  3200. case "x$ac_cv_prog_cc_c89" in
  3201. x)
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3203. $as_echo "none needed" >&6; } ;;
  3204. xno)
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3206. $as_echo "unsupported" >&6; } ;;
  3207. *)
  3208. CC="$CC $ac_cv_prog_cc_c89"
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3210. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3211. esac
  3212. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3213. fi
  3214. ac_ext=c
  3215. ac_cpp='$CPP $CPPFLAGS'
  3216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3219. depcc="$CC" am_compiler_list=
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3221. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3222. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3223. $as_echo_n "(cached) " >&6
  3224. else
  3225. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3226. # We make a subdir and do the tests there. Otherwise we can end up
  3227. # making bogus files that we don't know about and never remove. For
  3228. # instance it was reported that on HP-UX the gcc test will end up
  3229. # making a dummy file named 'D' -- because '-MD' means "put the output
  3230. # in D".
  3231. rm -rf conftest.dir
  3232. mkdir conftest.dir
  3233. # Copy depcomp to subdir because otherwise we won't find it if we're
  3234. # using a relative directory.
  3235. cp "$am_depcomp" conftest.dir
  3236. cd conftest.dir
  3237. # We will build objects and dependencies in a subdirectory because
  3238. # it helps to detect inapplicable dependency modes. For instance
  3239. # both Tru64's cc and ICC support -MD to output dependencies as a
  3240. # side effect of compilation, but ICC will put the dependencies in
  3241. # the current directory while Tru64 will put them in the object
  3242. # directory.
  3243. mkdir sub
  3244. am_cv_CC_dependencies_compiler_type=none
  3245. if test "$am_compiler_list" = ""; then
  3246. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3247. fi
  3248. am__universal=false
  3249. case " $depcc " in #(
  3250. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3251. esac
  3252. for depmode in $am_compiler_list; do
  3253. # Setup a source with many dependencies, because some compilers
  3254. # like to wrap large dependency lists on column 80 (with \), and
  3255. # we should not choose a depcomp mode which is confused by this.
  3256. #
  3257. # We need to recreate these files for each test, as the compiler may
  3258. # overwrite some of them when testing with obscure command lines.
  3259. # This happens at least with the AIX C compiler.
  3260. : > sub/conftest.c
  3261. for i in 1 2 3 4 5 6; do
  3262. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3263. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3264. # Solaris 10 /bin/sh.
  3265. echo '/* dummy */' > sub/conftst$i.h
  3266. done
  3267. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3268. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3269. # mode. It turns out that the SunPro C++ compiler does not properly
  3270. # handle '-M -o', and we need to detect this. Also, some Intel
  3271. # versions had trouble with output in subdirs.
  3272. am__obj=sub/conftest.${OBJEXT-o}
  3273. am__minus_obj="-o $am__obj"
  3274. case $depmode in
  3275. gcc)
  3276. # This depmode causes a compiler race in universal mode.
  3277. test "$am__universal" = false || continue
  3278. ;;
  3279. nosideeffect)
  3280. # After this tag, mechanisms are not by side-effect, so they'll
  3281. # only be used when explicitly requested.
  3282. if test "x$enable_dependency_tracking" = xyes; then
  3283. continue
  3284. else
  3285. break
  3286. fi
  3287. ;;
  3288. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3289. # This compiler won't grok '-c -o', but also, the minuso test has
  3290. # not run yet. These depmodes are late enough in the game, and
  3291. # so weak that their functioning should not be impacted.
  3292. am__obj=conftest.${OBJEXT-o}
  3293. am__minus_obj=
  3294. ;;
  3295. none) break ;;
  3296. esac
  3297. if depmode=$depmode \
  3298. source=sub/conftest.c object=$am__obj \
  3299. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3300. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3301. >/dev/null 2>conftest.err &&
  3302. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3303. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3304. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3305. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3306. # icc doesn't choke on unknown options, it will just issue warnings
  3307. # or remarks (even with -Werror). So we grep stderr for any message
  3308. # that says an option was ignored or not supported.
  3309. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3310. # icc: Command line warning: ignoring option '-M'; no argument required
  3311. # The diagnosis changed in icc 8.0:
  3312. # icc: Command line remark: option '-MP' not supported
  3313. if (grep 'ignoring option' conftest.err ||
  3314. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3315. am_cv_CC_dependencies_compiler_type=$depmode
  3316. break
  3317. fi
  3318. fi
  3319. done
  3320. cd ..
  3321. rm -rf conftest.dir
  3322. else
  3323. am_cv_CC_dependencies_compiler_type=none
  3324. fi
  3325. fi
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3327. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3328. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3329. if
  3330. test "x$enable_dependency_tracking" != xno \
  3331. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3332. am__fastdepCC_TRUE=
  3333. am__fastdepCC_FALSE='#'
  3334. else
  3335. am__fastdepCC_TRUE='#'
  3336. am__fastdepCC_FALSE=
  3337. fi
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3339. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3340. if ${ac_cv_prog_cc_c99+:} false; then :
  3341. $as_echo_n "(cached) " >&6
  3342. else
  3343. ac_cv_prog_cc_c99=no
  3344. ac_save_CC=$CC
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. #include <stdarg.h>
  3348. #include <stdbool.h>
  3349. #include <stdlib.h>
  3350. #include <wchar.h>
  3351. #include <stdio.h>
  3352. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3353. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3354. #define showlist(...) puts (#__VA_ARGS__)
  3355. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3356. static void
  3357. test_varargs_macros (void)
  3358. {
  3359. int x = 1234;
  3360. int y = 5678;
  3361. debug ("Flag");
  3362. debug ("X = %d\n", x);
  3363. showlist (The first, second, and third items.);
  3364. report (x>y, "x is %d but y is %d", x, y);
  3365. }
  3366. // Check long long types.
  3367. #define BIG64 18446744073709551615ull
  3368. #define BIG32 4294967295ul
  3369. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3370. #if !BIG_OK
  3371. your preprocessor is broken;
  3372. #endif
  3373. #if BIG_OK
  3374. #else
  3375. your preprocessor is broken;
  3376. #endif
  3377. static long long int bignum = -9223372036854775807LL;
  3378. static unsigned long long int ubignum = BIG64;
  3379. struct incomplete_array
  3380. {
  3381. int datasize;
  3382. double data[];
  3383. };
  3384. struct named_init {
  3385. int number;
  3386. const wchar_t *name;
  3387. double average;
  3388. };
  3389. typedef const char *ccp;
  3390. static inline int
  3391. test_restrict (ccp restrict text)
  3392. {
  3393. // See if C++-style comments work.
  3394. // Iterate through items via the restricted pointer.
  3395. // Also check for declarations in for loops.
  3396. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3397. continue;
  3398. return 0;
  3399. }
  3400. // Check varargs and va_copy.
  3401. static void
  3402. test_varargs (const char *format, ...)
  3403. {
  3404. va_list args;
  3405. va_start (args, format);
  3406. va_list args_copy;
  3407. va_copy (args_copy, args);
  3408. const char *str;
  3409. int number;
  3410. float fnumber;
  3411. while (*format)
  3412. {
  3413. switch (*format++)
  3414. {
  3415. case 's': // string
  3416. str = va_arg (args_copy, const char *);
  3417. break;
  3418. case 'd': // int
  3419. number = va_arg (args_copy, int);
  3420. break;
  3421. case 'f': // float
  3422. fnumber = va_arg (args_copy, double);
  3423. break;
  3424. default:
  3425. break;
  3426. }
  3427. }
  3428. va_end (args_copy);
  3429. va_end (args);
  3430. }
  3431. int
  3432. main ()
  3433. {
  3434. // Check bool.
  3435. _Bool success = false;
  3436. // Check restrict.
  3437. if (test_restrict ("String literal") == 0)
  3438. success = true;
  3439. char *restrict newvar = "Another string";
  3440. // Check varargs.
  3441. test_varargs ("s, d' f .", "string", 65, 34.234);
  3442. test_varargs_macros ();
  3443. // Check flexible array members.
  3444. struct incomplete_array *ia =
  3445. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3446. ia->datasize = 10;
  3447. for (int i = 0; i < ia->datasize; ++i)
  3448. ia->data[i] = i * 1.234;
  3449. // Check named initializers.
  3450. struct named_init ni = {
  3451. .number = 34,
  3452. .name = L"Test wide string",
  3453. .average = 543.34343,
  3454. };
  3455. ni.number = 58;
  3456. int dynamic_array[ni.number];
  3457. dynamic_array[ni.number - 1] = 543;
  3458. // work around unused variable warnings
  3459. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3460. || dynamic_array[ni.number - 1] != 543);
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3466. do
  3467. CC="$ac_save_CC $ac_arg"
  3468. if ac_fn_c_try_compile "$LINENO"; then :
  3469. ac_cv_prog_cc_c99=$ac_arg
  3470. fi
  3471. rm -f core conftest.err conftest.$ac_objext
  3472. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3473. done
  3474. rm -f conftest.$ac_ext
  3475. CC=$ac_save_CC
  3476. fi
  3477. # AC_CACHE_VAL
  3478. case "x$ac_cv_prog_cc_c99" in
  3479. x)
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3481. $as_echo "none needed" >&6; } ;;
  3482. xno)
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3484. $as_echo "unsupported" >&6; } ;;
  3485. *)
  3486. CC="$CC $ac_cv_prog_cc_c99"
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3488. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3489. esac
  3490. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3491. fi
  3492. ac_ext=c
  3493. ac_cpp='$CPP $CPPFLAGS'
  3494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3498. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3499. # On Suns, sometimes $CPP names a directory.
  3500. if test -n "$CPP" && test -d "$CPP"; then
  3501. CPP=
  3502. fi
  3503. if test -z "$CPP"; then
  3504. if ${ac_cv_prog_CPP+:} false; then :
  3505. $as_echo_n "(cached) " >&6
  3506. else
  3507. # Double quotes because CPP needs to be expanded
  3508. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3509. do
  3510. ac_preproc_ok=false
  3511. for ac_c_preproc_warn_flag in '' yes
  3512. do
  3513. # Use a header file that comes with gcc, so configuring glibc
  3514. # with a fresh cross-compiler works.
  3515. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3516. # <limits.h> exists even on freestanding compilers.
  3517. # On the NeXT, cc -E runs the code through the compiler's parser,
  3518. # not just through cpp. "Syntax error" is here to catch this case.
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. #ifdef __STDC__
  3522. # include <limits.h>
  3523. #else
  3524. # include <assert.h>
  3525. #endif
  3526. Syntax error
  3527. _ACEOF
  3528. if ac_fn_c_try_cpp "$LINENO"; then :
  3529. else
  3530. # Broken: fails on valid input.
  3531. continue
  3532. fi
  3533. rm -f conftest.err conftest.i conftest.$ac_ext
  3534. # OK, works on sane cases. Now check whether nonexistent headers
  3535. # can be detected and how.
  3536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3537. /* end confdefs.h. */
  3538. #include <ac_nonexistent.h>
  3539. _ACEOF
  3540. if ac_fn_c_try_cpp "$LINENO"; then :
  3541. # Broken: success on invalid input.
  3542. continue
  3543. else
  3544. # Passes both tests.
  3545. ac_preproc_ok=:
  3546. break
  3547. fi
  3548. rm -f conftest.err conftest.i conftest.$ac_ext
  3549. done
  3550. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3551. rm -f conftest.i conftest.err conftest.$ac_ext
  3552. if $ac_preproc_ok; then :
  3553. break
  3554. fi
  3555. done
  3556. ac_cv_prog_CPP=$CPP
  3557. fi
  3558. CPP=$ac_cv_prog_CPP
  3559. else
  3560. ac_cv_prog_CPP=$CPP
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3563. $as_echo "$CPP" >&6; }
  3564. ac_preproc_ok=false
  3565. for ac_c_preproc_warn_flag in '' yes
  3566. do
  3567. # Use a header file that comes with gcc, so configuring glibc
  3568. # with a fresh cross-compiler works.
  3569. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3570. # <limits.h> exists even on freestanding compilers.
  3571. # On the NeXT, cc -E runs the code through the compiler's parser,
  3572. # not just through cpp. "Syntax error" is here to catch this case.
  3573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3574. /* end confdefs.h. */
  3575. #ifdef __STDC__
  3576. # include <limits.h>
  3577. #else
  3578. # include <assert.h>
  3579. #endif
  3580. Syntax error
  3581. _ACEOF
  3582. if ac_fn_c_try_cpp "$LINENO"; then :
  3583. else
  3584. # Broken: fails on valid input.
  3585. continue
  3586. fi
  3587. rm -f conftest.err conftest.i conftest.$ac_ext
  3588. # OK, works on sane cases. Now check whether nonexistent headers
  3589. # can be detected and how.
  3590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3591. /* end confdefs.h. */
  3592. #include <ac_nonexistent.h>
  3593. _ACEOF
  3594. if ac_fn_c_try_cpp "$LINENO"; then :
  3595. # Broken: success on invalid input.
  3596. continue
  3597. else
  3598. # Passes both tests.
  3599. ac_preproc_ok=:
  3600. break
  3601. fi
  3602. rm -f conftest.err conftest.i conftest.$ac_ext
  3603. done
  3604. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3605. rm -f conftest.i conftest.err conftest.$ac_ext
  3606. if $ac_preproc_ok; then :
  3607. else
  3608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3610. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3611. See \`config.log' for more details" "$LINENO" 5; }
  3612. fi
  3613. ac_ext=c
  3614. ac_cpp='$CPP $CPPFLAGS'
  3615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3619. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3620. if ${ac_cv_path_GREP+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if test -z "$GREP"; then
  3624. ac_path_GREP_found=false
  3625. # Loop through the user's path and test for each of PROGNAME-LIST
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3628. do
  3629. IFS=$as_save_IFS
  3630. test -z "$as_dir" && as_dir=.
  3631. for ac_prog in grep ggrep; do
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3634. as_fn_executable_p "$ac_path_GREP" || continue
  3635. # Check for GNU ac_path_GREP and select it if it is found.
  3636. # Check for GNU $ac_path_GREP
  3637. case `"$ac_path_GREP" --version 2>&1` in
  3638. *GNU*)
  3639. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3640. *)
  3641. ac_count=0
  3642. $as_echo_n 0123456789 >"conftest.in"
  3643. while :
  3644. do
  3645. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3646. mv "conftest.tmp" "conftest.in"
  3647. cp "conftest.in" "conftest.nl"
  3648. $as_echo 'GREP' >> "conftest.nl"
  3649. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3650. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3651. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3652. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3653. # Best one so far, save it but keep looking for a better one
  3654. ac_cv_path_GREP="$ac_path_GREP"
  3655. ac_path_GREP_max=$ac_count
  3656. fi
  3657. # 10*(2^10) chars as input seems more than enough
  3658. test $ac_count -gt 10 && break
  3659. done
  3660. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3661. esac
  3662. $ac_path_GREP_found && break 3
  3663. done
  3664. done
  3665. done
  3666. IFS=$as_save_IFS
  3667. if test -z "$ac_cv_path_GREP"; then
  3668. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3669. fi
  3670. else
  3671. ac_cv_path_GREP=$GREP
  3672. fi
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3675. $as_echo "$ac_cv_path_GREP" >&6; }
  3676. GREP="$ac_cv_path_GREP"
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3678. $as_echo_n "checking for egrep... " >&6; }
  3679. if ${ac_cv_path_EGREP+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3683. then ac_cv_path_EGREP="$GREP -E"
  3684. else
  3685. if test -z "$EGREP"; then
  3686. ac_path_EGREP_found=false
  3687. # Loop through the user's path and test for each of PROGNAME-LIST
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3690. do
  3691. IFS=$as_save_IFS
  3692. test -z "$as_dir" && as_dir=.
  3693. for ac_prog in egrep; do
  3694. for ac_exec_ext in '' $ac_executable_extensions; do
  3695. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3696. as_fn_executable_p "$ac_path_EGREP" || continue
  3697. # Check for GNU ac_path_EGREP and select it if it is found.
  3698. # Check for GNU $ac_path_EGREP
  3699. case `"$ac_path_EGREP" --version 2>&1` in
  3700. *GNU*)
  3701. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3702. *)
  3703. ac_count=0
  3704. $as_echo_n 0123456789 >"conftest.in"
  3705. while :
  3706. do
  3707. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3708. mv "conftest.tmp" "conftest.in"
  3709. cp "conftest.in" "conftest.nl"
  3710. $as_echo 'EGREP' >> "conftest.nl"
  3711. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3712. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3713. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3714. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3715. # Best one so far, save it but keep looking for a better one
  3716. ac_cv_path_EGREP="$ac_path_EGREP"
  3717. ac_path_EGREP_max=$ac_count
  3718. fi
  3719. # 10*(2^10) chars as input seems more than enough
  3720. test $ac_count -gt 10 && break
  3721. done
  3722. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3723. esac
  3724. $ac_path_EGREP_found && break 3
  3725. done
  3726. done
  3727. done
  3728. IFS=$as_save_IFS
  3729. if test -z "$ac_cv_path_EGREP"; then
  3730. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3731. fi
  3732. else
  3733. ac_cv_path_EGREP=$EGREP
  3734. fi
  3735. fi
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3738. $as_echo "$ac_cv_path_EGREP" >&6; }
  3739. EGREP="$ac_cv_path_EGREP"
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3741. $as_echo_n "checking for ANSI C header files... " >&6; }
  3742. if ${ac_cv_header_stdc+:} false; then :
  3743. $as_echo_n "(cached) " >&6
  3744. else
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. #include <stdlib.h>
  3748. #include <stdarg.h>
  3749. #include <string.h>
  3750. #include <float.h>
  3751. int
  3752. main ()
  3753. {
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. if ac_fn_c_try_compile "$LINENO"; then :
  3759. ac_cv_header_stdc=yes
  3760. else
  3761. ac_cv_header_stdc=no
  3762. fi
  3763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3764. if test $ac_cv_header_stdc = yes; then
  3765. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3767. /* end confdefs.h. */
  3768. #include <string.h>
  3769. _ACEOF
  3770. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3771. $EGREP "memchr" >/dev/null 2>&1; then :
  3772. else
  3773. ac_cv_header_stdc=no
  3774. fi
  3775. rm -f conftest*
  3776. fi
  3777. if test $ac_cv_header_stdc = yes; then
  3778. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3780. /* end confdefs.h. */
  3781. #include <stdlib.h>
  3782. _ACEOF
  3783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3784. $EGREP "free" >/dev/null 2>&1; then :
  3785. else
  3786. ac_cv_header_stdc=no
  3787. fi
  3788. rm -f conftest*
  3789. fi
  3790. if test $ac_cv_header_stdc = yes; then
  3791. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3792. if test "$cross_compiling" = yes; then :
  3793. :
  3794. else
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. #include <ctype.h>
  3798. #include <stdlib.h>
  3799. #if ((' ' & 0x0FF) == 0x020)
  3800. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3801. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3802. #else
  3803. # define ISLOWER(c) \
  3804. (('a' <= (c) && (c) <= 'i') \
  3805. || ('j' <= (c) && (c) <= 'r') \
  3806. || ('s' <= (c) && (c) <= 'z'))
  3807. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3808. #endif
  3809. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3810. int
  3811. main ()
  3812. {
  3813. int i;
  3814. for (i = 0; i < 256; i++)
  3815. if (XOR (islower (i), ISLOWER (i))
  3816. || toupper (i) != TOUPPER (i))
  3817. return 2;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. if ac_fn_c_try_run "$LINENO"; then :
  3822. else
  3823. ac_cv_header_stdc=no
  3824. fi
  3825. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3826. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3827. fi
  3828. fi
  3829. fi
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3831. $as_echo "$ac_cv_header_stdc" >&6; }
  3832. if test $ac_cv_header_stdc = yes; then
  3833. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3834. fi
  3835. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3836. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3837. inttypes.h stdint.h unistd.h
  3838. do :
  3839. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3840. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3841. "
  3842. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3843. cat >>confdefs.h <<_ACEOF
  3844. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3845. _ACEOF
  3846. fi
  3847. done
  3848. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3849. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3850. CLANGCC="yes"
  3851. else
  3852. CLANGCC="no"
  3853. fi
  3854. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3855. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3856. INTELCC="yes"
  3857. else
  3858. INTELCC="no"
  3859. fi
  3860. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3861. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3862. SUNCC="yes"
  3863. else
  3864. SUNCC="no"
  3865. fi
  3866. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3867. if test -n "$ac_tool_prefix"; then
  3868. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3869. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3871. $as_echo_n "checking for $ac_word... " >&6; }
  3872. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. case $PKG_CONFIG in
  3876. [\\/]* | ?:[\\/]*)
  3877. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3878. ;;
  3879. *)
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3887. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3889. break 2
  3890. fi
  3891. done
  3892. done
  3893. IFS=$as_save_IFS
  3894. ;;
  3895. esac
  3896. fi
  3897. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3898. if test -n "$PKG_CONFIG"; then
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3900. $as_echo "$PKG_CONFIG" >&6; }
  3901. else
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3903. $as_echo "no" >&6; }
  3904. fi
  3905. fi
  3906. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3907. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3908. # Extract the first word of "pkg-config", so it can be a program name with args.
  3909. set dummy pkg-config; ac_word=$2
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3911. $as_echo_n "checking for $ac_word... " >&6; }
  3912. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. case $ac_pt_PKG_CONFIG in
  3916. [\\/]* | ?:[\\/]*)
  3917. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3918. ;;
  3919. *)
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH
  3922. do
  3923. IFS=$as_save_IFS
  3924. test -z "$as_dir" && as_dir=.
  3925. for ac_exec_ext in '' $ac_executable_extensions; do
  3926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3927. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929. break 2
  3930. fi
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. ;;
  3935. esac
  3936. fi
  3937. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3938. if test -n "$ac_pt_PKG_CONFIG"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3940. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. if test "x$ac_pt_PKG_CONFIG" = x; then
  3946. PKG_CONFIG=""
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3955. fi
  3956. else
  3957. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3958. fi
  3959. fi
  3960. if test -n "$PKG_CONFIG"; then
  3961. _pkg_min_version=0.9.0
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3963. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3964. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3966. $as_echo "yes" >&6; }
  3967. else
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3969. $as_echo "no" >&6; }
  3970. PKG_CONFIG=""
  3971. fi
  3972. fi
  3973. # Make sure we can run config.sub.
  3974. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3975. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3977. $as_echo_n "checking build system type... " >&6; }
  3978. if ${ac_cv_build+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. ac_build_alias=$build_alias
  3982. test "x$ac_build_alias" = x &&
  3983. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3984. test "x$ac_build_alias" = x &&
  3985. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3986. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3987. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3988. fi
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3990. $as_echo "$ac_cv_build" >&6; }
  3991. case $ac_cv_build in
  3992. *-*-*) ;;
  3993. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3994. esac
  3995. build=$ac_cv_build
  3996. ac_save_IFS=$IFS; IFS='-'
  3997. set x $ac_cv_build
  3998. shift
  3999. build_cpu=$1
  4000. build_vendor=$2
  4001. shift; shift
  4002. # Remember, the first character of IFS is used to create $*,
  4003. # except with old shells:
  4004. build_os=$*
  4005. IFS=$ac_save_IFS
  4006. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4008. $as_echo_n "checking host system type... " >&6; }
  4009. if ${ac_cv_host+:} false; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. if test "x$host_alias" = x; then
  4013. ac_cv_host=$ac_cv_build
  4014. else
  4015. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4016. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4017. fi
  4018. fi
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4020. $as_echo "$ac_cv_host" >&6; }
  4021. case $ac_cv_host in
  4022. *-*-*) ;;
  4023. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4024. esac
  4025. host=$ac_cv_host
  4026. ac_save_IFS=$IFS; IFS='-'
  4027. set x $ac_cv_host
  4028. shift
  4029. host_cpu=$1
  4030. host_vendor=$2
  4031. shift; shift
  4032. # Remember, the first character of IFS is used to create $*,
  4033. # except with old shells:
  4034. host_os=$*
  4035. IFS=$ac_save_IFS
  4036. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4038. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4039. if ${ac_cv_path_SED+:} false; then :
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4043. for ac_i in 1 2 3 4 5 6 7; do
  4044. ac_script="$ac_script$as_nl$ac_script"
  4045. done
  4046. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4047. { ac_script=; unset ac_script;}
  4048. if test -z "$SED"; then
  4049. ac_path_SED_found=false
  4050. # Loop through the user's path and test for each of PROGNAME-LIST
  4051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4052. for as_dir in $PATH
  4053. do
  4054. IFS=$as_save_IFS
  4055. test -z "$as_dir" && as_dir=.
  4056. for ac_prog in sed gsed; do
  4057. for ac_exec_ext in '' $ac_executable_extensions; do
  4058. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4059. as_fn_executable_p "$ac_path_SED" || continue
  4060. # Check for GNU ac_path_SED and select it if it is found.
  4061. # Check for GNU $ac_path_SED
  4062. case `"$ac_path_SED" --version 2>&1` in
  4063. *GNU*)
  4064. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4065. *)
  4066. ac_count=0
  4067. $as_echo_n 0123456789 >"conftest.in"
  4068. while :
  4069. do
  4070. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4071. mv "conftest.tmp" "conftest.in"
  4072. cp "conftest.in" "conftest.nl"
  4073. $as_echo '' >> "conftest.nl"
  4074. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4075. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4076. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4077. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4078. # Best one so far, save it but keep looking for a better one
  4079. ac_cv_path_SED="$ac_path_SED"
  4080. ac_path_SED_max=$ac_count
  4081. fi
  4082. # 10*(2^10) chars as input seems more than enough
  4083. test $ac_count -gt 10 && break
  4084. done
  4085. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4086. esac
  4087. $ac_path_SED_found && break 3
  4088. done
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. if test -z "$ac_cv_path_SED"; then
  4093. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4094. fi
  4095. else
  4096. ac_cv_path_SED=$SED
  4097. fi
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4100. $as_echo "$ac_cv_path_SED" >&6; }
  4101. SED="$ac_cv_path_SED"
  4102. rm -f conftest.sed
  4103. # Check whether --enable-selective-werror was given.
  4104. if test "${enable_selective_werror+set}" = set; then :
  4105. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4106. else
  4107. SELECTIVE_WERROR=yes
  4108. fi
  4109. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4110. if test "x$SUNCC" = "xyes"; then
  4111. BASE_CFLAGS="-v"
  4112. else
  4113. BASE_CFLAGS=""
  4114. fi
  4115. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4116. xorg_testset_save_CFLAGS="$CFLAGS"
  4117. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4118. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4120. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4121. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. int i;
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"; then :
  4129. xorg_cv_cc_flag_unknown_warning_option=yes
  4130. else
  4131. xorg_cv_cc_flag_unknown_warning_option=no
  4132. fi
  4133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4134. fi
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4136. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4137. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4138. CFLAGS="$xorg_testset_save_CFLAGS"
  4139. fi
  4140. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4141. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4142. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4143. fi
  4144. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4146. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4147. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end confdefs.h. */
  4152. int i;
  4153. _ACEOF
  4154. if ac_fn_c_try_compile "$LINENO"; then :
  4155. xorg_cv_cc_flag_unused_command_line_argument=yes
  4156. else
  4157. xorg_cv_cc_flag_unused_command_line_argument=no
  4158. fi
  4159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4162. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4163. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4164. CFLAGS="$xorg_testset_save_CFLAGS"
  4165. fi
  4166. found="no"
  4167. if test $found = "no" ; then
  4168. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4169. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4170. fi
  4171. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4172. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4173. fi
  4174. CFLAGS="$CFLAGS -Wall"
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4176. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4177. cacheid=xorg_cv_cc_flag__Wall
  4178. if eval \${$cacheid+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4182. /* end confdefs.h. */
  4183. int i;
  4184. int
  4185. main ()
  4186. {
  4187. ;
  4188. return 0;
  4189. }
  4190. _ACEOF
  4191. if ac_fn_c_try_link "$LINENO"; then :
  4192. eval $cacheid=yes
  4193. else
  4194. eval $cacheid=no
  4195. fi
  4196. rm -f core conftest.err conftest.$ac_objext \
  4197. conftest$ac_exeext conftest.$ac_ext
  4198. fi
  4199. CFLAGS="$xorg_testset_save_CFLAGS"
  4200. eval supported=\$$cacheid
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4202. $as_echo "$supported" >&6; }
  4203. if test "$supported" = "yes" ; then
  4204. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4205. found="yes"
  4206. fi
  4207. fi
  4208. xorg_testset_save_CFLAGS="$CFLAGS"
  4209. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4210. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4212. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4213. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4217. /* end confdefs.h. */
  4218. int i;
  4219. _ACEOF
  4220. if ac_fn_c_try_compile "$LINENO"; then :
  4221. xorg_cv_cc_flag_unknown_warning_option=yes
  4222. else
  4223. xorg_cv_cc_flag_unknown_warning_option=no
  4224. fi
  4225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4226. fi
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4228. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4229. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4230. CFLAGS="$xorg_testset_save_CFLAGS"
  4231. fi
  4232. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4233. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4234. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4235. fi
  4236. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4238. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4239. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. int i;
  4245. _ACEOF
  4246. if ac_fn_c_try_compile "$LINENO"; then :
  4247. xorg_cv_cc_flag_unused_command_line_argument=yes
  4248. else
  4249. xorg_cv_cc_flag_unused_command_line_argument=no
  4250. fi
  4251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4252. fi
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4254. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4255. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4256. CFLAGS="$xorg_testset_save_CFLAGS"
  4257. fi
  4258. found="no"
  4259. if test $found = "no" ; then
  4260. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4261. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4262. fi
  4263. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4264. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4265. fi
  4266. CFLAGS="$CFLAGS -Wpointer-arith"
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4268. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4269. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4270. if eval \${$cacheid+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4274. /* end confdefs.h. */
  4275. int i;
  4276. int
  4277. main ()
  4278. {
  4279. ;
  4280. return 0;
  4281. }
  4282. _ACEOF
  4283. if ac_fn_c_try_link "$LINENO"; then :
  4284. eval $cacheid=yes
  4285. else
  4286. eval $cacheid=no
  4287. fi
  4288. rm -f core conftest.err conftest.$ac_objext \
  4289. conftest$ac_exeext conftest.$ac_ext
  4290. fi
  4291. CFLAGS="$xorg_testset_save_CFLAGS"
  4292. eval supported=\$$cacheid
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4294. $as_echo "$supported" >&6; }
  4295. if test "$supported" = "yes" ; then
  4296. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4297. found="yes"
  4298. fi
  4299. fi
  4300. xorg_testset_save_CFLAGS="$CFLAGS"
  4301. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4302. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4304. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4305. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. int i;
  4311. _ACEOF
  4312. if ac_fn_c_try_compile "$LINENO"; then :
  4313. xorg_cv_cc_flag_unknown_warning_option=yes
  4314. else
  4315. xorg_cv_cc_flag_unknown_warning_option=no
  4316. fi
  4317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4318. fi
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4320. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4321. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4322. CFLAGS="$xorg_testset_save_CFLAGS"
  4323. fi
  4324. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4325. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4326. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4327. fi
  4328. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4330. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4331. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. int i;
  4337. _ACEOF
  4338. if ac_fn_c_try_compile "$LINENO"; then :
  4339. xorg_cv_cc_flag_unused_command_line_argument=yes
  4340. else
  4341. xorg_cv_cc_flag_unused_command_line_argument=no
  4342. fi
  4343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4344. fi
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4346. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4347. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4348. CFLAGS="$xorg_testset_save_CFLAGS"
  4349. fi
  4350. found="no"
  4351. if test $found = "no" ; then
  4352. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4354. fi
  4355. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4356. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4357. fi
  4358. CFLAGS="$CFLAGS -Wmissing-declarations"
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4360. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4361. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4362. if eval \${$cacheid+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. int i;
  4368. int
  4369. main ()
  4370. {
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. if ac_fn_c_try_link "$LINENO"; then :
  4376. eval $cacheid=yes
  4377. else
  4378. eval $cacheid=no
  4379. fi
  4380. rm -f core conftest.err conftest.$ac_objext \
  4381. conftest$ac_exeext conftest.$ac_ext
  4382. fi
  4383. CFLAGS="$xorg_testset_save_CFLAGS"
  4384. eval supported=\$$cacheid
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4386. $as_echo "$supported" >&6; }
  4387. if test "$supported" = "yes" ; then
  4388. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4389. found="yes"
  4390. fi
  4391. fi
  4392. xorg_testset_save_CFLAGS="$CFLAGS"
  4393. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4394. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4396. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4397. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4401. /* end confdefs.h. */
  4402. int i;
  4403. _ACEOF
  4404. if ac_fn_c_try_compile "$LINENO"; then :
  4405. xorg_cv_cc_flag_unknown_warning_option=yes
  4406. else
  4407. xorg_cv_cc_flag_unknown_warning_option=no
  4408. fi
  4409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4410. fi
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4412. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4413. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4414. CFLAGS="$xorg_testset_save_CFLAGS"
  4415. fi
  4416. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4417. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4419. fi
  4420. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4422. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4423. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4427. /* end confdefs.h. */
  4428. int i;
  4429. _ACEOF
  4430. if ac_fn_c_try_compile "$LINENO"; then :
  4431. xorg_cv_cc_flag_unused_command_line_argument=yes
  4432. else
  4433. xorg_cv_cc_flag_unused_command_line_argument=no
  4434. fi
  4435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4436. fi
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4438. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4439. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4440. CFLAGS="$xorg_testset_save_CFLAGS"
  4441. fi
  4442. found="no"
  4443. if test $found = "no" ; then
  4444. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4445. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4446. fi
  4447. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4448. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4449. fi
  4450. CFLAGS="$CFLAGS -Wformat=2"
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4452. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4453. cacheid=xorg_cv_cc_flag__Wformat_2
  4454. if eval \${$cacheid+:} false; then :
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4458. /* end confdefs.h. */
  4459. int i;
  4460. int
  4461. main ()
  4462. {
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_c_try_link "$LINENO"; then :
  4468. eval $cacheid=yes
  4469. else
  4470. eval $cacheid=no
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext \
  4473. conftest$ac_exeext conftest.$ac_ext
  4474. fi
  4475. CFLAGS="$xorg_testset_save_CFLAGS"
  4476. eval supported=\$$cacheid
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4478. $as_echo "$supported" >&6; }
  4479. if test "$supported" = "yes" ; then
  4480. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4481. found="yes"
  4482. fi
  4483. fi
  4484. if test $found = "no" ; then
  4485. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4486. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4487. fi
  4488. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4489. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4490. fi
  4491. CFLAGS="$CFLAGS -Wformat"
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4493. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4494. cacheid=xorg_cv_cc_flag__Wformat
  4495. if eval \${$cacheid+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4499. /* end confdefs.h. */
  4500. int i;
  4501. int
  4502. main ()
  4503. {
  4504. ;
  4505. return 0;
  4506. }
  4507. _ACEOF
  4508. if ac_fn_c_try_link "$LINENO"; then :
  4509. eval $cacheid=yes
  4510. else
  4511. eval $cacheid=no
  4512. fi
  4513. rm -f core conftest.err conftest.$ac_objext \
  4514. conftest$ac_exeext conftest.$ac_ext
  4515. fi
  4516. CFLAGS="$xorg_testset_save_CFLAGS"
  4517. eval supported=\$$cacheid
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4519. $as_echo "$supported" >&6; }
  4520. if test "$supported" = "yes" ; then
  4521. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4522. found="yes"
  4523. fi
  4524. fi
  4525. xorg_testset_save_CFLAGS="$CFLAGS"
  4526. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4527. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4529. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4530. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4534. /* end confdefs.h. */
  4535. int i;
  4536. _ACEOF
  4537. if ac_fn_c_try_compile "$LINENO"; then :
  4538. xorg_cv_cc_flag_unknown_warning_option=yes
  4539. else
  4540. xorg_cv_cc_flag_unknown_warning_option=no
  4541. fi
  4542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4545. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4546. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4547. CFLAGS="$xorg_testset_save_CFLAGS"
  4548. fi
  4549. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4550. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4551. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4552. fi
  4553. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4555. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4556. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. int i;
  4562. _ACEOF
  4563. if ac_fn_c_try_compile "$LINENO"; then :
  4564. xorg_cv_cc_flag_unused_command_line_argument=yes
  4565. else
  4566. xorg_cv_cc_flag_unused_command_line_argument=no
  4567. fi
  4568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4571. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4572. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4573. CFLAGS="$xorg_testset_save_CFLAGS"
  4574. fi
  4575. found="no"
  4576. if test $found = "no" ; then
  4577. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4578. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4579. fi
  4580. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4581. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4582. fi
  4583. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4585. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4586. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4587. if eval \${$cacheid+:} false; then :
  4588. $as_echo_n "(cached) " >&6
  4589. else
  4590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4591. /* end confdefs.h. */
  4592. int i;
  4593. int
  4594. main ()
  4595. {
  4596. ;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. if ac_fn_c_try_link "$LINENO"; then :
  4601. eval $cacheid=yes
  4602. else
  4603. eval $cacheid=no
  4604. fi
  4605. rm -f core conftest.err conftest.$ac_objext \
  4606. conftest$ac_exeext conftest.$ac_ext
  4607. fi
  4608. CFLAGS="$xorg_testset_save_CFLAGS"
  4609. eval supported=\$$cacheid
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4611. $as_echo "$supported" >&6; }
  4612. if test "$supported" = "yes" ; then
  4613. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4614. found="yes"
  4615. fi
  4616. fi
  4617. xorg_testset_save_CFLAGS="$CFLAGS"
  4618. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4619. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4621. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4622. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. int i;
  4628. _ACEOF
  4629. if ac_fn_c_try_compile "$LINENO"; then :
  4630. xorg_cv_cc_flag_unknown_warning_option=yes
  4631. else
  4632. xorg_cv_cc_flag_unknown_warning_option=no
  4633. fi
  4634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4637. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4638. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4639. CFLAGS="$xorg_testset_save_CFLAGS"
  4640. fi
  4641. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4642. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4643. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4644. fi
  4645. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4647. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4648. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. int i;
  4654. _ACEOF
  4655. if ac_fn_c_try_compile "$LINENO"; then :
  4656. xorg_cv_cc_flag_unused_command_line_argument=yes
  4657. else
  4658. xorg_cv_cc_flag_unused_command_line_argument=no
  4659. fi
  4660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4663. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4664. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4665. CFLAGS="$xorg_testset_save_CFLAGS"
  4666. fi
  4667. found="no"
  4668. if test $found = "no" ; then
  4669. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4670. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4671. fi
  4672. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4673. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4674. fi
  4675. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4677. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4678. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4679. if eval \${$cacheid+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4683. /* end confdefs.h. */
  4684. int i;
  4685. int
  4686. main ()
  4687. {
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. if ac_fn_c_try_link "$LINENO"; then :
  4693. eval $cacheid=yes
  4694. else
  4695. eval $cacheid=no
  4696. fi
  4697. rm -f core conftest.err conftest.$ac_objext \
  4698. conftest$ac_exeext conftest.$ac_ext
  4699. fi
  4700. CFLAGS="$xorg_testset_save_CFLAGS"
  4701. eval supported=\$$cacheid
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4703. $as_echo "$supported" >&6; }
  4704. if test "$supported" = "yes" ; then
  4705. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4706. found="yes"
  4707. fi
  4708. fi
  4709. xorg_testset_save_CFLAGS="$CFLAGS"
  4710. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4711. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4713. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4714. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. int i;
  4720. _ACEOF
  4721. if ac_fn_c_try_compile "$LINENO"; then :
  4722. xorg_cv_cc_flag_unknown_warning_option=yes
  4723. else
  4724. xorg_cv_cc_flag_unknown_warning_option=no
  4725. fi
  4726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4729. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4730. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4731. CFLAGS="$xorg_testset_save_CFLAGS"
  4732. fi
  4733. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4734. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4735. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4736. fi
  4737. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4739. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4740. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end confdefs.h. */
  4745. int i;
  4746. _ACEOF
  4747. if ac_fn_c_try_compile "$LINENO"; then :
  4748. xorg_cv_cc_flag_unused_command_line_argument=yes
  4749. else
  4750. xorg_cv_cc_flag_unused_command_line_argument=no
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4755. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4756. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4757. CFLAGS="$xorg_testset_save_CFLAGS"
  4758. fi
  4759. found="no"
  4760. if test $found = "no" ; then
  4761. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4762. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4763. fi
  4764. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4765. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4766. fi
  4767. CFLAGS="$CFLAGS -Wnested-externs"
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4769. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4770. cacheid=xorg_cv_cc_flag__Wnested_externs
  4771. if eval \${$cacheid+:} false; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. int i;
  4777. int
  4778. main ()
  4779. {
  4780. ;
  4781. return 0;
  4782. }
  4783. _ACEOF
  4784. if ac_fn_c_try_link "$LINENO"; then :
  4785. eval $cacheid=yes
  4786. else
  4787. eval $cacheid=no
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext \
  4790. conftest$ac_exeext conftest.$ac_ext
  4791. fi
  4792. CFLAGS="$xorg_testset_save_CFLAGS"
  4793. eval supported=\$$cacheid
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4795. $as_echo "$supported" >&6; }
  4796. if test "$supported" = "yes" ; then
  4797. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4798. found="yes"
  4799. fi
  4800. fi
  4801. xorg_testset_save_CFLAGS="$CFLAGS"
  4802. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4803. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4805. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4806. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4810. /* end confdefs.h. */
  4811. int i;
  4812. _ACEOF
  4813. if ac_fn_c_try_compile "$LINENO"; then :
  4814. xorg_cv_cc_flag_unknown_warning_option=yes
  4815. else
  4816. xorg_cv_cc_flag_unknown_warning_option=no
  4817. fi
  4818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4819. fi
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4821. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4822. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4823. CFLAGS="$xorg_testset_save_CFLAGS"
  4824. fi
  4825. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4826. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4827. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4828. fi
  4829. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4831. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4832. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4833. $as_echo_n "(cached) " >&6
  4834. else
  4835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4836. /* end confdefs.h. */
  4837. int i;
  4838. _ACEOF
  4839. if ac_fn_c_try_compile "$LINENO"; then :
  4840. xorg_cv_cc_flag_unused_command_line_argument=yes
  4841. else
  4842. xorg_cv_cc_flag_unused_command_line_argument=no
  4843. fi
  4844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4845. fi
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4847. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4848. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4849. CFLAGS="$xorg_testset_save_CFLAGS"
  4850. fi
  4851. found="no"
  4852. if test $found = "no" ; then
  4853. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4854. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4855. fi
  4856. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4857. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4858. fi
  4859. CFLAGS="$CFLAGS -Wbad-function-cast"
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4861. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4862. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4863. if eval \${$cacheid+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end confdefs.h. */
  4868. int i;
  4869. int
  4870. main ()
  4871. {
  4872. ;
  4873. return 0;
  4874. }
  4875. _ACEOF
  4876. if ac_fn_c_try_link "$LINENO"; then :
  4877. eval $cacheid=yes
  4878. else
  4879. eval $cacheid=no
  4880. fi
  4881. rm -f core conftest.err conftest.$ac_objext \
  4882. conftest$ac_exeext conftest.$ac_ext
  4883. fi
  4884. CFLAGS="$xorg_testset_save_CFLAGS"
  4885. eval supported=\$$cacheid
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4887. $as_echo "$supported" >&6; }
  4888. if test "$supported" = "yes" ; then
  4889. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4890. found="yes"
  4891. fi
  4892. fi
  4893. xorg_testset_save_CFLAGS="$CFLAGS"
  4894. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4895. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4897. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4898. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4899. $as_echo_n "(cached) " >&6
  4900. else
  4901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4902. /* end confdefs.h. */
  4903. int i;
  4904. _ACEOF
  4905. if ac_fn_c_try_compile "$LINENO"; then :
  4906. xorg_cv_cc_flag_unknown_warning_option=yes
  4907. else
  4908. xorg_cv_cc_flag_unknown_warning_option=no
  4909. fi
  4910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4911. fi
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4913. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4914. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4915. CFLAGS="$xorg_testset_save_CFLAGS"
  4916. fi
  4917. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4918. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4919. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4920. fi
  4921. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4923. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4924. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4928. /* end confdefs.h. */
  4929. int i;
  4930. _ACEOF
  4931. if ac_fn_c_try_compile "$LINENO"; then :
  4932. xorg_cv_cc_flag_unused_command_line_argument=yes
  4933. else
  4934. xorg_cv_cc_flag_unused_command_line_argument=no
  4935. fi
  4936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4937. fi
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4939. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4940. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4941. CFLAGS="$xorg_testset_save_CFLAGS"
  4942. fi
  4943. found="no"
  4944. if test $found = "no" ; then
  4945. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4946. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4947. fi
  4948. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4949. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4950. fi
  4951. CFLAGS="$CFLAGS -Wold-style-definition"
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4953. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4954. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4955. if eval \${$cacheid+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959. /* end confdefs.h. */
  4960. int i;
  4961. int
  4962. main ()
  4963. {
  4964. ;
  4965. return 0;
  4966. }
  4967. _ACEOF
  4968. if ac_fn_c_try_link "$LINENO"; then :
  4969. eval $cacheid=yes
  4970. else
  4971. eval $cacheid=no
  4972. fi
  4973. rm -f core conftest.err conftest.$ac_objext \
  4974. conftest$ac_exeext conftest.$ac_ext
  4975. fi
  4976. CFLAGS="$xorg_testset_save_CFLAGS"
  4977. eval supported=\$$cacheid
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4979. $as_echo "$supported" >&6; }
  4980. if test "$supported" = "yes" ; then
  4981. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4982. found="yes"
  4983. fi
  4984. fi
  4985. if test $found = "no" ; then
  4986. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4987. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4988. fi
  4989. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4990. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4991. fi
  4992. CFLAGS="$CFLAGS -fd"
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  4994. $as_echo_n "checking if $CC supports -fd... " >&6; }
  4995. cacheid=xorg_cv_cc_flag__fd
  4996. if eval \${$cacheid+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5000. /* end confdefs.h. */
  5001. int i;
  5002. int
  5003. main ()
  5004. {
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. if ac_fn_c_try_link "$LINENO"; then :
  5010. eval $cacheid=yes
  5011. else
  5012. eval $cacheid=no
  5013. fi
  5014. rm -f core conftest.err conftest.$ac_objext \
  5015. conftest$ac_exeext conftest.$ac_ext
  5016. fi
  5017. CFLAGS="$xorg_testset_save_CFLAGS"
  5018. eval supported=\$$cacheid
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5020. $as_echo "$supported" >&6; }
  5021. if test "$supported" = "yes" ; then
  5022. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5023. found="yes"
  5024. fi
  5025. fi
  5026. xorg_testset_save_CFLAGS="$CFLAGS"
  5027. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5030. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5031. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5035. /* end confdefs.h. */
  5036. int i;
  5037. _ACEOF
  5038. if ac_fn_c_try_compile "$LINENO"; then :
  5039. xorg_cv_cc_flag_unknown_warning_option=yes
  5040. else
  5041. xorg_cv_cc_flag_unknown_warning_option=no
  5042. fi
  5043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. fi
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5046. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5047. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5048. CFLAGS="$xorg_testset_save_CFLAGS"
  5049. fi
  5050. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5051. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5052. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5053. fi
  5054. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5056. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5057. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5061. /* end confdefs.h. */
  5062. int i;
  5063. _ACEOF
  5064. if ac_fn_c_try_compile "$LINENO"; then :
  5065. xorg_cv_cc_flag_unused_command_line_argument=yes
  5066. else
  5067. xorg_cv_cc_flag_unused_command_line_argument=no
  5068. fi
  5069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5070. fi
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5072. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5073. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5074. CFLAGS="$xorg_testset_save_CFLAGS"
  5075. fi
  5076. found="no"
  5077. if test $found = "no" ; then
  5078. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5079. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5080. fi
  5081. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5082. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5083. fi
  5084. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5086. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5087. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5088. if eval \${$cacheid+:} false; then :
  5089. $as_echo_n "(cached) " >&6
  5090. else
  5091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5092. /* end confdefs.h. */
  5093. int i;
  5094. int
  5095. main ()
  5096. {
  5097. ;
  5098. return 0;
  5099. }
  5100. _ACEOF
  5101. if ac_fn_c_try_link "$LINENO"; then :
  5102. eval $cacheid=yes
  5103. else
  5104. eval $cacheid=no
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext \
  5107. conftest$ac_exeext conftest.$ac_ext
  5108. fi
  5109. CFLAGS="$xorg_testset_save_CFLAGS"
  5110. eval supported=\$$cacheid
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5112. $as_echo "$supported" >&6; }
  5113. if test "$supported" = "yes" ; then
  5114. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5115. found="yes"
  5116. fi
  5117. fi
  5118. # This chunk adds additional warnings that could catch undesired effects.
  5119. xorg_testset_save_CFLAGS="$CFLAGS"
  5120. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5121. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5123. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5124. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5125. $as_echo_n "(cached) " >&6
  5126. else
  5127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5128. /* end confdefs.h. */
  5129. int i;
  5130. _ACEOF
  5131. if ac_fn_c_try_compile "$LINENO"; then :
  5132. xorg_cv_cc_flag_unknown_warning_option=yes
  5133. else
  5134. xorg_cv_cc_flag_unknown_warning_option=no
  5135. fi
  5136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5137. fi
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5139. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5140. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5141. CFLAGS="$xorg_testset_save_CFLAGS"
  5142. fi
  5143. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5144. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5145. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5146. fi
  5147. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5149. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5150. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5151. $as_echo_n "(cached) " >&6
  5152. else
  5153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5154. /* end confdefs.h. */
  5155. int i;
  5156. _ACEOF
  5157. if ac_fn_c_try_compile "$LINENO"; then :
  5158. xorg_cv_cc_flag_unused_command_line_argument=yes
  5159. else
  5160. xorg_cv_cc_flag_unused_command_line_argument=no
  5161. fi
  5162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5165. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5166. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5167. CFLAGS="$xorg_testset_save_CFLAGS"
  5168. fi
  5169. found="no"
  5170. if test $found = "no" ; then
  5171. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5172. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5173. fi
  5174. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5175. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5176. fi
  5177. CFLAGS="$CFLAGS -Wunused"
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5179. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5180. cacheid=xorg_cv_cc_flag__Wunused
  5181. if eval \${$cacheid+:} false; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5185. /* end confdefs.h. */
  5186. int i;
  5187. int
  5188. main ()
  5189. {
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. if ac_fn_c_try_link "$LINENO"; then :
  5195. eval $cacheid=yes
  5196. else
  5197. eval $cacheid=no
  5198. fi
  5199. rm -f core conftest.err conftest.$ac_objext \
  5200. conftest$ac_exeext conftest.$ac_ext
  5201. fi
  5202. CFLAGS="$xorg_testset_save_CFLAGS"
  5203. eval supported=\$$cacheid
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5205. $as_echo "$supported" >&6; }
  5206. if test "$supported" = "yes" ; then
  5207. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5208. found="yes"
  5209. fi
  5210. fi
  5211. xorg_testset_save_CFLAGS="$CFLAGS"
  5212. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5213. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5215. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5216. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5220. /* end confdefs.h. */
  5221. int i;
  5222. _ACEOF
  5223. if ac_fn_c_try_compile "$LINENO"; then :
  5224. xorg_cv_cc_flag_unknown_warning_option=yes
  5225. else
  5226. xorg_cv_cc_flag_unknown_warning_option=no
  5227. fi
  5228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5229. fi
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5231. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5232. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5233. CFLAGS="$xorg_testset_save_CFLAGS"
  5234. fi
  5235. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5236. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5237. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5238. fi
  5239. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5241. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5242. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5243. $as_echo_n "(cached) " >&6
  5244. else
  5245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5246. /* end confdefs.h. */
  5247. int i;
  5248. _ACEOF
  5249. if ac_fn_c_try_compile "$LINENO"; then :
  5250. xorg_cv_cc_flag_unused_command_line_argument=yes
  5251. else
  5252. xorg_cv_cc_flag_unused_command_line_argument=no
  5253. fi
  5254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5255. fi
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5257. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5258. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5259. CFLAGS="$xorg_testset_save_CFLAGS"
  5260. fi
  5261. found="no"
  5262. if test $found = "no" ; then
  5263. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5264. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5265. fi
  5266. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5267. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5268. fi
  5269. CFLAGS="$CFLAGS -Wuninitialized"
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5271. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5272. cacheid=xorg_cv_cc_flag__Wuninitialized
  5273. if eval \${$cacheid+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end confdefs.h. */
  5278. int i;
  5279. int
  5280. main ()
  5281. {
  5282. ;
  5283. return 0;
  5284. }
  5285. _ACEOF
  5286. if ac_fn_c_try_link "$LINENO"; then :
  5287. eval $cacheid=yes
  5288. else
  5289. eval $cacheid=no
  5290. fi
  5291. rm -f core conftest.err conftest.$ac_objext \
  5292. conftest$ac_exeext conftest.$ac_ext
  5293. fi
  5294. CFLAGS="$xorg_testset_save_CFLAGS"
  5295. eval supported=\$$cacheid
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5297. $as_echo "$supported" >&6; }
  5298. if test "$supported" = "yes" ; then
  5299. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5300. found="yes"
  5301. fi
  5302. fi
  5303. xorg_testset_save_CFLAGS="$CFLAGS"
  5304. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5305. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5307. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5308. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5312. /* end confdefs.h. */
  5313. int i;
  5314. _ACEOF
  5315. if ac_fn_c_try_compile "$LINENO"; then :
  5316. xorg_cv_cc_flag_unknown_warning_option=yes
  5317. else
  5318. xorg_cv_cc_flag_unknown_warning_option=no
  5319. fi
  5320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5323. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5324. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5325. CFLAGS="$xorg_testset_save_CFLAGS"
  5326. fi
  5327. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5328. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5329. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5330. fi
  5331. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5333. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5334. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5338. /* end confdefs.h. */
  5339. int i;
  5340. _ACEOF
  5341. if ac_fn_c_try_compile "$LINENO"; then :
  5342. xorg_cv_cc_flag_unused_command_line_argument=yes
  5343. else
  5344. xorg_cv_cc_flag_unused_command_line_argument=no
  5345. fi
  5346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5347. fi
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5349. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5350. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5351. CFLAGS="$xorg_testset_save_CFLAGS"
  5352. fi
  5353. found="no"
  5354. if test $found = "no" ; then
  5355. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5356. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5357. fi
  5358. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5359. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5360. fi
  5361. CFLAGS="$CFLAGS -Wshadow"
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5363. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5364. cacheid=xorg_cv_cc_flag__Wshadow
  5365. if eval \${$cacheid+:} false; then :
  5366. $as_echo_n "(cached) " >&6
  5367. else
  5368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end confdefs.h. */
  5370. int i;
  5371. int
  5372. main ()
  5373. {
  5374. ;
  5375. return 0;
  5376. }
  5377. _ACEOF
  5378. if ac_fn_c_try_link "$LINENO"; then :
  5379. eval $cacheid=yes
  5380. else
  5381. eval $cacheid=no
  5382. fi
  5383. rm -f core conftest.err conftest.$ac_objext \
  5384. conftest$ac_exeext conftest.$ac_ext
  5385. fi
  5386. CFLAGS="$xorg_testset_save_CFLAGS"
  5387. eval supported=\$$cacheid
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5389. $as_echo "$supported" >&6; }
  5390. if test "$supported" = "yes" ; then
  5391. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5392. found="yes"
  5393. fi
  5394. fi
  5395. xorg_testset_save_CFLAGS="$CFLAGS"
  5396. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5397. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5399. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5400. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5404. /* end confdefs.h. */
  5405. int i;
  5406. _ACEOF
  5407. if ac_fn_c_try_compile "$LINENO"; then :
  5408. xorg_cv_cc_flag_unknown_warning_option=yes
  5409. else
  5410. xorg_cv_cc_flag_unknown_warning_option=no
  5411. fi
  5412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5413. fi
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5415. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5416. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5417. CFLAGS="$xorg_testset_save_CFLAGS"
  5418. fi
  5419. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5420. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5421. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5422. fi
  5423. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5425. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5426. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5427. $as_echo_n "(cached) " >&6
  5428. else
  5429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5430. /* end confdefs.h. */
  5431. int i;
  5432. _ACEOF
  5433. if ac_fn_c_try_compile "$LINENO"; then :
  5434. xorg_cv_cc_flag_unused_command_line_argument=yes
  5435. else
  5436. xorg_cv_cc_flag_unused_command_line_argument=no
  5437. fi
  5438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5439. fi
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5441. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5442. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5443. CFLAGS="$xorg_testset_save_CFLAGS"
  5444. fi
  5445. found="no"
  5446. if test $found = "no" ; then
  5447. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5448. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5449. fi
  5450. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5451. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5452. fi
  5453. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5455. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5456. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5457. if eval \${$cacheid+:} false; then :
  5458. $as_echo_n "(cached) " >&6
  5459. else
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. int i;
  5463. int
  5464. main ()
  5465. {
  5466. ;
  5467. return 0;
  5468. }
  5469. _ACEOF
  5470. if ac_fn_c_try_link "$LINENO"; then :
  5471. eval $cacheid=yes
  5472. else
  5473. eval $cacheid=no
  5474. fi
  5475. rm -f core conftest.err conftest.$ac_objext \
  5476. conftest$ac_exeext conftest.$ac_ext
  5477. fi
  5478. CFLAGS="$xorg_testset_save_CFLAGS"
  5479. eval supported=\$$cacheid
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5481. $as_echo "$supported" >&6; }
  5482. if test "$supported" = "yes" ; then
  5483. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5484. found="yes"
  5485. fi
  5486. fi
  5487. xorg_testset_save_CFLAGS="$CFLAGS"
  5488. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5489. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5491. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5492. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5493. $as_echo_n "(cached) " >&6
  5494. else
  5495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5496. /* end confdefs.h. */
  5497. int i;
  5498. _ACEOF
  5499. if ac_fn_c_try_compile "$LINENO"; then :
  5500. xorg_cv_cc_flag_unknown_warning_option=yes
  5501. else
  5502. xorg_cv_cc_flag_unknown_warning_option=no
  5503. fi
  5504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5505. fi
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5507. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5508. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5509. CFLAGS="$xorg_testset_save_CFLAGS"
  5510. fi
  5511. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5512. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5513. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5514. fi
  5515. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5517. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5518. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5522. /* end confdefs.h. */
  5523. int i;
  5524. _ACEOF
  5525. if ac_fn_c_try_compile "$LINENO"; then :
  5526. xorg_cv_cc_flag_unused_command_line_argument=yes
  5527. else
  5528. xorg_cv_cc_flag_unused_command_line_argument=no
  5529. fi
  5530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5531. fi
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5533. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5534. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5535. CFLAGS="$xorg_testset_save_CFLAGS"
  5536. fi
  5537. found="no"
  5538. if test $found = "no" ; then
  5539. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5540. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5541. fi
  5542. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5543. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5544. fi
  5545. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5547. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5548. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5549. if eval \${$cacheid+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5553. /* end confdefs.h. */
  5554. int i;
  5555. int
  5556. main ()
  5557. {
  5558. ;
  5559. return 0;
  5560. }
  5561. _ACEOF
  5562. if ac_fn_c_try_link "$LINENO"; then :
  5563. eval $cacheid=yes
  5564. else
  5565. eval $cacheid=no
  5566. fi
  5567. rm -f core conftest.err conftest.$ac_objext \
  5568. conftest$ac_exeext conftest.$ac_ext
  5569. fi
  5570. CFLAGS="$xorg_testset_save_CFLAGS"
  5571. eval supported=\$$cacheid
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5573. $as_echo "$supported" >&6; }
  5574. if test "$supported" = "yes" ; then
  5575. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5576. found="yes"
  5577. fi
  5578. fi
  5579. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5580. xorg_testset_save_CFLAGS="$CFLAGS"
  5581. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5582. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5584. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5585. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5589. /* end confdefs.h. */
  5590. int i;
  5591. _ACEOF
  5592. if ac_fn_c_try_compile "$LINENO"; then :
  5593. xorg_cv_cc_flag_unknown_warning_option=yes
  5594. else
  5595. xorg_cv_cc_flag_unknown_warning_option=no
  5596. fi
  5597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5598. fi
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5600. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5601. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5602. CFLAGS="$xorg_testset_save_CFLAGS"
  5603. fi
  5604. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5605. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5606. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5607. fi
  5608. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5610. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5611. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5615. /* end confdefs.h. */
  5616. int i;
  5617. _ACEOF
  5618. if ac_fn_c_try_compile "$LINENO"; then :
  5619. xorg_cv_cc_flag_unused_command_line_argument=yes
  5620. else
  5621. xorg_cv_cc_flag_unused_command_line_argument=no
  5622. fi
  5623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5624. fi
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5626. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5627. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5628. CFLAGS="$xorg_testset_save_CFLAGS"
  5629. fi
  5630. found="no"
  5631. if test $found = "no" ; then
  5632. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5633. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5634. fi
  5635. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5636. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5637. fi
  5638. CFLAGS="$CFLAGS -Wlogical-op"
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5640. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5641. cacheid=xorg_cv_cc_flag__Wlogical_op
  5642. if eval \${$cacheid+:} 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. int
  5649. main ()
  5650. {
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. if ac_fn_c_try_link "$LINENO"; then :
  5656. eval $cacheid=yes
  5657. else
  5658. eval $cacheid=no
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext \
  5661. conftest$ac_exeext conftest.$ac_ext
  5662. fi
  5663. CFLAGS="$xorg_testset_save_CFLAGS"
  5664. eval supported=\$$cacheid
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5666. $as_echo "$supported" >&6; }
  5667. if test "$supported" = "yes" ; then
  5668. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5669. found="yes"
  5670. fi
  5671. fi
  5672. # These are currently disabled because they are noisy. They will be enabled
  5673. # in the future once the codebase is sufficiently modernized to silence
  5674. # them. For now, I don't want them to drown out the other warnings.
  5675. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5676. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5677. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5678. # Turn some warnings into errors, so we don't accidently get successful builds
  5679. # when there are problems that should be fixed.
  5680. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5681. xorg_testset_save_CFLAGS="$CFLAGS"
  5682. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5683. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5685. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5686. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5687. $as_echo_n "(cached) " >&6
  5688. else
  5689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5690. /* end confdefs.h. */
  5691. int i;
  5692. _ACEOF
  5693. if ac_fn_c_try_compile "$LINENO"; then :
  5694. xorg_cv_cc_flag_unknown_warning_option=yes
  5695. else
  5696. xorg_cv_cc_flag_unknown_warning_option=no
  5697. fi
  5698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5699. fi
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5701. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5702. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5703. CFLAGS="$xorg_testset_save_CFLAGS"
  5704. fi
  5705. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5706. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5707. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5708. fi
  5709. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5711. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5712. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5716. /* end confdefs.h. */
  5717. int i;
  5718. _ACEOF
  5719. if ac_fn_c_try_compile "$LINENO"; then :
  5720. xorg_cv_cc_flag_unused_command_line_argument=yes
  5721. else
  5722. xorg_cv_cc_flag_unused_command_line_argument=no
  5723. fi
  5724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5725. fi
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5727. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5728. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5729. CFLAGS="$xorg_testset_save_CFLAGS"
  5730. fi
  5731. found="no"
  5732. if test $found = "no" ; then
  5733. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5734. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5735. fi
  5736. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5737. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5738. fi
  5739. CFLAGS="$CFLAGS -Werror=implicit"
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5741. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5742. cacheid=xorg_cv_cc_flag__Werror_implicit
  5743. if eval \${$cacheid+:} false; then :
  5744. $as_echo_n "(cached) " >&6
  5745. else
  5746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5747. /* end confdefs.h. */
  5748. int i;
  5749. int
  5750. main ()
  5751. {
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. if ac_fn_c_try_link "$LINENO"; then :
  5757. eval $cacheid=yes
  5758. else
  5759. eval $cacheid=no
  5760. fi
  5761. rm -f core conftest.err conftest.$ac_objext \
  5762. conftest$ac_exeext conftest.$ac_ext
  5763. fi
  5764. CFLAGS="$xorg_testset_save_CFLAGS"
  5765. eval supported=\$$cacheid
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5767. $as_echo "$supported" >&6; }
  5768. if test "$supported" = "yes" ; then
  5769. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5770. found="yes"
  5771. fi
  5772. fi
  5773. if test $found = "no" ; then
  5774. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5775. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5776. fi
  5777. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5778. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5779. fi
  5780. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5782. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5783. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5784. if eval \${$cacheid+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5788. /* end confdefs.h. */
  5789. int i;
  5790. int
  5791. main ()
  5792. {
  5793. ;
  5794. return 0;
  5795. }
  5796. _ACEOF
  5797. if ac_fn_c_try_link "$LINENO"; then :
  5798. eval $cacheid=yes
  5799. else
  5800. eval $cacheid=no
  5801. fi
  5802. rm -f core conftest.err conftest.$ac_objext \
  5803. conftest$ac_exeext conftest.$ac_ext
  5804. fi
  5805. CFLAGS="$xorg_testset_save_CFLAGS"
  5806. eval supported=\$$cacheid
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5808. $as_echo "$supported" >&6; }
  5809. if test "$supported" = "yes" ; then
  5810. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5811. found="yes"
  5812. fi
  5813. fi
  5814. xorg_testset_save_CFLAGS="$CFLAGS"
  5815. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5816. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5818. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5819. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5823. /* end confdefs.h. */
  5824. int i;
  5825. _ACEOF
  5826. if ac_fn_c_try_compile "$LINENO"; then :
  5827. xorg_cv_cc_flag_unknown_warning_option=yes
  5828. else
  5829. xorg_cv_cc_flag_unknown_warning_option=no
  5830. fi
  5831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5834. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5835. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5836. CFLAGS="$xorg_testset_save_CFLAGS"
  5837. fi
  5838. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5839. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5840. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5841. fi
  5842. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5844. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5845. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5849. /* end confdefs.h. */
  5850. int i;
  5851. _ACEOF
  5852. if ac_fn_c_try_compile "$LINENO"; then :
  5853. xorg_cv_cc_flag_unused_command_line_argument=yes
  5854. else
  5855. xorg_cv_cc_flag_unused_command_line_argument=no
  5856. fi
  5857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5858. fi
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5860. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5861. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5862. CFLAGS="$xorg_testset_save_CFLAGS"
  5863. fi
  5864. found="no"
  5865. if test $found = "no" ; then
  5866. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5867. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5868. fi
  5869. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5870. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5871. fi
  5872. CFLAGS="$CFLAGS -Werror=nonnull"
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5874. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5875. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5876. if eval \${$cacheid+:} false; then :
  5877. $as_echo_n "(cached) " >&6
  5878. else
  5879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5880. /* end confdefs.h. */
  5881. int i;
  5882. int
  5883. main ()
  5884. {
  5885. ;
  5886. return 0;
  5887. }
  5888. _ACEOF
  5889. if ac_fn_c_try_link "$LINENO"; then :
  5890. eval $cacheid=yes
  5891. else
  5892. eval $cacheid=no
  5893. fi
  5894. rm -f core conftest.err conftest.$ac_objext \
  5895. conftest$ac_exeext conftest.$ac_ext
  5896. fi
  5897. CFLAGS="$xorg_testset_save_CFLAGS"
  5898. eval supported=\$$cacheid
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5900. $as_echo "$supported" >&6; }
  5901. if test "$supported" = "yes" ; then
  5902. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5903. found="yes"
  5904. fi
  5905. fi
  5906. xorg_testset_save_CFLAGS="$CFLAGS"
  5907. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5908. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5910. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5911. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5915. /* end confdefs.h. */
  5916. int i;
  5917. _ACEOF
  5918. if ac_fn_c_try_compile "$LINENO"; then :
  5919. xorg_cv_cc_flag_unknown_warning_option=yes
  5920. else
  5921. xorg_cv_cc_flag_unknown_warning_option=no
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5926. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5927. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5928. CFLAGS="$xorg_testset_save_CFLAGS"
  5929. fi
  5930. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5931. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5932. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5933. fi
  5934. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5936. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5937. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5941. /* end confdefs.h. */
  5942. int i;
  5943. _ACEOF
  5944. if ac_fn_c_try_compile "$LINENO"; then :
  5945. xorg_cv_cc_flag_unused_command_line_argument=yes
  5946. else
  5947. xorg_cv_cc_flag_unused_command_line_argument=no
  5948. fi
  5949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5952. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5953. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5954. CFLAGS="$xorg_testset_save_CFLAGS"
  5955. fi
  5956. found="no"
  5957. if test $found = "no" ; then
  5958. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5959. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5960. fi
  5961. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5962. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5963. fi
  5964. CFLAGS="$CFLAGS -Werror=init-self"
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5966. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5967. cacheid=xorg_cv_cc_flag__Werror_init_self
  5968. if eval \${$cacheid+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. int i;
  5974. int
  5975. main ()
  5976. {
  5977. ;
  5978. return 0;
  5979. }
  5980. _ACEOF
  5981. if ac_fn_c_try_link "$LINENO"; then :
  5982. eval $cacheid=yes
  5983. else
  5984. eval $cacheid=no
  5985. fi
  5986. rm -f core conftest.err conftest.$ac_objext \
  5987. conftest$ac_exeext conftest.$ac_ext
  5988. fi
  5989. CFLAGS="$xorg_testset_save_CFLAGS"
  5990. eval supported=\$$cacheid
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5992. $as_echo "$supported" >&6; }
  5993. if test "$supported" = "yes" ; then
  5994. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5995. found="yes"
  5996. fi
  5997. fi
  5998. xorg_testset_save_CFLAGS="$CFLAGS"
  5999. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6000. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6002. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6003. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6007. /* end confdefs.h. */
  6008. int i;
  6009. _ACEOF
  6010. if ac_fn_c_try_compile "$LINENO"; then :
  6011. xorg_cv_cc_flag_unknown_warning_option=yes
  6012. else
  6013. xorg_cv_cc_flag_unknown_warning_option=no
  6014. fi
  6015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6016. fi
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6018. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6019. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6020. CFLAGS="$xorg_testset_save_CFLAGS"
  6021. fi
  6022. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6023. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6024. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6025. fi
  6026. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6028. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6029. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. int i;
  6035. _ACEOF
  6036. if ac_fn_c_try_compile "$LINENO"; then :
  6037. xorg_cv_cc_flag_unused_command_line_argument=yes
  6038. else
  6039. xorg_cv_cc_flag_unused_command_line_argument=no
  6040. fi
  6041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6042. fi
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6044. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6045. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6046. CFLAGS="$xorg_testset_save_CFLAGS"
  6047. fi
  6048. found="no"
  6049. if test $found = "no" ; then
  6050. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6051. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6052. fi
  6053. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6054. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6055. fi
  6056. CFLAGS="$CFLAGS -Werror=main"
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6058. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6059. cacheid=xorg_cv_cc_flag__Werror_main
  6060. if eval \${$cacheid+:} false; then :
  6061. $as_echo_n "(cached) " >&6
  6062. else
  6063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6064. /* end confdefs.h. */
  6065. int i;
  6066. int
  6067. main ()
  6068. {
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_link "$LINENO"; then :
  6074. eval $cacheid=yes
  6075. else
  6076. eval $cacheid=no
  6077. fi
  6078. rm -f core conftest.err conftest.$ac_objext \
  6079. conftest$ac_exeext conftest.$ac_ext
  6080. fi
  6081. CFLAGS="$xorg_testset_save_CFLAGS"
  6082. eval supported=\$$cacheid
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6084. $as_echo "$supported" >&6; }
  6085. if test "$supported" = "yes" ; then
  6086. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6087. found="yes"
  6088. fi
  6089. fi
  6090. xorg_testset_save_CFLAGS="$CFLAGS"
  6091. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6092. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6094. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6095. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6096. $as_echo_n "(cached) " >&6
  6097. else
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. int i;
  6101. _ACEOF
  6102. if ac_fn_c_try_compile "$LINENO"; then :
  6103. xorg_cv_cc_flag_unknown_warning_option=yes
  6104. else
  6105. xorg_cv_cc_flag_unknown_warning_option=no
  6106. fi
  6107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6110. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6111. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6112. CFLAGS="$xorg_testset_save_CFLAGS"
  6113. fi
  6114. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6115. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6116. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6117. fi
  6118. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6120. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6121. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6125. /* end confdefs.h. */
  6126. int i;
  6127. _ACEOF
  6128. if ac_fn_c_try_compile "$LINENO"; then :
  6129. xorg_cv_cc_flag_unused_command_line_argument=yes
  6130. else
  6131. xorg_cv_cc_flag_unused_command_line_argument=no
  6132. fi
  6133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6134. fi
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6136. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6137. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6138. CFLAGS="$xorg_testset_save_CFLAGS"
  6139. fi
  6140. found="no"
  6141. if test $found = "no" ; then
  6142. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6144. fi
  6145. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6146. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6147. fi
  6148. CFLAGS="$CFLAGS -Werror=missing-braces"
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6150. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6151. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6152. if eval \${$cacheid+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6156. /* end confdefs.h. */
  6157. int i;
  6158. int
  6159. main ()
  6160. {
  6161. ;
  6162. return 0;
  6163. }
  6164. _ACEOF
  6165. if ac_fn_c_try_link "$LINENO"; then :
  6166. eval $cacheid=yes
  6167. else
  6168. eval $cacheid=no
  6169. fi
  6170. rm -f core conftest.err conftest.$ac_objext \
  6171. conftest$ac_exeext conftest.$ac_ext
  6172. fi
  6173. CFLAGS="$xorg_testset_save_CFLAGS"
  6174. eval supported=\$$cacheid
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6176. $as_echo "$supported" >&6; }
  6177. if test "$supported" = "yes" ; then
  6178. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6179. found="yes"
  6180. fi
  6181. fi
  6182. xorg_testset_save_CFLAGS="$CFLAGS"
  6183. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6184. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6186. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6187. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. int i;
  6193. _ACEOF
  6194. if ac_fn_c_try_compile "$LINENO"; then :
  6195. xorg_cv_cc_flag_unknown_warning_option=yes
  6196. else
  6197. xorg_cv_cc_flag_unknown_warning_option=no
  6198. fi
  6199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6200. fi
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6202. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6203. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6204. CFLAGS="$xorg_testset_save_CFLAGS"
  6205. fi
  6206. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6207. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6208. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6209. fi
  6210. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6212. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6213. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6217. /* end confdefs.h. */
  6218. int i;
  6219. _ACEOF
  6220. if ac_fn_c_try_compile "$LINENO"; then :
  6221. xorg_cv_cc_flag_unused_command_line_argument=yes
  6222. else
  6223. xorg_cv_cc_flag_unused_command_line_argument=no
  6224. fi
  6225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6226. fi
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6228. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6229. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6230. CFLAGS="$xorg_testset_save_CFLAGS"
  6231. fi
  6232. found="no"
  6233. if test $found = "no" ; then
  6234. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6236. fi
  6237. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6238. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6239. fi
  6240. CFLAGS="$CFLAGS -Werror=sequence-point"
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6242. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6243. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6244. if eval \${$cacheid+:} false; then :
  6245. $as_echo_n "(cached) " >&6
  6246. else
  6247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6248. /* end confdefs.h. */
  6249. int i;
  6250. int
  6251. main ()
  6252. {
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_c_try_link "$LINENO"; then :
  6258. eval $cacheid=yes
  6259. else
  6260. eval $cacheid=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext \
  6263. conftest$ac_exeext conftest.$ac_ext
  6264. fi
  6265. CFLAGS="$xorg_testset_save_CFLAGS"
  6266. eval supported=\$$cacheid
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6268. $as_echo "$supported" >&6; }
  6269. if test "$supported" = "yes" ; then
  6270. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6271. found="yes"
  6272. fi
  6273. fi
  6274. xorg_testset_save_CFLAGS="$CFLAGS"
  6275. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6276. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6278. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6279. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6283. /* end confdefs.h. */
  6284. int i;
  6285. _ACEOF
  6286. if ac_fn_c_try_compile "$LINENO"; then :
  6287. xorg_cv_cc_flag_unknown_warning_option=yes
  6288. else
  6289. xorg_cv_cc_flag_unknown_warning_option=no
  6290. fi
  6291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6294. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6295. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6296. CFLAGS="$xorg_testset_save_CFLAGS"
  6297. fi
  6298. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6299. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6300. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6301. fi
  6302. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6304. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6305. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6309. /* end confdefs.h. */
  6310. int i;
  6311. _ACEOF
  6312. if ac_fn_c_try_compile "$LINENO"; then :
  6313. xorg_cv_cc_flag_unused_command_line_argument=yes
  6314. else
  6315. xorg_cv_cc_flag_unused_command_line_argument=no
  6316. fi
  6317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6318. fi
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6320. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6321. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6322. CFLAGS="$xorg_testset_save_CFLAGS"
  6323. fi
  6324. found="no"
  6325. if test $found = "no" ; then
  6326. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6327. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6328. fi
  6329. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6330. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6331. fi
  6332. CFLAGS="$CFLAGS -Werror=return-type"
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6334. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6335. cacheid=xorg_cv_cc_flag__Werror_return_type
  6336. if eval \${$cacheid+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6340. /* end confdefs.h. */
  6341. int i;
  6342. int
  6343. main ()
  6344. {
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. if ac_fn_c_try_link "$LINENO"; then :
  6350. eval $cacheid=yes
  6351. else
  6352. eval $cacheid=no
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext \
  6355. conftest$ac_exeext conftest.$ac_ext
  6356. fi
  6357. CFLAGS="$xorg_testset_save_CFLAGS"
  6358. eval supported=\$$cacheid
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6360. $as_echo "$supported" >&6; }
  6361. if test "$supported" = "yes" ; then
  6362. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6363. found="yes"
  6364. fi
  6365. fi
  6366. if test $found = "no" ; then
  6367. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6368. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6369. fi
  6370. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6371. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6372. fi
  6373. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6375. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6376. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6377. if eval \${$cacheid+:} false; then :
  6378. $as_echo_n "(cached) " >&6
  6379. else
  6380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end confdefs.h. */
  6382. int i;
  6383. int
  6384. main ()
  6385. {
  6386. ;
  6387. return 0;
  6388. }
  6389. _ACEOF
  6390. if ac_fn_c_try_link "$LINENO"; then :
  6391. eval $cacheid=yes
  6392. else
  6393. eval $cacheid=no
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext \
  6396. conftest$ac_exeext conftest.$ac_ext
  6397. fi
  6398. CFLAGS="$xorg_testset_save_CFLAGS"
  6399. eval supported=\$$cacheid
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6401. $as_echo "$supported" >&6; }
  6402. if test "$supported" = "yes" ; then
  6403. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6404. found="yes"
  6405. fi
  6406. fi
  6407. xorg_testset_save_CFLAGS="$CFLAGS"
  6408. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6409. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6411. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6412. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6416. /* end confdefs.h. */
  6417. int i;
  6418. _ACEOF
  6419. if ac_fn_c_try_compile "$LINENO"; then :
  6420. xorg_cv_cc_flag_unknown_warning_option=yes
  6421. else
  6422. xorg_cv_cc_flag_unknown_warning_option=no
  6423. fi
  6424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6425. fi
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6427. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6428. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6429. CFLAGS="$xorg_testset_save_CFLAGS"
  6430. fi
  6431. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6432. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6433. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6434. fi
  6435. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6437. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6438. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. int i;
  6444. _ACEOF
  6445. if ac_fn_c_try_compile "$LINENO"; then :
  6446. xorg_cv_cc_flag_unused_command_line_argument=yes
  6447. else
  6448. xorg_cv_cc_flag_unused_command_line_argument=no
  6449. fi
  6450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6453. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6454. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6455. CFLAGS="$xorg_testset_save_CFLAGS"
  6456. fi
  6457. found="no"
  6458. if test $found = "no" ; then
  6459. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6460. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6461. fi
  6462. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6463. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6464. fi
  6465. CFLAGS="$CFLAGS -Werror=trigraphs"
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6467. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6468. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6469. if eval \${$cacheid+:} false; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6473. /* end confdefs.h. */
  6474. int i;
  6475. int
  6476. main ()
  6477. {
  6478. ;
  6479. return 0;
  6480. }
  6481. _ACEOF
  6482. if ac_fn_c_try_link "$LINENO"; then :
  6483. eval $cacheid=yes
  6484. else
  6485. eval $cacheid=no
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext \
  6488. conftest$ac_exeext conftest.$ac_ext
  6489. fi
  6490. CFLAGS="$xorg_testset_save_CFLAGS"
  6491. eval supported=\$$cacheid
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6493. $as_echo "$supported" >&6; }
  6494. if test "$supported" = "yes" ; then
  6495. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6496. found="yes"
  6497. fi
  6498. fi
  6499. xorg_testset_save_CFLAGS="$CFLAGS"
  6500. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6501. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6503. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6504. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. int i;
  6510. _ACEOF
  6511. if ac_fn_c_try_compile "$LINENO"; then :
  6512. xorg_cv_cc_flag_unknown_warning_option=yes
  6513. else
  6514. xorg_cv_cc_flag_unknown_warning_option=no
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6517. fi
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6519. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6520. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6521. CFLAGS="$xorg_testset_save_CFLAGS"
  6522. fi
  6523. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6524. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6526. fi
  6527. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6529. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6530. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6534. /* end confdefs.h. */
  6535. int i;
  6536. _ACEOF
  6537. if ac_fn_c_try_compile "$LINENO"; then :
  6538. xorg_cv_cc_flag_unused_command_line_argument=yes
  6539. else
  6540. xorg_cv_cc_flag_unused_command_line_argument=no
  6541. fi
  6542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6543. fi
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6545. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6546. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6547. CFLAGS="$xorg_testset_save_CFLAGS"
  6548. fi
  6549. found="no"
  6550. if test $found = "no" ; then
  6551. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6552. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6553. fi
  6554. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6555. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6556. fi
  6557. CFLAGS="$CFLAGS -Werror=array-bounds"
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6559. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6560. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6561. if eval \${$cacheid+:} false; then :
  6562. $as_echo_n "(cached) " >&6
  6563. else
  6564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6565. /* end confdefs.h. */
  6566. int i;
  6567. int
  6568. main ()
  6569. {
  6570. ;
  6571. return 0;
  6572. }
  6573. _ACEOF
  6574. if ac_fn_c_try_link "$LINENO"; then :
  6575. eval $cacheid=yes
  6576. else
  6577. eval $cacheid=no
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext \
  6580. conftest$ac_exeext conftest.$ac_ext
  6581. fi
  6582. CFLAGS="$xorg_testset_save_CFLAGS"
  6583. eval supported=\$$cacheid
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6585. $as_echo "$supported" >&6; }
  6586. if test "$supported" = "yes" ; then
  6587. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6588. found="yes"
  6589. fi
  6590. fi
  6591. xorg_testset_save_CFLAGS="$CFLAGS"
  6592. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6593. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6595. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6596. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6600. /* end confdefs.h. */
  6601. int i;
  6602. _ACEOF
  6603. if ac_fn_c_try_compile "$LINENO"; then :
  6604. xorg_cv_cc_flag_unknown_warning_option=yes
  6605. else
  6606. xorg_cv_cc_flag_unknown_warning_option=no
  6607. fi
  6608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6609. fi
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6611. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6612. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6613. CFLAGS="$xorg_testset_save_CFLAGS"
  6614. fi
  6615. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6616. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6617. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6618. fi
  6619. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6621. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6622. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6623. $as_echo_n "(cached) " >&6
  6624. else
  6625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6626. /* end confdefs.h. */
  6627. int i;
  6628. _ACEOF
  6629. if ac_fn_c_try_compile "$LINENO"; then :
  6630. xorg_cv_cc_flag_unused_command_line_argument=yes
  6631. else
  6632. xorg_cv_cc_flag_unused_command_line_argument=no
  6633. fi
  6634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6635. fi
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6637. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6638. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6639. CFLAGS="$xorg_testset_save_CFLAGS"
  6640. fi
  6641. found="no"
  6642. if test $found = "no" ; then
  6643. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6644. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6645. fi
  6646. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6647. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6648. fi
  6649. CFLAGS="$CFLAGS -Werror=write-strings"
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6651. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6652. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6653. if eval \${$cacheid+:} false; then :
  6654. $as_echo_n "(cached) " >&6
  6655. else
  6656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6657. /* end confdefs.h. */
  6658. int i;
  6659. int
  6660. main ()
  6661. {
  6662. ;
  6663. return 0;
  6664. }
  6665. _ACEOF
  6666. if ac_fn_c_try_link "$LINENO"; then :
  6667. eval $cacheid=yes
  6668. else
  6669. eval $cacheid=no
  6670. fi
  6671. rm -f core conftest.err conftest.$ac_objext \
  6672. conftest$ac_exeext conftest.$ac_ext
  6673. fi
  6674. CFLAGS="$xorg_testset_save_CFLAGS"
  6675. eval supported=\$$cacheid
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6677. $as_echo "$supported" >&6; }
  6678. if test "$supported" = "yes" ; then
  6679. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6680. found="yes"
  6681. fi
  6682. fi
  6683. xorg_testset_save_CFLAGS="$CFLAGS"
  6684. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6685. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6687. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6688. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6692. /* end confdefs.h. */
  6693. int i;
  6694. _ACEOF
  6695. if ac_fn_c_try_compile "$LINENO"; then :
  6696. xorg_cv_cc_flag_unknown_warning_option=yes
  6697. else
  6698. xorg_cv_cc_flag_unknown_warning_option=no
  6699. fi
  6700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6703. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6704. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6705. CFLAGS="$xorg_testset_save_CFLAGS"
  6706. fi
  6707. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6708. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6709. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6710. fi
  6711. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6713. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6714. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6715. $as_echo_n "(cached) " >&6
  6716. else
  6717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6718. /* end confdefs.h. */
  6719. int i;
  6720. _ACEOF
  6721. if ac_fn_c_try_compile "$LINENO"; then :
  6722. xorg_cv_cc_flag_unused_command_line_argument=yes
  6723. else
  6724. xorg_cv_cc_flag_unused_command_line_argument=no
  6725. fi
  6726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6727. fi
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6729. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6730. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6731. CFLAGS="$xorg_testset_save_CFLAGS"
  6732. fi
  6733. found="no"
  6734. if test $found = "no" ; then
  6735. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6736. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6737. fi
  6738. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6739. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6740. fi
  6741. CFLAGS="$CFLAGS -Werror=address"
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6743. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6744. cacheid=xorg_cv_cc_flag__Werror_address
  6745. if eval \${$cacheid+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6749. /* end confdefs.h. */
  6750. int i;
  6751. int
  6752. main ()
  6753. {
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. if ac_fn_c_try_link "$LINENO"; then :
  6759. eval $cacheid=yes
  6760. else
  6761. eval $cacheid=no
  6762. fi
  6763. rm -f core conftest.err conftest.$ac_objext \
  6764. conftest$ac_exeext conftest.$ac_ext
  6765. fi
  6766. CFLAGS="$xorg_testset_save_CFLAGS"
  6767. eval supported=\$$cacheid
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6769. $as_echo "$supported" >&6; }
  6770. if test "$supported" = "yes" ; then
  6771. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6772. found="yes"
  6773. fi
  6774. fi
  6775. xorg_testset_save_CFLAGS="$CFLAGS"
  6776. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6777. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6779. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6780. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. int i;
  6786. _ACEOF
  6787. if ac_fn_c_try_compile "$LINENO"; then :
  6788. xorg_cv_cc_flag_unknown_warning_option=yes
  6789. else
  6790. xorg_cv_cc_flag_unknown_warning_option=no
  6791. fi
  6792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6793. fi
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6795. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6796. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6797. CFLAGS="$xorg_testset_save_CFLAGS"
  6798. fi
  6799. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6800. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6801. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6802. fi
  6803. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6805. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6806. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6807. $as_echo_n "(cached) " >&6
  6808. else
  6809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6810. /* end confdefs.h. */
  6811. int i;
  6812. _ACEOF
  6813. if ac_fn_c_try_compile "$LINENO"; then :
  6814. xorg_cv_cc_flag_unused_command_line_argument=yes
  6815. else
  6816. xorg_cv_cc_flag_unused_command_line_argument=no
  6817. fi
  6818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6819. fi
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6821. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6822. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6823. CFLAGS="$xorg_testset_save_CFLAGS"
  6824. fi
  6825. found="no"
  6826. if test $found = "no" ; then
  6827. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6828. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6829. fi
  6830. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6831. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6832. fi
  6833. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6835. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6836. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6837. if eval \${$cacheid+:} false; then :
  6838. $as_echo_n "(cached) " >&6
  6839. else
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. int i;
  6843. int
  6844. main ()
  6845. {
  6846. ;
  6847. return 0;
  6848. }
  6849. _ACEOF
  6850. if ac_fn_c_try_link "$LINENO"; then :
  6851. eval $cacheid=yes
  6852. else
  6853. eval $cacheid=no
  6854. fi
  6855. rm -f core conftest.err conftest.$ac_objext \
  6856. conftest$ac_exeext conftest.$ac_ext
  6857. fi
  6858. CFLAGS="$xorg_testset_save_CFLAGS"
  6859. eval supported=\$$cacheid
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6861. $as_echo "$supported" >&6; }
  6862. if test "$supported" = "yes" ; then
  6863. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6864. found="yes"
  6865. fi
  6866. fi
  6867. if test $found = "no" ; then
  6868. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6869. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6870. fi
  6871. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6872. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6873. fi
  6874. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6876. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6877. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6878. if eval \${$cacheid+:} false; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6882. /* end confdefs.h. */
  6883. int i;
  6884. int
  6885. main ()
  6886. {
  6887. ;
  6888. return 0;
  6889. }
  6890. _ACEOF
  6891. if ac_fn_c_try_link "$LINENO"; then :
  6892. eval $cacheid=yes
  6893. else
  6894. eval $cacheid=no
  6895. fi
  6896. rm -f core conftest.err conftest.$ac_objext \
  6897. conftest$ac_exeext conftest.$ac_ext
  6898. fi
  6899. CFLAGS="$xorg_testset_save_CFLAGS"
  6900. eval supported=\$$cacheid
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6902. $as_echo "$supported" >&6; }
  6903. if test "$supported" = "yes" ; then
  6904. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6905. found="yes"
  6906. fi
  6907. fi
  6908. xorg_testset_save_CFLAGS="$CFLAGS"
  6909. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6910. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6912. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6913. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6914. $as_echo_n "(cached) " >&6
  6915. else
  6916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6917. /* end confdefs.h. */
  6918. int i;
  6919. _ACEOF
  6920. if ac_fn_c_try_compile "$LINENO"; then :
  6921. xorg_cv_cc_flag_unknown_warning_option=yes
  6922. else
  6923. xorg_cv_cc_flag_unknown_warning_option=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6928. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6929. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6930. CFLAGS="$xorg_testset_save_CFLAGS"
  6931. fi
  6932. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6933. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6934. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6935. fi
  6936. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6938. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6939. if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
  6948. else
  6949. xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
  6954. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6955. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6956. CFLAGS="$xorg_testset_save_CFLAGS"
  6957. fi
  6958. found="no"
  6959. if test $found = "no" ; then
  6960. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6961. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6962. fi
  6963. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6964. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6965. fi
  6966. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6968. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6969. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6970. if eval \${$cacheid+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6974. /* end confdefs.h. */
  6975. int i;
  6976. int
  6977. main ()
  6978. {
  6979. ;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. if ac_fn_c_try_link "$LINENO"; then :
  6984. eval $cacheid=yes
  6985. else
  6986. eval $cacheid=no
  6987. fi
  6988. rm -f core conftest.err conftest.$ac_objext \
  6989. conftest$ac_exeext conftest.$ac_ext
  6990. fi
  6991. CFLAGS="$xorg_testset_save_CFLAGS"
  6992. eval supported=\$$cacheid
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6994. $as_echo "$supported" >&6; }
  6995. if test "$supported" = "yes" ; then
  6996. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6997. found="yes"
  6998. fi
  6999. fi
  7000. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7001. else
  7002. { $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
  7003. $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;}
  7004. xorg_testset_save_CFLAGS="$CFLAGS"
  7005. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7006. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7008. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7009. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7013. /* end confdefs.h. */
  7014. int i;
  7015. _ACEOF
  7016. if ac_fn_c_try_compile "$LINENO"; then :
  7017. xorg_cv_cc_flag_unknown_warning_option=yes
  7018. else
  7019. xorg_cv_cc_flag_unknown_warning_option=no
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7024. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7025. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7026. CFLAGS="$xorg_testset_save_CFLAGS"
  7027. fi
  7028. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7029. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7030. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7031. fi
  7032. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7034. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7035. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7036. $as_echo_n "(cached) " >&6
  7037. else
  7038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7039. /* end confdefs.h. */
  7040. int i;
  7041. _ACEOF
  7042. if ac_fn_c_try_compile "$LINENO"; then :
  7043. xorg_cv_cc_flag_unused_command_line_argument=yes
  7044. else
  7045. xorg_cv_cc_flag_unused_command_line_argument=no
  7046. fi
  7047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7050. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7051. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7052. CFLAGS="$xorg_testset_save_CFLAGS"
  7053. fi
  7054. found="no"
  7055. if test $found = "no" ; then
  7056. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7057. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7058. fi
  7059. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7060. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7061. fi
  7062. CFLAGS="$CFLAGS -Wimplicit"
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7064. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7065. cacheid=xorg_cv_cc_flag__Wimplicit
  7066. if eval \${$cacheid+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7070. /* end confdefs.h. */
  7071. int i;
  7072. int
  7073. main ()
  7074. {
  7075. ;
  7076. return 0;
  7077. }
  7078. _ACEOF
  7079. if ac_fn_c_try_link "$LINENO"; then :
  7080. eval $cacheid=yes
  7081. else
  7082. eval $cacheid=no
  7083. fi
  7084. rm -f core conftest.err conftest.$ac_objext \
  7085. conftest$ac_exeext conftest.$ac_ext
  7086. fi
  7087. CFLAGS="$xorg_testset_save_CFLAGS"
  7088. eval supported=\$$cacheid
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7090. $as_echo "$supported" >&6; }
  7091. if test "$supported" = "yes" ; then
  7092. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7093. found="yes"
  7094. fi
  7095. fi
  7096. xorg_testset_save_CFLAGS="$CFLAGS"
  7097. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7098. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7100. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7101. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7102. $as_echo_n "(cached) " >&6
  7103. else
  7104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7105. /* end confdefs.h. */
  7106. int i;
  7107. _ACEOF
  7108. if ac_fn_c_try_compile "$LINENO"; then :
  7109. xorg_cv_cc_flag_unknown_warning_option=yes
  7110. else
  7111. xorg_cv_cc_flag_unknown_warning_option=no
  7112. fi
  7113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7114. fi
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7116. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7117. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7118. CFLAGS="$xorg_testset_save_CFLAGS"
  7119. fi
  7120. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7121. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7122. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7123. fi
  7124. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7126. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7127. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7131. /* end confdefs.h. */
  7132. int i;
  7133. _ACEOF
  7134. if ac_fn_c_try_compile "$LINENO"; then :
  7135. xorg_cv_cc_flag_unused_command_line_argument=yes
  7136. else
  7137. xorg_cv_cc_flag_unused_command_line_argument=no
  7138. fi
  7139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7142. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7143. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7144. CFLAGS="$xorg_testset_save_CFLAGS"
  7145. fi
  7146. found="no"
  7147. if test $found = "no" ; then
  7148. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7149. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7150. fi
  7151. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7152. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7153. fi
  7154. CFLAGS="$CFLAGS -Wnonnull"
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7156. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7157. cacheid=xorg_cv_cc_flag__Wnonnull
  7158. if eval \${$cacheid+:} false; then :
  7159. $as_echo_n "(cached) " >&6
  7160. else
  7161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7162. /* end confdefs.h. */
  7163. int i;
  7164. int
  7165. main ()
  7166. {
  7167. ;
  7168. return 0;
  7169. }
  7170. _ACEOF
  7171. if ac_fn_c_try_link "$LINENO"; then :
  7172. eval $cacheid=yes
  7173. else
  7174. eval $cacheid=no
  7175. fi
  7176. rm -f core conftest.err conftest.$ac_objext \
  7177. conftest$ac_exeext conftest.$ac_ext
  7178. fi
  7179. CFLAGS="$xorg_testset_save_CFLAGS"
  7180. eval supported=\$$cacheid
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7182. $as_echo "$supported" >&6; }
  7183. if test "$supported" = "yes" ; then
  7184. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7185. found="yes"
  7186. fi
  7187. fi
  7188. xorg_testset_save_CFLAGS="$CFLAGS"
  7189. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7190. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7192. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7193. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7194. $as_echo_n "(cached) " >&6
  7195. else
  7196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7197. /* end confdefs.h. */
  7198. int i;
  7199. _ACEOF
  7200. if ac_fn_c_try_compile "$LINENO"; then :
  7201. xorg_cv_cc_flag_unknown_warning_option=yes
  7202. else
  7203. xorg_cv_cc_flag_unknown_warning_option=no
  7204. fi
  7205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7206. fi
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7208. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7209. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7210. CFLAGS="$xorg_testset_save_CFLAGS"
  7211. fi
  7212. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7213. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7214. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7215. fi
  7216. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7218. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7219. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7223. /* end confdefs.h. */
  7224. int i;
  7225. _ACEOF
  7226. if ac_fn_c_try_compile "$LINENO"; then :
  7227. xorg_cv_cc_flag_unused_command_line_argument=yes
  7228. else
  7229. xorg_cv_cc_flag_unused_command_line_argument=no
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7232. fi
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7234. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7235. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7236. CFLAGS="$xorg_testset_save_CFLAGS"
  7237. fi
  7238. found="no"
  7239. if test $found = "no" ; then
  7240. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7241. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7242. fi
  7243. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7244. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7245. fi
  7246. CFLAGS="$CFLAGS -Winit-self"
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7248. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7249. cacheid=xorg_cv_cc_flag__Winit_self
  7250. if eval \${$cacheid+:} false; then :
  7251. $as_echo_n "(cached) " >&6
  7252. else
  7253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7254. /* end confdefs.h. */
  7255. int i;
  7256. int
  7257. main ()
  7258. {
  7259. ;
  7260. return 0;
  7261. }
  7262. _ACEOF
  7263. if ac_fn_c_try_link "$LINENO"; then :
  7264. eval $cacheid=yes
  7265. else
  7266. eval $cacheid=no
  7267. fi
  7268. rm -f core conftest.err conftest.$ac_objext \
  7269. conftest$ac_exeext conftest.$ac_ext
  7270. fi
  7271. CFLAGS="$xorg_testset_save_CFLAGS"
  7272. eval supported=\$$cacheid
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7274. $as_echo "$supported" >&6; }
  7275. if test "$supported" = "yes" ; then
  7276. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7277. found="yes"
  7278. fi
  7279. fi
  7280. xorg_testset_save_CFLAGS="$CFLAGS"
  7281. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7282. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7284. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7285. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7289. /* end confdefs.h. */
  7290. int i;
  7291. _ACEOF
  7292. if ac_fn_c_try_compile "$LINENO"; then :
  7293. xorg_cv_cc_flag_unknown_warning_option=yes
  7294. else
  7295. xorg_cv_cc_flag_unknown_warning_option=no
  7296. fi
  7297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7300. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7301. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7302. CFLAGS="$xorg_testset_save_CFLAGS"
  7303. fi
  7304. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7305. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7306. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7307. fi
  7308. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7310. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7311. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7315. /* end confdefs.h. */
  7316. int i;
  7317. _ACEOF
  7318. if ac_fn_c_try_compile "$LINENO"; then :
  7319. xorg_cv_cc_flag_unused_command_line_argument=yes
  7320. else
  7321. xorg_cv_cc_flag_unused_command_line_argument=no
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7324. fi
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7326. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7327. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7328. CFLAGS="$xorg_testset_save_CFLAGS"
  7329. fi
  7330. found="no"
  7331. if test $found = "no" ; then
  7332. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7333. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7334. fi
  7335. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7336. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7337. fi
  7338. CFLAGS="$CFLAGS -Wmain"
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7340. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7341. cacheid=xorg_cv_cc_flag__Wmain
  7342. if eval \${$cacheid+:} false; then :
  7343. $as_echo_n "(cached) " >&6
  7344. else
  7345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7346. /* end confdefs.h. */
  7347. int i;
  7348. int
  7349. main ()
  7350. {
  7351. ;
  7352. return 0;
  7353. }
  7354. _ACEOF
  7355. if ac_fn_c_try_link "$LINENO"; then :
  7356. eval $cacheid=yes
  7357. else
  7358. eval $cacheid=no
  7359. fi
  7360. rm -f core conftest.err conftest.$ac_objext \
  7361. conftest$ac_exeext conftest.$ac_ext
  7362. fi
  7363. CFLAGS="$xorg_testset_save_CFLAGS"
  7364. eval supported=\$$cacheid
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7366. $as_echo "$supported" >&6; }
  7367. if test "$supported" = "yes" ; then
  7368. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7369. found="yes"
  7370. fi
  7371. fi
  7372. xorg_testset_save_CFLAGS="$CFLAGS"
  7373. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7374. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7376. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7377. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7378. $as_echo_n "(cached) " >&6
  7379. else
  7380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7381. /* end confdefs.h. */
  7382. int i;
  7383. _ACEOF
  7384. if ac_fn_c_try_compile "$LINENO"; then :
  7385. xorg_cv_cc_flag_unknown_warning_option=yes
  7386. else
  7387. xorg_cv_cc_flag_unknown_warning_option=no
  7388. fi
  7389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7390. fi
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7392. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7393. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7394. CFLAGS="$xorg_testset_save_CFLAGS"
  7395. fi
  7396. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7397. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7398. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7399. fi
  7400. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7402. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7403. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7407. /* end confdefs.h. */
  7408. int i;
  7409. _ACEOF
  7410. if ac_fn_c_try_compile "$LINENO"; then :
  7411. xorg_cv_cc_flag_unused_command_line_argument=yes
  7412. else
  7413. xorg_cv_cc_flag_unused_command_line_argument=no
  7414. fi
  7415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7418. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7419. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7420. CFLAGS="$xorg_testset_save_CFLAGS"
  7421. fi
  7422. found="no"
  7423. if test $found = "no" ; then
  7424. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7425. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7426. fi
  7427. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7428. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7429. fi
  7430. CFLAGS="$CFLAGS -Wmissing-braces"
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7432. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7433. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7434. if eval \${$cacheid+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7438. /* end confdefs.h. */
  7439. int i;
  7440. int
  7441. main ()
  7442. {
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. if ac_fn_c_try_link "$LINENO"; then :
  7448. eval $cacheid=yes
  7449. else
  7450. eval $cacheid=no
  7451. fi
  7452. rm -f core conftest.err conftest.$ac_objext \
  7453. conftest$ac_exeext conftest.$ac_ext
  7454. fi
  7455. CFLAGS="$xorg_testset_save_CFLAGS"
  7456. eval supported=\$$cacheid
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7458. $as_echo "$supported" >&6; }
  7459. if test "$supported" = "yes" ; then
  7460. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7461. found="yes"
  7462. fi
  7463. fi
  7464. xorg_testset_save_CFLAGS="$CFLAGS"
  7465. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7466. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7468. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7469. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7470. $as_echo_n "(cached) " >&6
  7471. else
  7472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7473. /* end confdefs.h. */
  7474. int i;
  7475. _ACEOF
  7476. if ac_fn_c_try_compile "$LINENO"; then :
  7477. xorg_cv_cc_flag_unknown_warning_option=yes
  7478. else
  7479. xorg_cv_cc_flag_unknown_warning_option=no
  7480. fi
  7481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7482. fi
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7484. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7485. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7486. CFLAGS="$xorg_testset_save_CFLAGS"
  7487. fi
  7488. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7489. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7490. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7491. fi
  7492. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7494. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7495. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7496. $as_echo_n "(cached) " >&6
  7497. else
  7498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7499. /* end confdefs.h. */
  7500. int i;
  7501. _ACEOF
  7502. if ac_fn_c_try_compile "$LINENO"; then :
  7503. xorg_cv_cc_flag_unused_command_line_argument=yes
  7504. else
  7505. xorg_cv_cc_flag_unused_command_line_argument=no
  7506. fi
  7507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7508. fi
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7510. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7511. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7512. CFLAGS="$xorg_testset_save_CFLAGS"
  7513. fi
  7514. found="no"
  7515. if test $found = "no" ; then
  7516. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7517. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7518. fi
  7519. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7520. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7521. fi
  7522. CFLAGS="$CFLAGS -Wsequence-point"
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7524. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7525. cacheid=xorg_cv_cc_flag__Wsequence_point
  7526. if eval \${$cacheid+:} false; then :
  7527. $as_echo_n "(cached) " >&6
  7528. else
  7529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7530. /* end confdefs.h. */
  7531. int i;
  7532. int
  7533. main ()
  7534. {
  7535. ;
  7536. return 0;
  7537. }
  7538. _ACEOF
  7539. if ac_fn_c_try_link "$LINENO"; then :
  7540. eval $cacheid=yes
  7541. else
  7542. eval $cacheid=no
  7543. fi
  7544. rm -f core conftest.err conftest.$ac_objext \
  7545. conftest$ac_exeext conftest.$ac_ext
  7546. fi
  7547. CFLAGS="$xorg_testset_save_CFLAGS"
  7548. eval supported=\$$cacheid
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7550. $as_echo "$supported" >&6; }
  7551. if test "$supported" = "yes" ; then
  7552. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7553. found="yes"
  7554. fi
  7555. fi
  7556. xorg_testset_save_CFLAGS="$CFLAGS"
  7557. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7558. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7560. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7561. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7562. $as_echo_n "(cached) " >&6
  7563. else
  7564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7565. /* end confdefs.h. */
  7566. int i;
  7567. _ACEOF
  7568. if ac_fn_c_try_compile "$LINENO"; then :
  7569. xorg_cv_cc_flag_unknown_warning_option=yes
  7570. else
  7571. xorg_cv_cc_flag_unknown_warning_option=no
  7572. fi
  7573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7574. fi
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7576. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7577. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7578. CFLAGS="$xorg_testset_save_CFLAGS"
  7579. fi
  7580. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7581. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7582. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7583. fi
  7584. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7586. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7587. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7591. /* end confdefs.h. */
  7592. int i;
  7593. _ACEOF
  7594. if ac_fn_c_try_compile "$LINENO"; then :
  7595. xorg_cv_cc_flag_unused_command_line_argument=yes
  7596. else
  7597. xorg_cv_cc_flag_unused_command_line_argument=no
  7598. fi
  7599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7600. fi
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7602. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7603. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7604. CFLAGS="$xorg_testset_save_CFLAGS"
  7605. fi
  7606. found="no"
  7607. if test $found = "no" ; then
  7608. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7609. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7610. fi
  7611. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7612. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7613. fi
  7614. CFLAGS="$CFLAGS -Wreturn-type"
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7616. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7617. cacheid=xorg_cv_cc_flag__Wreturn_type
  7618. if eval \${$cacheid+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. int i;
  7624. int
  7625. main ()
  7626. {
  7627. ;
  7628. return 0;
  7629. }
  7630. _ACEOF
  7631. if ac_fn_c_try_link "$LINENO"; then :
  7632. eval $cacheid=yes
  7633. else
  7634. eval $cacheid=no
  7635. fi
  7636. rm -f core conftest.err conftest.$ac_objext \
  7637. conftest$ac_exeext conftest.$ac_ext
  7638. fi
  7639. CFLAGS="$xorg_testset_save_CFLAGS"
  7640. eval supported=\$$cacheid
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7642. $as_echo "$supported" >&6; }
  7643. if test "$supported" = "yes" ; then
  7644. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7645. found="yes"
  7646. fi
  7647. fi
  7648. xorg_testset_save_CFLAGS="$CFLAGS"
  7649. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7650. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7652. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7653. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7654. $as_echo_n "(cached) " >&6
  7655. else
  7656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7657. /* end confdefs.h. */
  7658. int i;
  7659. _ACEOF
  7660. if ac_fn_c_try_compile "$LINENO"; then :
  7661. xorg_cv_cc_flag_unknown_warning_option=yes
  7662. else
  7663. xorg_cv_cc_flag_unknown_warning_option=no
  7664. fi
  7665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7666. fi
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7668. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7669. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7670. CFLAGS="$xorg_testset_save_CFLAGS"
  7671. fi
  7672. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7673. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7674. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7675. fi
  7676. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7678. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7679. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7680. $as_echo_n "(cached) " >&6
  7681. else
  7682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7683. /* end confdefs.h. */
  7684. int i;
  7685. _ACEOF
  7686. if ac_fn_c_try_compile "$LINENO"; then :
  7687. xorg_cv_cc_flag_unused_command_line_argument=yes
  7688. else
  7689. xorg_cv_cc_flag_unused_command_line_argument=no
  7690. fi
  7691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7692. fi
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7694. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7695. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7696. CFLAGS="$xorg_testset_save_CFLAGS"
  7697. fi
  7698. found="no"
  7699. if test $found = "no" ; then
  7700. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7701. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7702. fi
  7703. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7704. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7705. fi
  7706. CFLAGS="$CFLAGS -Wtrigraphs"
  7707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7708. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7709. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7710. if eval \${$cacheid+:} false; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. int i;
  7716. int
  7717. main ()
  7718. {
  7719. ;
  7720. return 0;
  7721. }
  7722. _ACEOF
  7723. if ac_fn_c_try_link "$LINENO"; then :
  7724. eval $cacheid=yes
  7725. else
  7726. eval $cacheid=no
  7727. fi
  7728. rm -f core conftest.err conftest.$ac_objext \
  7729. conftest$ac_exeext conftest.$ac_ext
  7730. fi
  7731. CFLAGS="$xorg_testset_save_CFLAGS"
  7732. eval supported=\$$cacheid
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7734. $as_echo "$supported" >&6; }
  7735. if test "$supported" = "yes" ; then
  7736. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7737. found="yes"
  7738. fi
  7739. fi
  7740. xorg_testset_save_CFLAGS="$CFLAGS"
  7741. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7742. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7744. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7745. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7749. /* end confdefs.h. */
  7750. int i;
  7751. _ACEOF
  7752. if ac_fn_c_try_compile "$LINENO"; then :
  7753. xorg_cv_cc_flag_unknown_warning_option=yes
  7754. else
  7755. xorg_cv_cc_flag_unknown_warning_option=no
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7758. fi
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7760. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7761. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7762. CFLAGS="$xorg_testset_save_CFLAGS"
  7763. fi
  7764. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7765. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7766. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7767. fi
  7768. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7770. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7771. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7772. $as_echo_n "(cached) " >&6
  7773. else
  7774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7775. /* end confdefs.h. */
  7776. int i;
  7777. _ACEOF
  7778. if ac_fn_c_try_compile "$LINENO"; then :
  7779. xorg_cv_cc_flag_unused_command_line_argument=yes
  7780. else
  7781. xorg_cv_cc_flag_unused_command_line_argument=no
  7782. fi
  7783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7784. fi
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7786. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7787. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7788. CFLAGS="$xorg_testset_save_CFLAGS"
  7789. fi
  7790. found="no"
  7791. if test $found = "no" ; then
  7792. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7793. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7794. fi
  7795. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7796. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7797. fi
  7798. CFLAGS="$CFLAGS -Warray-bounds"
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7800. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7801. cacheid=xorg_cv_cc_flag__Warray_bounds
  7802. if eval \${$cacheid+:} false; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7806. /* end confdefs.h. */
  7807. int i;
  7808. int
  7809. main ()
  7810. {
  7811. ;
  7812. return 0;
  7813. }
  7814. _ACEOF
  7815. if ac_fn_c_try_link "$LINENO"; then :
  7816. eval $cacheid=yes
  7817. else
  7818. eval $cacheid=no
  7819. fi
  7820. rm -f core conftest.err conftest.$ac_objext \
  7821. conftest$ac_exeext conftest.$ac_ext
  7822. fi
  7823. CFLAGS="$xorg_testset_save_CFLAGS"
  7824. eval supported=\$$cacheid
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7826. $as_echo "$supported" >&6; }
  7827. if test "$supported" = "yes" ; then
  7828. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7829. found="yes"
  7830. fi
  7831. fi
  7832. xorg_testset_save_CFLAGS="$CFLAGS"
  7833. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7834. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7836. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7837. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7841. /* end confdefs.h. */
  7842. int i;
  7843. _ACEOF
  7844. if ac_fn_c_try_compile "$LINENO"; then :
  7845. xorg_cv_cc_flag_unknown_warning_option=yes
  7846. else
  7847. xorg_cv_cc_flag_unknown_warning_option=no
  7848. fi
  7849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7852. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7853. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7854. CFLAGS="$xorg_testset_save_CFLAGS"
  7855. fi
  7856. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7857. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7858. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7859. fi
  7860. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7862. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7863. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7867. /* end confdefs.h. */
  7868. int i;
  7869. _ACEOF
  7870. if ac_fn_c_try_compile "$LINENO"; then :
  7871. xorg_cv_cc_flag_unused_command_line_argument=yes
  7872. else
  7873. xorg_cv_cc_flag_unused_command_line_argument=no
  7874. fi
  7875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7876. fi
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7878. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7879. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7880. CFLAGS="$xorg_testset_save_CFLAGS"
  7881. fi
  7882. found="no"
  7883. if test $found = "no" ; then
  7884. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7885. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7886. fi
  7887. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7888. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7889. fi
  7890. CFLAGS="$CFLAGS -Wwrite-strings"
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7892. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7893. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7894. if eval \${$cacheid+:} false; then :
  7895. $as_echo_n "(cached) " >&6
  7896. else
  7897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7898. /* end confdefs.h. */
  7899. int i;
  7900. int
  7901. main ()
  7902. {
  7903. ;
  7904. return 0;
  7905. }
  7906. _ACEOF
  7907. if ac_fn_c_try_link "$LINENO"; then :
  7908. eval $cacheid=yes
  7909. else
  7910. eval $cacheid=no
  7911. fi
  7912. rm -f core conftest.err conftest.$ac_objext \
  7913. conftest$ac_exeext conftest.$ac_ext
  7914. fi
  7915. CFLAGS="$xorg_testset_save_CFLAGS"
  7916. eval supported=\$$cacheid
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7918. $as_echo "$supported" >&6; }
  7919. if test "$supported" = "yes" ; then
  7920. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7921. found="yes"
  7922. fi
  7923. fi
  7924. xorg_testset_save_CFLAGS="$CFLAGS"
  7925. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7926. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7928. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7929. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7930. $as_echo_n "(cached) " >&6
  7931. else
  7932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7933. /* end confdefs.h. */
  7934. int i;
  7935. _ACEOF
  7936. if ac_fn_c_try_compile "$LINENO"; then :
  7937. xorg_cv_cc_flag_unknown_warning_option=yes
  7938. else
  7939. xorg_cv_cc_flag_unknown_warning_option=no
  7940. fi
  7941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7944. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7945. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7946. CFLAGS="$xorg_testset_save_CFLAGS"
  7947. fi
  7948. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7949. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7950. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7951. fi
  7952. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7954. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7955. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7956. $as_echo_n "(cached) " >&6
  7957. else
  7958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7959. /* end confdefs.h. */
  7960. int i;
  7961. _ACEOF
  7962. if ac_fn_c_try_compile "$LINENO"; then :
  7963. xorg_cv_cc_flag_unused_command_line_argument=yes
  7964. else
  7965. xorg_cv_cc_flag_unused_command_line_argument=no
  7966. fi
  7967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7968. fi
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7970. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7971. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7972. CFLAGS="$xorg_testset_save_CFLAGS"
  7973. fi
  7974. found="no"
  7975. if test $found = "no" ; then
  7976. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7977. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7978. fi
  7979. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7980. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7981. fi
  7982. CFLAGS="$CFLAGS -Waddress"
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7984. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7985. cacheid=xorg_cv_cc_flag__Waddress
  7986. if eval \${$cacheid+:} false; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7990. /* end confdefs.h. */
  7991. int i;
  7992. int
  7993. main ()
  7994. {
  7995. ;
  7996. return 0;
  7997. }
  7998. _ACEOF
  7999. if ac_fn_c_try_link "$LINENO"; then :
  8000. eval $cacheid=yes
  8001. else
  8002. eval $cacheid=no
  8003. fi
  8004. rm -f core conftest.err conftest.$ac_objext \
  8005. conftest$ac_exeext conftest.$ac_ext
  8006. fi
  8007. CFLAGS="$xorg_testset_save_CFLAGS"
  8008. eval supported=\$$cacheid
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8010. $as_echo "$supported" >&6; }
  8011. if test "$supported" = "yes" ; then
  8012. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8013. found="yes"
  8014. fi
  8015. fi
  8016. xorg_testset_save_CFLAGS="$CFLAGS"
  8017. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8018. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8020. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8021. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8022. $as_echo_n "(cached) " >&6
  8023. else
  8024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8025. /* end confdefs.h. */
  8026. int i;
  8027. _ACEOF
  8028. if ac_fn_c_try_compile "$LINENO"; then :
  8029. xorg_cv_cc_flag_unknown_warning_option=yes
  8030. else
  8031. xorg_cv_cc_flag_unknown_warning_option=no
  8032. fi
  8033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8034. fi
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8036. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8037. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8038. CFLAGS="$xorg_testset_save_CFLAGS"
  8039. fi
  8040. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8041. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8042. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8043. fi
  8044. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8046. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8047. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8048. $as_echo_n "(cached) " >&6
  8049. else
  8050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8051. /* end confdefs.h. */
  8052. int i;
  8053. _ACEOF
  8054. if ac_fn_c_try_compile "$LINENO"; then :
  8055. xorg_cv_cc_flag_unused_command_line_argument=yes
  8056. else
  8057. xorg_cv_cc_flag_unused_command_line_argument=no
  8058. fi
  8059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8060. fi
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8062. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8063. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8064. CFLAGS="$xorg_testset_save_CFLAGS"
  8065. fi
  8066. found="no"
  8067. if test $found = "no" ; then
  8068. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8069. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8070. fi
  8071. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8072. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8073. fi
  8074. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8076. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8077. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8078. if eval \${$cacheid+:} false; then :
  8079. $as_echo_n "(cached) " >&6
  8080. else
  8081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8082. /* end confdefs.h. */
  8083. int i;
  8084. int
  8085. main ()
  8086. {
  8087. ;
  8088. return 0;
  8089. }
  8090. _ACEOF
  8091. if ac_fn_c_try_link "$LINENO"; then :
  8092. eval $cacheid=yes
  8093. else
  8094. eval $cacheid=no
  8095. fi
  8096. rm -f core conftest.err conftest.$ac_objext \
  8097. conftest$ac_exeext conftest.$ac_ext
  8098. fi
  8099. CFLAGS="$xorg_testset_save_CFLAGS"
  8100. eval supported=\$$cacheid
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8102. $as_echo "$supported" >&6; }
  8103. if test "$supported" = "yes" ; then
  8104. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8105. found="yes"
  8106. fi
  8107. fi
  8108. xorg_testset_save_CFLAGS="$CFLAGS"
  8109. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8110. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8112. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8113. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8114. $as_echo_n "(cached) " >&6
  8115. else
  8116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8117. /* end confdefs.h. */
  8118. int i;
  8119. _ACEOF
  8120. if ac_fn_c_try_compile "$LINENO"; then :
  8121. xorg_cv_cc_flag_unknown_warning_option=yes
  8122. else
  8123. xorg_cv_cc_flag_unknown_warning_option=no
  8124. fi
  8125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8126. fi
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8128. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8129. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8130. CFLAGS="$xorg_testset_save_CFLAGS"
  8131. fi
  8132. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8133. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8134. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8135. fi
  8136. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8138. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8139. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8140. $as_echo_n "(cached) " >&6
  8141. else
  8142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8143. /* end confdefs.h. */
  8144. int i;
  8145. _ACEOF
  8146. if ac_fn_c_try_compile "$LINENO"; then :
  8147. xorg_cv_cc_flag_unused_command_line_argument=yes
  8148. else
  8149. xorg_cv_cc_flag_unused_command_line_argument=no
  8150. fi
  8151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8152. fi
  8153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8154. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8155. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8156. CFLAGS="$xorg_testset_save_CFLAGS"
  8157. fi
  8158. found="no"
  8159. if test $found = "no" ; then
  8160. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8161. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8162. fi
  8163. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8164. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8165. fi
  8166. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8168. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8169. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8170. if eval \${$cacheid+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8174. /* end confdefs.h. */
  8175. int i;
  8176. int
  8177. main ()
  8178. {
  8179. ;
  8180. return 0;
  8181. }
  8182. _ACEOF
  8183. if ac_fn_c_try_link "$LINENO"; then :
  8184. eval $cacheid=yes
  8185. else
  8186. eval $cacheid=no
  8187. fi
  8188. rm -f core conftest.err conftest.$ac_objext \
  8189. conftest$ac_exeext conftest.$ac_ext
  8190. fi
  8191. CFLAGS="$xorg_testset_save_CFLAGS"
  8192. eval supported=\$$cacheid
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8194. $as_echo "$supported" >&6; }
  8195. if test "$supported" = "yes" ; then
  8196. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8197. found="yes"
  8198. fi
  8199. fi
  8200. fi
  8201. CWARNFLAGS="$BASE_CFLAGS"
  8202. if test "x$GCC" = xyes ; then
  8203. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8204. fi
  8205. # Check whether --enable-strict-compilation was given.
  8206. if test "${enable_strict_compilation+set}" = set; then :
  8207. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8208. else
  8209. STRICT_COMPILE=no
  8210. fi
  8211. STRICT_CFLAGS=""
  8212. xorg_testset_save_CFLAGS="$CFLAGS"
  8213. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8214. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8216. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8217. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8218. $as_echo_n "(cached) " >&6
  8219. else
  8220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8221. /* end confdefs.h. */
  8222. int i;
  8223. _ACEOF
  8224. if ac_fn_c_try_compile "$LINENO"; then :
  8225. xorg_cv_cc_flag_unknown_warning_option=yes
  8226. else
  8227. xorg_cv_cc_flag_unknown_warning_option=no
  8228. fi
  8229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8230. fi
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8232. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8233. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8234. CFLAGS="$xorg_testset_save_CFLAGS"
  8235. fi
  8236. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8237. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8238. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8239. fi
  8240. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8242. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8243. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8244. $as_echo_n "(cached) " >&6
  8245. else
  8246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8247. /* end confdefs.h. */
  8248. int i;
  8249. _ACEOF
  8250. if ac_fn_c_try_compile "$LINENO"; then :
  8251. xorg_cv_cc_flag_unused_command_line_argument=yes
  8252. else
  8253. xorg_cv_cc_flag_unused_command_line_argument=no
  8254. fi
  8255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8256. fi
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8258. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8259. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8260. CFLAGS="$xorg_testset_save_CFLAGS"
  8261. fi
  8262. found="no"
  8263. if test $found = "no" ; then
  8264. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8265. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8266. fi
  8267. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8268. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8269. fi
  8270. CFLAGS="$CFLAGS -pedantic"
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8272. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8273. cacheid=xorg_cv_cc_flag__pedantic
  8274. if eval \${$cacheid+:} false; then :
  8275. $as_echo_n "(cached) " >&6
  8276. else
  8277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8278. /* end confdefs.h. */
  8279. int i;
  8280. int
  8281. main ()
  8282. {
  8283. ;
  8284. return 0;
  8285. }
  8286. _ACEOF
  8287. if ac_fn_c_try_link "$LINENO"; then :
  8288. eval $cacheid=yes
  8289. else
  8290. eval $cacheid=no
  8291. fi
  8292. rm -f core conftest.err conftest.$ac_objext \
  8293. conftest$ac_exeext conftest.$ac_ext
  8294. fi
  8295. CFLAGS="$xorg_testset_save_CFLAGS"
  8296. eval supported=\$$cacheid
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8298. $as_echo "$supported" >&6; }
  8299. if test "$supported" = "yes" ; then
  8300. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8301. found="yes"
  8302. fi
  8303. fi
  8304. xorg_testset_save_CFLAGS="$CFLAGS"
  8305. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8306. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8308. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8309. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8310. $as_echo_n "(cached) " >&6
  8311. else
  8312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8313. /* end confdefs.h. */
  8314. int i;
  8315. _ACEOF
  8316. if ac_fn_c_try_compile "$LINENO"; then :
  8317. xorg_cv_cc_flag_unknown_warning_option=yes
  8318. else
  8319. xorg_cv_cc_flag_unknown_warning_option=no
  8320. fi
  8321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8322. fi
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8324. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8325. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8326. CFLAGS="$xorg_testset_save_CFLAGS"
  8327. fi
  8328. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8329. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8330. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8331. fi
  8332. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8334. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8335. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8339. /* end confdefs.h. */
  8340. int i;
  8341. _ACEOF
  8342. if ac_fn_c_try_compile "$LINENO"; then :
  8343. xorg_cv_cc_flag_unused_command_line_argument=yes
  8344. else
  8345. xorg_cv_cc_flag_unused_command_line_argument=no
  8346. fi
  8347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8348. fi
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8350. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8351. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8352. CFLAGS="$xorg_testset_save_CFLAGS"
  8353. fi
  8354. found="no"
  8355. if test $found = "no" ; then
  8356. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8358. fi
  8359. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8360. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8361. fi
  8362. CFLAGS="$CFLAGS -Werror"
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8364. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8365. cacheid=xorg_cv_cc_flag__Werror
  8366. if eval \${$cacheid+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int i;
  8372. int
  8373. main ()
  8374. {
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. if ac_fn_c_try_link "$LINENO"; then :
  8380. eval $cacheid=yes
  8381. else
  8382. eval $cacheid=no
  8383. fi
  8384. rm -f core conftest.err conftest.$ac_objext \
  8385. conftest$ac_exeext conftest.$ac_ext
  8386. fi
  8387. CFLAGS="$xorg_testset_save_CFLAGS"
  8388. eval supported=\$$cacheid
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8390. $as_echo "$supported" >&6; }
  8391. if test "$supported" = "yes" ; then
  8392. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8393. found="yes"
  8394. fi
  8395. fi
  8396. if test $found = "no" ; then
  8397. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8398. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8399. fi
  8400. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8401. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8402. fi
  8403. CFLAGS="$CFLAGS -errwarn"
  8404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8405. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8406. cacheid=xorg_cv_cc_flag__errwarn
  8407. if eval \${$cacheid+:} false; then :
  8408. $as_echo_n "(cached) " >&6
  8409. else
  8410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8411. /* end confdefs.h. */
  8412. int i;
  8413. int
  8414. main ()
  8415. {
  8416. ;
  8417. return 0;
  8418. }
  8419. _ACEOF
  8420. if ac_fn_c_try_link "$LINENO"; then :
  8421. eval $cacheid=yes
  8422. else
  8423. eval $cacheid=no
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext \
  8426. conftest$ac_exeext conftest.$ac_ext
  8427. fi
  8428. CFLAGS="$xorg_testset_save_CFLAGS"
  8429. eval supported=\$$cacheid
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8431. $as_echo "$supported" >&6; }
  8432. if test "$supported" = "yes" ; then
  8433. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8434. found="yes"
  8435. fi
  8436. fi
  8437. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8438. # activate it with -Werror, so we add it here explicitly.
  8439. xorg_testset_save_CFLAGS="$CFLAGS"
  8440. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8441. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8443. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8444. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8445. $as_echo_n "(cached) " >&6
  8446. else
  8447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8448. /* end confdefs.h. */
  8449. int i;
  8450. _ACEOF
  8451. if ac_fn_c_try_compile "$LINENO"; then :
  8452. xorg_cv_cc_flag_unknown_warning_option=yes
  8453. else
  8454. xorg_cv_cc_flag_unknown_warning_option=no
  8455. fi
  8456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8457. fi
  8458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8459. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8460. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8461. CFLAGS="$xorg_testset_save_CFLAGS"
  8462. fi
  8463. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8464. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8465. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8466. fi
  8467. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8469. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8470. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. int i;
  8476. _ACEOF
  8477. if ac_fn_c_try_compile "$LINENO"; then :
  8478. xorg_cv_cc_flag_unused_command_line_argument=yes
  8479. else
  8480. xorg_cv_cc_flag_unused_command_line_argument=no
  8481. fi
  8482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8483. fi
  8484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8485. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8486. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8487. CFLAGS="$xorg_testset_save_CFLAGS"
  8488. fi
  8489. found="no"
  8490. if test $found = "no" ; then
  8491. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8492. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8493. fi
  8494. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8495. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8496. fi
  8497. CFLAGS="$CFLAGS -Werror=attributes"
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8499. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8500. cacheid=xorg_cv_cc_flag__Werror_attributes
  8501. if eval \${$cacheid+:} false; then :
  8502. $as_echo_n "(cached) " >&6
  8503. else
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. int i;
  8507. int
  8508. main ()
  8509. {
  8510. ;
  8511. return 0;
  8512. }
  8513. _ACEOF
  8514. if ac_fn_c_try_link "$LINENO"; then :
  8515. eval $cacheid=yes
  8516. else
  8517. eval $cacheid=no
  8518. fi
  8519. rm -f core conftest.err conftest.$ac_objext \
  8520. conftest$ac_exeext conftest.$ac_ext
  8521. fi
  8522. CFLAGS="$xorg_testset_save_CFLAGS"
  8523. eval supported=\$$cacheid
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8525. $as_echo "$supported" >&6; }
  8526. if test "$supported" = "yes" ; then
  8527. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8528. found="yes"
  8529. fi
  8530. fi
  8531. if test "x$STRICT_COMPILE" = "xyes"; then
  8532. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8533. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8534. fi
  8535. cat >>confdefs.h <<_ACEOF
  8536. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8537. _ACEOF
  8538. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8539. if test "x$PVM" = "x"; then
  8540. PVM="0"
  8541. fi
  8542. cat >>confdefs.h <<_ACEOF
  8543. #define PACKAGE_VERSION_MINOR $PVM
  8544. _ACEOF
  8545. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8546. if test "x$PVP" = "x"; then
  8547. PVP="0"
  8548. fi
  8549. cat >>confdefs.h <<_ACEOF
  8550. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8551. _ACEOF
  8552. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8553. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8554. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8555. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8556. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8557. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8558. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8559. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8560. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8561. if test x$APP_MAN_SUFFIX = x ; then
  8562. APP_MAN_SUFFIX=1
  8563. fi
  8564. if test x$APP_MAN_DIR = x ; then
  8565. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8566. fi
  8567. if test x$LIB_MAN_SUFFIX = x ; then
  8568. LIB_MAN_SUFFIX=3
  8569. fi
  8570. if test x$LIB_MAN_DIR = x ; then
  8571. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8572. fi
  8573. if test x$FILE_MAN_SUFFIX = x ; then
  8574. case $host_os in
  8575. solaris*) FILE_MAN_SUFFIX=4 ;;
  8576. *) FILE_MAN_SUFFIX=5 ;;
  8577. esac
  8578. fi
  8579. if test x$FILE_MAN_DIR = x ; then
  8580. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8581. fi
  8582. if test x$MISC_MAN_SUFFIX = x ; then
  8583. case $host_os in
  8584. solaris*) MISC_MAN_SUFFIX=5 ;;
  8585. *) MISC_MAN_SUFFIX=7 ;;
  8586. esac
  8587. fi
  8588. if test x$MISC_MAN_DIR = x ; then
  8589. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8590. fi
  8591. if test x$DRIVER_MAN_SUFFIX = x ; then
  8592. case $host_os in
  8593. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8594. *) DRIVER_MAN_SUFFIX=4 ;;
  8595. esac
  8596. fi
  8597. if test x$DRIVER_MAN_DIR = x ; then
  8598. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8599. fi
  8600. if test x$ADMIN_MAN_SUFFIX = x ; then
  8601. case $host_os in
  8602. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8603. *) ADMIN_MAN_SUFFIX=8 ;;
  8604. esac
  8605. fi
  8606. if test x$ADMIN_MAN_DIR = x ; then
  8607. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8608. fi
  8609. XORG_MAN_PAGE="X Version 11"
  8610. MAN_SUBSTS="\
  8611. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8612. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8613. -e 's|__xservername__|Xorg|g' \
  8614. -e 's|__xconfigfile__|xorg.conf|g' \
  8615. -e 's|__projectroot__|\$(prefix)|g' \
  8616. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8617. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8618. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8619. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8620. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8621. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8622. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8623. # Check whether --enable-silent-rules was given.
  8624. if test "${enable_silent_rules+set}" = set; then :
  8625. enableval=$enable_silent_rules;
  8626. fi
  8627. case $enable_silent_rules in # (((
  8628. yes) AM_DEFAULT_VERBOSITY=0;;
  8629. no) AM_DEFAULT_VERBOSITY=1;;
  8630. *) AM_DEFAULT_VERBOSITY=0;;
  8631. esac
  8632. am_make=${MAKE-make}
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8634. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8635. if ${am_cv_make_support_nested_variables+:} false; then :
  8636. $as_echo_n "(cached) " >&6
  8637. else
  8638. if $as_echo 'TRUE=$(BAR$(V))
  8639. BAR0=false
  8640. BAR1=true
  8641. V=1
  8642. am__doit:
  8643. @$(TRUE)
  8644. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8645. am_cv_make_support_nested_variables=yes
  8646. else
  8647. am_cv_make_support_nested_variables=no
  8648. fi
  8649. fi
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8651. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8652. if test $am_cv_make_support_nested_variables = yes; then
  8653. AM_V='$(V)'
  8654. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8655. else
  8656. AM_V=$AM_DEFAULT_VERBOSITY
  8657. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8658. fi
  8659. AM_BACKSLASH='\'
  8660. for ac_prog in 'bison -y' byacc
  8661. do
  8662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8663. set dummy $ac_prog; ac_word=$2
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8665. $as_echo_n "checking for $ac_word... " >&6; }
  8666. if ${ac_cv_prog_YACC+:} false; then :
  8667. $as_echo_n "(cached) " >&6
  8668. else
  8669. if test -n "$YACC"; then
  8670. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  8671. else
  8672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8673. for as_dir in $PATH
  8674. do
  8675. IFS=$as_save_IFS
  8676. test -z "$as_dir" && as_dir=.
  8677. for ac_exec_ext in '' $ac_executable_extensions; do
  8678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8679. ac_cv_prog_YACC="$ac_prog"
  8680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8681. break 2
  8682. fi
  8683. done
  8684. done
  8685. IFS=$as_save_IFS
  8686. fi
  8687. fi
  8688. YACC=$ac_cv_prog_YACC
  8689. if test -n "$YACC"; then
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  8691. $as_echo "$YACC" >&6; }
  8692. else
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8694. $as_echo "no" >&6; }
  8695. fi
  8696. test -n "$YACC" && break
  8697. done
  8698. test -n "$YACC" || YACC="yacc"
  8699. # Extract the first word of "$YACC", so it can be a program name with args.
  8700. set dummy $YACC; ac_word=$2
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8702. $as_echo_n "checking for $ac_word... " >&6; }
  8703. if ${ac_cv_path_YACC_INST+:} false; then :
  8704. $as_echo_n "(cached) " >&6
  8705. else
  8706. case $YACC_INST in
  8707. [\\/]* | ?:[\\/]*)
  8708. ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
  8709. ;;
  8710. *)
  8711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8712. for as_dir in $PATH
  8713. do
  8714. IFS=$as_save_IFS
  8715. test -z "$as_dir" && as_dir=.
  8716. for ac_exec_ext in '' $ac_executable_extensions; do
  8717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8718. ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
  8719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8720. break 2
  8721. fi
  8722. done
  8723. done
  8724. IFS=$as_save_IFS
  8725. ;;
  8726. esac
  8727. fi
  8728. YACC_INST=$ac_cv_path_YACC_INST
  8729. if test -n "$YACC_INST"; then
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
  8731. $as_echo "$YACC_INST" >&6; }
  8732. else
  8733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8734. $as_echo "no" >&6; }
  8735. fi
  8736. if test ! -f "cfgparse.c"; then
  8737. if test -z "$YACC_INST"; then
  8738. as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
  8739. fi
  8740. fi
  8741. for ac_func in strcasecmp
  8742. do :
  8743. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  8744. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  8745. cat >>confdefs.h <<_ACEOF
  8746. #define HAVE_STRCASECMP 1
  8747. _ACEOF
  8748. fi
  8749. done
  8750. # Checks for pkg-config packages
  8751. pkg_failed=no
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
  8753. $as_echo_n "checking for XKBEVD... " >&6; }
  8754. if test -n "$XKBEVD_CFLAGS"; then
  8755. pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
  8756. elif test -n "$PKG_CONFIG"; then
  8757. if test -n "$PKG_CONFIG" && \
  8758. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
  8759. ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
  8760. ac_status=$?
  8761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8762. test $ac_status = 0; }; then
  8763. pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
  8764. test "x$?" != "x0" && pkg_failed=yes
  8765. else
  8766. pkg_failed=yes
  8767. fi
  8768. else
  8769. pkg_failed=untried
  8770. fi
  8771. if test -n "$XKBEVD_LIBS"; then
  8772. pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
  8773. elif test -n "$PKG_CONFIG"; then
  8774. if test -n "$PKG_CONFIG" && \
  8775. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
  8776. ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
  8777. ac_status=$?
  8778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8779. test $ac_status = 0; }; then
  8780. pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
  8781. test "x$?" != "x0" && pkg_failed=yes
  8782. else
  8783. pkg_failed=yes
  8784. fi
  8785. else
  8786. pkg_failed=untried
  8787. fi
  8788. if test $pkg_failed = yes; then
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8790. $as_echo "no" >&6; }
  8791. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8792. _pkg_short_errors_supported=yes
  8793. else
  8794. _pkg_short_errors_supported=no
  8795. fi
  8796. if test $_pkg_short_errors_supported = yes; then
  8797. XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11" 2>&1`
  8798. else
  8799. XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11" 2>&1`
  8800. fi
  8801. # Put the nasty error message in config.log where it belongs
  8802. echo "$XKBEVD_PKG_ERRORS" >&5
  8803. as_fn_error $? "Package requirements (xkbfile x11) were not met:
  8804. $XKBEVD_PKG_ERRORS
  8805. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8806. installed software in a non-standard prefix.
  8807. Alternatively, you may set the environment variables XKBEVD_CFLAGS
  8808. and XKBEVD_LIBS to avoid the need to call pkg-config.
  8809. See the pkg-config man page for more details." "$LINENO" 5
  8810. elif test $pkg_failed = untried; then
  8811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8812. $as_echo "no" >&6; }
  8813. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8814. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8815. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8816. is in your PATH or set the PKG_CONFIG environment variable to the full
  8817. path to pkg-config.
  8818. Alternatively, you may set the environment variables XKBEVD_CFLAGS
  8819. and XKBEVD_LIBS to avoid the need to call pkg-config.
  8820. See the pkg-config man page for more details.
  8821. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8822. See \`config.log' for more details" "$LINENO" 5; }
  8823. else
  8824. XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
  8825. XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8827. $as_echo "yes" >&6; }
  8828. fi
  8829. ac_config_files="$ac_config_files Makefile man/Makefile"
  8830. cat >confcache <<\_ACEOF
  8831. # This file is a shell script that caches the results of configure
  8832. # tests run on this system so they can be shared between configure
  8833. # scripts and configure runs, see configure's option --config-cache.
  8834. # It is not useful on other systems. If it contains results you don't
  8835. # want to keep, you may remove or edit it.
  8836. #
  8837. # config.status only pays attention to the cache file if you give it
  8838. # the --recheck option to rerun configure.
  8839. #
  8840. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8841. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8842. # following values.
  8843. _ACEOF
  8844. # The following way of writing the cache mishandles newlines in values,
  8845. # but we know of no workaround that is simple, portable, and efficient.
  8846. # So, we kill variables containing newlines.
  8847. # Ultrix sh set writes to stderr and can't be redirected directly,
  8848. # and sets the high bit in the cache file unless we assign to the vars.
  8849. (
  8850. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8851. eval ac_val=\$$ac_var
  8852. case $ac_val in #(
  8853. *${as_nl}*)
  8854. case $ac_var in #(
  8855. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8856. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8857. esac
  8858. case $ac_var in #(
  8859. _ | IFS | as_nl) ;; #(
  8860. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8861. *) { eval $ac_var=; unset $ac_var;} ;;
  8862. esac ;;
  8863. esac
  8864. done
  8865. (set) 2>&1 |
  8866. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8867. *${as_nl}ac_space=\ *)
  8868. # `set' does not quote correctly, so add quotes: double-quote
  8869. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8870. sed -n \
  8871. "s/'/'\\\\''/g;
  8872. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8873. ;; #(
  8874. *)
  8875. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8876. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8877. ;;
  8878. esac |
  8879. sort
  8880. ) |
  8881. sed '
  8882. /^ac_cv_env_/b end
  8883. t clear
  8884. :clear
  8885. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8886. t end
  8887. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8888. :end' >>confcache
  8889. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8890. if test -w "$cache_file"; then
  8891. if test "x$cache_file" != "x/dev/null"; then
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8893. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8894. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8895. cat confcache >"$cache_file"
  8896. else
  8897. case $cache_file in #(
  8898. */* | ?:*)
  8899. mv -f confcache "$cache_file"$$ &&
  8900. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8901. *)
  8902. mv -f confcache "$cache_file" ;;
  8903. esac
  8904. fi
  8905. fi
  8906. else
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8908. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8909. fi
  8910. fi
  8911. rm -f confcache
  8912. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8913. # Let make expand exec_prefix.
  8914. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8915. DEFS=-DHAVE_CONFIG_H
  8916. ac_libobjs=
  8917. ac_ltlibobjs=
  8918. U=
  8919. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8920. # 1. Remove the extension, and $U if already installed.
  8921. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8922. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8923. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8924. # will be set to the directory where LIBOBJS objects are built.
  8925. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8926. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8927. done
  8928. LIBOBJS=$ac_libobjs
  8929. LTLIBOBJS=$ac_ltlibobjs
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8931. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8932. if test -n "$am_sleep_pid"; then
  8933. # Hide warnings about reused PIDs.
  8934. wait $am_sleep_pid 2>/dev/null
  8935. fi
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8937. $as_echo "done" >&6; }
  8938. if test -n "$EXEEXT"; then
  8939. am__EXEEXT_TRUE=
  8940. am__EXEEXT_FALSE='#'
  8941. else
  8942. am__EXEEXT_TRUE='#'
  8943. am__EXEEXT_FALSE=
  8944. fi
  8945. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8946. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8947. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8948. fi
  8949. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8950. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8951. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8952. fi
  8953. : "${CONFIG_STATUS=./config.status}"
  8954. ac_write_fail=0
  8955. ac_clean_files_save=$ac_clean_files
  8956. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8957. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8958. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8959. as_write_fail=0
  8960. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8961. #! $SHELL
  8962. # Generated by $as_me.
  8963. # Run this file to recreate the current configuration.
  8964. # Compiler output produced by configure, useful for debugging
  8965. # configure, is in config.log if it exists.
  8966. debug=false
  8967. ac_cs_recheck=false
  8968. ac_cs_silent=false
  8969. SHELL=\${CONFIG_SHELL-$SHELL}
  8970. export SHELL
  8971. _ASEOF
  8972. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8973. ## -------------------- ##
  8974. ## M4sh Initialization. ##
  8975. ## -------------------- ##
  8976. # Be more Bourne compatible
  8977. DUALCASE=1; export DUALCASE # for MKS sh
  8978. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8979. emulate sh
  8980. NULLCMD=:
  8981. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8982. # is contrary to our usage. Disable this feature.
  8983. alias -g '${1+"$@"}'='"$@"'
  8984. setopt NO_GLOB_SUBST
  8985. else
  8986. case `(set -o) 2>/dev/null` in #(
  8987. *posix*) :
  8988. set -o posix ;; #(
  8989. *) :
  8990. ;;
  8991. esac
  8992. fi
  8993. as_nl='
  8994. '
  8995. export as_nl
  8996. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8997. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8998. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8999. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9000. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9001. # but without wasting forks for bash or zsh.
  9002. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9003. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9004. as_echo='print -r --'
  9005. as_echo_n='print -rn --'
  9006. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9007. as_echo='printf %s\n'
  9008. as_echo_n='printf %s'
  9009. else
  9010. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9011. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9012. as_echo_n='/usr/ucb/echo -n'
  9013. else
  9014. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9015. as_echo_n_body='eval
  9016. arg=$1;
  9017. case $arg in #(
  9018. *"$as_nl"*)
  9019. expr "X$arg" : "X\\(.*\\)$as_nl";
  9020. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9021. esac;
  9022. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9023. '
  9024. export as_echo_n_body
  9025. as_echo_n='sh -c $as_echo_n_body as_echo'
  9026. fi
  9027. export as_echo_body
  9028. as_echo='sh -c $as_echo_body as_echo'
  9029. fi
  9030. # The user is always right.
  9031. if test "${PATH_SEPARATOR+set}" != set; then
  9032. PATH_SEPARATOR=:
  9033. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9034. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9035. PATH_SEPARATOR=';'
  9036. }
  9037. fi
  9038. # IFS
  9039. # We need space, tab and new line, in precisely that order. Quoting is
  9040. # there to prevent editors from complaining about space-tab.
  9041. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9042. # splitting by setting IFS to empty value.)
  9043. IFS=" "" $as_nl"
  9044. # Find who we are. Look in the path if we contain no directory separator.
  9045. as_myself=
  9046. case $0 in #((
  9047. *[\\/]* ) as_myself=$0 ;;
  9048. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9049. for as_dir in $PATH
  9050. do
  9051. IFS=$as_save_IFS
  9052. test -z "$as_dir" && as_dir=.
  9053. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9054. done
  9055. IFS=$as_save_IFS
  9056. ;;
  9057. esac
  9058. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9059. # in which case we are not to be found in the path.
  9060. if test "x$as_myself" = x; then
  9061. as_myself=$0
  9062. fi
  9063. if test ! -f "$as_myself"; then
  9064. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9065. exit 1
  9066. fi
  9067. # Unset variables that we do not need and which cause bugs (e.g. in
  9068. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9069. # suppresses any "Segmentation fault" message there. '((' could
  9070. # trigger a bug in pdksh 5.2.14.
  9071. for as_var in BASH_ENV ENV MAIL MAILPATH
  9072. do eval test x\${$as_var+set} = xset \
  9073. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9074. done
  9075. PS1='$ '
  9076. PS2='> '
  9077. PS4='+ '
  9078. # NLS nuisances.
  9079. LC_ALL=C
  9080. export LC_ALL
  9081. LANGUAGE=C
  9082. export LANGUAGE
  9083. # CDPATH.
  9084. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9085. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9086. # ----------------------------------------
  9087. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9088. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9089. # script with STATUS, using 1 if that was 0.
  9090. as_fn_error ()
  9091. {
  9092. as_status=$1; test $as_status -eq 0 && as_status=1
  9093. if test "$4"; then
  9094. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9095. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9096. fi
  9097. $as_echo "$as_me: error: $2" >&2
  9098. as_fn_exit $as_status
  9099. } # as_fn_error
  9100. # as_fn_set_status STATUS
  9101. # -----------------------
  9102. # Set $? to STATUS, without forking.
  9103. as_fn_set_status ()
  9104. {
  9105. return $1
  9106. } # as_fn_set_status
  9107. # as_fn_exit STATUS
  9108. # -----------------
  9109. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9110. as_fn_exit ()
  9111. {
  9112. set +e
  9113. as_fn_set_status $1
  9114. exit $1
  9115. } # as_fn_exit
  9116. # as_fn_unset VAR
  9117. # ---------------
  9118. # Portably unset VAR.
  9119. as_fn_unset ()
  9120. {
  9121. { eval $1=; unset $1;}
  9122. }
  9123. as_unset=as_fn_unset
  9124. # as_fn_append VAR VALUE
  9125. # ----------------------
  9126. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9127. # advantage of any shell optimizations that allow amortized linear growth over
  9128. # repeated appends, instead of the typical quadratic growth present in naive
  9129. # implementations.
  9130. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9131. eval 'as_fn_append ()
  9132. {
  9133. eval $1+=\$2
  9134. }'
  9135. else
  9136. as_fn_append ()
  9137. {
  9138. eval $1=\$$1\$2
  9139. }
  9140. fi # as_fn_append
  9141. # as_fn_arith ARG...
  9142. # ------------------
  9143. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9144. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9145. # must be portable across $(()) and expr.
  9146. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9147. eval 'as_fn_arith ()
  9148. {
  9149. as_val=$(( $* ))
  9150. }'
  9151. else
  9152. as_fn_arith ()
  9153. {
  9154. as_val=`expr "$@" || test $? -eq 1`
  9155. }
  9156. fi # as_fn_arith
  9157. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9158. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9159. as_expr=expr
  9160. else
  9161. as_expr=false
  9162. fi
  9163. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9164. as_basename=basename
  9165. else
  9166. as_basename=false
  9167. fi
  9168. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9169. as_dirname=dirname
  9170. else
  9171. as_dirname=false
  9172. fi
  9173. as_me=`$as_basename -- "$0" ||
  9174. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9175. X"$0" : 'X\(//\)$' \| \
  9176. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9177. $as_echo X/"$0" |
  9178. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9179. s//\1/
  9180. q
  9181. }
  9182. /^X\/\(\/\/\)$/{
  9183. s//\1/
  9184. q
  9185. }
  9186. /^X\/\(\/\).*/{
  9187. s//\1/
  9188. q
  9189. }
  9190. s/.*/./; q'`
  9191. # Avoid depending upon Character Ranges.
  9192. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9193. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9194. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9195. as_cr_digits='0123456789'
  9196. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9197. ECHO_C= ECHO_N= ECHO_T=
  9198. case `echo -n x` in #(((((
  9199. -n*)
  9200. case `echo 'xy\c'` in
  9201. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9202. xy) ECHO_C='\c';;
  9203. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9204. ECHO_T=' ';;
  9205. esac;;
  9206. *)
  9207. ECHO_N='-n';;
  9208. esac
  9209. rm -f conf$$ conf$$.exe conf$$.file
  9210. if test -d conf$$.dir; then
  9211. rm -f conf$$.dir/conf$$.file
  9212. else
  9213. rm -f conf$$.dir
  9214. mkdir conf$$.dir 2>/dev/null
  9215. fi
  9216. if (echo >conf$$.file) 2>/dev/null; then
  9217. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9218. as_ln_s='ln -s'
  9219. # ... but there are two gotchas:
  9220. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9221. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9222. # In both cases, we have to default to `cp -pR'.
  9223. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9224. as_ln_s='cp -pR'
  9225. elif ln conf$$.file conf$$ 2>/dev/null; then
  9226. as_ln_s=ln
  9227. else
  9228. as_ln_s='cp -pR'
  9229. fi
  9230. else
  9231. as_ln_s='cp -pR'
  9232. fi
  9233. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9234. rmdir conf$$.dir 2>/dev/null
  9235. # as_fn_mkdir_p
  9236. # -------------
  9237. # Create "$as_dir" as a directory, including parents if necessary.
  9238. as_fn_mkdir_p ()
  9239. {
  9240. case $as_dir in #(
  9241. -*) as_dir=./$as_dir;;
  9242. esac
  9243. test -d "$as_dir" || eval $as_mkdir_p || {
  9244. as_dirs=
  9245. while :; do
  9246. case $as_dir in #(
  9247. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9248. *) as_qdir=$as_dir;;
  9249. esac
  9250. as_dirs="'$as_qdir' $as_dirs"
  9251. as_dir=`$as_dirname -- "$as_dir" ||
  9252. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9253. X"$as_dir" : 'X\(//\)[^/]' \| \
  9254. X"$as_dir" : 'X\(//\)$' \| \
  9255. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9256. $as_echo X"$as_dir" |
  9257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9258. s//\1/
  9259. q
  9260. }
  9261. /^X\(\/\/\)[^/].*/{
  9262. s//\1/
  9263. q
  9264. }
  9265. /^X\(\/\/\)$/{
  9266. s//\1/
  9267. q
  9268. }
  9269. /^X\(\/\).*/{
  9270. s//\1/
  9271. q
  9272. }
  9273. s/.*/./; q'`
  9274. test -d "$as_dir" && break
  9275. done
  9276. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9277. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9278. } # as_fn_mkdir_p
  9279. if mkdir -p . 2>/dev/null; then
  9280. as_mkdir_p='mkdir -p "$as_dir"'
  9281. else
  9282. test -d ./-p && rmdir ./-p
  9283. as_mkdir_p=false
  9284. fi
  9285. # as_fn_executable_p FILE
  9286. # -----------------------
  9287. # Test if FILE is an executable regular file.
  9288. as_fn_executable_p ()
  9289. {
  9290. test -f "$1" && test -x "$1"
  9291. } # as_fn_executable_p
  9292. as_test_x='test -x'
  9293. as_executable_p=as_fn_executable_p
  9294. # Sed expression to map a string onto a valid CPP name.
  9295. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9296. # Sed expression to map a string onto a valid variable name.
  9297. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9298. exec 6>&1
  9299. ## ----------------------------------- ##
  9300. ## Main body of $CONFIG_STATUS script. ##
  9301. ## ----------------------------------- ##
  9302. _ASEOF
  9303. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9305. # Save the log message, to keep $0 and so on meaningful, and to
  9306. # report actual input values of CONFIG_FILES etc. instead of their
  9307. # values after options handling.
  9308. ac_log="
  9309. This file was extended by xkbevd $as_me 1.1.4, which was
  9310. generated by GNU Autoconf 2.69. Invocation command line was
  9311. CONFIG_FILES = $CONFIG_FILES
  9312. CONFIG_HEADERS = $CONFIG_HEADERS
  9313. CONFIG_LINKS = $CONFIG_LINKS
  9314. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9315. $ $0 $@
  9316. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9317. "
  9318. _ACEOF
  9319. case $ac_config_files in *"
  9320. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9321. esac
  9322. case $ac_config_headers in *"
  9323. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9324. esac
  9325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9326. # Files that config.status was made for.
  9327. config_files="$ac_config_files"
  9328. config_headers="$ac_config_headers"
  9329. config_commands="$ac_config_commands"
  9330. _ACEOF
  9331. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9332. ac_cs_usage="\
  9333. \`$as_me' instantiates files and other configuration actions
  9334. from templates according to the current configuration. Unless the files
  9335. and actions are specified as TAGs, all are instantiated by default.
  9336. Usage: $0 [OPTION]... [TAG]...
  9337. -h, --help print this help, then exit
  9338. -V, --version print version number and configuration settings, then exit
  9339. --config print configuration, then exit
  9340. -q, --quiet, --silent
  9341. do not print progress messages
  9342. -d, --debug don't remove temporary files
  9343. --recheck update $as_me by reconfiguring in the same conditions
  9344. --file=FILE[:TEMPLATE]
  9345. instantiate the configuration file FILE
  9346. --header=FILE[:TEMPLATE]
  9347. instantiate the configuration header FILE
  9348. Configuration files:
  9349. $config_files
  9350. Configuration headers:
  9351. $config_headers
  9352. Configuration commands:
  9353. $config_commands
  9354. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9355. _ACEOF
  9356. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9357. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9358. ac_cs_version="\\
  9359. xkbevd config.status 1.1.4
  9360. configured by $0, generated by GNU Autoconf 2.69,
  9361. with options \\"\$ac_cs_config\\"
  9362. Copyright (C) 2012 Free Software Foundation, Inc.
  9363. This config.status script is free software; the Free Software Foundation
  9364. gives unlimited permission to copy, distribute and modify it."
  9365. ac_pwd='$ac_pwd'
  9366. srcdir='$srcdir'
  9367. INSTALL='$INSTALL'
  9368. MKDIR_P='$MKDIR_P'
  9369. AWK='$AWK'
  9370. test -n "\$AWK" || AWK=awk
  9371. _ACEOF
  9372. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9373. # The default lists apply if the user does not specify any file.
  9374. ac_need_defaults=:
  9375. while test $# != 0
  9376. do
  9377. case $1 in
  9378. --*=?*)
  9379. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9380. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9381. ac_shift=:
  9382. ;;
  9383. --*=)
  9384. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9385. ac_optarg=
  9386. ac_shift=:
  9387. ;;
  9388. *)
  9389. ac_option=$1
  9390. ac_optarg=$2
  9391. ac_shift=shift
  9392. ;;
  9393. esac
  9394. case $ac_option in
  9395. # Handling of the options.
  9396. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9397. ac_cs_recheck=: ;;
  9398. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9399. $as_echo "$ac_cs_version"; exit ;;
  9400. --config | --confi | --conf | --con | --co | --c )
  9401. $as_echo "$ac_cs_config"; exit ;;
  9402. --debug | --debu | --deb | --de | --d | -d )
  9403. debug=: ;;
  9404. --file | --fil | --fi | --f )
  9405. $ac_shift
  9406. case $ac_optarg in
  9407. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9408. '') as_fn_error $? "missing file argument" ;;
  9409. esac
  9410. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9411. ac_need_defaults=false;;
  9412. --header | --heade | --head | --hea )
  9413. $ac_shift
  9414. case $ac_optarg in
  9415. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9416. esac
  9417. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9418. ac_need_defaults=false;;
  9419. --he | --h)
  9420. # Conflict between --help and --header
  9421. as_fn_error $? "ambiguous option: \`$1'
  9422. Try \`$0 --help' for more information.";;
  9423. --help | --hel | -h )
  9424. $as_echo "$ac_cs_usage"; exit ;;
  9425. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9426. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9427. ac_cs_silent=: ;;
  9428. # This is an error.
  9429. -*) as_fn_error $? "unrecognized option: \`$1'
  9430. Try \`$0 --help' for more information." ;;
  9431. *) as_fn_append ac_config_targets " $1"
  9432. ac_need_defaults=false ;;
  9433. esac
  9434. shift
  9435. done
  9436. ac_configure_extra_args=
  9437. if $ac_cs_silent; then
  9438. exec 6>/dev/null
  9439. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9440. fi
  9441. _ACEOF
  9442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9443. if \$ac_cs_recheck; then
  9444. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9445. shift
  9446. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9447. CONFIG_SHELL='$SHELL'
  9448. export CONFIG_SHELL
  9449. exec "\$@"
  9450. fi
  9451. _ACEOF
  9452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9453. exec 5>>config.log
  9454. {
  9455. echo
  9456. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9457. ## Running $as_me. ##
  9458. _ASBOX
  9459. $as_echo "$ac_log"
  9460. } >&5
  9461. _ACEOF
  9462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9463. #
  9464. # INIT-COMMANDS
  9465. #
  9466. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9467. _ACEOF
  9468. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9469. # Handling of arguments.
  9470. for ac_config_target in $ac_config_targets
  9471. do
  9472. case $ac_config_target in
  9473. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9474. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9475. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9476. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9477. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9478. esac
  9479. done
  9480. # If the user did not use the arguments to specify the items to instantiate,
  9481. # then the envvar interface is used. Set only those that are not.
  9482. # We use the long form for the default assignment because of an extremely
  9483. # bizarre bug on SunOS 4.1.3.
  9484. if $ac_need_defaults; then
  9485. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9486. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9487. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9488. fi
  9489. # Have a temporary directory for convenience. Make it in the build tree
  9490. # simply because there is no reason against having it here, and in addition,
  9491. # creating and moving files from /tmp can sometimes cause problems.
  9492. # Hook for its removal unless debugging.
  9493. # Note that there is a small window in which the directory will not be cleaned:
  9494. # after its creation but before its name has been assigned to `$tmp'.
  9495. $debug ||
  9496. {
  9497. tmp= ac_tmp=
  9498. trap 'exit_status=$?
  9499. : "${ac_tmp:=$tmp}"
  9500. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9501. ' 0
  9502. trap 'as_fn_exit 1' 1 2 13 15
  9503. }
  9504. # Create a (secure) tmp directory for tmp files.
  9505. {
  9506. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9507. test -d "$tmp"
  9508. } ||
  9509. {
  9510. tmp=./conf$$-$RANDOM
  9511. (umask 077 && mkdir "$tmp")
  9512. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9513. ac_tmp=$tmp
  9514. # Set up the scripts for CONFIG_FILES section.
  9515. # No need to generate them if there are no CONFIG_FILES.
  9516. # This happens for instance with `./config.status config.h'.
  9517. if test -n "$CONFIG_FILES"; then
  9518. ac_cr=`echo X | tr X '\015'`
  9519. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9520. # But we know of no other shell where ac_cr would be empty at this
  9521. # point, so we can use a bashism as a fallback.
  9522. if test "x$ac_cr" = x; then
  9523. eval ac_cr=\$\'\\r\'
  9524. fi
  9525. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9526. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9527. ac_cs_awk_cr='\\r'
  9528. else
  9529. ac_cs_awk_cr=$ac_cr
  9530. fi
  9531. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9532. _ACEOF
  9533. {
  9534. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9535. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9536. echo "_ACEOF"
  9537. } >conf$$subs.sh ||
  9538. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9539. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9540. ac_delim='%!_!# '
  9541. for ac_last_try in false false false false false :; do
  9542. . ./conf$$subs.sh ||
  9543. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9544. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9545. if test $ac_delim_n = $ac_delim_num; then
  9546. break
  9547. elif $ac_last_try; then
  9548. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9549. else
  9550. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9551. fi
  9552. done
  9553. rm -f conf$$subs.sh
  9554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9555. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9556. _ACEOF
  9557. sed -n '
  9558. h
  9559. s/^/S["/; s/!.*/"]=/
  9560. p
  9561. g
  9562. s/^[^!]*!//
  9563. :repl
  9564. t repl
  9565. s/'"$ac_delim"'$//
  9566. t delim
  9567. :nl
  9568. h
  9569. s/\(.\{148\}\)..*/\1/
  9570. t more1
  9571. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9572. p
  9573. n
  9574. b repl
  9575. :more1
  9576. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9577. p
  9578. g
  9579. s/.\{148\}//
  9580. t nl
  9581. :delim
  9582. h
  9583. s/\(.\{148\}\)..*/\1/
  9584. t more2
  9585. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9586. p
  9587. b
  9588. :more2
  9589. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9590. p
  9591. g
  9592. s/.\{148\}//
  9593. t delim
  9594. ' <conf$$subs.awk | sed '
  9595. /^[^""]/{
  9596. N
  9597. s/\n//
  9598. }
  9599. ' >>$CONFIG_STATUS || ac_write_fail=1
  9600. rm -f conf$$subs.awk
  9601. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9602. _ACAWK
  9603. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9604. for (key in S) S_is_set[key] = 1
  9605. FS = ""
  9606. }
  9607. {
  9608. line = $ 0
  9609. nfields = split(line, field, "@")
  9610. substed = 0
  9611. len = length(field[1])
  9612. for (i = 2; i < nfields; i++) {
  9613. key = field[i]
  9614. keylen = length(key)
  9615. if (S_is_set[key]) {
  9616. value = S[key]
  9617. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9618. len += length(value) + length(field[++i])
  9619. substed = 1
  9620. } else
  9621. len += 1 + keylen
  9622. }
  9623. print line
  9624. }
  9625. _ACAWK
  9626. _ACEOF
  9627. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9628. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9629. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9630. else
  9631. cat
  9632. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9633. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9634. _ACEOF
  9635. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9636. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9637. # trailing colons and then remove the whole line if VPATH becomes empty
  9638. # (actually we leave an empty line to preserve line numbers).
  9639. if test "x$srcdir" = x.; then
  9640. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9641. h
  9642. s///
  9643. s/^/:/
  9644. s/[ ]*$/:/
  9645. s/:\$(srcdir):/:/g
  9646. s/:\${srcdir}:/:/g
  9647. s/:@srcdir@:/:/g
  9648. s/^:*//
  9649. s/:*$//
  9650. x
  9651. s/\(=[ ]*\).*/\1/
  9652. G
  9653. s/\n//
  9654. s/^[^=]*=[ ]*$//
  9655. }'
  9656. fi
  9657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9658. fi # test -n "$CONFIG_FILES"
  9659. # Set up the scripts for CONFIG_HEADERS section.
  9660. # No need to generate them if there are no CONFIG_HEADERS.
  9661. # This happens for instance with `./config.status Makefile'.
  9662. if test -n "$CONFIG_HEADERS"; then
  9663. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9664. BEGIN {
  9665. _ACEOF
  9666. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9667. # here-document in config.status, that substitutes the proper values into
  9668. # config.h.in to produce config.h.
  9669. # Create a delimiter string that does not exist in confdefs.h, to ease
  9670. # handling of long lines.
  9671. ac_delim='%!_!# '
  9672. for ac_last_try in false false :; do
  9673. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9674. if test -z "$ac_tt"; then
  9675. break
  9676. elif $ac_last_try; then
  9677. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9678. else
  9679. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9680. fi
  9681. done
  9682. # For the awk script, D is an array of macro values keyed by name,
  9683. # likewise P contains macro parameters if any. Preserve backslash
  9684. # newline sequences.
  9685. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9686. sed -n '
  9687. s/.\{148\}/&'"$ac_delim"'/g
  9688. t rset
  9689. :rset
  9690. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9691. t def
  9692. d
  9693. :def
  9694. s/\\$//
  9695. t bsnl
  9696. s/["\\]/\\&/g
  9697. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9698. D["\1"]=" \3"/p
  9699. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9700. d
  9701. :bsnl
  9702. s/["\\]/\\&/g
  9703. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9704. D["\1"]=" \3\\\\\\n"\\/p
  9705. t cont
  9706. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9707. t cont
  9708. d
  9709. :cont
  9710. n
  9711. s/.\{148\}/&'"$ac_delim"'/g
  9712. t clear
  9713. :clear
  9714. s/\\$//
  9715. t bsnlc
  9716. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9717. d
  9718. :bsnlc
  9719. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9720. b cont
  9721. ' <confdefs.h | sed '
  9722. s/'"$ac_delim"'/"\\\
  9723. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9724. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9725. for (key in D) D_is_set[key] = 1
  9726. FS = ""
  9727. }
  9728. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9729. line = \$ 0
  9730. split(line, arg, " ")
  9731. if (arg[1] == "#") {
  9732. defundef = arg[2]
  9733. mac1 = arg[3]
  9734. } else {
  9735. defundef = substr(arg[1], 2)
  9736. mac1 = arg[2]
  9737. }
  9738. split(mac1, mac2, "(") #)
  9739. macro = mac2[1]
  9740. prefix = substr(line, 1, index(line, defundef) - 1)
  9741. if (D_is_set[macro]) {
  9742. # Preserve the white space surrounding the "#".
  9743. print prefix "define", macro P[macro] D[macro]
  9744. next
  9745. } else {
  9746. # Replace #undef with comments. This is necessary, for example,
  9747. # in the case of _POSIX_SOURCE, which is predefined and required
  9748. # on some systems where configure will not decide to define it.
  9749. if (defundef == "undef") {
  9750. print "/*", prefix defundef, macro, "*/"
  9751. next
  9752. }
  9753. }
  9754. }
  9755. { print }
  9756. _ACAWK
  9757. _ACEOF
  9758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9759. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9760. fi # test -n "$CONFIG_HEADERS"
  9761. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9762. shift
  9763. for ac_tag
  9764. do
  9765. case $ac_tag in
  9766. :[FHLC]) ac_mode=$ac_tag; continue;;
  9767. esac
  9768. case $ac_mode$ac_tag in
  9769. :[FHL]*:*);;
  9770. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9771. :[FH]-) ac_tag=-:-;;
  9772. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9773. esac
  9774. ac_save_IFS=$IFS
  9775. IFS=:
  9776. set x $ac_tag
  9777. IFS=$ac_save_IFS
  9778. shift
  9779. ac_file=$1
  9780. shift
  9781. case $ac_mode in
  9782. :L) ac_source=$1;;
  9783. :[FH])
  9784. ac_file_inputs=
  9785. for ac_f
  9786. do
  9787. case $ac_f in
  9788. -) ac_f="$ac_tmp/stdin";;
  9789. *) # Look for the file first in the build tree, then in the source tree
  9790. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9791. # because $ac_f cannot contain `:'.
  9792. test -f "$ac_f" ||
  9793. case $ac_f in
  9794. [\\/$]*) false;;
  9795. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9796. esac ||
  9797. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9798. esac
  9799. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9800. as_fn_append ac_file_inputs " '$ac_f'"
  9801. done
  9802. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9803. # use $as_me), people would be surprised to read:
  9804. # /* config.h. Generated by config.status. */
  9805. configure_input='Generated from '`
  9806. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9807. `' by configure.'
  9808. if test x"$ac_file" != x-; then
  9809. configure_input="$ac_file. $configure_input"
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9811. $as_echo "$as_me: creating $ac_file" >&6;}
  9812. fi
  9813. # Neutralize special characters interpreted by sed in replacement strings.
  9814. case $configure_input in #(
  9815. *\&* | *\|* | *\\* )
  9816. ac_sed_conf_input=`$as_echo "$configure_input" |
  9817. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9818. *) ac_sed_conf_input=$configure_input;;
  9819. esac
  9820. case $ac_tag in
  9821. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9822. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9823. esac
  9824. ;;
  9825. esac
  9826. ac_dir=`$as_dirname -- "$ac_file" ||
  9827. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9828. X"$ac_file" : 'X\(//\)[^/]' \| \
  9829. X"$ac_file" : 'X\(//\)$' \| \
  9830. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9831. $as_echo X"$ac_file" |
  9832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9833. s//\1/
  9834. q
  9835. }
  9836. /^X\(\/\/\)[^/].*/{
  9837. s//\1/
  9838. q
  9839. }
  9840. /^X\(\/\/\)$/{
  9841. s//\1/
  9842. q
  9843. }
  9844. /^X\(\/\).*/{
  9845. s//\1/
  9846. q
  9847. }
  9848. s/.*/./; q'`
  9849. as_dir="$ac_dir"; as_fn_mkdir_p
  9850. ac_builddir=.
  9851. case "$ac_dir" in
  9852. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9853. *)
  9854. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9855. # A ".." for each directory in $ac_dir_suffix.
  9856. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9857. case $ac_top_builddir_sub in
  9858. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9859. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9860. esac ;;
  9861. esac
  9862. ac_abs_top_builddir=$ac_pwd
  9863. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9864. # for backward compatibility:
  9865. ac_top_builddir=$ac_top_build_prefix
  9866. case $srcdir in
  9867. .) # We are building in place.
  9868. ac_srcdir=.
  9869. ac_top_srcdir=$ac_top_builddir_sub
  9870. ac_abs_top_srcdir=$ac_pwd ;;
  9871. [\\/]* | ?:[\\/]* ) # Absolute name.
  9872. ac_srcdir=$srcdir$ac_dir_suffix;
  9873. ac_top_srcdir=$srcdir
  9874. ac_abs_top_srcdir=$srcdir ;;
  9875. *) # Relative name.
  9876. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9877. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9878. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9879. esac
  9880. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9881. case $ac_mode in
  9882. :F)
  9883. #
  9884. # CONFIG_FILE
  9885. #
  9886. case $INSTALL in
  9887. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9888. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9889. esac
  9890. ac_MKDIR_P=$MKDIR_P
  9891. case $MKDIR_P in
  9892. [\\/$]* | ?:[\\/]* ) ;;
  9893. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9894. esac
  9895. _ACEOF
  9896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9897. # If the template does not know about datarootdir, expand it.
  9898. # FIXME: This hack should be removed a few years after 2.60.
  9899. ac_datarootdir_hack=; ac_datarootdir_seen=
  9900. ac_sed_dataroot='
  9901. /datarootdir/ {
  9902. p
  9903. q
  9904. }
  9905. /@datadir@/p
  9906. /@docdir@/p
  9907. /@infodir@/p
  9908. /@localedir@/p
  9909. /@mandir@/p'
  9910. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9911. *datarootdir*) ac_datarootdir_seen=yes;;
  9912. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9914. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9915. _ACEOF
  9916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9917. ac_datarootdir_hack='
  9918. s&@datadir@&$datadir&g
  9919. s&@docdir@&$docdir&g
  9920. s&@infodir@&$infodir&g
  9921. s&@localedir@&$localedir&g
  9922. s&@mandir@&$mandir&g
  9923. s&\\\${datarootdir}&$datarootdir&g' ;;
  9924. esac
  9925. _ACEOF
  9926. # Neutralize VPATH when `$srcdir' = `.'.
  9927. # Shell code in configure.ac might set extrasub.
  9928. # FIXME: do we really want to maintain this feature?
  9929. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9930. ac_sed_extra="$ac_vpsub
  9931. $extrasub
  9932. _ACEOF
  9933. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9934. :t
  9935. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9936. s|@configure_input@|$ac_sed_conf_input|;t t
  9937. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9938. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9939. s&@srcdir@&$ac_srcdir&;t t
  9940. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9941. s&@top_srcdir@&$ac_top_srcdir&;t t
  9942. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9943. s&@builddir@&$ac_builddir&;t t
  9944. s&@abs_builddir@&$ac_abs_builddir&;t t
  9945. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9946. s&@INSTALL@&$ac_INSTALL&;t t
  9947. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9948. $ac_datarootdir_hack
  9949. "
  9950. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9951. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9952. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9953. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9954. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9955. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9957. which seems to be undefined. Please make sure it is defined" >&5
  9958. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9959. which seems to be undefined. Please make sure it is defined" >&2;}
  9960. rm -f "$ac_tmp/stdin"
  9961. case $ac_file in
  9962. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9963. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9964. esac \
  9965. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9966. ;;
  9967. :H)
  9968. #
  9969. # CONFIG_HEADER
  9970. #
  9971. if test x"$ac_file" != x-; then
  9972. {
  9973. $as_echo "/* $configure_input */" \
  9974. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9975. } >"$ac_tmp/config.h" \
  9976. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9977. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9979. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9980. else
  9981. rm -f "$ac_file"
  9982. mv "$ac_tmp/config.h" "$ac_file" \
  9983. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9984. fi
  9985. else
  9986. $as_echo "/* $configure_input */" \
  9987. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9988. || as_fn_error $? "could not create -" "$LINENO" 5
  9989. fi
  9990. # Compute "$ac_file"'s index in $config_headers.
  9991. _am_arg="$ac_file"
  9992. _am_stamp_count=1
  9993. for _am_header in $config_headers :; do
  9994. case $_am_header in
  9995. $_am_arg | $_am_arg:* )
  9996. break ;;
  9997. * )
  9998. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9999. esac
  10000. done
  10001. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10002. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10003. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10004. X"$_am_arg" : 'X\(//\)$' \| \
  10005. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10006. $as_echo X"$_am_arg" |
  10007. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10008. s//\1/
  10009. q
  10010. }
  10011. /^X\(\/\/\)[^/].*/{
  10012. s//\1/
  10013. q
  10014. }
  10015. /^X\(\/\/\)$/{
  10016. s//\1/
  10017. q
  10018. }
  10019. /^X\(\/\).*/{
  10020. s//\1/
  10021. q
  10022. }
  10023. s/.*/./; q'`/stamp-h$_am_stamp_count
  10024. ;;
  10025. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10026. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10027. ;;
  10028. esac
  10029. case $ac_file$ac_mode in
  10030. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10031. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10032. # are listed without --file. Let's play safe and only enable the eval
  10033. # if we detect the quoting.
  10034. case $CONFIG_FILES in
  10035. *\'*) eval set x "$CONFIG_FILES" ;;
  10036. *) set x $CONFIG_FILES ;;
  10037. esac
  10038. shift
  10039. for mf
  10040. do
  10041. # Strip MF so we end up with the name of the file.
  10042. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10043. # Check whether this is an Automake generated Makefile or not.
  10044. # We used to match only the files named 'Makefile.in', but
  10045. # some people rename them; so instead we look at the file content.
  10046. # Grep'ing the first line is not enough: some people post-process
  10047. # each Makefile.in and add a new line on top of each file to say so.
  10048. # Grep'ing the whole file is not good either: AIX grep has a line
  10049. # limit of 2048, but all sed's we know have understand at least 4000.
  10050. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10051. dirpart=`$as_dirname -- "$mf" ||
  10052. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10053. X"$mf" : 'X\(//\)[^/]' \| \
  10054. X"$mf" : 'X\(//\)$' \| \
  10055. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10056. $as_echo X"$mf" |
  10057. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10058. s//\1/
  10059. q
  10060. }
  10061. /^X\(\/\/\)[^/].*/{
  10062. s//\1/
  10063. q
  10064. }
  10065. /^X\(\/\/\)$/{
  10066. s//\1/
  10067. q
  10068. }
  10069. /^X\(\/\).*/{
  10070. s//\1/
  10071. q
  10072. }
  10073. s/.*/./; q'`
  10074. else
  10075. continue
  10076. fi
  10077. # Extract the definition of DEPDIR, am__include, and am__quote
  10078. # from the Makefile without running 'make'.
  10079. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10080. test -z "$DEPDIR" && continue
  10081. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10082. test -z "am__include" && continue
  10083. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10084. # Find all dependency output files, they are included files with
  10085. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10086. # simplest approach to changing $(DEPDIR) to its actual value in the
  10087. # expansion.
  10088. for file in `sed -n "
  10089. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10090. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10091. # Make sure the directory exists.
  10092. test -f "$dirpart/$file" && continue
  10093. fdir=`$as_dirname -- "$file" ||
  10094. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10095. X"$file" : 'X\(//\)[^/]' \| \
  10096. X"$file" : 'X\(//\)$' \| \
  10097. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10098. $as_echo X"$file" |
  10099. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10100. s//\1/
  10101. q
  10102. }
  10103. /^X\(\/\/\)[^/].*/{
  10104. s//\1/
  10105. q
  10106. }
  10107. /^X\(\/\/\)$/{
  10108. s//\1/
  10109. q
  10110. }
  10111. /^X\(\/\).*/{
  10112. s//\1/
  10113. q
  10114. }
  10115. s/.*/./; q'`
  10116. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10117. # echo "creating $dirpart/$file"
  10118. echo '# dummy' > "$dirpart/$file"
  10119. done
  10120. done
  10121. }
  10122. ;;
  10123. esac
  10124. done # for ac_tag
  10125. as_fn_exit 0
  10126. _ACEOF
  10127. ac_clean_files=$ac_clean_files_save
  10128. test $ac_write_fail = 0 ||
  10129. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10130. # configure is writing to config.log, and then calls config.status.
  10131. # config.status does its own redirection, appending to config.log.
  10132. # Unfortunately, on DOS this fails, as config.log is still kept open
  10133. # by configure, so config.status won't be able to write to it; its
  10134. # output is simply discarded. So we exec the FD to /dev/null,
  10135. # effectively closing config.log, so it can be properly (re)opened and
  10136. # appended to by config.status. When coming back to configure, we
  10137. # need to make the FD available again.
  10138. if test "$no_create" != yes; then
  10139. ac_cs_success=:
  10140. ac_config_status_args=
  10141. test "$silent" = yes &&
  10142. ac_config_status_args="$ac_config_status_args --quiet"
  10143. exec 5>/dev/null
  10144. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10145. exec 5>>config.log
  10146. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10147. # would make configure fail if this is the last instruction.
  10148. $ac_cs_success || as_fn_exit 1
  10149. fi
  10150. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10152. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10153. fi