configure 337 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xrefresh 1.0.5.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xrefresh'
  535. PACKAGE_TARNAME='xrefresh'
  536. PACKAGE_VERSION='1.0.5'
  537. PACKAGE_STRING='xrefresh 1.0.5'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XREFRESH_LIBS
  581. XREFRESH_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG
  611. CHANGELOG_CMD
  612. STRICT_CFLAGS
  613. CWARNFLAGS
  614. BASE_CFLAGS
  615. MAINT
  616. MAINTAINER_MODE_FALSE
  617. MAINTAINER_MODE_TRUE
  618. am__fastdepCC_FALSE
  619. am__fastdepCC_TRUE
  620. CCDEPMODE
  621. am__nodep
  622. AMDEPBACKSLASH
  623. AMDEP_FALSE
  624. AMDEP_TRUE
  625. am__quote
  626. am__include
  627. DEPDIR
  628. am__untar
  629. am__tar
  630. AMTAR
  631. am__leading_dot
  632. SET_MAKE
  633. AWK
  634. mkdir_p
  635. MKDIR_P
  636. INSTALL_STRIP_PROGRAM
  637. STRIP
  638. install_sh
  639. MAKEINFO
  640. AUTOHEADER
  641. AUTOMAKE
  642. AUTOCONF
  643. ACLOCAL
  644. VERSION
  645. PACKAGE
  646. CYGPATH_W
  647. am__isrc
  648. INSTALL_DATA
  649. INSTALL_SCRIPT
  650. INSTALL_PROGRAM
  651. EGREP
  652. GREP
  653. CPP
  654. OBJEXT
  655. EXEEXT
  656. ac_ct_CC
  657. CPPFLAGS
  658. LDFLAGS
  659. CFLAGS
  660. CC
  661. target_alias
  662. host_alias
  663. build_alias
  664. LIBS
  665. ECHO_T
  666. ECHO_N
  667. ECHO_C
  668. DEFS
  669. mandir
  670. localedir
  671. libdir
  672. psdir
  673. pdfdir
  674. dvidir
  675. htmldir
  676. infodir
  677. docdir
  678. oldincludedir
  679. includedir
  680. localstatedir
  681. sharedstatedir
  682. sysconfdir
  683. datadir
  684. datarootdir
  685. libexecdir
  686. sbindir
  687. bindir
  688. program_transform_name
  689. prefix
  690. exec_prefix
  691. PACKAGE_URL
  692. PACKAGE_BUGREPORT
  693. PACKAGE_STRING
  694. PACKAGE_VERSION
  695. PACKAGE_TARNAME
  696. PACKAGE_NAME
  697. PATH_SEPARATOR
  698. SHELL'
  699. ac_subst_files=''
  700. ac_user_opts='
  701. enable_option_checking
  702. enable_dependency_tracking
  703. enable_maintainer_mode
  704. enable_selective_werror
  705. enable_strict_compilation
  706. enable_silent_rules
  707. '
  708. ac_precious_vars='build_alias
  709. host_alias
  710. target_alias
  711. CC
  712. CFLAGS
  713. LDFLAGS
  714. LIBS
  715. CPPFLAGS
  716. CPP
  717. PKG_CONFIG
  718. XREFRESH_CFLAGS
  719. XREFRESH_LIBS'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures xrefresh 1.0.5 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/xrefresh]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of xrefresh 1.0.5:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dependency-tracking
  1257. do not reject slow dependency extractors
  1258. --disable-dependency-tracking
  1259. speeds up one-time build
  1260. --enable-maintainer-mode
  1261. enable make rules and dependencies not useful (and
  1262. sometimes confusing) to the casual installer
  1263. --disable-selective-werror
  1264. Turn off selective compiler errors. (default:
  1265. enabled)
  1266. --enable-strict-compilation
  1267. Enable all warnings from compiler and make them
  1268. errors (default: disabled)
  1269. --enable-silent-rules less verbose build output (undo: "make V=1")
  1270. --disable-silent-rules verbose build output (undo: "make V=0")
  1271. Some influential environment variables:
  1272. CC C compiler command
  1273. CFLAGS C compiler flags
  1274. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1275. nonstandard directory <lib dir>
  1276. LIBS libraries to pass to the linker, e.g. -l<library>
  1277. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1278. you have headers in a nonstandard directory <include dir>
  1279. CPP C preprocessor
  1280. PKG_CONFIG path to pkg-config utility
  1281. XREFRESH_CFLAGS
  1282. C compiler flags for XREFRESH, overriding pkg-config
  1283. XREFRESH_LIBS
  1284. linker flags for XREFRESH, overriding pkg-config
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1288. _ACEOF
  1289. ac_status=$?
  1290. fi
  1291. if test "$ac_init_help" = "recursive"; then
  1292. # If there are subdirs, report their specific --help.
  1293. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1294. test -d "$ac_dir" ||
  1295. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1296. continue
  1297. ac_builddir=.
  1298. case "$ac_dir" in
  1299. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *)
  1301. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1302. # A ".." for each directory in $ac_dir_suffix.
  1303. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1304. case $ac_top_builddir_sub in
  1305. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1306. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1307. esac ;;
  1308. esac
  1309. ac_abs_top_builddir=$ac_pwd
  1310. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1311. # for backward compatibility:
  1312. ac_top_builddir=$ac_top_build_prefix
  1313. case $srcdir in
  1314. .) # We are building in place.
  1315. ac_srcdir=.
  1316. ac_top_srcdir=$ac_top_builddir_sub
  1317. ac_abs_top_srcdir=$ac_pwd ;;
  1318. [\\/]* | ?:[\\/]* ) # Absolute name.
  1319. ac_srcdir=$srcdir$ac_dir_suffix;
  1320. ac_top_srcdir=$srcdir
  1321. ac_abs_top_srcdir=$srcdir ;;
  1322. *) # Relative name.
  1323. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1324. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1325. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1326. esac
  1327. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1328. cd "$ac_dir" || { ac_status=$?; continue; }
  1329. # Check for guested configure.
  1330. if test -f "$ac_srcdir/configure.gnu"; then
  1331. echo &&
  1332. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1333. elif test -f "$ac_srcdir/configure"; then
  1334. echo &&
  1335. $SHELL "$ac_srcdir/configure" --help=recursive
  1336. else
  1337. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1338. fi || ac_status=$?
  1339. cd "$ac_pwd" || { ac_status=$?; break; }
  1340. done
  1341. fi
  1342. test -n "$ac_init_help" && exit $ac_status
  1343. if $ac_init_version; then
  1344. cat <<\_ACEOF
  1345. xrefresh configure 1.0.5
  1346. generated by GNU Autoconf 2.69
  1347. Copyright (C) 2012 Free Software Foundation, Inc.
  1348. This configure script is free software; the Free Software Foundation
  1349. gives unlimited permission to copy, distribute and modify it.
  1350. _ACEOF
  1351. exit
  1352. fi
  1353. ## ------------------------ ##
  1354. ## Autoconf initialization. ##
  1355. ## ------------------------ ##
  1356. # ac_fn_c_try_compile LINENO
  1357. # --------------------------
  1358. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1359. ac_fn_c_try_compile ()
  1360. {
  1361. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1362. rm -f conftest.$ac_objext
  1363. if { { ac_try="$ac_compile"
  1364. case "(($ac_try" in
  1365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1366. *) ac_try_echo=$ac_try;;
  1367. esac
  1368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1369. $as_echo "$ac_try_echo"; } >&5
  1370. (eval "$ac_compile") 2>conftest.err
  1371. ac_status=$?
  1372. if test -s conftest.err; then
  1373. grep -v '^ *+' conftest.err >conftest.er1
  1374. cat conftest.er1 >&5
  1375. mv -f conftest.er1 conftest.err
  1376. fi
  1377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1378. test $ac_status = 0; } && {
  1379. test -z "$ac_c_werror_flag" ||
  1380. test ! -s conftest.err
  1381. } && test -s conftest.$ac_objext; then :
  1382. ac_retval=0
  1383. else
  1384. $as_echo "$as_me: failed program was:" >&5
  1385. sed 's/^/| /' conftest.$ac_ext >&5
  1386. ac_retval=1
  1387. fi
  1388. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1389. as_fn_set_status $ac_retval
  1390. } # ac_fn_c_try_compile
  1391. # ac_fn_c_try_cpp LINENO
  1392. # ----------------------
  1393. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_cpp ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } > conftest.i && {
  1413. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. }; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_c_try_cpp
  1425. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1426. # -------------------------------------------------------
  1427. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1428. # the include files in INCLUDES and setting the cache variable VAR
  1429. # accordingly.
  1430. ac_fn_c_check_header_mongrel ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. if eval \${$3+:} false; then :
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1435. $as_echo_n "checking for $2... " >&6; }
  1436. if eval \${$3+:} false; then :
  1437. $as_echo_n "(cached) " >&6
  1438. fi
  1439. eval ac_res=\$$3
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1441. $as_echo "$ac_res" >&6; }
  1442. else
  1443. # Is the header compilable?
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1445. $as_echo_n "checking $2 usability... " >&6; }
  1446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1447. /* end confdefs.h. */
  1448. $4
  1449. #include <$2>
  1450. _ACEOF
  1451. if ac_fn_c_try_compile "$LINENO"; then :
  1452. ac_header_compiler=yes
  1453. else
  1454. ac_header_compiler=no
  1455. fi
  1456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1458. $as_echo "$ac_header_compiler" >&6; }
  1459. # Is the header present?
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1461. $as_echo_n "checking $2 presence... " >&6; }
  1462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1463. /* end confdefs.h. */
  1464. #include <$2>
  1465. _ACEOF
  1466. if ac_fn_c_try_cpp "$LINENO"; then :
  1467. ac_header_preproc=yes
  1468. else
  1469. ac_header_preproc=no
  1470. fi
  1471. rm -f conftest.err conftest.i conftest.$ac_ext
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1473. $as_echo "$ac_header_preproc" >&6; }
  1474. # So? What about this header?
  1475. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1476. yes:no: )
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1478. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1480. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1481. ;;
  1482. no:yes:* )
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1484. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1486. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1488. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1490. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1492. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1493. ( $as_echo "## ---------------------------------------------------------------------- ##
  1494. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  1495. ## ---------------------------------------------------------------------- ##"
  1496. ) | sed "s/^/$as_me: WARNING: /" >&2
  1497. ;;
  1498. esac
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1500. $as_echo_n "checking for $2... " >&6; }
  1501. if eval \${$3+:} false; then :
  1502. $as_echo_n "(cached) " >&6
  1503. else
  1504. eval "$3=\$ac_header_compiler"
  1505. fi
  1506. eval ac_res=\$$3
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1508. $as_echo "$ac_res" >&6; }
  1509. fi
  1510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1511. } # ac_fn_c_check_header_mongrel
  1512. # ac_fn_c_try_run LINENO
  1513. # ----------------------
  1514. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1515. # that executables *can* be run.
  1516. ac_fn_c_try_run ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. if { { ac_try="$ac_link"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_link") 2>&5
  1527. ac_status=$?
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1530. { { case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_try") 2>&5
  1537. ac_status=$?
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; }; }; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: program exited with status $ac_status" >&5
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=$ac_status
  1546. fi
  1547. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. as_fn_set_status $ac_retval
  1550. } # ac_fn_c_try_run
  1551. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1552. # -------------------------------------------------------
  1553. # Tests whether HEADER exists and can be compiled using the include files in
  1554. # INCLUDES, setting the cache variable VAR accordingly.
  1555. ac_fn_c_check_header_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if eval \${$3+:} false; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. eval "$3=yes"
  1570. else
  1571. eval "$3=no"
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. } # ac_fn_c_check_header_compile
  1580. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1581. # ---------------------------------------------
  1582. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1583. # accordingly.
  1584. ac_fn_c_check_decl ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1588. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1590. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1591. if eval \${$3+:} false; then :
  1592. $as_echo_n "(cached) " >&6
  1593. else
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. int
  1598. main ()
  1599. {
  1600. #ifndef $as_decl_name
  1601. #ifdef __cplusplus
  1602. (void) $as_decl_use;
  1603. #else
  1604. (void) $as_decl_name;
  1605. #endif
  1606. #endif
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. if ac_fn_c_try_compile "$LINENO"; then :
  1612. eval "$3=yes"
  1613. else
  1614. eval "$3=no"
  1615. fi
  1616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1617. fi
  1618. eval ac_res=\$$3
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1620. $as_echo "$ac_res" >&6; }
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. } # ac_fn_c_check_decl
  1623. # ac_fn_c_try_link LINENO
  1624. # -----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_link ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext conftest$ac_exeext
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest$ac_exeext && {
  1649. test "$cross_compiling" = yes ||
  1650. test -x conftest$ac_exeext
  1651. }; then :
  1652. ac_retval=0
  1653. else
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=1
  1657. fi
  1658. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1659. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1660. # interfere with the next link command; also delete a directory that is
  1661. # left behind by Apple's compiler. We do this before executing the actions.
  1662. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. as_fn_set_status $ac_retval
  1665. } # ac_fn_c_try_link
  1666. # ac_fn_c_check_func LINENO FUNC VAR
  1667. # ----------------------------------
  1668. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1669. ac_fn_c_check_func ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1673. $as_echo_n "checking for $2... " >&6; }
  1674. if eval \${$3+:} false; then :
  1675. $as_echo_n "(cached) " >&6
  1676. else
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1680. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1681. #define $2 innocuous_$2
  1682. /* System header to define __stub macros and hopefully few prototypes,
  1683. which can conflict with char $2 (); below.
  1684. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1685. <limits.h> exists even on freestanding compilers. */
  1686. #ifdef __STDC__
  1687. # include <limits.h>
  1688. #else
  1689. # include <assert.h>
  1690. #endif
  1691. #undef $2
  1692. /* Override any GCC internal prototype to avoid an error.
  1693. Use char because int might match the return type of a GCC
  1694. builtin and then its argument prototype would still apply. */
  1695. #ifdef __cplusplus
  1696. extern "C"
  1697. #endif
  1698. char $2 ();
  1699. /* The GNU C library defines this for functions which it implements
  1700. to always fail with ENOSYS. Some functions are actually named
  1701. something starting with __ and the normal name is an alias. */
  1702. #if defined __stub_$2 || defined __stub___$2
  1703. choke me
  1704. #endif
  1705. int
  1706. main ()
  1707. {
  1708. return $2 ();
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_c_try_link "$LINENO"; then :
  1714. eval "$3=yes"
  1715. else
  1716. eval "$3=no"
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext \
  1719. conftest$ac_exeext conftest.$ac_ext
  1720. fi
  1721. eval ac_res=\$$3
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1723. $as_echo "$ac_res" >&6; }
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. } # ac_fn_c_check_func
  1726. cat >config.log <<_ACEOF
  1727. This file contains any messages produced by compilers while
  1728. running configure, to aid debugging if configure makes a mistake.
  1729. It was created by xrefresh $as_me 1.0.5, which was
  1730. generated by GNU Autoconf 2.69. Invocation command line was
  1731. $ $0 $@
  1732. _ACEOF
  1733. exec 5>>config.log
  1734. {
  1735. cat <<_ASUNAME
  1736. ## --------- ##
  1737. ## Platform. ##
  1738. ## --------- ##
  1739. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1740. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1741. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1742. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1743. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1744. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1745. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1746. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1747. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1748. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1749. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1750. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1751. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1752. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1753. _ASUNAME
  1754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1755. for as_dir in $PATH
  1756. do
  1757. IFS=$as_save_IFS
  1758. test -z "$as_dir" && as_dir=.
  1759. $as_echo "PATH: $as_dir"
  1760. done
  1761. IFS=$as_save_IFS
  1762. } >&5
  1763. cat >&5 <<_ACEOF
  1764. ## ----------- ##
  1765. ## Core tests. ##
  1766. ## ----------- ##
  1767. _ACEOF
  1768. # Keep a trace of the command line.
  1769. # Strip out --no-create and --no-recursion so they do not pile up.
  1770. # Strip out --silent because we don't want to record it for future runs.
  1771. # Also quote any args containing shell meta-characters.
  1772. # Make two passes to allow for proper duplicate-argument suppression.
  1773. ac_configure_args=
  1774. ac_configure_args0=
  1775. ac_configure_args1=
  1776. ac_must_keep_next=false
  1777. for ac_pass in 1 2
  1778. do
  1779. for ac_arg
  1780. do
  1781. case $ac_arg in
  1782. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1783. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1784. | -silent | --silent | --silen | --sile | --sil)
  1785. continue ;;
  1786. *\'*)
  1787. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1788. esac
  1789. case $ac_pass in
  1790. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1791. 2)
  1792. as_fn_append ac_configure_args1 " '$ac_arg'"
  1793. if test $ac_must_keep_next = true; then
  1794. ac_must_keep_next=false # Got value, back to normal.
  1795. else
  1796. case $ac_arg in
  1797. *=* | --config-cache | -C | -disable-* | --disable-* \
  1798. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1799. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1800. | -with-* | --with-* | -without-* | --without-* | --x)
  1801. case "$ac_configure_args0 " in
  1802. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1803. esac
  1804. ;;
  1805. -* ) ac_must_keep_next=true ;;
  1806. esac
  1807. fi
  1808. as_fn_append ac_configure_args " '$ac_arg'"
  1809. ;;
  1810. esac
  1811. done
  1812. done
  1813. { ac_configure_args0=; unset ac_configure_args0;}
  1814. { ac_configure_args1=; unset ac_configure_args1;}
  1815. # When interrupted or exit'd, cleanup temporary files, and complete
  1816. # config.log. We remove comments because anyway the quotes in there
  1817. # would cause problems or look ugly.
  1818. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1819. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1820. trap 'exit_status=$?
  1821. # Save into config.log some information that might help in debugging.
  1822. {
  1823. echo
  1824. $as_echo "## ---------------- ##
  1825. ## Cache variables. ##
  1826. ## ---------------- ##"
  1827. echo
  1828. # The following way of writing the cache mishandles newlines in values,
  1829. (
  1830. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1831. eval ac_val=\$$ac_var
  1832. case $ac_val in #(
  1833. *${as_nl}*)
  1834. case $ac_var in #(
  1835. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1836. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1837. esac
  1838. case $ac_var in #(
  1839. _ | IFS | as_nl) ;; #(
  1840. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1841. *) { eval $ac_var=; unset $ac_var;} ;;
  1842. esac ;;
  1843. esac
  1844. done
  1845. (set) 2>&1 |
  1846. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1847. *${as_nl}ac_space=\ *)
  1848. sed -n \
  1849. "s/'\''/'\''\\\\'\'''\''/g;
  1850. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1851. ;; #(
  1852. *)
  1853. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1854. ;;
  1855. esac |
  1856. sort
  1857. )
  1858. echo
  1859. $as_echo "## ----------------- ##
  1860. ## Output variables. ##
  1861. ## ----------------- ##"
  1862. echo
  1863. for ac_var in $ac_subst_vars
  1864. do
  1865. eval ac_val=\$$ac_var
  1866. case $ac_val in
  1867. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1868. esac
  1869. $as_echo "$ac_var='\''$ac_val'\''"
  1870. done | sort
  1871. echo
  1872. if test -n "$ac_subst_files"; then
  1873. $as_echo "## ------------------- ##
  1874. ## File substitutions. ##
  1875. ## ------------------- ##"
  1876. echo
  1877. for ac_var in $ac_subst_files
  1878. do
  1879. eval ac_val=\$$ac_var
  1880. case $ac_val in
  1881. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1882. esac
  1883. $as_echo "$ac_var='\''$ac_val'\''"
  1884. done | sort
  1885. echo
  1886. fi
  1887. if test -s confdefs.h; then
  1888. $as_echo "## ----------- ##
  1889. ## confdefs.h. ##
  1890. ## ----------- ##"
  1891. echo
  1892. cat confdefs.h
  1893. echo
  1894. fi
  1895. test "$ac_signal" != 0 &&
  1896. $as_echo "$as_me: caught signal $ac_signal"
  1897. $as_echo "$as_me: exit $exit_status"
  1898. } >&5
  1899. rm -f core *.core core.conftest.* &&
  1900. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1901. exit $exit_status
  1902. ' 0
  1903. for ac_signal in 1 2 13 15; do
  1904. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1905. done
  1906. ac_signal=0
  1907. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1908. rm -f -r conftest* confdefs.h
  1909. $as_echo "/* confdefs.h */" > confdefs.h
  1910. # Predefined preprocessor variables.
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_NAME "$PACKAGE_NAME"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1919. _ACEOF
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_STRING "$PACKAGE_STRING"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1925. _ACEOF
  1926. cat >>confdefs.h <<_ACEOF
  1927. #define PACKAGE_URL "$PACKAGE_URL"
  1928. _ACEOF
  1929. # Let the site file select an alternate cache file if it wants to.
  1930. # Prefer an explicitly selected file to automatically selected ones.
  1931. ac_site_file1=NONE
  1932. ac_site_file2=NONE
  1933. if test -n "$CONFIG_SITE"; then
  1934. # We do not want a PATH search for config.site.
  1935. case $CONFIG_SITE in #((
  1936. -*) ac_site_file1=./$CONFIG_SITE;;
  1937. */*) ac_site_file1=$CONFIG_SITE;;
  1938. *) ac_site_file1=./$CONFIG_SITE;;
  1939. esac
  1940. elif test "x$prefix" != xNONE; then
  1941. ac_site_file1=$prefix/share/config.site
  1942. ac_site_file2=$prefix/etc/config.site
  1943. else
  1944. ac_site_file1=$ac_default_prefix/share/config.site
  1945. ac_site_file2=$ac_default_prefix/etc/config.site
  1946. fi
  1947. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1948. do
  1949. test "x$ac_site_file" = xNONE && continue
  1950. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1952. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1953. sed 's/^/| /' "$ac_site_file" >&5
  1954. . "$ac_site_file" \
  1955. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1957. as_fn_error $? "failed to load site script $ac_site_file
  1958. See \`config.log' for more details" "$LINENO" 5; }
  1959. fi
  1960. done
  1961. if test -r "$cache_file"; then
  1962. # Some versions of bash will fail to source /dev/null (special files
  1963. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1964. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1966. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1967. case $cache_file in
  1968. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1969. *) . "./$cache_file";;
  1970. esac
  1971. fi
  1972. else
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1974. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1975. >$cache_file
  1976. fi
  1977. # Check that the precious variables saved in the cache have kept the same
  1978. # value.
  1979. ac_cache_corrupted=false
  1980. for ac_var in $ac_precious_vars; do
  1981. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1982. eval ac_new_set=\$ac_env_${ac_var}_set
  1983. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1984. eval ac_new_val=\$ac_env_${ac_var}_value
  1985. case $ac_old_set,$ac_new_set in
  1986. set,)
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1989. ac_cache_corrupted=: ;;
  1990. ,set)
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1992. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1993. ac_cache_corrupted=: ;;
  1994. ,);;
  1995. *)
  1996. if test "x$ac_old_val" != "x$ac_new_val"; then
  1997. # differences in whitespace do not lead to failure.
  1998. ac_old_val_w=`echo x $ac_old_val`
  1999. ac_new_val_w=`echo x $ac_new_val`
  2000. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2002. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2003. ac_cache_corrupted=:
  2004. else
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2006. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2007. eval $ac_var=\$ac_old_val
  2008. fi
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2010. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2012. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2013. fi;;
  2014. esac
  2015. # Pass precious variables to config.status.
  2016. if test "$ac_new_set" = set; then
  2017. case $ac_new_val in
  2018. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2019. *) ac_arg=$ac_var=$ac_new_val ;;
  2020. esac
  2021. case " $ac_configure_args " in
  2022. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2023. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2024. esac
  2025. fi
  2026. done
  2027. if $ac_cache_corrupted; then
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2031. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2032. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2033. fi
  2034. ## -------------------- ##
  2035. ## Main body of script. ##
  2036. ## -------------------- ##
  2037. ac_ext=c
  2038. ac_cpp='$CPP $CPPFLAGS'
  2039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2042. ac_config_headers="$ac_config_headers config.h"
  2043. ac_ext=c
  2044. ac_cpp='$CPP $CPPFLAGS'
  2045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2048. if test -n "$ac_tool_prefix"; then
  2049. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2050. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2052. $as_echo_n "checking for $ac_word... " >&6; }
  2053. if ${ac_cv_prog_CC+:} false; then :
  2054. $as_echo_n "(cached) " >&6
  2055. else
  2056. if test -n "$CC"; then
  2057. ac_cv_prog_CC="$CC" # Let the user override the test.
  2058. else
  2059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2060. for as_dir in $PATH
  2061. do
  2062. IFS=$as_save_IFS
  2063. test -z "$as_dir" && as_dir=.
  2064. for ac_exec_ext in '' $ac_executable_extensions; do
  2065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2066. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2068. break 2
  2069. fi
  2070. done
  2071. done
  2072. IFS=$as_save_IFS
  2073. fi
  2074. fi
  2075. CC=$ac_cv_prog_CC
  2076. if test -n "$CC"; then
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2078. $as_echo "$CC" >&6; }
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2081. $as_echo "no" >&6; }
  2082. fi
  2083. fi
  2084. if test -z "$ac_cv_prog_CC"; then
  2085. ac_ct_CC=$CC
  2086. # Extract the first word of "gcc", so it can be a program name with args.
  2087. set dummy gcc; ac_word=$2
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2089. $as_echo_n "checking for $ac_word... " >&6; }
  2090. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. else
  2093. if test -n "$ac_ct_CC"; then
  2094. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2095. else
  2096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2097. for as_dir in $PATH
  2098. do
  2099. IFS=$as_save_IFS
  2100. test -z "$as_dir" && as_dir=.
  2101. for ac_exec_ext in '' $ac_executable_extensions; do
  2102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2103. ac_cv_prog_ac_ct_CC="gcc"
  2104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2105. break 2
  2106. fi
  2107. done
  2108. done
  2109. IFS=$as_save_IFS
  2110. fi
  2111. fi
  2112. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2113. if test -n "$ac_ct_CC"; then
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2115. $as_echo "$ac_ct_CC" >&6; }
  2116. else
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2118. $as_echo "no" >&6; }
  2119. fi
  2120. if test "x$ac_ct_CC" = x; then
  2121. CC=""
  2122. else
  2123. case $cross_compiling:$ac_tool_warned in
  2124. yes:)
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2127. ac_tool_warned=yes ;;
  2128. esac
  2129. CC=$ac_ct_CC
  2130. fi
  2131. else
  2132. CC="$ac_cv_prog_CC"
  2133. fi
  2134. if test -z "$CC"; then
  2135. if test -n "$ac_tool_prefix"; then
  2136. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2137. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2139. $as_echo_n "checking for $ac_word... " >&6; }
  2140. if ${ac_cv_prog_CC+:} false; then :
  2141. $as_echo_n "(cached) " >&6
  2142. else
  2143. if test -n "$CC"; then
  2144. ac_cv_prog_CC="$CC" # Let the user override the test.
  2145. else
  2146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. for as_dir in $PATH
  2148. do
  2149. IFS=$as_save_IFS
  2150. test -z "$as_dir" && as_dir=.
  2151. for ac_exec_ext in '' $ac_executable_extensions; do
  2152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2153. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2155. break 2
  2156. fi
  2157. done
  2158. done
  2159. IFS=$as_save_IFS
  2160. fi
  2161. fi
  2162. CC=$ac_cv_prog_CC
  2163. if test -n "$CC"; then
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2165. $as_echo "$CC" >&6; }
  2166. else
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2168. $as_echo "no" >&6; }
  2169. fi
  2170. fi
  2171. fi
  2172. if test -z "$CC"; then
  2173. # Extract the first word of "cc", so it can be a program name with args.
  2174. set dummy cc; ac_word=$2
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2176. $as_echo_n "checking for $ac_word... " >&6; }
  2177. if ${ac_cv_prog_CC+:} false; then :
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. if test -n "$CC"; then
  2181. ac_cv_prog_CC="$CC" # Let the user override the test.
  2182. else
  2183. ac_prog_rejected=no
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. for ac_exec_ext in '' $ac_executable_extensions; do
  2190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2191. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2192. ac_prog_rejected=yes
  2193. continue
  2194. fi
  2195. ac_cv_prog_CC="cc"
  2196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2197. break 2
  2198. fi
  2199. done
  2200. done
  2201. IFS=$as_save_IFS
  2202. if test $ac_prog_rejected = yes; then
  2203. # We found a bogon in the path, so make sure we never use it.
  2204. set dummy $ac_cv_prog_CC
  2205. shift
  2206. if test $# != 0; then
  2207. # We chose a different compiler from the bogus one.
  2208. # However, it has the same basename, so the bogon will be chosen
  2209. # first if we set CC to just the basename; use the full file name.
  2210. shift
  2211. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2212. fi
  2213. fi
  2214. fi
  2215. fi
  2216. CC=$ac_cv_prog_CC
  2217. if test -n "$CC"; then
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2219. $as_echo "$CC" >&6; }
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2222. $as_echo "no" >&6; }
  2223. fi
  2224. fi
  2225. if test -z "$CC"; then
  2226. if test -n "$ac_tool_prefix"; then
  2227. for ac_prog in cl.exe
  2228. do
  2229. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2230. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2232. $as_echo_n "checking for $ac_word... " >&6; }
  2233. if ${ac_cv_prog_CC+:} false; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. if test -n "$CC"; then
  2237. ac_cv_prog_CC="$CC" # Let the user override the test.
  2238. else
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242. IFS=$as_save_IFS
  2243. test -z "$as_dir" && as_dir=.
  2244. for ac_exec_ext in '' $ac_executable_extensions; do
  2245. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2246. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2248. break 2
  2249. fi
  2250. done
  2251. done
  2252. IFS=$as_save_IFS
  2253. fi
  2254. fi
  2255. CC=$ac_cv_prog_CC
  2256. if test -n "$CC"; then
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2258. $as_echo "$CC" >&6; }
  2259. else
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2261. $as_echo "no" >&6; }
  2262. fi
  2263. test -n "$CC" && break
  2264. done
  2265. fi
  2266. if test -z "$CC"; then
  2267. ac_ct_CC=$CC
  2268. for ac_prog in cl.exe
  2269. do
  2270. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2271. set dummy $ac_prog; ac_word=$2
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2273. $as_echo_n "checking for $ac_word... " >&6; }
  2274. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test -n "$ac_ct_CC"; then
  2278. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2287. ac_cv_prog_ac_ct_CC="$ac_prog"
  2288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2289. break 2
  2290. fi
  2291. done
  2292. done
  2293. IFS=$as_save_IFS
  2294. fi
  2295. fi
  2296. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2297. if test -n "$ac_ct_CC"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2299. $as_echo "$ac_ct_CC" >&6; }
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. fi
  2304. test -n "$ac_ct_CC" && break
  2305. done
  2306. if test "x$ac_ct_CC" = x; then
  2307. CC=""
  2308. else
  2309. case $cross_compiling:$ac_tool_warned in
  2310. yes:)
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2312. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2313. ac_tool_warned=yes ;;
  2314. esac
  2315. CC=$ac_ct_CC
  2316. fi
  2317. fi
  2318. fi
  2319. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2320. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2321. as_fn_error $? "no acceptable C compiler found in \$PATH
  2322. See \`config.log' for more details" "$LINENO" 5; }
  2323. # Provide some information about the compiler.
  2324. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2325. set X $ac_compile
  2326. ac_compiler=$2
  2327. for ac_option in --version -v -V -qversion; do
  2328. { { ac_try="$ac_compiler $ac_option >&5"
  2329. case "(($ac_try" in
  2330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2331. *) ac_try_echo=$ac_try;;
  2332. esac
  2333. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2334. $as_echo "$ac_try_echo"; } >&5
  2335. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2336. ac_status=$?
  2337. if test -s conftest.err; then
  2338. sed '10a\
  2339. ... rest of stderr output deleted ...
  2340. 10q' conftest.err >conftest.er1
  2341. cat conftest.er1 >&5
  2342. fi
  2343. rm -f conftest.er1 conftest.err
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2345. test $ac_status = 0; }
  2346. done
  2347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2348. /* end confdefs.h. */
  2349. int
  2350. main ()
  2351. {
  2352. ;
  2353. return 0;
  2354. }
  2355. _ACEOF
  2356. ac_clean_files_save=$ac_clean_files
  2357. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2358. # Try to create an executable without -o first, disregard a.out.
  2359. # It will help us diagnose broken compilers, and finding out an intuition
  2360. # of exeext.
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2362. $as_echo_n "checking whether the C compiler works... " >&6; }
  2363. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2364. # The possible output files:
  2365. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2366. ac_rmfiles=
  2367. for ac_file in $ac_files
  2368. do
  2369. case $ac_file in
  2370. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2371. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2372. esac
  2373. done
  2374. rm -f $ac_rmfiles
  2375. if { { ac_try="$ac_link_default"
  2376. case "(($ac_try" in
  2377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2378. *) ac_try_echo=$ac_try;;
  2379. esac
  2380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2381. $as_echo "$ac_try_echo"; } >&5
  2382. (eval "$ac_link_default") 2>&5
  2383. ac_status=$?
  2384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2385. test $ac_status = 0; }; then :
  2386. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2387. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2388. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2389. # so that the user can short-circuit this test for compilers unknown to
  2390. # Autoconf.
  2391. for ac_file in $ac_files ''
  2392. do
  2393. test -f "$ac_file" || continue
  2394. case $ac_file in
  2395. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2396. ;;
  2397. [ab].out )
  2398. # We found the default executable, but exeext='' is most
  2399. # certainly right.
  2400. break;;
  2401. *.* )
  2402. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2403. then :; else
  2404. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2405. fi
  2406. # We set ac_cv_exeext here because the later test for it is not
  2407. # safe: cross compilers may not add the suffix if given an `-o'
  2408. # argument, so we may need to know it at that point already.
  2409. # Even if this section looks crufty: it has the advantage of
  2410. # actually working.
  2411. break;;
  2412. * )
  2413. break;;
  2414. esac
  2415. done
  2416. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2417. else
  2418. ac_file=''
  2419. fi
  2420. if test -z "$ac_file"; then :
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2422. $as_echo "no" >&6; }
  2423. $as_echo "$as_me: failed program was:" >&5
  2424. sed 's/^/| /' conftest.$ac_ext >&5
  2425. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2427. as_fn_error 77 "C compiler cannot create executables
  2428. See \`config.log' for more details" "$LINENO" 5; }
  2429. else
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2431. $as_echo "yes" >&6; }
  2432. fi
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2434. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2436. $as_echo "$ac_file" >&6; }
  2437. ac_exeext=$ac_cv_exeext
  2438. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2439. ac_clean_files=$ac_clean_files_save
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2441. $as_echo_n "checking for suffix of executables... " >&6; }
  2442. if { { ac_try="$ac_link"
  2443. case "(($ac_try" in
  2444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2445. *) ac_try_echo=$ac_try;;
  2446. esac
  2447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2448. $as_echo "$ac_try_echo"; } >&5
  2449. (eval "$ac_link") 2>&5
  2450. ac_status=$?
  2451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2452. test $ac_status = 0; }; then :
  2453. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2454. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2455. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2456. # `rm'.
  2457. for ac_file in conftest.exe conftest conftest.*; do
  2458. test -f "$ac_file" || continue
  2459. case $ac_file in
  2460. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2461. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2462. break;;
  2463. * ) break;;
  2464. esac
  2465. done
  2466. else
  2467. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2468. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2469. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2470. See \`config.log' for more details" "$LINENO" 5; }
  2471. fi
  2472. rm -f conftest conftest$ac_cv_exeext
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2474. $as_echo "$ac_cv_exeext" >&6; }
  2475. rm -f conftest.$ac_ext
  2476. EXEEXT=$ac_cv_exeext
  2477. ac_exeext=$EXEEXT
  2478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2479. /* end confdefs.h. */
  2480. #include <stdio.h>
  2481. int
  2482. main ()
  2483. {
  2484. FILE *f = fopen ("conftest.out", "w");
  2485. return ferror (f) || fclose (f) != 0;
  2486. ;
  2487. return 0;
  2488. }
  2489. _ACEOF
  2490. ac_clean_files="$ac_clean_files conftest.out"
  2491. # Check that the compiler produces executables we can run. If not, either
  2492. # the compiler is broken, or we cross compile.
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2494. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2495. if test "$cross_compiling" != yes; then
  2496. { { ac_try="$ac_link"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2502. $as_echo "$ac_try_echo"; } >&5
  2503. (eval "$ac_link") 2>&5
  2504. ac_status=$?
  2505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2506. test $ac_status = 0; }
  2507. if { ac_try='./conftest$ac_cv_exeext'
  2508. { { case "(($ac_try" in
  2509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2510. *) ac_try_echo=$ac_try;;
  2511. esac
  2512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2513. $as_echo "$ac_try_echo"; } >&5
  2514. (eval "$ac_try") 2>&5
  2515. ac_status=$?
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2517. test $ac_status = 0; }; }; then
  2518. cross_compiling=no
  2519. else
  2520. if test "$cross_compiling" = maybe; then
  2521. cross_compiling=yes
  2522. else
  2523. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2524. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2525. as_fn_error $? "cannot run C compiled programs.
  2526. If you meant to cross compile, use \`--host'.
  2527. See \`config.log' for more details" "$LINENO" 5; }
  2528. fi
  2529. fi
  2530. fi
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2532. $as_echo "$cross_compiling" >&6; }
  2533. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2534. ac_clean_files=$ac_clean_files_save
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2536. $as_echo_n "checking for suffix of object files... " >&6; }
  2537. if ${ac_cv_objext+:} false; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2541. /* end confdefs.h. */
  2542. int
  2543. main ()
  2544. {
  2545. ;
  2546. return 0;
  2547. }
  2548. _ACEOF
  2549. rm -f conftest.o conftest.obj
  2550. if { { ac_try="$ac_compile"
  2551. case "(($ac_try" in
  2552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2553. *) ac_try_echo=$ac_try;;
  2554. esac
  2555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2556. $as_echo "$ac_try_echo"; } >&5
  2557. (eval "$ac_compile") 2>&5
  2558. ac_status=$?
  2559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2560. test $ac_status = 0; }; then :
  2561. for ac_file in conftest.o conftest.obj conftest.*; do
  2562. test -f "$ac_file" || continue;
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2565. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2566. break;;
  2567. esac
  2568. done
  2569. else
  2570. $as_echo "$as_me: failed program was:" >&5
  2571. sed 's/^/| /' conftest.$ac_ext >&5
  2572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2574. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2575. See \`config.log' for more details" "$LINENO" 5; }
  2576. fi
  2577. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2578. fi
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2580. $as_echo "$ac_cv_objext" >&6; }
  2581. OBJEXT=$ac_cv_objext
  2582. ac_objext=$OBJEXT
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2584. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2585. if ${ac_cv_c_compiler_gnu+:} false; then :
  2586. $as_echo_n "(cached) " >&6
  2587. else
  2588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2589. /* end confdefs.h. */
  2590. int
  2591. main ()
  2592. {
  2593. #ifndef __GNUC__
  2594. choke me
  2595. #endif
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. if ac_fn_c_try_compile "$LINENO"; then :
  2601. ac_compiler_gnu=yes
  2602. else
  2603. ac_compiler_gnu=no
  2604. fi
  2605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2606. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2607. fi
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2609. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2610. if test $ac_compiler_gnu = yes; then
  2611. GCC=yes
  2612. else
  2613. GCC=
  2614. fi
  2615. ac_test_CFLAGS=${CFLAGS+set}
  2616. ac_save_CFLAGS=$CFLAGS
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2618. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2619. if ${ac_cv_prog_cc_g+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. ac_save_c_werror_flag=$ac_c_werror_flag
  2623. ac_c_werror_flag=yes
  2624. ac_cv_prog_cc_g=no
  2625. CFLAGS="-g"
  2626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2627. /* end confdefs.h. */
  2628. int
  2629. main ()
  2630. {
  2631. ;
  2632. return 0;
  2633. }
  2634. _ACEOF
  2635. if ac_fn_c_try_compile "$LINENO"; then :
  2636. ac_cv_prog_cc_g=yes
  2637. else
  2638. CFLAGS=""
  2639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end confdefs.h. */
  2641. int
  2642. main ()
  2643. {
  2644. ;
  2645. return 0;
  2646. }
  2647. _ACEOF
  2648. if ac_fn_c_try_compile "$LINENO"; then :
  2649. else
  2650. ac_c_werror_flag=$ac_save_c_werror_flag
  2651. CFLAGS="-g"
  2652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2653. /* end confdefs.h. */
  2654. int
  2655. main ()
  2656. {
  2657. ;
  2658. return 0;
  2659. }
  2660. _ACEOF
  2661. if ac_fn_c_try_compile "$LINENO"; then :
  2662. ac_cv_prog_cc_g=yes
  2663. fi
  2664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2665. fi
  2666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2667. fi
  2668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2669. ac_c_werror_flag=$ac_save_c_werror_flag
  2670. fi
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2672. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2673. if test "$ac_test_CFLAGS" = set; then
  2674. CFLAGS=$ac_save_CFLAGS
  2675. elif test $ac_cv_prog_cc_g = yes; then
  2676. if test "$GCC" = yes; then
  2677. CFLAGS="-g -O2"
  2678. else
  2679. CFLAGS="-g"
  2680. fi
  2681. else
  2682. if test "$GCC" = yes; then
  2683. CFLAGS="-O2"
  2684. else
  2685. CFLAGS=
  2686. fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2689. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2690. if ${ac_cv_prog_cc_c89+:} false; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. ac_cv_prog_cc_c89=no
  2694. ac_save_CC=$CC
  2695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2696. /* end confdefs.h. */
  2697. #include <stdarg.h>
  2698. #include <stdio.h>
  2699. struct stat;
  2700. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2701. struct buf { int x; };
  2702. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2703. static char *e (p, i)
  2704. char **p;
  2705. int i;
  2706. {
  2707. return p[i];
  2708. }
  2709. static char *f (char * (*g) (char **, int), char **p, ...)
  2710. {
  2711. char *s;
  2712. va_list v;
  2713. va_start (v,p);
  2714. s = g (p, va_arg (v,int));
  2715. va_end (v);
  2716. return s;
  2717. }
  2718. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2719. function prototypes and stuff, but not '\xHH' hex character constants.
  2720. These don't provoke an error unfortunately, instead are silently treated
  2721. as 'x'. The following induces an error, until -std is added to get
  2722. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2723. array size at least. It's necessary to write '\x00'==0 to get something
  2724. that's true only with -std. */
  2725. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2726. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2727. inside strings and character constants. */
  2728. #define FOO(x) 'x'
  2729. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2730. int test (int i, double x);
  2731. struct s1 {int (*f) (int a);};
  2732. struct s2 {int (*f) (double a);};
  2733. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2734. int argc;
  2735. char **argv;
  2736. int
  2737. main ()
  2738. {
  2739. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2740. ;
  2741. return 0;
  2742. }
  2743. _ACEOF
  2744. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2745. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2746. do
  2747. CC="$ac_save_CC $ac_arg"
  2748. if ac_fn_c_try_compile "$LINENO"; then :
  2749. ac_cv_prog_cc_c89=$ac_arg
  2750. fi
  2751. rm -f core conftest.err conftest.$ac_objext
  2752. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2753. done
  2754. rm -f conftest.$ac_ext
  2755. CC=$ac_save_CC
  2756. fi
  2757. # AC_CACHE_VAL
  2758. case "x$ac_cv_prog_cc_c89" in
  2759. x)
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2761. $as_echo "none needed" >&6; } ;;
  2762. xno)
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2764. $as_echo "unsupported" >&6; } ;;
  2765. *)
  2766. CC="$CC $ac_cv_prog_cc_c89"
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2768. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2769. esac
  2770. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2771. fi
  2772. ac_ext=c
  2773. ac_cpp='$CPP $CPPFLAGS'
  2774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2777. ac_ext=c
  2778. ac_cpp='$CPP $CPPFLAGS'
  2779. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2780. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2781. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2783. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2784. # On Suns, sometimes $CPP names a directory.
  2785. if test -n "$CPP" && test -d "$CPP"; then
  2786. CPP=
  2787. fi
  2788. if test -z "$CPP"; then
  2789. if ${ac_cv_prog_CPP+:} false; then :
  2790. $as_echo_n "(cached) " >&6
  2791. else
  2792. # Double quotes because CPP needs to be expanded
  2793. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2794. do
  2795. ac_preproc_ok=false
  2796. for ac_c_preproc_warn_flag in '' yes
  2797. do
  2798. # Use a header file that comes with gcc, so configuring glibc
  2799. # with a fresh cross-compiler works.
  2800. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2801. # <limits.h> exists even on freestanding compilers.
  2802. # On the NeXT, cc -E runs the code through the compiler's parser,
  2803. # not just through cpp. "Syntax error" is here to catch this case.
  2804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2805. /* end confdefs.h. */
  2806. #ifdef __STDC__
  2807. # include <limits.h>
  2808. #else
  2809. # include <assert.h>
  2810. #endif
  2811. Syntax error
  2812. _ACEOF
  2813. if ac_fn_c_try_cpp "$LINENO"; then :
  2814. else
  2815. # Broken: fails on valid input.
  2816. continue
  2817. fi
  2818. rm -f conftest.err conftest.i conftest.$ac_ext
  2819. # OK, works on sane cases. Now check whether nonexistent headers
  2820. # can be detected and how.
  2821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end confdefs.h. */
  2823. #include <ac_nonexistent.h>
  2824. _ACEOF
  2825. if ac_fn_c_try_cpp "$LINENO"; then :
  2826. # Broken: success on invalid input.
  2827. continue
  2828. else
  2829. # Passes both tests.
  2830. ac_preproc_ok=:
  2831. break
  2832. fi
  2833. rm -f conftest.err conftest.i conftest.$ac_ext
  2834. done
  2835. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2836. rm -f conftest.i conftest.err conftest.$ac_ext
  2837. if $ac_preproc_ok; then :
  2838. break
  2839. fi
  2840. done
  2841. ac_cv_prog_CPP=$CPP
  2842. fi
  2843. CPP=$ac_cv_prog_CPP
  2844. else
  2845. ac_cv_prog_CPP=$CPP
  2846. fi
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2848. $as_echo "$CPP" >&6; }
  2849. ac_preproc_ok=false
  2850. for ac_c_preproc_warn_flag in '' yes
  2851. do
  2852. # Use a header file that comes with gcc, so configuring glibc
  2853. # with a fresh cross-compiler works.
  2854. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2855. # <limits.h> exists even on freestanding compilers.
  2856. # On the NeXT, cc -E runs the code through the compiler's parser,
  2857. # not just through cpp. "Syntax error" is here to catch this case.
  2858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2859. /* end confdefs.h. */
  2860. #ifdef __STDC__
  2861. # include <limits.h>
  2862. #else
  2863. # include <assert.h>
  2864. #endif
  2865. Syntax error
  2866. _ACEOF
  2867. if ac_fn_c_try_cpp "$LINENO"; then :
  2868. else
  2869. # Broken: fails on valid input.
  2870. continue
  2871. fi
  2872. rm -f conftest.err conftest.i conftest.$ac_ext
  2873. # OK, works on sane cases. Now check whether nonexistent headers
  2874. # can be detected and how.
  2875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2876. /* end confdefs.h. */
  2877. #include <ac_nonexistent.h>
  2878. _ACEOF
  2879. if ac_fn_c_try_cpp "$LINENO"; then :
  2880. # Broken: success on invalid input.
  2881. continue
  2882. else
  2883. # Passes both tests.
  2884. ac_preproc_ok=:
  2885. break
  2886. fi
  2887. rm -f conftest.err conftest.i conftest.$ac_ext
  2888. done
  2889. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2890. rm -f conftest.i conftest.err conftest.$ac_ext
  2891. if $ac_preproc_ok; then :
  2892. else
  2893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2895. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2896. See \`config.log' for more details" "$LINENO" 5; }
  2897. fi
  2898. ac_ext=c
  2899. ac_cpp='$CPP $CPPFLAGS'
  2900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2904. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2905. if ${ac_cv_path_GREP+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -z "$GREP"; then
  2909. ac_path_GREP_found=false
  2910. # Loop through the user's path and test for each of PROGNAME-LIST
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_prog in grep ggrep; do
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2919. as_fn_executable_p "$ac_path_GREP" || continue
  2920. # Check for GNU ac_path_GREP and select it if it is found.
  2921. # Check for GNU $ac_path_GREP
  2922. case `"$ac_path_GREP" --version 2>&1` in
  2923. *GNU*)
  2924. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2925. *)
  2926. ac_count=0
  2927. $as_echo_n 0123456789 >"conftest.in"
  2928. while :
  2929. do
  2930. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2931. mv "conftest.tmp" "conftest.in"
  2932. cp "conftest.in" "conftest.nl"
  2933. $as_echo 'GREP' >> "conftest.nl"
  2934. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2935. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2936. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2937. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2938. # Best one so far, save it but keep looking for a better one
  2939. ac_cv_path_GREP="$ac_path_GREP"
  2940. ac_path_GREP_max=$ac_count
  2941. fi
  2942. # 10*(2^10) chars as input seems more than enough
  2943. test $ac_count -gt 10 && break
  2944. done
  2945. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2946. esac
  2947. $ac_path_GREP_found && break 3
  2948. done
  2949. done
  2950. done
  2951. IFS=$as_save_IFS
  2952. if test -z "$ac_cv_path_GREP"; then
  2953. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2954. fi
  2955. else
  2956. ac_cv_path_GREP=$GREP
  2957. fi
  2958. fi
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2960. $as_echo "$ac_cv_path_GREP" >&6; }
  2961. GREP="$ac_cv_path_GREP"
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2963. $as_echo_n "checking for egrep... " >&6; }
  2964. if ${ac_cv_path_EGREP+:} false; then :
  2965. $as_echo_n "(cached) " >&6
  2966. else
  2967. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2968. then ac_cv_path_EGREP="$GREP -E"
  2969. else
  2970. if test -z "$EGREP"; then
  2971. ac_path_EGREP_found=false
  2972. # Loop through the user's path and test for each of PROGNAME-LIST
  2973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2975. do
  2976. IFS=$as_save_IFS
  2977. test -z "$as_dir" && as_dir=.
  2978. for ac_prog in egrep; do
  2979. for ac_exec_ext in '' $ac_executable_extensions; do
  2980. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2981. as_fn_executable_p "$ac_path_EGREP" || continue
  2982. # Check for GNU ac_path_EGREP and select it if it is found.
  2983. # Check for GNU $ac_path_EGREP
  2984. case `"$ac_path_EGREP" --version 2>&1` in
  2985. *GNU*)
  2986. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2987. *)
  2988. ac_count=0
  2989. $as_echo_n 0123456789 >"conftest.in"
  2990. while :
  2991. do
  2992. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2993. mv "conftest.tmp" "conftest.in"
  2994. cp "conftest.in" "conftest.nl"
  2995. $as_echo 'EGREP' >> "conftest.nl"
  2996. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2997. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2998. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2999. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3000. # Best one so far, save it but keep looking for a better one
  3001. ac_cv_path_EGREP="$ac_path_EGREP"
  3002. ac_path_EGREP_max=$ac_count
  3003. fi
  3004. # 10*(2^10) chars as input seems more than enough
  3005. test $ac_count -gt 10 && break
  3006. done
  3007. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3008. esac
  3009. $ac_path_EGREP_found && break 3
  3010. done
  3011. done
  3012. done
  3013. IFS=$as_save_IFS
  3014. if test -z "$ac_cv_path_EGREP"; then
  3015. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3016. fi
  3017. else
  3018. ac_cv_path_EGREP=$EGREP
  3019. fi
  3020. fi
  3021. fi
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3023. $as_echo "$ac_cv_path_EGREP" >&6; }
  3024. EGREP="$ac_cv_path_EGREP"
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3026. $as_echo_n "checking for ANSI C header files... " >&6; }
  3027. if ${ac_cv_header_stdc+:} false; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. #include <stdlib.h>
  3033. #include <stdarg.h>
  3034. #include <string.h>
  3035. #include <float.h>
  3036. int
  3037. main ()
  3038. {
  3039. ;
  3040. return 0;
  3041. }
  3042. _ACEOF
  3043. if ac_fn_c_try_compile "$LINENO"; then :
  3044. ac_cv_header_stdc=yes
  3045. else
  3046. ac_cv_header_stdc=no
  3047. fi
  3048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3049. if test $ac_cv_header_stdc = yes; then
  3050. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. /* end confdefs.h. */
  3053. #include <string.h>
  3054. _ACEOF
  3055. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3056. $EGREP "memchr" >/dev/null 2>&1; then :
  3057. else
  3058. ac_cv_header_stdc=no
  3059. fi
  3060. rm -f conftest*
  3061. fi
  3062. if test $ac_cv_header_stdc = yes; then
  3063. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. #include <stdlib.h>
  3067. _ACEOF
  3068. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3069. $EGREP "free" >/dev/null 2>&1; then :
  3070. else
  3071. ac_cv_header_stdc=no
  3072. fi
  3073. rm -f conftest*
  3074. fi
  3075. if test $ac_cv_header_stdc = yes; then
  3076. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3077. if test "$cross_compiling" = yes; then :
  3078. :
  3079. else
  3080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3081. /* end confdefs.h. */
  3082. #include <ctype.h>
  3083. #include <stdlib.h>
  3084. #if ((' ' & 0x0FF) == 0x020)
  3085. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3086. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3087. #else
  3088. # define ISLOWER(c) \
  3089. (('a' <= (c) && (c) <= 'i') \
  3090. || ('j' <= (c) && (c) <= 'r') \
  3091. || ('s' <= (c) && (c) <= 'z'))
  3092. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3093. #endif
  3094. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3095. int
  3096. main ()
  3097. {
  3098. int i;
  3099. for (i = 0; i < 256; i++)
  3100. if (XOR (islower (i), ISLOWER (i))
  3101. || toupper (i) != TOUPPER (i))
  3102. return 2;
  3103. return 0;
  3104. }
  3105. _ACEOF
  3106. if ac_fn_c_try_run "$LINENO"; then :
  3107. else
  3108. ac_cv_header_stdc=no
  3109. fi
  3110. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3111. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3112. fi
  3113. fi
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3116. $as_echo "$ac_cv_header_stdc" >&6; }
  3117. if test $ac_cv_header_stdc = yes; then
  3118. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3119. fi
  3120. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3121. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3122. inttypes.h stdint.h unistd.h
  3123. do :
  3124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3125. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3126. "
  3127. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3128. cat >>confdefs.h <<_ACEOF
  3129. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3130. _ACEOF
  3131. fi
  3132. done
  3133. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3134. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3135. MINIX=yes
  3136. else
  3137. MINIX=
  3138. fi
  3139. if test "$MINIX" = yes; then
  3140. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3141. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3142. $as_echo "#define _MINIX 1" >>confdefs.h
  3143. fi
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3145. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3146. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. # define __EXTENSIONS__ 1
  3152. $ac_includes_default
  3153. int
  3154. main ()
  3155. {
  3156. ;
  3157. return 0;
  3158. }
  3159. _ACEOF
  3160. if ac_fn_c_try_compile "$LINENO"; then :
  3161. ac_cv_safe_to_define___extensions__=yes
  3162. else
  3163. ac_cv_safe_to_define___extensions__=no
  3164. fi
  3165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3166. fi
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3168. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3169. test $ac_cv_safe_to_define___extensions__ = yes &&
  3170. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3171. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3172. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3173. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3174. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3175. # Initialize Automake
  3176. am__api_version='1.12'
  3177. ac_aux_dir=
  3178. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3179. if test -f "$ac_dir/install-sh"; then
  3180. ac_aux_dir=$ac_dir
  3181. ac_install_sh="$ac_aux_dir/install-sh -c"
  3182. break
  3183. elif test -f "$ac_dir/install.sh"; then
  3184. ac_aux_dir=$ac_dir
  3185. ac_install_sh="$ac_aux_dir/install.sh -c"
  3186. break
  3187. elif test -f "$ac_dir/shtool"; then
  3188. ac_aux_dir=$ac_dir
  3189. ac_install_sh="$ac_aux_dir/shtool install -c"
  3190. break
  3191. fi
  3192. done
  3193. if test -z "$ac_aux_dir"; then
  3194. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3195. fi
  3196. # These three variables are undocumented and unsupported,
  3197. # and are intended to be withdrawn in a future Autoconf release.
  3198. # They can cause serious problems if a builder's source tree is in a directory
  3199. # whose full name contains unusual characters.
  3200. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3201. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3202. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3203. # Find a good install program. We prefer a C program (faster),
  3204. # so one script is as good as another. But avoid the broken or
  3205. # incompatible versions:
  3206. # SysV /etc/install, /usr/sbin/install
  3207. # SunOS /usr/etc/install
  3208. # IRIX /sbin/install
  3209. # AIX /bin/install
  3210. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3211. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3212. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3213. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3214. # OS/2's system install, which has a completely different semantic
  3215. # ./install, which can be erroneously created by make from ./install.sh.
  3216. # Reject install programs that cannot install multiple files.
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3218. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3219. if test -z "$INSTALL"; then
  3220. if ${ac_cv_path_install+:} false; then :
  3221. $as_echo_n "(cached) " >&6
  3222. else
  3223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3224. for as_dir in $PATH
  3225. do
  3226. IFS=$as_save_IFS
  3227. test -z "$as_dir" && as_dir=.
  3228. # Account for people who put trailing slashes in PATH elements.
  3229. case $as_dir/ in #((
  3230. ./ | .// | /[cC]/* | \
  3231. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3232. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3233. /usr/ucb/* ) ;;
  3234. *)
  3235. # OSF1 and SCO ODT 3.0 have their own names for install.
  3236. # Don't use installbsd from OSF since it installs stuff as root
  3237. # by default.
  3238. for ac_prog in ginstall scoinst install; do
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3241. if test $ac_prog = install &&
  3242. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3243. # AIX install. It has an incompatible calling convention.
  3244. :
  3245. elif test $ac_prog = install &&
  3246. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3247. # program-specific install script used by HP pwplus--don't use.
  3248. :
  3249. else
  3250. rm -rf conftest.one conftest.two conftest.dir
  3251. echo one > conftest.one
  3252. echo two > conftest.two
  3253. mkdir conftest.dir
  3254. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3255. test -s conftest.one && test -s conftest.two &&
  3256. test -s conftest.dir/conftest.one &&
  3257. test -s conftest.dir/conftest.two
  3258. then
  3259. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3260. break 3
  3261. fi
  3262. fi
  3263. fi
  3264. done
  3265. done
  3266. ;;
  3267. esac
  3268. done
  3269. IFS=$as_save_IFS
  3270. rm -rf conftest.one conftest.two conftest.dir
  3271. fi
  3272. if test "${ac_cv_path_install+set}" = set; then
  3273. INSTALL=$ac_cv_path_install
  3274. else
  3275. # As a last resort, use the slow shell script. Don't cache a
  3276. # value for INSTALL within a source directory, because that will
  3277. # break other packages using the cache if that directory is
  3278. # removed, or if the value is a relative name.
  3279. INSTALL=$ac_install_sh
  3280. fi
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3283. $as_echo "$INSTALL" >&6; }
  3284. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3285. # It thinks the first close brace ends the variable substitution.
  3286. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3287. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3288. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3290. $as_echo_n "checking whether build environment is sane... " >&6; }
  3291. # Reject unsafe characters in $srcdir or the absolute working directory
  3292. # name. Accept space and tab only in the latter.
  3293. am_lf='
  3294. '
  3295. case `pwd` in
  3296. *[\\\"\#\$\&\'\`$am_lf]*)
  3297. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3298. esac
  3299. case $srcdir in
  3300. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3301. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3302. esac
  3303. # Do 'set' in a subshell so we don't clobber the current shell's
  3304. # arguments. Must try -L first in case configure is actually a
  3305. # symlink; some systems play weird games with the mod time of symlinks
  3306. # (eg FreeBSD returns the mod time of the symlink's containing
  3307. # directory).
  3308. if (
  3309. am_has_slept=no
  3310. for am_try in 1 2; do
  3311. echo "timestamp, slept: $am_has_slept" > conftest.file
  3312. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3313. if test "$*" = "X"; then
  3314. # -L didn't work.
  3315. set X `ls -t "$srcdir/configure" conftest.file`
  3316. fi
  3317. if test "$*" != "X $srcdir/configure conftest.file" \
  3318. && test "$*" != "X conftest.file $srcdir/configure"; then
  3319. # If neither matched, then we have a broken ls. This can happen
  3320. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3321. # broken ls alias from the environment. This has actually
  3322. # happened. Such a system could not be considered "sane".
  3323. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3324. alias in your environment" "$LINENO" 5
  3325. fi
  3326. if test "$2" = conftest.file || test $am_try -eq 2; then
  3327. break
  3328. fi
  3329. # Just in case.
  3330. sleep 1
  3331. am_has_slept=yes
  3332. done
  3333. test "$2" = conftest.file
  3334. )
  3335. then
  3336. # Ok.
  3337. :
  3338. else
  3339. as_fn_error $? "newly created file is older than distributed files!
  3340. Check your system clock" "$LINENO" 5
  3341. fi
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3343. $as_echo "yes" >&6; }
  3344. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3345. # generated files are strictly newer.
  3346. am_sleep_pid=
  3347. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3348. ( sleep 1 ) &
  3349. am_sleep_pid=$!
  3350. fi
  3351. rm -f conftest.file
  3352. test "$program_prefix" != NONE &&
  3353. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3354. # Use a double $ so make ignores it.
  3355. test "$program_suffix" != NONE &&
  3356. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3357. # Double any \ or $.
  3358. # By default was `s,x,x', remove it if useless.
  3359. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3360. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3361. # expand $ac_aux_dir to an absolute path
  3362. am_aux_dir=`cd $ac_aux_dir && pwd`
  3363. if test x"${MISSING+set}" != xset; then
  3364. case $am_aux_dir in
  3365. *\ * | *\ *)
  3366. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3367. *)
  3368. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3369. esac
  3370. fi
  3371. # Use eval to expand $SHELL
  3372. if eval "$MISSING --run true"; then
  3373. am_missing_run="$MISSING --run "
  3374. else
  3375. am_missing_run=
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3377. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3378. fi
  3379. if test x"${install_sh}" != xset; then
  3380. case $am_aux_dir in
  3381. *\ * | *\ *)
  3382. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3383. *)
  3384. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3385. esac
  3386. fi
  3387. # Installed binaries are usually stripped using 'strip' when the user
  3388. # run "make install-strip". However 'strip' might not be the right
  3389. # tool to use in cross-compilation environments, therefore Automake
  3390. # will honor the 'STRIP' environment variable to overrule this program.
  3391. if test "$cross_compiling" != no; then
  3392. if test -n "$ac_tool_prefix"; then
  3393. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3394. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3396. $as_echo_n "checking for $ac_word... " >&6; }
  3397. if ${ac_cv_prog_STRIP+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. if test -n "$STRIP"; then
  3401. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_exec_ext in '' $ac_executable_extensions; do
  3409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3410. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. fi
  3418. fi
  3419. STRIP=$ac_cv_prog_STRIP
  3420. if test -n "$STRIP"; then
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3422. $as_echo "$STRIP" >&6; }
  3423. else
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. fi
  3427. fi
  3428. if test -z "$ac_cv_prog_STRIP"; then
  3429. ac_ct_STRIP=$STRIP
  3430. # Extract the first word of "strip", so it can be a program name with args.
  3431. set dummy strip; ac_word=$2
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3433. $as_echo_n "checking for $ac_word... " >&6; }
  3434. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test -n "$ac_ct_STRIP"; then
  3438. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3439. else
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. test -z "$as_dir" && as_dir=.
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3447. ac_cv_prog_ac_ct_STRIP="strip"
  3448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3449. break 2
  3450. fi
  3451. done
  3452. done
  3453. IFS=$as_save_IFS
  3454. fi
  3455. fi
  3456. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3457. if test -n "$ac_ct_STRIP"; then
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3459. $as_echo "$ac_ct_STRIP" >&6; }
  3460. else
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3462. $as_echo "no" >&6; }
  3463. fi
  3464. if test "x$ac_ct_STRIP" = x; then
  3465. STRIP=":"
  3466. else
  3467. case $cross_compiling:$ac_tool_warned in
  3468. yes:)
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3471. ac_tool_warned=yes ;;
  3472. esac
  3473. STRIP=$ac_ct_STRIP
  3474. fi
  3475. else
  3476. STRIP="$ac_cv_prog_STRIP"
  3477. fi
  3478. fi
  3479. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3481. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3482. if test -z "$MKDIR_P"; then
  3483. if ${ac_cv_path_mkdir+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_prog in mkdir gmkdir; do
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3494. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3495. 'mkdir (GNU coreutils) '* | \
  3496. 'mkdir (coreutils) '* | \
  3497. 'mkdir (fileutils) '4.1*)
  3498. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3499. break 3;;
  3500. esac
  3501. done
  3502. done
  3503. done
  3504. IFS=$as_save_IFS
  3505. fi
  3506. test -d ./--version && rmdir ./--version
  3507. if test "${ac_cv_path_mkdir+set}" = set; then
  3508. MKDIR_P="$ac_cv_path_mkdir -p"
  3509. else
  3510. # As a last resort, use the slow shell script. Don't cache a
  3511. # value for MKDIR_P within a source directory, because that will
  3512. # break other packages using the cache if that directory is
  3513. # removed, or if the value is a relative name.
  3514. MKDIR_P="$ac_install_sh -d"
  3515. fi
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3518. $as_echo "$MKDIR_P" >&6; }
  3519. for ac_prog in gawk mawk nawk awk
  3520. do
  3521. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3522. set dummy $ac_prog; ac_word=$2
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3524. $as_echo_n "checking for $ac_word... " >&6; }
  3525. if ${ac_cv_prog_AWK+:} false; then :
  3526. $as_echo_n "(cached) " >&6
  3527. else
  3528. if test -n "$AWK"; then
  3529. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3530. else
  3531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3532. for as_dir in $PATH
  3533. do
  3534. IFS=$as_save_IFS
  3535. test -z "$as_dir" && as_dir=.
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3538. ac_cv_prog_AWK="$ac_prog"
  3539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. fi
  3546. fi
  3547. AWK=$ac_cv_prog_AWK
  3548. if test -n "$AWK"; then
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3550. $as_echo "$AWK" >&6; }
  3551. else
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3553. $as_echo "no" >&6; }
  3554. fi
  3555. test -n "$AWK" && break
  3556. done
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3558. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3559. set x ${MAKE-make}
  3560. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3561. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. cat >conftest.make <<\_ACEOF
  3565. SHELL = /bin/sh
  3566. all:
  3567. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3568. _ACEOF
  3569. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3570. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3571. *@@@%%%=?*=@@@%%%*)
  3572. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3573. *)
  3574. eval ac_cv_prog_make_${ac_make}_set=no;;
  3575. esac
  3576. rm -f conftest.make
  3577. fi
  3578. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3580. $as_echo "yes" >&6; }
  3581. SET_MAKE=
  3582. else
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. $as_echo "no" >&6; }
  3585. SET_MAKE="MAKE=${MAKE-make}"
  3586. fi
  3587. rm -rf .tst 2>/dev/null
  3588. mkdir .tst 2>/dev/null
  3589. if test -d .tst; then
  3590. am__leading_dot=.
  3591. else
  3592. am__leading_dot=_
  3593. fi
  3594. rmdir .tst 2>/dev/null
  3595. DEPDIR="${am__leading_dot}deps"
  3596. ac_config_commands="$ac_config_commands depfiles"
  3597. am_make=${MAKE-make}
  3598. cat > confinc << 'END'
  3599. am__doit:
  3600. @echo this is the am__doit target
  3601. .PHONY: am__doit
  3602. END
  3603. # If we don't find an include directive, just comment out the code.
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3605. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3606. am__include="#"
  3607. am__quote=
  3608. _am_result=none
  3609. # First try GNU make style include.
  3610. echo "include confinc" > confmf
  3611. # Ignore all kinds of additional output from 'make'.
  3612. case `$am_make -s -f confmf 2> /dev/null` in #(
  3613. *the\ am__doit\ target*)
  3614. am__include=include
  3615. am__quote=
  3616. _am_result=GNU
  3617. ;;
  3618. esac
  3619. # Now try BSD make style include.
  3620. if test "$am__include" = "#"; then
  3621. echo '.include "confinc"' > confmf
  3622. case `$am_make -s -f confmf 2> /dev/null` in #(
  3623. *the\ am__doit\ target*)
  3624. am__include=.include
  3625. am__quote="\""
  3626. _am_result=BSD
  3627. ;;
  3628. esac
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3631. $as_echo "$_am_result" >&6; }
  3632. rm -f confinc confmf
  3633. # Check whether --enable-dependency-tracking was given.
  3634. if test "${enable_dependency_tracking+set}" = set; then :
  3635. enableval=$enable_dependency_tracking;
  3636. fi
  3637. if test "x$enable_dependency_tracking" != xno; then
  3638. am_depcomp="$ac_aux_dir/depcomp"
  3639. AMDEPBACKSLASH='\'
  3640. am__nodep='_no'
  3641. fi
  3642. if test "x$enable_dependency_tracking" != xno; then
  3643. AMDEP_TRUE=
  3644. AMDEP_FALSE='#'
  3645. else
  3646. AMDEP_TRUE='#'
  3647. AMDEP_FALSE=
  3648. fi
  3649. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3650. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3651. # is not polluted with repeated "-I."
  3652. am__isrc=' -I$(srcdir)'
  3653. # test to see if srcdir already configured
  3654. if test -f $srcdir/config.status; then
  3655. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3656. fi
  3657. fi
  3658. # test whether we have cygpath
  3659. if test -z "$CYGPATH_W"; then
  3660. if (cygpath --version) >/dev/null 2>/dev/null; then
  3661. CYGPATH_W='cygpath -w'
  3662. else
  3663. CYGPATH_W=echo
  3664. fi
  3665. fi
  3666. # Define the identity of the package.
  3667. PACKAGE='xrefresh'
  3668. VERSION='1.0.5'
  3669. cat >>confdefs.h <<_ACEOF
  3670. #define PACKAGE "$PACKAGE"
  3671. _ACEOF
  3672. cat >>confdefs.h <<_ACEOF
  3673. #define VERSION "$VERSION"
  3674. _ACEOF
  3675. # Some tools Automake needs.
  3676. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3677. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3678. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3679. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3680. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3681. # For better backward compatibility. To be removed once Automake 1.9.x
  3682. # dies out for good. For more background, see:
  3683. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3684. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3685. mkdir_p='$(MKDIR_P)'
  3686. # We need awk for the "check" target. The system "awk" is bad on
  3687. # some platforms.
  3688. # Always define AMTAR for backward compatibility. Yes, it's still used
  3689. # in the wild :-( We should find a proper way to deprecate it ...
  3690. AMTAR='$${TAR-tar}'
  3691. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3692. depcc="$CC" am_compiler_list=
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3694. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3695. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3699. # We make a subdir and do the tests there. Otherwise we can end up
  3700. # making bogus files that we don't know about and never remove. For
  3701. # instance it was reported that on HP-UX the gcc test will end up
  3702. # making a dummy file named 'D' -- because '-MD' means "put the output
  3703. # in D".
  3704. rm -rf conftest.dir
  3705. mkdir conftest.dir
  3706. # Copy depcomp to subdir because otherwise we won't find it if we're
  3707. # using a relative directory.
  3708. cp "$am_depcomp" conftest.dir
  3709. cd conftest.dir
  3710. # We will build objects and dependencies in a subdirectory because
  3711. # it helps to detect inapplicable dependency modes. For instance
  3712. # both Tru64's cc and ICC support -MD to output dependencies as a
  3713. # side effect of compilation, but ICC will put the dependencies in
  3714. # the current directory while Tru64 will put them in the object
  3715. # directory.
  3716. mkdir sub
  3717. am_cv_CC_dependencies_compiler_type=none
  3718. if test "$am_compiler_list" = ""; then
  3719. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3720. fi
  3721. am__universal=false
  3722. case " $depcc " in #(
  3723. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3724. esac
  3725. for depmode in $am_compiler_list; do
  3726. # Setup a source with many dependencies, because some compilers
  3727. # like to wrap large dependency lists on column 80 (with \), and
  3728. # we should not choose a depcomp mode which is confused by this.
  3729. #
  3730. # We need to recreate these files for each test, as the compiler may
  3731. # overwrite some of them when testing with obscure command lines.
  3732. # This happens at least with the AIX C compiler.
  3733. : > sub/conftest.c
  3734. for i in 1 2 3 4 5 6; do
  3735. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3736. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3737. # Solaris 10 /bin/sh.
  3738. echo '/* dummy */' > sub/conftst$i.h
  3739. done
  3740. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3741. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3742. # mode. It turns out that the SunPro C++ compiler does not properly
  3743. # handle '-M -o', and we need to detect this. Also, some Intel
  3744. # versions had trouble with output in subdirs.
  3745. am__obj=sub/conftest.${OBJEXT-o}
  3746. am__minus_obj="-o $am__obj"
  3747. case $depmode in
  3748. gcc)
  3749. # This depmode causes a compiler race in universal mode.
  3750. test "$am__universal" = false || continue
  3751. ;;
  3752. nosideeffect)
  3753. # After this tag, mechanisms are not by side-effect, so they'll
  3754. # only be used when explicitly requested.
  3755. if test "x$enable_dependency_tracking" = xyes; then
  3756. continue
  3757. else
  3758. break
  3759. fi
  3760. ;;
  3761. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3762. # This compiler won't grok '-c -o', but also, the minuso test has
  3763. # not run yet. These depmodes are late enough in the game, and
  3764. # so weak that their functioning should not be impacted.
  3765. am__obj=conftest.${OBJEXT-o}
  3766. am__minus_obj=
  3767. ;;
  3768. none) break ;;
  3769. esac
  3770. if depmode=$depmode \
  3771. source=sub/conftest.c object=$am__obj \
  3772. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3773. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3774. >/dev/null 2>conftest.err &&
  3775. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3776. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3777. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3778. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3779. # icc doesn't choke on unknown options, it will just issue warnings
  3780. # or remarks (even with -Werror). So we grep stderr for any message
  3781. # that says an option was ignored or not supported.
  3782. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3783. # icc: Command line warning: ignoring option '-M'; no argument required
  3784. # The diagnosis changed in icc 8.0:
  3785. # icc: Command line remark: option '-MP' not supported
  3786. if (grep 'ignoring option' conftest.err ||
  3787. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3788. am_cv_CC_dependencies_compiler_type=$depmode
  3789. break
  3790. fi
  3791. fi
  3792. done
  3793. cd ..
  3794. rm -rf conftest.dir
  3795. else
  3796. am_cv_CC_dependencies_compiler_type=none
  3797. fi
  3798. fi
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3800. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3801. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3802. if
  3803. test "x$enable_dependency_tracking" != xno \
  3804. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3805. am__fastdepCC_TRUE=
  3806. am__fastdepCC_FALSE='#'
  3807. else
  3808. am__fastdepCC_TRUE='#'
  3809. am__fastdepCC_FALSE=
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3812. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3813. # Check whether --enable-maintainer-mode was given.
  3814. if test "${enable_maintainer_mode+set}" = set; then :
  3815. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3816. else
  3817. USE_MAINTAINER_MODE=no
  3818. fi
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3820. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3821. if test $USE_MAINTAINER_MODE = yes; then
  3822. MAINTAINER_MODE_TRUE=
  3823. MAINTAINER_MODE_FALSE='#'
  3824. else
  3825. MAINTAINER_MODE_TRUE='#'
  3826. MAINTAINER_MODE_FALSE=
  3827. fi
  3828. MAINT=$MAINTAINER_MODE_TRUE
  3829. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3831. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3832. if ${ac_cv_prog_cc_c99+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. ac_cv_prog_cc_c99=no
  3836. ac_save_CC=$CC
  3837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3838. /* end confdefs.h. */
  3839. #include <stdarg.h>
  3840. #include <stdbool.h>
  3841. #include <stdlib.h>
  3842. #include <wchar.h>
  3843. #include <stdio.h>
  3844. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3845. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3846. #define showlist(...) puts (#__VA_ARGS__)
  3847. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3848. static void
  3849. test_varargs_macros (void)
  3850. {
  3851. int x = 1234;
  3852. int y = 5678;
  3853. debug ("Flag");
  3854. debug ("X = %d\n", x);
  3855. showlist (The first, second, and third items.);
  3856. report (x>y, "x is %d but y is %d", x, y);
  3857. }
  3858. // Check long long types.
  3859. #define BIG64 18446744073709551615ull
  3860. #define BIG32 4294967295ul
  3861. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3862. #if !BIG_OK
  3863. your preprocessor is broken;
  3864. #endif
  3865. #if BIG_OK
  3866. #else
  3867. your preprocessor is broken;
  3868. #endif
  3869. static long long int bignum = -9223372036854775807LL;
  3870. static unsigned long long int ubignum = BIG64;
  3871. struct incomplete_array
  3872. {
  3873. int datasize;
  3874. double data[];
  3875. };
  3876. struct named_init {
  3877. int number;
  3878. const wchar_t *name;
  3879. double average;
  3880. };
  3881. typedef const char *ccp;
  3882. static inline int
  3883. test_restrict (ccp restrict text)
  3884. {
  3885. // See if C++-style comments work.
  3886. // Iterate through items via the restricted pointer.
  3887. // Also check for declarations in for loops.
  3888. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3889. continue;
  3890. return 0;
  3891. }
  3892. // Check varargs and va_copy.
  3893. static void
  3894. test_varargs (const char *format, ...)
  3895. {
  3896. va_list args;
  3897. va_start (args, format);
  3898. va_list args_copy;
  3899. va_copy (args_copy, args);
  3900. const char *str;
  3901. int number;
  3902. float fnumber;
  3903. while (*format)
  3904. {
  3905. switch (*format++)
  3906. {
  3907. case 's': // string
  3908. str = va_arg (args_copy, const char *);
  3909. break;
  3910. case 'd': // int
  3911. number = va_arg (args_copy, int);
  3912. break;
  3913. case 'f': // float
  3914. fnumber = va_arg (args_copy, double);
  3915. break;
  3916. default:
  3917. break;
  3918. }
  3919. }
  3920. va_end (args_copy);
  3921. va_end (args);
  3922. }
  3923. int
  3924. main ()
  3925. {
  3926. // Check bool.
  3927. _Bool success = false;
  3928. // Check restrict.
  3929. if (test_restrict ("String literal") == 0)
  3930. success = true;
  3931. char *restrict newvar = "Another string";
  3932. // Check varargs.
  3933. test_varargs ("s, d' f .", "string", 65, 34.234);
  3934. test_varargs_macros ();
  3935. // Check flexible array members.
  3936. struct incomplete_array *ia =
  3937. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3938. ia->datasize = 10;
  3939. for (int i = 0; i < ia->datasize; ++i)
  3940. ia->data[i] = i * 1.234;
  3941. // Check named initializers.
  3942. struct named_init ni = {
  3943. .number = 34,
  3944. .name = L"Test wide string",
  3945. .average = 543.34343,
  3946. };
  3947. ni.number = 58;
  3948. int dynamic_array[ni.number];
  3949. dynamic_array[ni.number - 1] = 543;
  3950. // work around unused variable warnings
  3951. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3952. || dynamic_array[ni.number - 1] != 543);
  3953. ;
  3954. return 0;
  3955. }
  3956. _ACEOF
  3957. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3958. do
  3959. CC="$ac_save_CC $ac_arg"
  3960. if ac_fn_c_try_compile "$LINENO"; then :
  3961. ac_cv_prog_cc_c99=$ac_arg
  3962. fi
  3963. rm -f core conftest.err conftest.$ac_objext
  3964. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3965. done
  3966. rm -f conftest.$ac_ext
  3967. CC=$ac_save_CC
  3968. fi
  3969. # AC_CACHE_VAL
  3970. case "x$ac_cv_prog_cc_c99" in
  3971. x)
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3973. $as_echo "none needed" >&6; } ;;
  3974. xno)
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3976. $as_echo "unsupported" >&6; } ;;
  3977. *)
  3978. CC="$CC $ac_cv_prog_cc_c99"
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3980. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3981. esac
  3982. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3983. fi
  3984. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3985. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3986. CLANGCC="yes"
  3987. else
  3988. CLANGCC="no"
  3989. fi
  3990. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3991. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3992. INTELCC="yes"
  3993. else
  3994. INTELCC="no"
  3995. fi
  3996. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3997. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3998. SUNCC="yes"
  3999. else
  4000. SUNCC="no"
  4001. fi
  4002. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4003. if test -n "$ac_tool_prefix"; then
  4004. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4005. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4007. $as_echo_n "checking for $ac_word... " >&6; }
  4008. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. case $PKG_CONFIG in
  4012. [\\/]* | ?:[\\/]*)
  4013. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4014. ;;
  4015. *)
  4016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4017. for as_dir in $PATH
  4018. do
  4019. IFS=$as_save_IFS
  4020. test -z "$as_dir" && as_dir=.
  4021. for ac_exec_ext in '' $ac_executable_extensions; do
  4022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4023. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4025. break 2
  4026. fi
  4027. done
  4028. done
  4029. IFS=$as_save_IFS
  4030. ;;
  4031. esac
  4032. fi
  4033. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4034. if test -n "$PKG_CONFIG"; then
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4036. $as_echo "$PKG_CONFIG" >&6; }
  4037. else
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4039. $as_echo "no" >&6; }
  4040. fi
  4041. fi
  4042. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4043. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4044. # Extract the first word of "pkg-config", so it can be a program name with args.
  4045. set dummy pkg-config; ac_word=$2
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4047. $as_echo_n "checking for $ac_word... " >&6; }
  4048. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. case $ac_pt_PKG_CONFIG in
  4052. [\\/]* | ?:[\\/]*)
  4053. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4054. ;;
  4055. *)
  4056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4057. for as_dir in $PATH
  4058. do
  4059. IFS=$as_save_IFS
  4060. test -z "$as_dir" && as_dir=.
  4061. for ac_exec_ext in '' $ac_executable_extensions; do
  4062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4063. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4065. break 2
  4066. fi
  4067. done
  4068. done
  4069. IFS=$as_save_IFS
  4070. ;;
  4071. esac
  4072. fi
  4073. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4074. if test -n "$ac_pt_PKG_CONFIG"; then
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4076. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4077. else
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4079. $as_echo "no" >&6; }
  4080. fi
  4081. if test "x$ac_pt_PKG_CONFIG" = x; then
  4082. PKG_CONFIG=""
  4083. else
  4084. case $cross_compiling:$ac_tool_warned in
  4085. yes:)
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4088. ac_tool_warned=yes ;;
  4089. esac
  4090. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4091. fi
  4092. else
  4093. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4094. fi
  4095. fi
  4096. if test -n "$PKG_CONFIG"; then
  4097. _pkg_min_version=0.9.0
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4099. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4100. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4102. $as_echo "yes" >&6; }
  4103. else
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4105. $as_echo "no" >&6; }
  4106. PKG_CONFIG=""
  4107. fi
  4108. fi
  4109. # Make sure we can run config.sub.
  4110. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4111. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4113. $as_echo_n "checking build system type... " >&6; }
  4114. if ${ac_cv_build+:} false; then :
  4115. $as_echo_n "(cached) " >&6
  4116. else
  4117. ac_build_alias=$build_alias
  4118. test "x$ac_build_alias" = x &&
  4119. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4120. test "x$ac_build_alias" = x &&
  4121. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4122. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4123. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4126. $as_echo "$ac_cv_build" >&6; }
  4127. case $ac_cv_build in
  4128. *-*-*) ;;
  4129. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4130. esac
  4131. build=$ac_cv_build
  4132. ac_save_IFS=$IFS; IFS='-'
  4133. set x $ac_cv_build
  4134. shift
  4135. build_cpu=$1
  4136. build_vendor=$2
  4137. shift; shift
  4138. # Remember, the first character of IFS is used to create $*,
  4139. # except with old shells:
  4140. build_os=$*
  4141. IFS=$ac_save_IFS
  4142. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4144. $as_echo_n "checking host system type... " >&6; }
  4145. if ${ac_cv_host+:} false; then :
  4146. $as_echo_n "(cached) " >&6
  4147. else
  4148. if test "x$host_alias" = x; then
  4149. ac_cv_host=$ac_cv_build
  4150. else
  4151. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4152. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4153. fi
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4156. $as_echo "$ac_cv_host" >&6; }
  4157. case $ac_cv_host in
  4158. *-*-*) ;;
  4159. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4160. esac
  4161. host=$ac_cv_host
  4162. ac_save_IFS=$IFS; IFS='-'
  4163. set x $ac_cv_host
  4164. shift
  4165. host_cpu=$1
  4166. host_vendor=$2
  4167. shift; shift
  4168. # Remember, the first character of IFS is used to create $*,
  4169. # except with old shells:
  4170. host_os=$*
  4171. IFS=$ac_save_IFS
  4172. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4174. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4175. if ${ac_cv_path_SED+:} false; then :
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4179. for ac_i in 1 2 3 4 5 6 7; do
  4180. ac_script="$ac_script$as_nl$ac_script"
  4181. done
  4182. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4183. { ac_script=; unset ac_script;}
  4184. if test -z "$SED"; then
  4185. ac_path_SED_found=false
  4186. # Loop through the user's path and test for each of PROGNAME-LIST
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH
  4189. do
  4190. IFS=$as_save_IFS
  4191. test -z "$as_dir" && as_dir=.
  4192. for ac_prog in sed gsed; do
  4193. for ac_exec_ext in '' $ac_executable_extensions; do
  4194. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4195. as_fn_executable_p "$ac_path_SED" || continue
  4196. # Check for GNU ac_path_SED and select it if it is found.
  4197. # Check for GNU $ac_path_SED
  4198. case `"$ac_path_SED" --version 2>&1` in
  4199. *GNU*)
  4200. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4201. *)
  4202. ac_count=0
  4203. $as_echo_n 0123456789 >"conftest.in"
  4204. while :
  4205. do
  4206. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4207. mv "conftest.tmp" "conftest.in"
  4208. cp "conftest.in" "conftest.nl"
  4209. $as_echo '' >> "conftest.nl"
  4210. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4211. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4212. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4213. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4214. # Best one so far, save it but keep looking for a better one
  4215. ac_cv_path_SED="$ac_path_SED"
  4216. ac_path_SED_max=$ac_count
  4217. fi
  4218. # 10*(2^10) chars as input seems more than enough
  4219. test $ac_count -gt 10 && break
  4220. done
  4221. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4222. esac
  4223. $ac_path_SED_found && break 3
  4224. done
  4225. done
  4226. done
  4227. IFS=$as_save_IFS
  4228. if test -z "$ac_cv_path_SED"; then
  4229. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4230. fi
  4231. else
  4232. ac_cv_path_SED=$SED
  4233. fi
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4236. $as_echo "$ac_cv_path_SED" >&6; }
  4237. SED="$ac_cv_path_SED"
  4238. rm -f conftest.sed
  4239. # Check whether --enable-selective-werror was given.
  4240. if test "${enable_selective_werror+set}" = set; then :
  4241. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4242. else
  4243. SELECTIVE_WERROR=yes
  4244. fi
  4245. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4246. if test "x$SUNCC" = "xyes"; then
  4247. BASE_CFLAGS="-v"
  4248. else
  4249. BASE_CFLAGS=""
  4250. fi
  4251. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4252. xorg_testset_save_CFLAGS="$CFLAGS"
  4253. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4254. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4256. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4257. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4261. /* end confdefs.h. */
  4262. int i;
  4263. _ACEOF
  4264. if ac_fn_c_try_compile "$LINENO"; then :
  4265. xorg_cv_cc_flag_unknown_warning_option=yes
  4266. else
  4267. xorg_cv_cc_flag_unknown_warning_option=no
  4268. fi
  4269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4270. fi
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4272. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4273. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4274. CFLAGS="$xorg_testset_save_CFLAGS"
  4275. fi
  4276. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4277. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4278. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4279. fi
  4280. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4282. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4283. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. int i;
  4289. _ACEOF
  4290. if ac_fn_c_try_compile "$LINENO"; then :
  4291. xorg_cv_cc_flag_unused_command_line_argument=yes
  4292. else
  4293. xorg_cv_cc_flag_unused_command_line_argument=no
  4294. fi
  4295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4296. fi
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4298. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4299. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4300. CFLAGS="$xorg_testset_save_CFLAGS"
  4301. fi
  4302. found="no"
  4303. if test $found = "no" ; then
  4304. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4305. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4306. fi
  4307. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4308. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4309. fi
  4310. CFLAGS="$CFLAGS -Wall"
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
  4312. $as_echo_n "checking if $CC supports-Wall... " >&6; }
  4313. cacheid=xorg_cv_cc_flag__Wall
  4314. if eval \${$cacheid+:} false; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. int i;
  4320. int
  4321. main ()
  4322. {
  4323. ;
  4324. return 0;
  4325. }
  4326. _ACEOF
  4327. if ac_fn_c_try_link "$LINENO"; then :
  4328. eval $cacheid=yes
  4329. else
  4330. eval $cacheid=no
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext \
  4333. conftest$ac_exeext conftest.$ac_ext
  4334. fi
  4335. CFLAGS="$xorg_testset_save_CFLAGS"
  4336. eval supported=\$$cacheid
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4338. $as_echo "$supported" >&6; }
  4339. if test "$supported" = "yes" ; then
  4340. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4341. found="yes"
  4342. fi
  4343. fi
  4344. xorg_testset_save_CFLAGS="$CFLAGS"
  4345. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4346. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4348. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4349. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4353. /* end confdefs.h. */
  4354. int i;
  4355. _ACEOF
  4356. if ac_fn_c_try_compile "$LINENO"; then :
  4357. xorg_cv_cc_flag_unknown_warning_option=yes
  4358. else
  4359. xorg_cv_cc_flag_unknown_warning_option=no
  4360. fi
  4361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4364. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4365. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4366. CFLAGS="$xorg_testset_save_CFLAGS"
  4367. fi
  4368. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4369. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4370. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4371. fi
  4372. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4374. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4375. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4376. $as_echo_n "(cached) " >&6
  4377. else
  4378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4379. /* end confdefs.h. */
  4380. int i;
  4381. _ACEOF
  4382. if ac_fn_c_try_compile "$LINENO"; then :
  4383. xorg_cv_cc_flag_unused_command_line_argument=yes
  4384. else
  4385. xorg_cv_cc_flag_unused_command_line_argument=no
  4386. fi
  4387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4388. fi
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4390. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4391. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4392. CFLAGS="$xorg_testset_save_CFLAGS"
  4393. fi
  4394. found="no"
  4395. if test $found = "no" ; then
  4396. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4397. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4398. fi
  4399. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4400. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4401. fi
  4402. CFLAGS="$CFLAGS -Wpointer-arith"
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
  4404. $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
  4405. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4406. if eval \${$cacheid+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. int i;
  4412. int
  4413. main ()
  4414. {
  4415. ;
  4416. return 0;
  4417. }
  4418. _ACEOF
  4419. if ac_fn_c_try_link "$LINENO"; then :
  4420. eval $cacheid=yes
  4421. else
  4422. eval $cacheid=no
  4423. fi
  4424. rm -f core conftest.err conftest.$ac_objext \
  4425. conftest$ac_exeext conftest.$ac_ext
  4426. fi
  4427. CFLAGS="$xorg_testset_save_CFLAGS"
  4428. eval supported=\$$cacheid
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4430. $as_echo "$supported" >&6; }
  4431. if test "$supported" = "yes" ; then
  4432. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4433. found="yes"
  4434. fi
  4435. fi
  4436. xorg_testset_save_CFLAGS="$CFLAGS"
  4437. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4438. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4440. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4441. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4442. $as_echo_n "(cached) " >&6
  4443. else
  4444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4445. /* end confdefs.h. */
  4446. int i;
  4447. _ACEOF
  4448. if ac_fn_c_try_compile "$LINENO"; then :
  4449. xorg_cv_cc_flag_unknown_warning_option=yes
  4450. else
  4451. xorg_cv_cc_flag_unknown_warning_option=no
  4452. fi
  4453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4454. fi
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4456. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4457. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4458. CFLAGS="$xorg_testset_save_CFLAGS"
  4459. fi
  4460. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4461. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4462. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4463. fi
  4464. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4466. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4467. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4471. /* end confdefs.h. */
  4472. int i;
  4473. _ACEOF
  4474. if ac_fn_c_try_compile "$LINENO"; then :
  4475. xorg_cv_cc_flag_unused_command_line_argument=yes
  4476. else
  4477. xorg_cv_cc_flag_unused_command_line_argument=no
  4478. fi
  4479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4480. fi
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4482. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4483. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4484. CFLAGS="$xorg_testset_save_CFLAGS"
  4485. fi
  4486. found="no"
  4487. if test $found = "no" ; then
  4488. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4489. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4490. fi
  4491. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4492. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4493. fi
  4494. CFLAGS="$CFLAGS -Wmissing-declarations"
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
  4496. $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
  4497. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4498. if eval \${$cacheid+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4502. /* end confdefs.h. */
  4503. int i;
  4504. int
  4505. main ()
  4506. {
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. if ac_fn_c_try_link "$LINENO"; then :
  4512. eval $cacheid=yes
  4513. else
  4514. eval $cacheid=no
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext \
  4517. conftest$ac_exeext conftest.$ac_ext
  4518. fi
  4519. CFLAGS="$xorg_testset_save_CFLAGS"
  4520. eval supported=\$$cacheid
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4522. $as_echo "$supported" >&6; }
  4523. if test "$supported" = "yes" ; then
  4524. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4525. found="yes"
  4526. fi
  4527. fi
  4528. xorg_testset_save_CFLAGS="$CFLAGS"
  4529. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4530. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4532. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4533. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4537. /* end confdefs.h. */
  4538. int i;
  4539. _ACEOF
  4540. if ac_fn_c_try_compile "$LINENO"; then :
  4541. xorg_cv_cc_flag_unknown_warning_option=yes
  4542. else
  4543. xorg_cv_cc_flag_unknown_warning_option=no
  4544. fi
  4545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4548. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4549. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4550. CFLAGS="$xorg_testset_save_CFLAGS"
  4551. fi
  4552. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4553. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4554. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4555. fi
  4556. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4558. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4559. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4563. /* end confdefs.h. */
  4564. int i;
  4565. _ACEOF
  4566. if ac_fn_c_try_compile "$LINENO"; then :
  4567. xorg_cv_cc_flag_unused_command_line_argument=yes
  4568. else
  4569. xorg_cv_cc_flag_unused_command_line_argument=no
  4570. fi
  4571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4572. fi
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4574. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4575. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4576. CFLAGS="$xorg_testset_save_CFLAGS"
  4577. fi
  4578. found="no"
  4579. if test $found = "no" ; then
  4580. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4581. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4582. fi
  4583. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4584. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4585. fi
  4586. CFLAGS="$CFLAGS -Wformat=2"
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
  4588. $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
  4589. cacheid=xorg_cv_cc_flag__Wformat_2
  4590. if eval \${$cacheid+:} false; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4594. /* end confdefs.h. */
  4595. int i;
  4596. int
  4597. main ()
  4598. {
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. if ac_fn_c_try_link "$LINENO"; then :
  4604. eval $cacheid=yes
  4605. else
  4606. eval $cacheid=no
  4607. fi
  4608. rm -f core conftest.err conftest.$ac_objext \
  4609. conftest$ac_exeext conftest.$ac_ext
  4610. fi
  4611. CFLAGS="$xorg_testset_save_CFLAGS"
  4612. eval supported=\$$cacheid
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4614. $as_echo "$supported" >&6; }
  4615. if test "$supported" = "yes" ; then
  4616. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4617. found="yes"
  4618. fi
  4619. fi
  4620. if test $found = "no" ; then
  4621. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4622. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4623. fi
  4624. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4625. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4626. fi
  4627. CFLAGS="$CFLAGS -Wformat"
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
  4629. $as_echo_n "checking if $CC supports-Wformat... " >&6; }
  4630. cacheid=xorg_cv_cc_flag__Wformat
  4631. if eval \${$cacheid+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4635. /* end confdefs.h. */
  4636. int i;
  4637. int
  4638. main ()
  4639. {
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. if ac_fn_c_try_link "$LINENO"; then :
  4645. eval $cacheid=yes
  4646. else
  4647. eval $cacheid=no
  4648. fi
  4649. rm -f core conftest.err conftest.$ac_objext \
  4650. conftest$ac_exeext conftest.$ac_ext
  4651. fi
  4652. CFLAGS="$xorg_testset_save_CFLAGS"
  4653. eval supported=\$$cacheid
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4655. $as_echo "$supported" >&6; }
  4656. if test "$supported" = "yes" ; then
  4657. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4658. found="yes"
  4659. fi
  4660. fi
  4661. xorg_testset_save_CFLAGS="$CFLAGS"
  4662. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4663. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4665. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4666. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4667. $as_echo_n "(cached) " >&6
  4668. else
  4669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4670. /* end confdefs.h. */
  4671. int i;
  4672. _ACEOF
  4673. if ac_fn_c_try_compile "$LINENO"; then :
  4674. xorg_cv_cc_flag_unknown_warning_option=yes
  4675. else
  4676. xorg_cv_cc_flag_unknown_warning_option=no
  4677. fi
  4678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4681. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4682. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4683. CFLAGS="$xorg_testset_save_CFLAGS"
  4684. fi
  4685. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4686. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4687. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4688. fi
  4689. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4691. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4692. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4696. /* end confdefs.h. */
  4697. int i;
  4698. _ACEOF
  4699. if ac_fn_c_try_compile "$LINENO"; then :
  4700. xorg_cv_cc_flag_unused_command_line_argument=yes
  4701. else
  4702. xorg_cv_cc_flag_unused_command_line_argument=no
  4703. fi
  4704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4705. fi
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4707. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4708. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4709. CFLAGS="$xorg_testset_save_CFLAGS"
  4710. fi
  4711. found="no"
  4712. if test $found = "no" ; then
  4713. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4714. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4715. fi
  4716. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4717. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4718. fi
  4719. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
  4721. $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
  4722. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4723. if eval \${$cacheid+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4727. /* end confdefs.h. */
  4728. int i;
  4729. int
  4730. main ()
  4731. {
  4732. ;
  4733. return 0;
  4734. }
  4735. _ACEOF
  4736. if ac_fn_c_try_link "$LINENO"; then :
  4737. eval $cacheid=yes
  4738. else
  4739. eval $cacheid=no
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext \
  4742. conftest$ac_exeext conftest.$ac_ext
  4743. fi
  4744. CFLAGS="$xorg_testset_save_CFLAGS"
  4745. eval supported=\$$cacheid
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4747. $as_echo "$supported" >&6; }
  4748. if test "$supported" = "yes" ; then
  4749. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4750. found="yes"
  4751. fi
  4752. fi
  4753. xorg_testset_save_CFLAGS="$CFLAGS"
  4754. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4755. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4757. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4758. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4759. $as_echo_n "(cached) " >&6
  4760. else
  4761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4762. /* end confdefs.h. */
  4763. int i;
  4764. _ACEOF
  4765. if ac_fn_c_try_compile "$LINENO"; then :
  4766. xorg_cv_cc_flag_unknown_warning_option=yes
  4767. else
  4768. xorg_cv_cc_flag_unknown_warning_option=no
  4769. fi
  4770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4771. fi
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4773. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4774. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4775. CFLAGS="$xorg_testset_save_CFLAGS"
  4776. fi
  4777. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4778. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4779. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4780. fi
  4781. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4783. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4784. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4785. $as_echo_n "(cached) " >&6
  4786. else
  4787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4788. /* end confdefs.h. */
  4789. int i;
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. xorg_cv_cc_flag_unused_command_line_argument=yes
  4793. else
  4794. xorg_cv_cc_flag_unused_command_line_argument=no
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. fi
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4799. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4800. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4801. CFLAGS="$xorg_testset_save_CFLAGS"
  4802. fi
  4803. found="no"
  4804. if test $found = "no" ; then
  4805. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4806. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4807. fi
  4808. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4809. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4810. fi
  4811. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
  4813. $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
  4814. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4815. if eval \${$cacheid+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end confdefs.h. */
  4820. int i;
  4821. int
  4822. main ()
  4823. {
  4824. ;
  4825. return 0;
  4826. }
  4827. _ACEOF
  4828. if ac_fn_c_try_link "$LINENO"; then :
  4829. eval $cacheid=yes
  4830. else
  4831. eval $cacheid=no
  4832. fi
  4833. rm -f core conftest.err conftest.$ac_objext \
  4834. conftest$ac_exeext conftest.$ac_ext
  4835. fi
  4836. CFLAGS="$xorg_testset_save_CFLAGS"
  4837. eval supported=\$$cacheid
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4839. $as_echo "$supported" >&6; }
  4840. if test "$supported" = "yes" ; then
  4841. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4842. found="yes"
  4843. fi
  4844. fi
  4845. xorg_testset_save_CFLAGS="$CFLAGS"
  4846. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4847. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4849. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4850. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4854. /* end confdefs.h. */
  4855. int i;
  4856. _ACEOF
  4857. if ac_fn_c_try_compile "$LINENO"; then :
  4858. xorg_cv_cc_flag_unknown_warning_option=yes
  4859. else
  4860. xorg_cv_cc_flag_unknown_warning_option=no
  4861. fi
  4862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4863. fi
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4865. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4866. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4867. CFLAGS="$xorg_testset_save_CFLAGS"
  4868. fi
  4869. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4870. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4871. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4872. fi
  4873. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4875. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4876. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4880. /* end confdefs.h. */
  4881. int i;
  4882. _ACEOF
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. xorg_cv_cc_flag_unused_command_line_argument=yes
  4885. else
  4886. xorg_cv_cc_flag_unused_command_line_argument=no
  4887. fi
  4888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4889. fi
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4891. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4892. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4893. CFLAGS="$xorg_testset_save_CFLAGS"
  4894. fi
  4895. found="no"
  4896. if test $found = "no" ; then
  4897. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4898. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4899. fi
  4900. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4901. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4902. fi
  4903. CFLAGS="$CFLAGS -Wnested-externs"
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
  4905. $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
  4906. cacheid=xorg_cv_cc_flag__Wnested_externs
  4907. if eval \${$cacheid+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4911. /* end confdefs.h. */
  4912. int i;
  4913. int
  4914. main ()
  4915. {
  4916. ;
  4917. return 0;
  4918. }
  4919. _ACEOF
  4920. if ac_fn_c_try_link "$LINENO"; then :
  4921. eval $cacheid=yes
  4922. else
  4923. eval $cacheid=no
  4924. fi
  4925. rm -f core conftest.err conftest.$ac_objext \
  4926. conftest$ac_exeext conftest.$ac_ext
  4927. fi
  4928. CFLAGS="$xorg_testset_save_CFLAGS"
  4929. eval supported=\$$cacheid
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4931. $as_echo "$supported" >&6; }
  4932. if test "$supported" = "yes" ; then
  4933. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4934. found="yes"
  4935. fi
  4936. fi
  4937. xorg_testset_save_CFLAGS="$CFLAGS"
  4938. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4939. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4941. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4942. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4946. /* end confdefs.h. */
  4947. int i;
  4948. _ACEOF
  4949. if ac_fn_c_try_compile "$LINENO"; then :
  4950. xorg_cv_cc_flag_unknown_warning_option=yes
  4951. else
  4952. xorg_cv_cc_flag_unknown_warning_option=no
  4953. fi
  4954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4955. fi
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4957. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4958. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4959. CFLAGS="$xorg_testset_save_CFLAGS"
  4960. fi
  4961. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4962. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4963. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4964. fi
  4965. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4967. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4968. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4969. $as_echo_n "(cached) " >&6
  4970. else
  4971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4972. /* end confdefs.h. */
  4973. int i;
  4974. _ACEOF
  4975. if ac_fn_c_try_compile "$LINENO"; then :
  4976. xorg_cv_cc_flag_unused_command_line_argument=yes
  4977. else
  4978. xorg_cv_cc_flag_unused_command_line_argument=no
  4979. fi
  4980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4981. fi
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4983. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4984. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4985. CFLAGS="$xorg_testset_save_CFLAGS"
  4986. fi
  4987. found="no"
  4988. if test $found = "no" ; then
  4989. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4990. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4991. fi
  4992. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4993. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4994. fi
  4995. CFLAGS="$CFLAGS -Wbad-function-cast"
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
  4997. $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
  4998. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4999. if eval \${$cacheid+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5003. /* end confdefs.h. */
  5004. int i;
  5005. int
  5006. main ()
  5007. {
  5008. ;
  5009. return 0;
  5010. }
  5011. _ACEOF
  5012. if ac_fn_c_try_link "$LINENO"; then :
  5013. eval $cacheid=yes
  5014. else
  5015. eval $cacheid=no
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext \
  5018. conftest$ac_exeext conftest.$ac_ext
  5019. fi
  5020. CFLAGS="$xorg_testset_save_CFLAGS"
  5021. eval supported=\$$cacheid
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5023. $as_echo "$supported" >&6; }
  5024. if test "$supported" = "yes" ; then
  5025. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  5026. found="yes"
  5027. fi
  5028. fi
  5029. xorg_testset_save_CFLAGS="$CFLAGS"
  5030. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5031. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5033. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5034. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5038. /* end confdefs.h. */
  5039. int i;
  5040. _ACEOF
  5041. if ac_fn_c_try_compile "$LINENO"; then :
  5042. xorg_cv_cc_flag_unknown_warning_option=yes
  5043. else
  5044. xorg_cv_cc_flag_unknown_warning_option=no
  5045. fi
  5046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5047. fi
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5049. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5050. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5051. CFLAGS="$xorg_testset_save_CFLAGS"
  5052. fi
  5053. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5054. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5055. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5056. fi
  5057. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5059. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5060. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5064. /* end confdefs.h. */
  5065. int i;
  5066. _ACEOF
  5067. if ac_fn_c_try_compile "$LINENO"; then :
  5068. xorg_cv_cc_flag_unused_command_line_argument=yes
  5069. else
  5070. xorg_cv_cc_flag_unused_command_line_argument=no
  5071. fi
  5072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5073. fi
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5075. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5076. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5077. CFLAGS="$xorg_testset_save_CFLAGS"
  5078. fi
  5079. found="no"
  5080. if test $found = "no" ; then
  5081. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5082. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5083. fi
  5084. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5085. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5086. fi
  5087. CFLAGS="$CFLAGS -Wold-style-definition"
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
  5089. $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
  5090. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5091. if eval \${$cacheid+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5095. /* end confdefs.h. */
  5096. int i;
  5097. int
  5098. main ()
  5099. {
  5100. ;
  5101. return 0;
  5102. }
  5103. _ACEOF
  5104. if ac_fn_c_try_link "$LINENO"; then :
  5105. eval $cacheid=yes
  5106. else
  5107. eval $cacheid=no
  5108. fi
  5109. rm -f core conftest.err conftest.$ac_objext \
  5110. conftest$ac_exeext conftest.$ac_ext
  5111. fi
  5112. CFLAGS="$xorg_testset_save_CFLAGS"
  5113. eval supported=\$$cacheid
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5115. $as_echo "$supported" >&6; }
  5116. if test "$supported" = "yes" ; then
  5117. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5118. found="yes"
  5119. fi
  5120. fi
  5121. xorg_testset_save_CFLAGS="$CFLAGS"
  5122. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5123. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5125. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5126. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5130. /* end confdefs.h. */
  5131. int i;
  5132. _ACEOF
  5133. if ac_fn_c_try_compile "$LINENO"; then :
  5134. xorg_cv_cc_flag_unknown_warning_option=yes
  5135. else
  5136. xorg_cv_cc_flag_unknown_warning_option=no
  5137. fi
  5138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5139. fi
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5141. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5142. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5143. CFLAGS="$xorg_testset_save_CFLAGS"
  5144. fi
  5145. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5146. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5147. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5148. fi
  5149. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5151. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5152. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5153. $as_echo_n "(cached) " >&6
  5154. else
  5155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5156. /* end confdefs.h. */
  5157. int i;
  5158. _ACEOF
  5159. if ac_fn_c_try_compile "$LINENO"; then :
  5160. xorg_cv_cc_flag_unused_command_line_argument=yes
  5161. else
  5162. xorg_cv_cc_flag_unused_command_line_argument=no
  5163. fi
  5164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5165. fi
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5167. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5168. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5169. CFLAGS="$xorg_testset_save_CFLAGS"
  5170. fi
  5171. found="no"
  5172. if test $found = "no" ; then
  5173. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5174. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5175. fi
  5176. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5177. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5178. fi
  5179. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
  5181. $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
  5182. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5183. if eval \${$cacheid+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5187. /* end confdefs.h. */
  5188. int i;
  5189. int
  5190. main ()
  5191. {
  5192. ;
  5193. return 0;
  5194. }
  5195. _ACEOF
  5196. if ac_fn_c_try_link "$LINENO"; then :
  5197. eval $cacheid=yes
  5198. else
  5199. eval $cacheid=no
  5200. fi
  5201. rm -f core conftest.err conftest.$ac_objext \
  5202. conftest$ac_exeext conftest.$ac_ext
  5203. fi
  5204. CFLAGS="$xorg_testset_save_CFLAGS"
  5205. eval supported=\$$cacheid
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5207. $as_echo "$supported" >&6; }
  5208. if test "$supported" = "yes" ; then
  5209. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5210. found="yes"
  5211. fi
  5212. fi
  5213. # This chunk adds additional warnings that could catch undesired effects.
  5214. xorg_testset_save_CFLAGS="$CFLAGS"
  5215. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5216. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5218. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5219. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5223. /* end confdefs.h. */
  5224. int i;
  5225. _ACEOF
  5226. if ac_fn_c_try_compile "$LINENO"; then :
  5227. xorg_cv_cc_flag_unknown_warning_option=yes
  5228. else
  5229. xorg_cv_cc_flag_unknown_warning_option=no
  5230. fi
  5231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5232. fi
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5234. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5235. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5236. CFLAGS="$xorg_testset_save_CFLAGS"
  5237. fi
  5238. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5239. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5240. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5241. fi
  5242. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5244. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5245. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5246. $as_echo_n "(cached) " >&6
  5247. else
  5248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5249. /* end confdefs.h. */
  5250. int i;
  5251. _ACEOF
  5252. if ac_fn_c_try_compile "$LINENO"; then :
  5253. xorg_cv_cc_flag_unused_command_line_argument=yes
  5254. else
  5255. xorg_cv_cc_flag_unused_command_line_argument=no
  5256. fi
  5257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5258. fi
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5260. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5261. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5262. CFLAGS="$xorg_testset_save_CFLAGS"
  5263. fi
  5264. found="no"
  5265. if test $found = "no" ; then
  5266. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5267. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5268. fi
  5269. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5270. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5271. fi
  5272. CFLAGS="$CFLAGS -Wunused"
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
  5274. $as_echo_n "checking if $CC supports-Wunused... " >&6; }
  5275. cacheid=xorg_cv_cc_flag__Wunused
  5276. if eval \${$cacheid+:} false; then :
  5277. $as_echo_n "(cached) " >&6
  5278. else
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. int i;
  5282. int
  5283. main ()
  5284. {
  5285. ;
  5286. return 0;
  5287. }
  5288. _ACEOF
  5289. if ac_fn_c_try_link "$LINENO"; then :
  5290. eval $cacheid=yes
  5291. else
  5292. eval $cacheid=no
  5293. fi
  5294. rm -f core conftest.err conftest.$ac_objext \
  5295. conftest$ac_exeext conftest.$ac_ext
  5296. fi
  5297. CFLAGS="$xorg_testset_save_CFLAGS"
  5298. eval supported=\$$cacheid
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5300. $as_echo "$supported" >&6; }
  5301. if test "$supported" = "yes" ; then
  5302. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5303. found="yes"
  5304. fi
  5305. fi
  5306. xorg_testset_save_CFLAGS="$CFLAGS"
  5307. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5308. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5310. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5311. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5315. /* end confdefs.h. */
  5316. int i;
  5317. _ACEOF
  5318. if ac_fn_c_try_compile "$LINENO"; then :
  5319. xorg_cv_cc_flag_unknown_warning_option=yes
  5320. else
  5321. xorg_cv_cc_flag_unknown_warning_option=no
  5322. fi
  5323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5324. fi
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5326. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5327. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5328. CFLAGS="$xorg_testset_save_CFLAGS"
  5329. fi
  5330. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5331. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5332. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5333. fi
  5334. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5336. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5337. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5338. $as_echo_n "(cached) " >&6
  5339. else
  5340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5341. /* end confdefs.h. */
  5342. int i;
  5343. _ACEOF
  5344. if ac_fn_c_try_compile "$LINENO"; then :
  5345. xorg_cv_cc_flag_unused_command_line_argument=yes
  5346. else
  5347. xorg_cv_cc_flag_unused_command_line_argument=no
  5348. fi
  5349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5350. fi
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5352. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5353. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5354. CFLAGS="$xorg_testset_save_CFLAGS"
  5355. fi
  5356. found="no"
  5357. if test $found = "no" ; then
  5358. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5359. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5360. fi
  5361. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5362. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5363. fi
  5364. CFLAGS="$CFLAGS -Wuninitialized"
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
  5366. $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
  5367. cacheid=xorg_cv_cc_flag__Wuninitialized
  5368. if eval \${$cacheid+:} false; then :
  5369. $as_echo_n "(cached) " >&6
  5370. else
  5371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5372. /* end confdefs.h. */
  5373. int i;
  5374. int
  5375. main ()
  5376. {
  5377. ;
  5378. return 0;
  5379. }
  5380. _ACEOF
  5381. if ac_fn_c_try_link "$LINENO"; then :
  5382. eval $cacheid=yes
  5383. else
  5384. eval $cacheid=no
  5385. fi
  5386. rm -f core conftest.err conftest.$ac_objext \
  5387. conftest$ac_exeext conftest.$ac_ext
  5388. fi
  5389. CFLAGS="$xorg_testset_save_CFLAGS"
  5390. eval supported=\$$cacheid
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5392. $as_echo "$supported" >&6; }
  5393. if test "$supported" = "yes" ; then
  5394. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5395. found="yes"
  5396. fi
  5397. fi
  5398. xorg_testset_save_CFLAGS="$CFLAGS"
  5399. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5400. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5402. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5403. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5404. $as_echo_n "(cached) " >&6
  5405. else
  5406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5407. /* end confdefs.h. */
  5408. int i;
  5409. _ACEOF
  5410. if ac_fn_c_try_compile "$LINENO"; then :
  5411. xorg_cv_cc_flag_unknown_warning_option=yes
  5412. else
  5413. xorg_cv_cc_flag_unknown_warning_option=no
  5414. fi
  5415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5416. fi
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5418. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5419. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5420. CFLAGS="$xorg_testset_save_CFLAGS"
  5421. fi
  5422. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5423. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5424. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5425. fi
  5426. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5428. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5429. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. int i;
  5435. _ACEOF
  5436. if ac_fn_c_try_compile "$LINENO"; then :
  5437. xorg_cv_cc_flag_unused_command_line_argument=yes
  5438. else
  5439. xorg_cv_cc_flag_unused_command_line_argument=no
  5440. fi
  5441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5442. fi
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5444. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5445. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5446. CFLAGS="$xorg_testset_save_CFLAGS"
  5447. fi
  5448. found="no"
  5449. if test $found = "no" ; then
  5450. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5451. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5452. fi
  5453. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5454. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5455. fi
  5456. CFLAGS="$CFLAGS -Wshadow"
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
  5458. $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
  5459. cacheid=xorg_cv_cc_flag__Wshadow
  5460. if eval \${$cacheid+:} false; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5464. /* end confdefs.h. */
  5465. int i;
  5466. int
  5467. main ()
  5468. {
  5469. ;
  5470. return 0;
  5471. }
  5472. _ACEOF
  5473. if ac_fn_c_try_link "$LINENO"; then :
  5474. eval $cacheid=yes
  5475. else
  5476. eval $cacheid=no
  5477. fi
  5478. rm -f core conftest.err conftest.$ac_objext \
  5479. conftest$ac_exeext conftest.$ac_ext
  5480. fi
  5481. CFLAGS="$xorg_testset_save_CFLAGS"
  5482. eval supported=\$$cacheid
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5484. $as_echo "$supported" >&6; }
  5485. if test "$supported" = "yes" ; then
  5486. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5487. found="yes"
  5488. fi
  5489. fi
  5490. xorg_testset_save_CFLAGS="$CFLAGS"
  5491. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5492. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5494. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5495. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5496. $as_echo_n "(cached) " >&6
  5497. else
  5498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5499. /* end confdefs.h. */
  5500. int i;
  5501. _ACEOF
  5502. if ac_fn_c_try_compile "$LINENO"; then :
  5503. xorg_cv_cc_flag_unknown_warning_option=yes
  5504. else
  5505. xorg_cv_cc_flag_unknown_warning_option=no
  5506. fi
  5507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5508. fi
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5510. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5511. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5512. CFLAGS="$xorg_testset_save_CFLAGS"
  5513. fi
  5514. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5515. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5516. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5517. fi
  5518. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5520. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5521. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5525. /* end confdefs.h. */
  5526. int i;
  5527. _ACEOF
  5528. if ac_fn_c_try_compile "$LINENO"; then :
  5529. xorg_cv_cc_flag_unused_command_line_argument=yes
  5530. else
  5531. xorg_cv_cc_flag_unused_command_line_argument=no
  5532. fi
  5533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5534. fi
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5536. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5537. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5538. CFLAGS="$xorg_testset_save_CFLAGS"
  5539. fi
  5540. found="no"
  5541. if test $found = "no" ; then
  5542. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5543. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5544. fi
  5545. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5546. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5547. fi
  5548. CFLAGS="$CFLAGS -Wcast-qual"
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
  5550. $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
  5551. cacheid=xorg_cv_cc_flag__Wcast_qual
  5552. if eval \${$cacheid+:} false; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5556. /* end confdefs.h. */
  5557. int i;
  5558. int
  5559. main ()
  5560. {
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_link "$LINENO"; then :
  5566. eval $cacheid=yes
  5567. else
  5568. eval $cacheid=no
  5569. fi
  5570. rm -f core conftest.err conftest.$ac_objext \
  5571. conftest$ac_exeext conftest.$ac_ext
  5572. fi
  5573. CFLAGS="$xorg_testset_save_CFLAGS"
  5574. eval supported=\$$cacheid
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5576. $as_echo "$supported" >&6; }
  5577. if test "$supported" = "yes" ; then
  5578. BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
  5579. found="yes"
  5580. fi
  5581. fi
  5582. xorg_testset_save_CFLAGS="$CFLAGS"
  5583. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5584. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5586. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5587. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5588. $as_echo_n "(cached) " >&6
  5589. else
  5590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5591. /* end confdefs.h. */
  5592. int i;
  5593. _ACEOF
  5594. if ac_fn_c_try_compile "$LINENO"; then :
  5595. xorg_cv_cc_flag_unknown_warning_option=yes
  5596. else
  5597. xorg_cv_cc_flag_unknown_warning_option=no
  5598. fi
  5599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5602. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5603. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5604. CFLAGS="$xorg_testset_save_CFLAGS"
  5605. fi
  5606. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5607. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5608. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5609. fi
  5610. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5612. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5613. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5617. /* end confdefs.h. */
  5618. int i;
  5619. _ACEOF
  5620. if ac_fn_c_try_compile "$LINENO"; then :
  5621. xorg_cv_cc_flag_unused_command_line_argument=yes
  5622. else
  5623. xorg_cv_cc_flag_unused_command_line_argument=no
  5624. fi
  5625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5626. fi
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5628. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5629. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5630. CFLAGS="$xorg_testset_save_CFLAGS"
  5631. fi
  5632. found="no"
  5633. if test $found = "no" ; then
  5634. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5635. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5636. fi
  5637. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5638. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5639. fi
  5640. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
  5642. $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
  5643. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5644. if eval \${$cacheid+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5648. /* end confdefs.h. */
  5649. int i;
  5650. int
  5651. main ()
  5652. {
  5653. ;
  5654. return 0;
  5655. }
  5656. _ACEOF
  5657. if ac_fn_c_try_link "$LINENO"; then :
  5658. eval $cacheid=yes
  5659. else
  5660. eval $cacheid=no
  5661. fi
  5662. rm -f core conftest.err conftest.$ac_objext \
  5663. conftest$ac_exeext conftest.$ac_ext
  5664. fi
  5665. CFLAGS="$xorg_testset_save_CFLAGS"
  5666. eval supported=\$$cacheid
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5668. $as_echo "$supported" >&6; }
  5669. if test "$supported" = "yes" ; then
  5670. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5671. found="yes"
  5672. fi
  5673. fi
  5674. xorg_testset_save_CFLAGS="$CFLAGS"
  5675. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5676. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5678. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5679. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5683. /* end confdefs.h. */
  5684. int i;
  5685. _ACEOF
  5686. if ac_fn_c_try_compile "$LINENO"; then :
  5687. xorg_cv_cc_flag_unknown_warning_option=yes
  5688. else
  5689. xorg_cv_cc_flag_unknown_warning_option=no
  5690. fi
  5691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5692. fi
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5694. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5695. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5696. CFLAGS="$xorg_testset_save_CFLAGS"
  5697. fi
  5698. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5699. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5700. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5701. fi
  5702. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5704. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5705. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5709. /* end confdefs.h. */
  5710. int i;
  5711. _ACEOF
  5712. if ac_fn_c_try_compile "$LINENO"; then :
  5713. xorg_cv_cc_flag_unused_command_line_argument=yes
  5714. else
  5715. xorg_cv_cc_flag_unused_command_line_argument=no
  5716. fi
  5717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5718. fi
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5720. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5721. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5722. CFLAGS="$xorg_testset_save_CFLAGS"
  5723. fi
  5724. found="no"
  5725. if test $found = "no" ; then
  5726. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5727. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5728. fi
  5729. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5730. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5731. fi
  5732. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
  5734. $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
  5735. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5736. if eval \${$cacheid+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5740. /* end confdefs.h. */
  5741. int i;
  5742. int
  5743. main ()
  5744. {
  5745. ;
  5746. return 0;
  5747. }
  5748. _ACEOF
  5749. if ac_fn_c_try_link "$LINENO"; then :
  5750. eval $cacheid=yes
  5751. else
  5752. eval $cacheid=no
  5753. fi
  5754. rm -f core conftest.err conftest.$ac_objext \
  5755. conftest$ac_exeext conftest.$ac_ext
  5756. fi
  5757. CFLAGS="$xorg_testset_save_CFLAGS"
  5758. eval supported=\$$cacheid
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5760. $as_echo "$supported" >&6; }
  5761. if test "$supported" = "yes" ; then
  5762. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5763. found="yes"
  5764. fi
  5765. fi
  5766. # These are currently disabled because they are noisy. They will be enabled
  5767. # in the future once the codebase is sufficiently modernized to silence
  5768. # them. For now, I don't want them to drown out the other warnings.
  5769. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
  5770. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5771. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5772. # Turn some warnings into errors, so we don't accidently get successful builds
  5773. # when there are problems that should be fixed.
  5774. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5775. xorg_testset_save_CFLAGS="$CFLAGS"
  5776. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5777. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5779. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5780. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5784. /* end confdefs.h. */
  5785. int i;
  5786. _ACEOF
  5787. if ac_fn_c_try_compile "$LINENO"; then :
  5788. xorg_cv_cc_flag_unknown_warning_option=yes
  5789. else
  5790. xorg_cv_cc_flag_unknown_warning_option=no
  5791. fi
  5792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5793. fi
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5795. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5796. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5797. CFLAGS="$xorg_testset_save_CFLAGS"
  5798. fi
  5799. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5800. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5801. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5802. fi
  5803. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5805. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5806. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5810. /* end confdefs.h. */
  5811. int i;
  5812. _ACEOF
  5813. if ac_fn_c_try_compile "$LINENO"; then :
  5814. xorg_cv_cc_flag_unused_command_line_argument=yes
  5815. else
  5816. xorg_cv_cc_flag_unused_command_line_argument=no
  5817. fi
  5818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5819. fi
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5821. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5822. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5823. CFLAGS="$xorg_testset_save_CFLAGS"
  5824. fi
  5825. found="no"
  5826. if test $found = "no" ; then
  5827. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5828. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5829. fi
  5830. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5831. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5832. fi
  5833. CFLAGS="$CFLAGS -Werror=implicit"
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
  5835. $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
  5836. cacheid=xorg_cv_cc_flag__Werror_implicit
  5837. if eval \${$cacheid+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5841. /* end confdefs.h. */
  5842. int i;
  5843. int
  5844. main ()
  5845. {
  5846. ;
  5847. return 0;
  5848. }
  5849. _ACEOF
  5850. if ac_fn_c_try_link "$LINENO"; then :
  5851. eval $cacheid=yes
  5852. else
  5853. eval $cacheid=no
  5854. fi
  5855. rm -f core conftest.err conftest.$ac_objext \
  5856. conftest$ac_exeext conftest.$ac_ext
  5857. fi
  5858. CFLAGS="$xorg_testset_save_CFLAGS"
  5859. eval supported=\$$cacheid
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5861. $as_echo "$supported" >&6; }
  5862. if test "$supported" = "yes" ; then
  5863. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5864. found="yes"
  5865. fi
  5866. fi
  5867. if test $found = "no" ; then
  5868. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5869. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5870. fi
  5871. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5872. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5873. fi
  5874. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5876. $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5877. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5878. if eval \${$cacheid+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5882. /* end confdefs.h. */
  5883. int i;
  5884. int
  5885. main ()
  5886. {
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. if ac_fn_c_try_link "$LINENO"; then :
  5892. eval $cacheid=yes
  5893. else
  5894. eval $cacheid=no
  5895. fi
  5896. rm -f core conftest.err conftest.$ac_objext \
  5897. conftest$ac_exeext conftest.$ac_ext
  5898. fi
  5899. CFLAGS="$xorg_testset_save_CFLAGS"
  5900. eval supported=\$$cacheid
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5902. $as_echo "$supported" >&6; }
  5903. if test "$supported" = "yes" ; then
  5904. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5905. found="yes"
  5906. fi
  5907. fi
  5908. xorg_testset_save_CFLAGS="$CFLAGS"
  5909. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5910. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5912. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5913. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917. /* end confdefs.h. */
  5918. int i;
  5919. _ACEOF
  5920. if ac_fn_c_try_compile "$LINENO"; then :
  5921. xorg_cv_cc_flag_unknown_warning_option=yes
  5922. else
  5923. xorg_cv_cc_flag_unknown_warning_option=no
  5924. fi
  5925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5928. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5929. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5930. CFLAGS="$xorg_testset_save_CFLAGS"
  5931. fi
  5932. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5933. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5934. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5935. fi
  5936. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5938. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5939. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5943. /* end confdefs.h. */
  5944. int i;
  5945. _ACEOF
  5946. if ac_fn_c_try_compile "$LINENO"; then :
  5947. xorg_cv_cc_flag_unused_command_line_argument=yes
  5948. else
  5949. xorg_cv_cc_flag_unused_command_line_argument=no
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5952. fi
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5954. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5955. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5956. CFLAGS="$xorg_testset_save_CFLAGS"
  5957. fi
  5958. found="no"
  5959. if test $found = "no" ; then
  5960. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5961. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5962. fi
  5963. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5964. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5965. fi
  5966. CFLAGS="$CFLAGS -Werror=nonnull"
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
  5968. $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
  5969. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5970. if eval \${$cacheid+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5974. /* end confdefs.h. */
  5975. int i;
  5976. int
  5977. main ()
  5978. {
  5979. ;
  5980. return 0;
  5981. }
  5982. _ACEOF
  5983. if ac_fn_c_try_link "$LINENO"; then :
  5984. eval $cacheid=yes
  5985. else
  5986. eval $cacheid=no
  5987. fi
  5988. rm -f core conftest.err conftest.$ac_objext \
  5989. conftest$ac_exeext conftest.$ac_ext
  5990. fi
  5991. CFLAGS="$xorg_testset_save_CFLAGS"
  5992. eval supported=\$$cacheid
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5994. $as_echo "$supported" >&6; }
  5995. if test "$supported" = "yes" ; then
  5996. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5997. found="yes"
  5998. fi
  5999. fi
  6000. xorg_testset_save_CFLAGS="$CFLAGS"
  6001. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6002. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6004. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6005. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6009. /* end confdefs.h. */
  6010. int i;
  6011. _ACEOF
  6012. if ac_fn_c_try_compile "$LINENO"; then :
  6013. xorg_cv_cc_flag_unknown_warning_option=yes
  6014. else
  6015. xorg_cv_cc_flag_unknown_warning_option=no
  6016. fi
  6017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6018. fi
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6020. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6021. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6022. CFLAGS="$xorg_testset_save_CFLAGS"
  6023. fi
  6024. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6025. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6026. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6027. fi
  6028. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6030. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6031. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6035. /* end confdefs.h. */
  6036. int i;
  6037. _ACEOF
  6038. if ac_fn_c_try_compile "$LINENO"; then :
  6039. xorg_cv_cc_flag_unused_command_line_argument=yes
  6040. else
  6041. xorg_cv_cc_flag_unused_command_line_argument=no
  6042. fi
  6043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6044. fi
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6046. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6047. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6048. CFLAGS="$xorg_testset_save_CFLAGS"
  6049. fi
  6050. found="no"
  6051. if test $found = "no" ; then
  6052. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6053. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6054. fi
  6055. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6056. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6057. fi
  6058. CFLAGS="$CFLAGS -Werror=init-self"
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
  6060. $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
  6061. cacheid=xorg_cv_cc_flag__Werror_init_self
  6062. if eval \${$cacheid+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6066. /* end confdefs.h. */
  6067. int i;
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. eval $cacheid=yes
  6077. else
  6078. eval $cacheid=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. fi
  6083. CFLAGS="$xorg_testset_save_CFLAGS"
  6084. eval supported=\$$cacheid
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6086. $as_echo "$supported" >&6; }
  6087. if test "$supported" = "yes" ; then
  6088. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6089. found="yes"
  6090. fi
  6091. fi
  6092. xorg_testset_save_CFLAGS="$CFLAGS"
  6093. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6094. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6096. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6097. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. int i;
  6103. _ACEOF
  6104. if ac_fn_c_try_compile "$LINENO"; then :
  6105. xorg_cv_cc_flag_unknown_warning_option=yes
  6106. else
  6107. xorg_cv_cc_flag_unknown_warning_option=no
  6108. fi
  6109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6110. fi
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6112. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6113. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6114. CFLAGS="$xorg_testset_save_CFLAGS"
  6115. fi
  6116. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6117. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6118. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6119. fi
  6120. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6122. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6123. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6127. /* end confdefs.h. */
  6128. int i;
  6129. _ACEOF
  6130. if ac_fn_c_try_compile "$LINENO"; then :
  6131. xorg_cv_cc_flag_unused_command_line_argument=yes
  6132. else
  6133. xorg_cv_cc_flag_unused_command_line_argument=no
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6138. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6139. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6140. CFLAGS="$xorg_testset_save_CFLAGS"
  6141. fi
  6142. found="no"
  6143. if test $found = "no" ; then
  6144. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6145. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6146. fi
  6147. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6148. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6149. fi
  6150. CFLAGS="$CFLAGS -Werror=main"
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
  6152. $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
  6153. cacheid=xorg_cv_cc_flag__Werror_main
  6154. if eval \${$cacheid+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6158. /* end confdefs.h. */
  6159. int i;
  6160. int
  6161. main ()
  6162. {
  6163. ;
  6164. return 0;
  6165. }
  6166. _ACEOF
  6167. if ac_fn_c_try_link "$LINENO"; then :
  6168. eval $cacheid=yes
  6169. else
  6170. eval $cacheid=no
  6171. fi
  6172. rm -f core conftest.err conftest.$ac_objext \
  6173. conftest$ac_exeext conftest.$ac_ext
  6174. fi
  6175. CFLAGS="$xorg_testset_save_CFLAGS"
  6176. eval supported=\$$cacheid
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6178. $as_echo "$supported" >&6; }
  6179. if test "$supported" = "yes" ; then
  6180. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6181. found="yes"
  6182. fi
  6183. fi
  6184. xorg_testset_save_CFLAGS="$CFLAGS"
  6185. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6186. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6188. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6189. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6190. $as_echo_n "(cached) " >&6
  6191. else
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. int i;
  6195. _ACEOF
  6196. if ac_fn_c_try_compile "$LINENO"; then :
  6197. xorg_cv_cc_flag_unknown_warning_option=yes
  6198. else
  6199. xorg_cv_cc_flag_unknown_warning_option=no
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6202. fi
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6204. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6205. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6206. CFLAGS="$xorg_testset_save_CFLAGS"
  6207. fi
  6208. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6209. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6210. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6211. fi
  6212. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6214. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6215. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6219. /* end confdefs.h. */
  6220. int i;
  6221. _ACEOF
  6222. if ac_fn_c_try_compile "$LINENO"; then :
  6223. xorg_cv_cc_flag_unused_command_line_argument=yes
  6224. else
  6225. xorg_cv_cc_flag_unused_command_line_argument=no
  6226. fi
  6227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6228. fi
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6230. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6231. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6232. CFLAGS="$xorg_testset_save_CFLAGS"
  6233. fi
  6234. found="no"
  6235. if test $found = "no" ; then
  6236. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6237. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6238. fi
  6239. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6240. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6241. fi
  6242. CFLAGS="$CFLAGS -Werror=missing-braces"
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
  6244. $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
  6245. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6246. if eval \${$cacheid+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. int i;
  6252. int
  6253. main ()
  6254. {
  6255. ;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. if ac_fn_c_try_link "$LINENO"; then :
  6260. eval $cacheid=yes
  6261. else
  6262. eval $cacheid=no
  6263. fi
  6264. rm -f core conftest.err conftest.$ac_objext \
  6265. conftest$ac_exeext conftest.$ac_ext
  6266. fi
  6267. CFLAGS="$xorg_testset_save_CFLAGS"
  6268. eval supported=\$$cacheid
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6270. $as_echo "$supported" >&6; }
  6271. if test "$supported" = "yes" ; then
  6272. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6273. found="yes"
  6274. fi
  6275. fi
  6276. xorg_testset_save_CFLAGS="$CFLAGS"
  6277. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6278. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6280. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6281. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6282. $as_echo_n "(cached) " >&6
  6283. else
  6284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6285. /* end confdefs.h. */
  6286. int i;
  6287. _ACEOF
  6288. if ac_fn_c_try_compile "$LINENO"; then :
  6289. xorg_cv_cc_flag_unknown_warning_option=yes
  6290. else
  6291. xorg_cv_cc_flag_unknown_warning_option=no
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6296. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6297. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6298. CFLAGS="$xorg_testset_save_CFLAGS"
  6299. fi
  6300. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6301. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6302. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6303. fi
  6304. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6306. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6307. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. int i;
  6313. _ACEOF
  6314. if ac_fn_c_try_compile "$LINENO"; then :
  6315. xorg_cv_cc_flag_unused_command_line_argument=yes
  6316. else
  6317. xorg_cv_cc_flag_unused_command_line_argument=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6320. fi
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6322. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6323. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6324. CFLAGS="$xorg_testset_save_CFLAGS"
  6325. fi
  6326. found="no"
  6327. if test $found = "no" ; then
  6328. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6329. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6330. fi
  6331. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6332. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6333. fi
  6334. CFLAGS="$CFLAGS -Werror=sequence-point"
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
  6336. $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
  6337. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6338. if eval \${$cacheid+:} false; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. int i;
  6344. int
  6345. main ()
  6346. {
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. if ac_fn_c_try_link "$LINENO"; then :
  6352. eval $cacheid=yes
  6353. else
  6354. eval $cacheid=no
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext \
  6357. conftest$ac_exeext conftest.$ac_ext
  6358. fi
  6359. CFLAGS="$xorg_testset_save_CFLAGS"
  6360. eval supported=\$$cacheid
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6362. $as_echo "$supported" >&6; }
  6363. if test "$supported" = "yes" ; then
  6364. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6365. found="yes"
  6366. fi
  6367. fi
  6368. xorg_testset_save_CFLAGS="$CFLAGS"
  6369. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6370. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6372. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6373. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end confdefs.h. */
  6378. int i;
  6379. _ACEOF
  6380. if ac_fn_c_try_compile "$LINENO"; then :
  6381. xorg_cv_cc_flag_unknown_warning_option=yes
  6382. else
  6383. xorg_cv_cc_flag_unknown_warning_option=no
  6384. fi
  6385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6386. fi
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6388. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6389. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6390. CFLAGS="$xorg_testset_save_CFLAGS"
  6391. fi
  6392. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6393. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6394. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6395. fi
  6396. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6398. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6399. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int i;
  6405. _ACEOF
  6406. if ac_fn_c_try_compile "$LINENO"; then :
  6407. xorg_cv_cc_flag_unused_command_line_argument=yes
  6408. else
  6409. xorg_cv_cc_flag_unused_command_line_argument=no
  6410. fi
  6411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6412. fi
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6414. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6415. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6416. CFLAGS="$xorg_testset_save_CFLAGS"
  6417. fi
  6418. found="no"
  6419. if test $found = "no" ; then
  6420. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6421. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6422. fi
  6423. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6424. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6425. fi
  6426. CFLAGS="$CFLAGS -Werror=return-type"
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
  6428. $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
  6429. cacheid=xorg_cv_cc_flag__Werror_return_type
  6430. if eval \${$cacheid+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6434. /* end confdefs.h. */
  6435. int i;
  6436. int
  6437. main ()
  6438. {
  6439. ;
  6440. return 0;
  6441. }
  6442. _ACEOF
  6443. if ac_fn_c_try_link "$LINENO"; then :
  6444. eval $cacheid=yes
  6445. else
  6446. eval $cacheid=no
  6447. fi
  6448. rm -f core conftest.err conftest.$ac_objext \
  6449. conftest$ac_exeext conftest.$ac_ext
  6450. fi
  6451. CFLAGS="$xorg_testset_save_CFLAGS"
  6452. eval supported=\$$cacheid
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6454. $as_echo "$supported" >&6; }
  6455. if test "$supported" = "yes" ; then
  6456. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6457. found="yes"
  6458. fi
  6459. fi
  6460. if test $found = "no" ; then
  6461. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6462. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6463. fi
  6464. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6465. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6466. fi
  6467. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6469. $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6470. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6471. if eval \${$cacheid+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. int i;
  6477. int
  6478. main ()
  6479. {
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. if ac_fn_c_try_link "$LINENO"; then :
  6485. eval $cacheid=yes
  6486. else
  6487. eval $cacheid=no
  6488. fi
  6489. rm -f core conftest.err conftest.$ac_objext \
  6490. conftest$ac_exeext conftest.$ac_ext
  6491. fi
  6492. CFLAGS="$xorg_testset_save_CFLAGS"
  6493. eval supported=\$$cacheid
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6495. $as_echo "$supported" >&6; }
  6496. if test "$supported" = "yes" ; then
  6497. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6498. found="yes"
  6499. fi
  6500. fi
  6501. xorg_testset_save_CFLAGS="$CFLAGS"
  6502. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6503. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6505. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6506. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6510. /* end confdefs.h. */
  6511. int i;
  6512. _ACEOF
  6513. if ac_fn_c_try_compile "$LINENO"; then :
  6514. xorg_cv_cc_flag_unknown_warning_option=yes
  6515. else
  6516. xorg_cv_cc_flag_unknown_warning_option=no
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6519. fi
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6521. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6522. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6523. CFLAGS="$xorg_testset_save_CFLAGS"
  6524. fi
  6525. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6526. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6527. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6528. fi
  6529. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6531. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6532. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. int i;
  6538. _ACEOF
  6539. if ac_fn_c_try_compile "$LINENO"; then :
  6540. xorg_cv_cc_flag_unused_command_line_argument=yes
  6541. else
  6542. xorg_cv_cc_flag_unused_command_line_argument=no
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6545. fi
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6547. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6548. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6549. CFLAGS="$xorg_testset_save_CFLAGS"
  6550. fi
  6551. found="no"
  6552. if test $found = "no" ; then
  6553. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6554. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6555. fi
  6556. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6557. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6558. fi
  6559. CFLAGS="$CFLAGS -Werror=trigraphs"
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
  6561. $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
  6562. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6563. if eval \${$cacheid+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6567. /* end confdefs.h. */
  6568. int i;
  6569. int
  6570. main ()
  6571. {
  6572. ;
  6573. return 0;
  6574. }
  6575. _ACEOF
  6576. if ac_fn_c_try_link "$LINENO"; then :
  6577. eval $cacheid=yes
  6578. else
  6579. eval $cacheid=no
  6580. fi
  6581. rm -f core conftest.err conftest.$ac_objext \
  6582. conftest$ac_exeext conftest.$ac_ext
  6583. fi
  6584. CFLAGS="$xorg_testset_save_CFLAGS"
  6585. eval supported=\$$cacheid
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6587. $as_echo "$supported" >&6; }
  6588. if test "$supported" = "yes" ; then
  6589. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6590. found="yes"
  6591. fi
  6592. fi
  6593. xorg_testset_save_CFLAGS="$CFLAGS"
  6594. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6595. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6597. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6598. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6599. $as_echo_n "(cached) " >&6
  6600. else
  6601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6602. /* end confdefs.h. */
  6603. int i;
  6604. _ACEOF
  6605. if ac_fn_c_try_compile "$LINENO"; then :
  6606. xorg_cv_cc_flag_unknown_warning_option=yes
  6607. else
  6608. xorg_cv_cc_flag_unknown_warning_option=no
  6609. fi
  6610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6611. fi
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6613. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6614. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6615. CFLAGS="$xorg_testset_save_CFLAGS"
  6616. fi
  6617. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6618. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6619. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6620. fi
  6621. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6623. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6624. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6628. /* end confdefs.h. */
  6629. int i;
  6630. _ACEOF
  6631. if ac_fn_c_try_compile "$LINENO"; then :
  6632. xorg_cv_cc_flag_unused_command_line_argument=yes
  6633. else
  6634. xorg_cv_cc_flag_unused_command_line_argument=no
  6635. fi
  6636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6639. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6640. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6641. CFLAGS="$xorg_testset_save_CFLAGS"
  6642. fi
  6643. found="no"
  6644. if test $found = "no" ; then
  6645. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6646. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6647. fi
  6648. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6649. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6650. fi
  6651. CFLAGS="$CFLAGS -Werror=array-bounds"
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
  6653. $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
  6654. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6655. if eval \${$cacheid+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6659. /* end confdefs.h. */
  6660. int i;
  6661. int
  6662. main ()
  6663. {
  6664. ;
  6665. return 0;
  6666. }
  6667. _ACEOF
  6668. if ac_fn_c_try_link "$LINENO"; then :
  6669. eval $cacheid=yes
  6670. else
  6671. eval $cacheid=no
  6672. fi
  6673. rm -f core conftest.err conftest.$ac_objext \
  6674. conftest$ac_exeext conftest.$ac_ext
  6675. fi
  6676. CFLAGS="$xorg_testset_save_CFLAGS"
  6677. eval supported=\$$cacheid
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6679. $as_echo "$supported" >&6; }
  6680. if test "$supported" = "yes" ; then
  6681. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6682. found="yes"
  6683. fi
  6684. fi
  6685. xorg_testset_save_CFLAGS="$CFLAGS"
  6686. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6687. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6689. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6690. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6694. /* end confdefs.h. */
  6695. int i;
  6696. _ACEOF
  6697. if ac_fn_c_try_compile "$LINENO"; then :
  6698. xorg_cv_cc_flag_unknown_warning_option=yes
  6699. else
  6700. xorg_cv_cc_flag_unknown_warning_option=no
  6701. fi
  6702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6703. fi
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6705. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6706. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6707. CFLAGS="$xorg_testset_save_CFLAGS"
  6708. fi
  6709. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6710. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6711. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6712. fi
  6713. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6715. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6716. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6720. /* end confdefs.h. */
  6721. int i;
  6722. _ACEOF
  6723. if ac_fn_c_try_compile "$LINENO"; then :
  6724. xorg_cv_cc_flag_unused_command_line_argument=yes
  6725. else
  6726. xorg_cv_cc_flag_unused_command_line_argument=no
  6727. fi
  6728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6731. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6732. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6733. CFLAGS="$xorg_testset_save_CFLAGS"
  6734. fi
  6735. found="no"
  6736. if test $found = "no" ; then
  6737. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6738. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6739. fi
  6740. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6741. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6742. fi
  6743. CFLAGS="$CFLAGS -Werror=write-strings"
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
  6745. $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
  6746. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6747. if eval \${$cacheid+:} false; then :
  6748. $as_echo_n "(cached) " >&6
  6749. else
  6750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751. /* end confdefs.h. */
  6752. int i;
  6753. int
  6754. main ()
  6755. {
  6756. ;
  6757. return 0;
  6758. }
  6759. _ACEOF
  6760. if ac_fn_c_try_link "$LINENO"; then :
  6761. eval $cacheid=yes
  6762. else
  6763. eval $cacheid=no
  6764. fi
  6765. rm -f core conftest.err conftest.$ac_objext \
  6766. conftest$ac_exeext conftest.$ac_ext
  6767. fi
  6768. CFLAGS="$xorg_testset_save_CFLAGS"
  6769. eval supported=\$$cacheid
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6771. $as_echo "$supported" >&6; }
  6772. if test "$supported" = "yes" ; then
  6773. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6774. found="yes"
  6775. fi
  6776. fi
  6777. xorg_testset_save_CFLAGS="$CFLAGS"
  6778. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6779. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6781. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6782. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6783. $as_echo_n "(cached) " >&6
  6784. else
  6785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6786. /* end confdefs.h. */
  6787. int i;
  6788. _ACEOF
  6789. if ac_fn_c_try_compile "$LINENO"; then :
  6790. xorg_cv_cc_flag_unknown_warning_option=yes
  6791. else
  6792. xorg_cv_cc_flag_unknown_warning_option=no
  6793. fi
  6794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6795. fi
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6797. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6798. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6799. CFLAGS="$xorg_testset_save_CFLAGS"
  6800. fi
  6801. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6802. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6803. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6804. fi
  6805. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6807. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6808. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6812. /* end confdefs.h. */
  6813. int i;
  6814. _ACEOF
  6815. if ac_fn_c_try_compile "$LINENO"; then :
  6816. xorg_cv_cc_flag_unused_command_line_argument=yes
  6817. else
  6818. xorg_cv_cc_flag_unused_command_line_argument=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6821. fi
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6823. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6824. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6825. CFLAGS="$xorg_testset_save_CFLAGS"
  6826. fi
  6827. found="no"
  6828. if test $found = "no" ; then
  6829. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6830. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6831. fi
  6832. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6833. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6834. fi
  6835. CFLAGS="$CFLAGS -Werror=address"
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
  6837. $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
  6838. cacheid=xorg_cv_cc_flag__Werror_address
  6839. if eval \${$cacheid+:} false; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6843. /* end confdefs.h. */
  6844. int i;
  6845. int
  6846. main ()
  6847. {
  6848. ;
  6849. return 0;
  6850. }
  6851. _ACEOF
  6852. if ac_fn_c_try_link "$LINENO"; then :
  6853. eval $cacheid=yes
  6854. else
  6855. eval $cacheid=no
  6856. fi
  6857. rm -f core conftest.err conftest.$ac_objext \
  6858. conftest$ac_exeext conftest.$ac_ext
  6859. fi
  6860. CFLAGS="$xorg_testset_save_CFLAGS"
  6861. eval supported=\$$cacheid
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6863. $as_echo "$supported" >&6; }
  6864. if test "$supported" = "yes" ; then
  6865. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6866. found="yes"
  6867. fi
  6868. fi
  6869. xorg_testset_save_CFLAGS="$CFLAGS"
  6870. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6871. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6873. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6874. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h. */
  6879. int i;
  6880. _ACEOF
  6881. if ac_fn_c_try_compile "$LINENO"; then :
  6882. xorg_cv_cc_flag_unknown_warning_option=yes
  6883. else
  6884. xorg_cv_cc_flag_unknown_warning_option=no
  6885. fi
  6886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6889. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6890. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6891. CFLAGS="$xorg_testset_save_CFLAGS"
  6892. fi
  6893. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6894. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6895. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6896. fi
  6897. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6899. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6900. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6904. /* end confdefs.h. */
  6905. int i;
  6906. _ACEOF
  6907. if ac_fn_c_try_compile "$LINENO"; then :
  6908. xorg_cv_cc_flag_unused_command_line_argument=yes
  6909. else
  6910. xorg_cv_cc_flag_unused_command_line_argument=no
  6911. fi
  6912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. fi
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6915. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6916. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6917. CFLAGS="$xorg_testset_save_CFLAGS"
  6918. fi
  6919. found="no"
  6920. if test $found = "no" ; then
  6921. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6922. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6923. fi
  6924. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6925. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6926. fi
  6927. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
  6929. $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
  6930. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6931. if eval \${$cacheid+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6935. /* end confdefs.h. */
  6936. int i;
  6937. int
  6938. main ()
  6939. {
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. if ac_fn_c_try_link "$LINENO"; then :
  6945. eval $cacheid=yes
  6946. else
  6947. eval $cacheid=no
  6948. fi
  6949. rm -f core conftest.err conftest.$ac_objext \
  6950. conftest$ac_exeext conftest.$ac_ext
  6951. fi
  6952. CFLAGS="$xorg_testset_save_CFLAGS"
  6953. eval supported=\$$cacheid
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6955. $as_echo "$supported" >&6; }
  6956. if test "$supported" = "yes" ; then
  6957. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6958. found="yes"
  6959. fi
  6960. fi
  6961. if test $found = "no" ; then
  6962. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6963. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6964. fi
  6965. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6966. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6967. fi
  6968. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6970. $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6971. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6972. if eval \${$cacheid+:} false; then :
  6973. $as_echo_n "(cached) " >&6
  6974. else
  6975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6976. /* end confdefs.h. */
  6977. int i;
  6978. int
  6979. main ()
  6980. {
  6981. ;
  6982. return 0;
  6983. }
  6984. _ACEOF
  6985. if ac_fn_c_try_link "$LINENO"; then :
  6986. eval $cacheid=yes
  6987. else
  6988. eval $cacheid=no
  6989. fi
  6990. rm -f core conftest.err conftest.$ac_objext \
  6991. conftest$ac_exeext conftest.$ac_ext
  6992. fi
  6993. CFLAGS="$xorg_testset_save_CFLAGS"
  6994. eval supported=\$$cacheid
  6995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6996. $as_echo "$supported" >&6; }
  6997. if test "$supported" = "yes" ; then
  6998. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6999. found="yes"
  7000. fi
  7001. fi
  7002. xorg_testset_save_CFLAGS="$CFLAGS"
  7003. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7004. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7006. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7007. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7011. /* end confdefs.h. */
  7012. int i;
  7013. _ACEOF
  7014. if ac_fn_c_try_compile "$LINENO"; then :
  7015. xorg_cv_cc_flag_unknown_warning_option=yes
  7016. else
  7017. xorg_cv_cc_flag_unknown_warning_option=no
  7018. fi
  7019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7022. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7023. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7024. CFLAGS="$xorg_testset_save_CFLAGS"
  7025. fi
  7026. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7027. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7029. fi
  7030. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7032. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7033. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. int i;
  7039. _ACEOF
  7040. if ac_fn_c_try_compile "$LINENO"; then :
  7041. xorg_cv_cc_flag_unused_command_line_argument=yes
  7042. else
  7043. xorg_cv_cc_flag_unused_command_line_argument=no
  7044. fi
  7045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7048. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7049. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7050. CFLAGS="$xorg_testset_save_CFLAGS"
  7051. fi
  7052. found="no"
  7053. if test $found = "no" ; then
  7054. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7055. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7056. fi
  7057. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7058. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7059. fi
  7060. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
  7062. $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
  7063. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7064. if eval \${$cacheid+:} false; then :
  7065. $as_echo_n "(cached) " >&6
  7066. else
  7067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7068. /* end confdefs.h. */
  7069. int i;
  7070. int
  7071. main ()
  7072. {
  7073. ;
  7074. return 0;
  7075. }
  7076. _ACEOF
  7077. if ac_fn_c_try_link "$LINENO"; then :
  7078. eval $cacheid=yes
  7079. else
  7080. eval $cacheid=no
  7081. fi
  7082. rm -f core conftest.err conftest.$ac_objext \
  7083. conftest$ac_exeext conftest.$ac_ext
  7084. fi
  7085. CFLAGS="$xorg_testset_save_CFLAGS"
  7086. eval supported=\$$cacheid
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7088. $as_echo "$supported" >&6; }
  7089. if test "$supported" = "yes" ; then
  7090. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7091. found="yes"
  7092. fi
  7093. fi
  7094. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7095. else
  7096. { $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
  7097. $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;}
  7098. xorg_testset_save_CFLAGS="$CFLAGS"
  7099. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7100. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7102. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7103. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7104. $as_echo_n "(cached) " >&6
  7105. else
  7106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7107. /* end confdefs.h. */
  7108. int i;
  7109. _ACEOF
  7110. if ac_fn_c_try_compile "$LINENO"; then :
  7111. xorg_cv_cc_flag_unknown_warning_option=yes
  7112. else
  7113. xorg_cv_cc_flag_unknown_warning_option=no
  7114. fi
  7115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7116. fi
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7118. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7119. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7120. CFLAGS="$xorg_testset_save_CFLAGS"
  7121. fi
  7122. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7123. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7124. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7125. fi
  7126. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7128. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7129. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7133. /* end confdefs.h. */
  7134. int i;
  7135. _ACEOF
  7136. if ac_fn_c_try_compile "$LINENO"; then :
  7137. xorg_cv_cc_flag_unused_command_line_argument=yes
  7138. else
  7139. xorg_cv_cc_flag_unused_command_line_argument=no
  7140. fi
  7141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7142. fi
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7144. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7145. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7146. CFLAGS="$xorg_testset_save_CFLAGS"
  7147. fi
  7148. found="no"
  7149. if test $found = "no" ; then
  7150. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7151. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7152. fi
  7153. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7154. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7155. fi
  7156. CFLAGS="$CFLAGS -Wimplicit"
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
  7158. $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
  7159. cacheid=xorg_cv_cc_flag__Wimplicit
  7160. if eval \${$cacheid+:} false; then :
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7164. /* end confdefs.h. */
  7165. int i;
  7166. int
  7167. main ()
  7168. {
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. if ac_fn_c_try_link "$LINENO"; then :
  7174. eval $cacheid=yes
  7175. else
  7176. eval $cacheid=no
  7177. fi
  7178. rm -f core conftest.err conftest.$ac_objext \
  7179. conftest$ac_exeext conftest.$ac_ext
  7180. fi
  7181. CFLAGS="$xorg_testset_save_CFLAGS"
  7182. eval supported=\$$cacheid
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7184. $as_echo "$supported" >&6; }
  7185. if test "$supported" = "yes" ; then
  7186. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7187. found="yes"
  7188. fi
  7189. fi
  7190. xorg_testset_save_CFLAGS="$CFLAGS"
  7191. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7192. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7194. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7195. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7199. /* end confdefs.h. */
  7200. int i;
  7201. _ACEOF
  7202. if ac_fn_c_try_compile "$LINENO"; then :
  7203. xorg_cv_cc_flag_unknown_warning_option=yes
  7204. else
  7205. xorg_cv_cc_flag_unknown_warning_option=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7210. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7211. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7212. CFLAGS="$xorg_testset_save_CFLAGS"
  7213. fi
  7214. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7215. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7216. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7217. fi
  7218. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7220. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7221. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. int i;
  7227. _ACEOF
  7228. if ac_fn_c_try_compile "$LINENO"; then :
  7229. xorg_cv_cc_flag_unused_command_line_argument=yes
  7230. else
  7231. xorg_cv_cc_flag_unused_command_line_argument=no
  7232. fi
  7233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7236. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7237. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7238. CFLAGS="$xorg_testset_save_CFLAGS"
  7239. fi
  7240. found="no"
  7241. if test $found = "no" ; then
  7242. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7243. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7244. fi
  7245. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7246. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7247. fi
  7248. CFLAGS="$CFLAGS -Wnonnull"
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
  7250. $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
  7251. cacheid=xorg_cv_cc_flag__Wnonnull
  7252. if eval \${$cacheid+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7256. /* end confdefs.h. */
  7257. int i;
  7258. int
  7259. main ()
  7260. {
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. if ac_fn_c_try_link "$LINENO"; then :
  7266. eval $cacheid=yes
  7267. else
  7268. eval $cacheid=no
  7269. fi
  7270. rm -f core conftest.err conftest.$ac_objext \
  7271. conftest$ac_exeext conftest.$ac_ext
  7272. fi
  7273. CFLAGS="$xorg_testset_save_CFLAGS"
  7274. eval supported=\$$cacheid
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7276. $as_echo "$supported" >&6; }
  7277. if test "$supported" = "yes" ; then
  7278. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7279. found="yes"
  7280. fi
  7281. fi
  7282. xorg_testset_save_CFLAGS="$CFLAGS"
  7283. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7284. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7286. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7287. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7288. $as_echo_n "(cached) " >&6
  7289. else
  7290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7291. /* end confdefs.h. */
  7292. int i;
  7293. _ACEOF
  7294. if ac_fn_c_try_compile "$LINENO"; then :
  7295. xorg_cv_cc_flag_unknown_warning_option=yes
  7296. else
  7297. xorg_cv_cc_flag_unknown_warning_option=no
  7298. fi
  7299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7300. fi
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7302. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7303. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7304. CFLAGS="$xorg_testset_save_CFLAGS"
  7305. fi
  7306. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7307. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7308. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7309. fi
  7310. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7312. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7313. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7317. /* end confdefs.h. */
  7318. int i;
  7319. _ACEOF
  7320. if ac_fn_c_try_compile "$LINENO"; then :
  7321. xorg_cv_cc_flag_unused_command_line_argument=yes
  7322. else
  7323. xorg_cv_cc_flag_unused_command_line_argument=no
  7324. fi
  7325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7326. fi
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7328. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7329. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7330. CFLAGS="$xorg_testset_save_CFLAGS"
  7331. fi
  7332. found="no"
  7333. if test $found = "no" ; then
  7334. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7335. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7336. fi
  7337. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7338. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7339. fi
  7340. CFLAGS="$CFLAGS -Winit-self"
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
  7342. $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
  7343. cacheid=xorg_cv_cc_flag__Winit_self
  7344. if eval \${$cacheid+:} false; then :
  7345. $as_echo_n "(cached) " >&6
  7346. else
  7347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7348. /* end confdefs.h. */
  7349. int i;
  7350. int
  7351. main ()
  7352. {
  7353. ;
  7354. return 0;
  7355. }
  7356. _ACEOF
  7357. if ac_fn_c_try_link "$LINENO"; then :
  7358. eval $cacheid=yes
  7359. else
  7360. eval $cacheid=no
  7361. fi
  7362. rm -f core conftest.err conftest.$ac_objext \
  7363. conftest$ac_exeext conftest.$ac_ext
  7364. fi
  7365. CFLAGS="$xorg_testset_save_CFLAGS"
  7366. eval supported=\$$cacheid
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7368. $as_echo "$supported" >&6; }
  7369. if test "$supported" = "yes" ; then
  7370. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7371. found="yes"
  7372. fi
  7373. fi
  7374. xorg_testset_save_CFLAGS="$CFLAGS"
  7375. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7376. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7378. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7379. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7380. $as_echo_n "(cached) " >&6
  7381. else
  7382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7383. /* end confdefs.h. */
  7384. int i;
  7385. _ACEOF
  7386. if ac_fn_c_try_compile "$LINENO"; then :
  7387. xorg_cv_cc_flag_unknown_warning_option=yes
  7388. else
  7389. xorg_cv_cc_flag_unknown_warning_option=no
  7390. fi
  7391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7392. fi
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7394. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7395. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7396. CFLAGS="$xorg_testset_save_CFLAGS"
  7397. fi
  7398. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7399. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7400. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7401. fi
  7402. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7404. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7405. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7406. $as_echo_n "(cached) " >&6
  7407. else
  7408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7409. /* end confdefs.h. */
  7410. int i;
  7411. _ACEOF
  7412. if ac_fn_c_try_compile "$LINENO"; then :
  7413. xorg_cv_cc_flag_unused_command_line_argument=yes
  7414. else
  7415. xorg_cv_cc_flag_unused_command_line_argument=no
  7416. fi
  7417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7420. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7421. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7422. CFLAGS="$xorg_testset_save_CFLAGS"
  7423. fi
  7424. found="no"
  7425. if test $found = "no" ; then
  7426. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7427. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7428. fi
  7429. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7430. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7431. fi
  7432. CFLAGS="$CFLAGS -Wmain"
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
  7434. $as_echo_n "checking if $CC supports-Wmain... " >&6; }
  7435. cacheid=xorg_cv_cc_flag__Wmain
  7436. if eval \${$cacheid+:} false; then :
  7437. $as_echo_n "(cached) " >&6
  7438. else
  7439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7440. /* end confdefs.h. */
  7441. int i;
  7442. int
  7443. main ()
  7444. {
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. if ac_fn_c_try_link "$LINENO"; then :
  7450. eval $cacheid=yes
  7451. else
  7452. eval $cacheid=no
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext \
  7455. conftest$ac_exeext conftest.$ac_ext
  7456. fi
  7457. CFLAGS="$xorg_testset_save_CFLAGS"
  7458. eval supported=\$$cacheid
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7460. $as_echo "$supported" >&6; }
  7461. if test "$supported" = "yes" ; then
  7462. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7463. found="yes"
  7464. fi
  7465. fi
  7466. xorg_testset_save_CFLAGS="$CFLAGS"
  7467. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7468. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7470. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7471. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7472. $as_echo_n "(cached) " >&6
  7473. else
  7474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7475. /* end confdefs.h. */
  7476. int i;
  7477. _ACEOF
  7478. if ac_fn_c_try_compile "$LINENO"; then :
  7479. xorg_cv_cc_flag_unknown_warning_option=yes
  7480. else
  7481. xorg_cv_cc_flag_unknown_warning_option=no
  7482. fi
  7483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7484. fi
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7486. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7487. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7488. CFLAGS="$xorg_testset_save_CFLAGS"
  7489. fi
  7490. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7491. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7492. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7493. fi
  7494. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7496. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7497. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7498. $as_echo_n "(cached) " >&6
  7499. else
  7500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7501. /* end confdefs.h. */
  7502. int i;
  7503. _ACEOF
  7504. if ac_fn_c_try_compile "$LINENO"; then :
  7505. xorg_cv_cc_flag_unused_command_line_argument=yes
  7506. else
  7507. xorg_cv_cc_flag_unused_command_line_argument=no
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7512. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7513. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7514. CFLAGS="$xorg_testset_save_CFLAGS"
  7515. fi
  7516. found="no"
  7517. if test $found = "no" ; then
  7518. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7519. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7520. fi
  7521. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7522. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7523. fi
  7524. CFLAGS="$CFLAGS -Wmissing-braces"
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
  7526. $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
  7527. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7528. if eval \${$cacheid+:} false; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7532. /* end confdefs.h. */
  7533. int i;
  7534. int
  7535. main ()
  7536. {
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. if ac_fn_c_try_link "$LINENO"; then :
  7542. eval $cacheid=yes
  7543. else
  7544. eval $cacheid=no
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext \
  7547. conftest$ac_exeext conftest.$ac_ext
  7548. fi
  7549. CFLAGS="$xorg_testset_save_CFLAGS"
  7550. eval supported=\$$cacheid
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7552. $as_echo "$supported" >&6; }
  7553. if test "$supported" = "yes" ; then
  7554. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7555. found="yes"
  7556. fi
  7557. fi
  7558. xorg_testset_save_CFLAGS="$CFLAGS"
  7559. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7560. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7562. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7563. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7567. /* end confdefs.h. */
  7568. int i;
  7569. _ACEOF
  7570. if ac_fn_c_try_compile "$LINENO"; then :
  7571. xorg_cv_cc_flag_unknown_warning_option=yes
  7572. else
  7573. xorg_cv_cc_flag_unknown_warning_option=no
  7574. fi
  7575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7576. fi
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7578. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7579. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7580. CFLAGS="$xorg_testset_save_CFLAGS"
  7581. fi
  7582. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7583. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7584. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7585. fi
  7586. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7588. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7589. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7593. /* end confdefs.h. */
  7594. int i;
  7595. _ACEOF
  7596. if ac_fn_c_try_compile "$LINENO"; then :
  7597. xorg_cv_cc_flag_unused_command_line_argument=yes
  7598. else
  7599. xorg_cv_cc_flag_unused_command_line_argument=no
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7602. fi
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7604. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7605. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7606. CFLAGS="$xorg_testset_save_CFLAGS"
  7607. fi
  7608. found="no"
  7609. if test $found = "no" ; then
  7610. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7611. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7612. fi
  7613. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7614. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7615. fi
  7616. CFLAGS="$CFLAGS -Wsequence-point"
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
  7618. $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
  7619. cacheid=xorg_cv_cc_flag__Wsequence_point
  7620. if eval \${$cacheid+:} false; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7624. /* end confdefs.h. */
  7625. int i;
  7626. int
  7627. main ()
  7628. {
  7629. ;
  7630. return 0;
  7631. }
  7632. _ACEOF
  7633. if ac_fn_c_try_link "$LINENO"; then :
  7634. eval $cacheid=yes
  7635. else
  7636. eval $cacheid=no
  7637. fi
  7638. rm -f core conftest.err conftest.$ac_objext \
  7639. conftest$ac_exeext conftest.$ac_ext
  7640. fi
  7641. CFLAGS="$xorg_testset_save_CFLAGS"
  7642. eval supported=\$$cacheid
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7644. $as_echo "$supported" >&6; }
  7645. if test "$supported" = "yes" ; then
  7646. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7647. found="yes"
  7648. fi
  7649. fi
  7650. xorg_testset_save_CFLAGS="$CFLAGS"
  7651. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7652. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7654. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7655. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7656. $as_echo_n "(cached) " >&6
  7657. else
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. int i;
  7661. _ACEOF
  7662. if ac_fn_c_try_compile "$LINENO"; then :
  7663. xorg_cv_cc_flag_unknown_warning_option=yes
  7664. else
  7665. xorg_cv_cc_flag_unknown_warning_option=no
  7666. fi
  7667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7670. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7671. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7672. CFLAGS="$xorg_testset_save_CFLAGS"
  7673. fi
  7674. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7675. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7676. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7677. fi
  7678. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7680. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7681. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7685. /* end confdefs.h. */
  7686. int i;
  7687. _ACEOF
  7688. if ac_fn_c_try_compile "$LINENO"; then :
  7689. xorg_cv_cc_flag_unused_command_line_argument=yes
  7690. else
  7691. xorg_cv_cc_flag_unused_command_line_argument=no
  7692. fi
  7693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7696. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7697. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7698. CFLAGS="$xorg_testset_save_CFLAGS"
  7699. fi
  7700. found="no"
  7701. if test $found = "no" ; then
  7702. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7703. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7704. fi
  7705. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7706. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7707. fi
  7708. CFLAGS="$CFLAGS -Wreturn-type"
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
  7710. $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
  7711. cacheid=xorg_cv_cc_flag__Wreturn_type
  7712. if eval \${$cacheid+:} false; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7716. /* end confdefs.h. */
  7717. int i;
  7718. int
  7719. main ()
  7720. {
  7721. ;
  7722. return 0;
  7723. }
  7724. _ACEOF
  7725. if ac_fn_c_try_link "$LINENO"; then :
  7726. eval $cacheid=yes
  7727. else
  7728. eval $cacheid=no
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext \
  7731. conftest$ac_exeext conftest.$ac_ext
  7732. fi
  7733. CFLAGS="$xorg_testset_save_CFLAGS"
  7734. eval supported=\$$cacheid
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7736. $as_echo "$supported" >&6; }
  7737. if test "$supported" = "yes" ; then
  7738. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7739. found="yes"
  7740. fi
  7741. fi
  7742. xorg_testset_save_CFLAGS="$CFLAGS"
  7743. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7744. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7746. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7747. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7748. $as_echo_n "(cached) " >&6
  7749. else
  7750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7751. /* end confdefs.h. */
  7752. int i;
  7753. _ACEOF
  7754. if ac_fn_c_try_compile "$LINENO"; then :
  7755. xorg_cv_cc_flag_unknown_warning_option=yes
  7756. else
  7757. xorg_cv_cc_flag_unknown_warning_option=no
  7758. fi
  7759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7760. fi
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7762. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7763. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7764. CFLAGS="$xorg_testset_save_CFLAGS"
  7765. fi
  7766. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7767. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7768. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7769. fi
  7770. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7772. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7773. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7777. /* end confdefs.h. */
  7778. int i;
  7779. _ACEOF
  7780. if ac_fn_c_try_compile "$LINENO"; then :
  7781. xorg_cv_cc_flag_unused_command_line_argument=yes
  7782. else
  7783. xorg_cv_cc_flag_unused_command_line_argument=no
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7788. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7789. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7790. CFLAGS="$xorg_testset_save_CFLAGS"
  7791. fi
  7792. found="no"
  7793. if test $found = "no" ; then
  7794. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7795. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7796. fi
  7797. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7798. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7799. fi
  7800. CFLAGS="$CFLAGS -Wtrigraphs"
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
  7802. $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
  7803. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7804. if eval \${$cacheid+:} false; then :
  7805. $as_echo_n "(cached) " >&6
  7806. else
  7807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7808. /* end confdefs.h. */
  7809. int i;
  7810. int
  7811. main ()
  7812. {
  7813. ;
  7814. return 0;
  7815. }
  7816. _ACEOF
  7817. if ac_fn_c_try_link "$LINENO"; then :
  7818. eval $cacheid=yes
  7819. else
  7820. eval $cacheid=no
  7821. fi
  7822. rm -f core conftest.err conftest.$ac_objext \
  7823. conftest$ac_exeext conftest.$ac_ext
  7824. fi
  7825. CFLAGS="$xorg_testset_save_CFLAGS"
  7826. eval supported=\$$cacheid
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7828. $as_echo "$supported" >&6; }
  7829. if test "$supported" = "yes" ; then
  7830. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7831. found="yes"
  7832. fi
  7833. fi
  7834. xorg_testset_save_CFLAGS="$CFLAGS"
  7835. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7836. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7838. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7839. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7843. /* end confdefs.h. */
  7844. int i;
  7845. _ACEOF
  7846. if ac_fn_c_try_compile "$LINENO"; then :
  7847. xorg_cv_cc_flag_unknown_warning_option=yes
  7848. else
  7849. xorg_cv_cc_flag_unknown_warning_option=no
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7852. fi
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7854. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7855. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7856. CFLAGS="$xorg_testset_save_CFLAGS"
  7857. fi
  7858. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7859. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7860. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7861. fi
  7862. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7864. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7865. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7869. /* end confdefs.h. */
  7870. int i;
  7871. _ACEOF
  7872. if ac_fn_c_try_compile "$LINENO"; then :
  7873. xorg_cv_cc_flag_unused_command_line_argument=yes
  7874. else
  7875. xorg_cv_cc_flag_unused_command_line_argument=no
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7878. fi
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7880. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7881. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7882. CFLAGS="$xorg_testset_save_CFLAGS"
  7883. fi
  7884. found="no"
  7885. if test $found = "no" ; then
  7886. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7887. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7888. fi
  7889. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7890. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7891. fi
  7892. CFLAGS="$CFLAGS -Warray-bounds"
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
  7894. $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
  7895. cacheid=xorg_cv_cc_flag__Warray_bounds
  7896. if eval \${$cacheid+:} false; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7900. /* end confdefs.h. */
  7901. int i;
  7902. int
  7903. main ()
  7904. {
  7905. ;
  7906. return 0;
  7907. }
  7908. _ACEOF
  7909. if ac_fn_c_try_link "$LINENO"; then :
  7910. eval $cacheid=yes
  7911. else
  7912. eval $cacheid=no
  7913. fi
  7914. rm -f core conftest.err conftest.$ac_objext \
  7915. conftest$ac_exeext conftest.$ac_ext
  7916. fi
  7917. CFLAGS="$xorg_testset_save_CFLAGS"
  7918. eval supported=\$$cacheid
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7920. $as_echo "$supported" >&6; }
  7921. if test "$supported" = "yes" ; then
  7922. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7923. found="yes"
  7924. fi
  7925. fi
  7926. xorg_testset_save_CFLAGS="$CFLAGS"
  7927. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7928. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7930. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7931. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7932. $as_echo_n "(cached) " >&6
  7933. else
  7934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7935. /* end confdefs.h. */
  7936. int i;
  7937. _ACEOF
  7938. if ac_fn_c_try_compile "$LINENO"; then :
  7939. xorg_cv_cc_flag_unknown_warning_option=yes
  7940. else
  7941. xorg_cv_cc_flag_unknown_warning_option=no
  7942. fi
  7943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7944. fi
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7946. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7947. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7948. CFLAGS="$xorg_testset_save_CFLAGS"
  7949. fi
  7950. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7951. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7952. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7953. fi
  7954. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7956. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7957. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7958. $as_echo_n "(cached) " >&6
  7959. else
  7960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7961. /* end confdefs.h. */
  7962. int i;
  7963. _ACEOF
  7964. if ac_fn_c_try_compile "$LINENO"; then :
  7965. xorg_cv_cc_flag_unused_command_line_argument=yes
  7966. else
  7967. xorg_cv_cc_flag_unused_command_line_argument=no
  7968. fi
  7969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7970. fi
  7971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7972. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7973. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7974. CFLAGS="$xorg_testset_save_CFLAGS"
  7975. fi
  7976. found="no"
  7977. if test $found = "no" ; then
  7978. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7979. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7980. fi
  7981. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7982. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7983. fi
  7984. CFLAGS="$CFLAGS -Wwrite-strings"
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
  7986. $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
  7987. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7988. if eval \${$cacheid+:} false; then :
  7989. $as_echo_n "(cached) " >&6
  7990. else
  7991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7992. /* end confdefs.h. */
  7993. int i;
  7994. int
  7995. main ()
  7996. {
  7997. ;
  7998. return 0;
  7999. }
  8000. _ACEOF
  8001. if ac_fn_c_try_link "$LINENO"; then :
  8002. eval $cacheid=yes
  8003. else
  8004. eval $cacheid=no
  8005. fi
  8006. rm -f core conftest.err conftest.$ac_objext \
  8007. conftest$ac_exeext conftest.$ac_ext
  8008. fi
  8009. CFLAGS="$xorg_testset_save_CFLAGS"
  8010. eval supported=\$$cacheid
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8012. $as_echo "$supported" >&6; }
  8013. if test "$supported" = "yes" ; then
  8014. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  8015. found="yes"
  8016. fi
  8017. fi
  8018. xorg_testset_save_CFLAGS="$CFLAGS"
  8019. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8020. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8022. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8023. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8024. $as_echo_n "(cached) " >&6
  8025. else
  8026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8027. /* end confdefs.h. */
  8028. int i;
  8029. _ACEOF
  8030. if ac_fn_c_try_compile "$LINENO"; then :
  8031. xorg_cv_cc_flag_unknown_warning_option=yes
  8032. else
  8033. xorg_cv_cc_flag_unknown_warning_option=no
  8034. fi
  8035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8036. fi
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8038. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8039. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8040. CFLAGS="$xorg_testset_save_CFLAGS"
  8041. fi
  8042. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8043. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8044. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8045. fi
  8046. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8048. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8049. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8050. $as_echo_n "(cached) " >&6
  8051. else
  8052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8053. /* end confdefs.h. */
  8054. int i;
  8055. _ACEOF
  8056. if ac_fn_c_try_compile "$LINENO"; then :
  8057. xorg_cv_cc_flag_unused_command_line_argument=yes
  8058. else
  8059. xorg_cv_cc_flag_unused_command_line_argument=no
  8060. fi
  8061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8062. fi
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8064. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8065. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8066. CFLAGS="$xorg_testset_save_CFLAGS"
  8067. fi
  8068. found="no"
  8069. if test $found = "no" ; then
  8070. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8071. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8072. fi
  8073. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8075. fi
  8076. CFLAGS="$CFLAGS -Waddress"
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
  8078. $as_echo_n "checking if $CC supports-Waddress... " >&6; }
  8079. cacheid=xorg_cv_cc_flag__Waddress
  8080. if eval \${$cacheid+:} false; then :
  8081. $as_echo_n "(cached) " >&6
  8082. else
  8083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8084. /* end confdefs.h. */
  8085. int i;
  8086. int
  8087. main ()
  8088. {
  8089. ;
  8090. return 0;
  8091. }
  8092. _ACEOF
  8093. if ac_fn_c_try_link "$LINENO"; then :
  8094. eval $cacheid=yes
  8095. else
  8096. eval $cacheid=no
  8097. fi
  8098. rm -f core conftest.err conftest.$ac_objext \
  8099. conftest$ac_exeext conftest.$ac_ext
  8100. fi
  8101. CFLAGS="$xorg_testset_save_CFLAGS"
  8102. eval supported=\$$cacheid
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8104. $as_echo "$supported" >&6; }
  8105. if test "$supported" = "yes" ; then
  8106. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8107. found="yes"
  8108. fi
  8109. fi
  8110. xorg_testset_save_CFLAGS="$CFLAGS"
  8111. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8112. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8114. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8115. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8116. $as_echo_n "(cached) " >&6
  8117. else
  8118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8119. /* end confdefs.h. */
  8120. int i;
  8121. _ACEOF
  8122. if ac_fn_c_try_compile "$LINENO"; then :
  8123. xorg_cv_cc_flag_unknown_warning_option=yes
  8124. else
  8125. xorg_cv_cc_flag_unknown_warning_option=no
  8126. fi
  8127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8128. fi
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8130. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8131. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8132. CFLAGS="$xorg_testset_save_CFLAGS"
  8133. fi
  8134. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8135. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8136. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8137. fi
  8138. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8140. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8141. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8142. $as_echo_n "(cached) " >&6
  8143. else
  8144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8145. /* end confdefs.h. */
  8146. int i;
  8147. _ACEOF
  8148. if ac_fn_c_try_compile "$LINENO"; then :
  8149. xorg_cv_cc_flag_unused_command_line_argument=yes
  8150. else
  8151. xorg_cv_cc_flag_unused_command_line_argument=no
  8152. fi
  8153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8154. fi
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8156. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8157. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8158. CFLAGS="$xorg_testset_save_CFLAGS"
  8159. fi
  8160. found="no"
  8161. if test $found = "no" ; then
  8162. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8163. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8164. fi
  8165. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8167. fi
  8168. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
  8170. $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
  8171. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8172. if eval \${$cacheid+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int i;
  8178. int
  8179. main ()
  8180. {
  8181. ;
  8182. return 0;
  8183. }
  8184. _ACEOF
  8185. if ac_fn_c_try_link "$LINENO"; then :
  8186. eval $cacheid=yes
  8187. else
  8188. eval $cacheid=no
  8189. fi
  8190. rm -f core conftest.err conftest.$ac_objext \
  8191. conftest$ac_exeext conftest.$ac_ext
  8192. fi
  8193. CFLAGS="$xorg_testset_save_CFLAGS"
  8194. eval supported=\$$cacheid
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8196. $as_echo "$supported" >&6; }
  8197. if test "$supported" = "yes" ; then
  8198. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8199. found="yes"
  8200. fi
  8201. fi
  8202. xorg_testset_save_CFLAGS="$CFLAGS"
  8203. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8204. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8206. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8207. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8208. $as_echo_n "(cached) " >&6
  8209. else
  8210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8211. /* end confdefs.h. */
  8212. int i;
  8213. _ACEOF
  8214. if ac_fn_c_try_compile "$LINENO"; then :
  8215. xorg_cv_cc_flag_unknown_warning_option=yes
  8216. else
  8217. xorg_cv_cc_flag_unknown_warning_option=no
  8218. fi
  8219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8220. fi
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8222. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8223. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8224. CFLAGS="$xorg_testset_save_CFLAGS"
  8225. fi
  8226. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8227. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8228. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8229. fi
  8230. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8232. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8233. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8237. /* end confdefs.h. */
  8238. int i;
  8239. _ACEOF
  8240. if ac_fn_c_try_compile "$LINENO"; then :
  8241. xorg_cv_cc_flag_unused_command_line_argument=yes
  8242. else
  8243. xorg_cv_cc_flag_unused_command_line_argument=no
  8244. fi
  8245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8248. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8249. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8250. CFLAGS="$xorg_testset_save_CFLAGS"
  8251. fi
  8252. found="no"
  8253. if test $found = "no" ; then
  8254. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8255. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8256. fi
  8257. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8259. fi
  8260. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
  8262. $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
  8263. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8264. if eval \${$cacheid+:} false; then :
  8265. $as_echo_n "(cached) " >&6
  8266. else
  8267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8268. /* end confdefs.h. */
  8269. int i;
  8270. int
  8271. main ()
  8272. {
  8273. ;
  8274. return 0;
  8275. }
  8276. _ACEOF
  8277. if ac_fn_c_try_link "$LINENO"; then :
  8278. eval $cacheid=yes
  8279. else
  8280. eval $cacheid=no
  8281. fi
  8282. rm -f core conftest.err conftest.$ac_objext \
  8283. conftest$ac_exeext conftest.$ac_ext
  8284. fi
  8285. CFLAGS="$xorg_testset_save_CFLAGS"
  8286. eval supported=\$$cacheid
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8288. $as_echo "$supported" >&6; }
  8289. if test "$supported" = "yes" ; then
  8290. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8291. found="yes"
  8292. fi
  8293. fi
  8294. fi
  8295. CWARNFLAGS="$BASE_CFLAGS"
  8296. if test "x$GCC" = xyes ; then
  8297. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8298. fi
  8299. # Check whether --enable-strict-compilation was given.
  8300. if test "${enable_strict_compilation+set}" = set; then :
  8301. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8302. else
  8303. STRICT_COMPILE=no
  8304. fi
  8305. STRICT_CFLAGS=""
  8306. xorg_testset_save_CFLAGS="$CFLAGS"
  8307. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8308. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8310. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8311. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8312. $as_echo_n "(cached) " >&6
  8313. else
  8314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8315. /* end confdefs.h. */
  8316. int i;
  8317. _ACEOF
  8318. if ac_fn_c_try_compile "$LINENO"; then :
  8319. xorg_cv_cc_flag_unknown_warning_option=yes
  8320. else
  8321. xorg_cv_cc_flag_unknown_warning_option=no
  8322. fi
  8323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8324. fi
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8326. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8327. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8328. CFLAGS="$xorg_testset_save_CFLAGS"
  8329. fi
  8330. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8331. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8332. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8333. fi
  8334. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8336. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8337. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8341. /* end confdefs.h. */
  8342. int i;
  8343. _ACEOF
  8344. if ac_fn_c_try_compile "$LINENO"; then :
  8345. xorg_cv_cc_flag_unused_command_line_argument=yes
  8346. else
  8347. xorg_cv_cc_flag_unused_command_line_argument=no
  8348. fi
  8349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8350. fi
  8351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8352. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8353. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8354. CFLAGS="$xorg_testset_save_CFLAGS"
  8355. fi
  8356. found="no"
  8357. if test $found = "no" ; then
  8358. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8359. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8360. fi
  8361. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8362. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8363. fi
  8364. CFLAGS="$CFLAGS -pedantic"
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
  8366. $as_echo_n "checking if $CC supports-pedantic... " >&6; }
  8367. cacheid=xorg_cv_cc_flag__pedantic
  8368. if eval \${$cacheid+:} false; then :
  8369. $as_echo_n "(cached) " >&6
  8370. else
  8371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8372. /* end confdefs.h. */
  8373. int i;
  8374. int
  8375. main ()
  8376. {
  8377. ;
  8378. return 0;
  8379. }
  8380. _ACEOF
  8381. if ac_fn_c_try_link "$LINENO"; then :
  8382. eval $cacheid=yes
  8383. else
  8384. eval $cacheid=no
  8385. fi
  8386. rm -f core conftest.err conftest.$ac_objext \
  8387. conftest$ac_exeext conftest.$ac_ext
  8388. fi
  8389. CFLAGS="$xorg_testset_save_CFLAGS"
  8390. eval supported=\$$cacheid
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8392. $as_echo "$supported" >&6; }
  8393. if test "$supported" = "yes" ; then
  8394. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8395. found="yes"
  8396. fi
  8397. fi
  8398. xorg_testset_save_CFLAGS="$CFLAGS"
  8399. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8400. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8402. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8403. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8404. $as_echo_n "(cached) " >&6
  8405. else
  8406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8407. /* end confdefs.h. */
  8408. int i;
  8409. _ACEOF
  8410. if ac_fn_c_try_compile "$LINENO"; then :
  8411. xorg_cv_cc_flag_unknown_warning_option=yes
  8412. else
  8413. xorg_cv_cc_flag_unknown_warning_option=no
  8414. fi
  8415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8416. fi
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8418. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8419. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8420. CFLAGS="$xorg_testset_save_CFLAGS"
  8421. fi
  8422. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8423. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8424. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8425. fi
  8426. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8428. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8429. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8430. $as_echo_n "(cached) " >&6
  8431. else
  8432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8433. /* end confdefs.h. */
  8434. int i;
  8435. _ACEOF
  8436. if ac_fn_c_try_compile "$LINENO"; then :
  8437. xorg_cv_cc_flag_unused_command_line_argument=yes
  8438. else
  8439. xorg_cv_cc_flag_unused_command_line_argument=no
  8440. fi
  8441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8442. fi
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8444. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8445. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8446. CFLAGS="$xorg_testset_save_CFLAGS"
  8447. fi
  8448. found="no"
  8449. if test $found = "no" ; then
  8450. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8451. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8452. fi
  8453. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8454. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8455. fi
  8456. CFLAGS="$CFLAGS -Werror"
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
  8458. $as_echo_n "checking if $CC supports-Werror... " >&6; }
  8459. cacheid=xorg_cv_cc_flag__Werror
  8460. if eval \${$cacheid+:} false; then :
  8461. $as_echo_n "(cached) " >&6
  8462. else
  8463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8464. /* end confdefs.h. */
  8465. int i;
  8466. int
  8467. main ()
  8468. {
  8469. ;
  8470. return 0;
  8471. }
  8472. _ACEOF
  8473. if ac_fn_c_try_link "$LINENO"; then :
  8474. eval $cacheid=yes
  8475. else
  8476. eval $cacheid=no
  8477. fi
  8478. rm -f core conftest.err conftest.$ac_objext \
  8479. conftest$ac_exeext conftest.$ac_ext
  8480. fi
  8481. CFLAGS="$xorg_testset_save_CFLAGS"
  8482. eval supported=\$$cacheid
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8484. $as_echo "$supported" >&6; }
  8485. if test "$supported" = "yes" ; then
  8486. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8487. found="yes"
  8488. fi
  8489. fi
  8490. if test $found = "no" ; then
  8491. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8492. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8493. fi
  8494. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8495. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8496. fi
  8497. CFLAGS="$CFLAGS -errwarn"
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
  8499. $as_echo_n "checking if $CC supports-errwarn... " >&6; }
  8500. cacheid=xorg_cv_cc_flag__errwarn
  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 -errwarn"
  8528. found="yes"
  8529. fi
  8530. fi
  8531. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8532. # activate it with -Werror, so we add it here explicitly.
  8533. xorg_testset_save_CFLAGS="$CFLAGS"
  8534. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8535. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8537. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8538. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8539. $as_echo_n "(cached) " >&6
  8540. else
  8541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8542. /* end confdefs.h. */
  8543. int i;
  8544. _ACEOF
  8545. if ac_fn_c_try_compile "$LINENO"; then :
  8546. xorg_cv_cc_flag_unknown_warning_option=yes
  8547. else
  8548. xorg_cv_cc_flag_unknown_warning_option=no
  8549. fi
  8550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8551. fi
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8553. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8554. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8555. CFLAGS="$xorg_testset_save_CFLAGS"
  8556. fi
  8557. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8558. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8559. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8560. fi
  8561. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8563. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8564. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8568. /* end confdefs.h. */
  8569. int i;
  8570. _ACEOF
  8571. if ac_fn_c_try_compile "$LINENO"; then :
  8572. xorg_cv_cc_flag_unused_command_line_argument=yes
  8573. else
  8574. xorg_cv_cc_flag_unused_command_line_argument=no
  8575. fi
  8576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8577. fi
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8579. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8580. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8581. CFLAGS="$xorg_testset_save_CFLAGS"
  8582. fi
  8583. found="no"
  8584. if test $found = "no" ; then
  8585. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8586. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8587. fi
  8588. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8589. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8590. fi
  8591. CFLAGS="$CFLAGS -Werror=attributes"
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
  8593. $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
  8594. cacheid=xorg_cv_cc_flag__Werror_attributes
  8595. if eval \${$cacheid+:} false; then :
  8596. $as_echo_n "(cached) " >&6
  8597. else
  8598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8599. /* end confdefs.h. */
  8600. int i;
  8601. int
  8602. main ()
  8603. {
  8604. ;
  8605. return 0;
  8606. }
  8607. _ACEOF
  8608. if ac_fn_c_try_link "$LINENO"; then :
  8609. eval $cacheid=yes
  8610. else
  8611. eval $cacheid=no
  8612. fi
  8613. rm -f core conftest.err conftest.$ac_objext \
  8614. conftest$ac_exeext conftest.$ac_ext
  8615. fi
  8616. CFLAGS="$xorg_testset_save_CFLAGS"
  8617. eval supported=\$$cacheid
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8619. $as_echo "$supported" >&6; }
  8620. if test "$supported" = "yes" ; then
  8621. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8622. found="yes"
  8623. fi
  8624. fi
  8625. if test "x$STRICT_COMPILE" = "xyes"; then
  8626. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8627. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8628. fi
  8629. cat >>confdefs.h <<_ACEOF
  8630. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8631. _ACEOF
  8632. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8633. if test "x$PVM" = "x"; then
  8634. PVM="0"
  8635. fi
  8636. cat >>confdefs.h <<_ACEOF
  8637. #define PACKAGE_VERSION_MINOR $PVM
  8638. _ACEOF
  8639. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8640. if test "x$PVP" = "x"; then
  8641. PVP="0"
  8642. fi
  8643. cat >>confdefs.h <<_ACEOF
  8644. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8645. _ACEOF
  8646. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8647. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8648. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8649. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8650. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8651. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8652. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8653. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8654. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8655. if test x$APP_MAN_SUFFIX = x ; then
  8656. APP_MAN_SUFFIX=1
  8657. fi
  8658. if test x$APP_MAN_DIR = x ; then
  8659. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8660. fi
  8661. if test x$LIB_MAN_SUFFIX = x ; then
  8662. LIB_MAN_SUFFIX=3
  8663. fi
  8664. if test x$LIB_MAN_DIR = x ; then
  8665. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8666. fi
  8667. if test x$FILE_MAN_SUFFIX = x ; then
  8668. case $host_os in
  8669. solaris*) FILE_MAN_SUFFIX=4 ;;
  8670. *) FILE_MAN_SUFFIX=5 ;;
  8671. esac
  8672. fi
  8673. if test x$FILE_MAN_DIR = x ; then
  8674. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8675. fi
  8676. if test x$MISC_MAN_SUFFIX = x ; then
  8677. case $host_os in
  8678. solaris*) MISC_MAN_SUFFIX=5 ;;
  8679. *) MISC_MAN_SUFFIX=7 ;;
  8680. esac
  8681. fi
  8682. if test x$MISC_MAN_DIR = x ; then
  8683. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8684. fi
  8685. if test x$DRIVER_MAN_SUFFIX = x ; then
  8686. case $host_os in
  8687. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8688. *) DRIVER_MAN_SUFFIX=4 ;;
  8689. esac
  8690. fi
  8691. if test x$DRIVER_MAN_DIR = x ; then
  8692. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8693. fi
  8694. if test x$ADMIN_MAN_SUFFIX = x ; then
  8695. case $host_os in
  8696. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8697. *) ADMIN_MAN_SUFFIX=8 ;;
  8698. esac
  8699. fi
  8700. if test x$ADMIN_MAN_DIR = x ; then
  8701. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8702. fi
  8703. XORG_MAN_PAGE="X Version 11"
  8704. MAN_SUBSTS="\
  8705. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8706. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8707. -e 's|__xservername__|Xorg|g' \
  8708. -e 's|__xconfigfile__|xorg.conf|g' \
  8709. -e 's|__projectroot__|\$(prefix)|g' \
  8710. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8711. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8712. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8713. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8714. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8715. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8716. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8717. # Check whether --enable-silent-rules was given.
  8718. if test "${enable_silent_rules+set}" = set; then :
  8719. enableval=$enable_silent_rules;
  8720. fi
  8721. case $enable_silent_rules in # (((
  8722. yes) AM_DEFAULT_VERBOSITY=0;;
  8723. no) AM_DEFAULT_VERBOSITY=1;;
  8724. *) AM_DEFAULT_VERBOSITY=0;;
  8725. esac
  8726. am_make=${MAKE-make}
  8727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8728. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8729. if ${am_cv_make_support_nested_variables+:} false; then :
  8730. $as_echo_n "(cached) " >&6
  8731. else
  8732. if $as_echo 'TRUE=$(BAR$(V))
  8733. BAR0=false
  8734. BAR1=true
  8735. V=1
  8736. am__doit:
  8737. @$(TRUE)
  8738. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8739. am_cv_make_support_nested_variables=yes
  8740. else
  8741. am_cv_make_support_nested_variables=no
  8742. fi
  8743. fi
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8745. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8746. if test $am_cv_make_support_nested_variables = yes; then
  8747. AM_V='$(V)'
  8748. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8749. else
  8750. AM_V=$AM_DEFAULT_VERBOSITY
  8751. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8752. fi
  8753. AM_BACKSLASH='\'
  8754. for ac_func in strcasecmp
  8755. do :
  8756. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  8757. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  8758. cat >>confdefs.h <<_ACEOF
  8759. #define HAVE_STRCASECMP 1
  8760. _ACEOF
  8761. fi
  8762. done
  8763. # Checks for pkg-config packages
  8764. pkg_failed=no
  8765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5
  8766. $as_echo_n "checking for XREFRESH... " >&6; }
  8767. if test -n "$PKG_CONFIG"; then
  8768. if test -n "$XREFRESH_CFLAGS"; then
  8769. pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS"
  8770. else
  8771. if test -n "$PKG_CONFIG" && \
  8772. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
  8773. ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
  8774. ac_status=$?
  8775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8776. test $ac_status = 0; }; then
  8777. pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
  8778. else
  8779. pkg_failed=yes
  8780. fi
  8781. fi
  8782. else
  8783. pkg_failed=untried
  8784. fi
  8785. if test -n "$PKG_CONFIG"; then
  8786. if test -n "$XREFRESH_LIBS"; then
  8787. pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS"
  8788. else
  8789. if test -n "$PKG_CONFIG" && \
  8790. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
  8791. ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
  8792. ac_status=$?
  8793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8794. test $ac_status = 0; }; then
  8795. pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
  8796. else
  8797. pkg_failed=yes
  8798. fi
  8799. fi
  8800. else
  8801. pkg_failed=untried
  8802. fi
  8803. if test $pkg_failed = yes; then
  8804. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8805. _pkg_short_errors_supported=yes
  8806. else
  8807. _pkg_short_errors_supported=no
  8808. fi
  8809. if test $_pkg_short_errors_supported = yes; then
  8810. XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xproto >= 7.0.17"`
  8811. else
  8812. XREFRESH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xproto >= 7.0.17"`
  8813. fi
  8814. # Put the nasty error message in config.log where it belongs
  8815. echo "$XREFRESH_PKG_ERRORS" >&5
  8816. as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
  8817. $XREFRESH_PKG_ERRORS
  8818. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8819. installed software in a non-standard prefix.
  8820. Alternatively, you may set the environment variables XREFRESH_CFLAGS
  8821. and XREFRESH_LIBS to avoid the need to call pkg-config.
  8822. See the pkg-config man page for more details.
  8823. " "$LINENO" 5
  8824. elif test $pkg_failed = untried; then
  8825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8827. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8828. is in your PATH or set the PKG_CONFIG environment variable to the full
  8829. path to pkg-config.
  8830. Alternatively, you may set the environment variables XREFRESH_CFLAGS
  8831. and XREFRESH_LIBS to avoid the need to call pkg-config.
  8832. See the pkg-config man page for more details.
  8833. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  8834. See \`config.log' for more details" "$LINENO" 5; }
  8835. else
  8836. XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS
  8837. XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8839. $as_echo "yes" >&6; }
  8840. :
  8841. fi
  8842. ac_config_files="$ac_config_files Makefile man/Makefile"
  8843. cat >confcache <<\_ACEOF
  8844. # This file is a shell script that caches the results of configure
  8845. # tests run on this system so they can be shared between configure
  8846. # scripts and configure runs, see configure's option --config-cache.
  8847. # It is not useful on other systems. If it contains results you don't
  8848. # want to keep, you may remove or edit it.
  8849. #
  8850. # config.status only pays attention to the cache file if you give it
  8851. # the --recheck option to rerun configure.
  8852. #
  8853. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8854. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8855. # following values.
  8856. _ACEOF
  8857. # The following way of writing the cache mishandles newlines in values,
  8858. # but we know of no workaround that is simple, portable, and efficient.
  8859. # So, we kill variables containing newlines.
  8860. # Ultrix sh set writes to stderr and can't be redirected directly,
  8861. # and sets the high bit in the cache file unless we assign to the vars.
  8862. (
  8863. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8864. eval ac_val=\$$ac_var
  8865. case $ac_val in #(
  8866. *${as_nl}*)
  8867. case $ac_var in #(
  8868. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8869. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8870. esac
  8871. case $ac_var in #(
  8872. _ | IFS | as_nl) ;; #(
  8873. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8874. *) { eval $ac_var=; unset $ac_var;} ;;
  8875. esac ;;
  8876. esac
  8877. done
  8878. (set) 2>&1 |
  8879. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8880. *${as_nl}ac_space=\ *)
  8881. # `set' does not quote correctly, so add quotes: double-quote
  8882. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8883. sed -n \
  8884. "s/'/'\\\\''/g;
  8885. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8886. ;; #(
  8887. *)
  8888. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8889. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8890. ;;
  8891. esac |
  8892. sort
  8893. ) |
  8894. sed '
  8895. /^ac_cv_env_/b end
  8896. t clear
  8897. :clear
  8898. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8899. t end
  8900. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8901. :end' >>confcache
  8902. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8903. if test -w "$cache_file"; then
  8904. if test "x$cache_file" != "x/dev/null"; then
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8906. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8907. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8908. cat confcache >"$cache_file"
  8909. else
  8910. case $cache_file in #(
  8911. */* | ?:*)
  8912. mv -f confcache "$cache_file"$$ &&
  8913. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8914. *)
  8915. mv -f confcache "$cache_file" ;;
  8916. esac
  8917. fi
  8918. fi
  8919. else
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8921. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8922. fi
  8923. fi
  8924. rm -f confcache
  8925. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8926. # Let make expand exec_prefix.
  8927. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8928. DEFS=-DHAVE_CONFIG_H
  8929. ac_libobjs=
  8930. ac_ltlibobjs=
  8931. U=
  8932. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8933. # 1. Remove the extension, and $U if already installed.
  8934. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8935. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8936. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8937. # will be set to the directory where LIBOBJS objects are built.
  8938. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8939. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8940. done
  8941. LIBOBJS=$ac_libobjs
  8942. LTLIBOBJS=$ac_ltlibobjs
  8943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8944. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8945. if test -n "$am_sleep_pid"; then
  8946. # Hide warnings about reused PIDs.
  8947. wait $am_sleep_pid 2>/dev/null
  8948. fi
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8950. $as_echo "done" >&6; }
  8951. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8952. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8953. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8954. fi
  8955. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8956. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8957. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8958. fi
  8959. if test -n "$EXEEXT"; then
  8960. am__EXEEXT_TRUE=
  8961. am__EXEEXT_FALSE='#'
  8962. else
  8963. am__EXEEXT_TRUE='#'
  8964. am__EXEEXT_FALSE=
  8965. fi
  8966. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  8967. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  8968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8969. fi
  8970. : "${CONFIG_STATUS=./config.status}"
  8971. ac_write_fail=0
  8972. ac_clean_files_save=$ac_clean_files
  8973. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8975. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8976. as_write_fail=0
  8977. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8978. #! $SHELL
  8979. # Generated by $as_me.
  8980. # Run this file to recreate the current configuration.
  8981. # Compiler output produced by configure, useful for debugging
  8982. # configure, is in config.log if it exists.
  8983. debug=false
  8984. ac_cs_recheck=false
  8985. ac_cs_silent=false
  8986. SHELL=\${CONFIG_SHELL-$SHELL}
  8987. export SHELL
  8988. _ASEOF
  8989. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8990. ## -------------------- ##
  8991. ## M4sh Initialization. ##
  8992. ## -------------------- ##
  8993. # Be more Bourne compatible
  8994. DUALCASE=1; export DUALCASE # for MKS sh
  8995. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8996. emulate sh
  8997. NULLCMD=:
  8998. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8999. # is contrary to our usage. Disable this feature.
  9000. alias -g '${1+"$@"}'='"$@"'
  9001. setopt NO_GLOB_SUBST
  9002. else
  9003. case `(set -o) 2>/dev/null` in #(
  9004. *posix*) :
  9005. set -o posix ;; #(
  9006. *) :
  9007. ;;
  9008. esac
  9009. fi
  9010. as_nl='
  9011. '
  9012. export as_nl
  9013. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9014. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9015. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9016. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9017. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9018. # but without wasting forks for bash or zsh.
  9019. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9020. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9021. as_echo='print -r --'
  9022. as_echo_n='print -rn --'
  9023. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9024. as_echo='printf %s\n'
  9025. as_echo_n='printf %s'
  9026. else
  9027. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9028. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9029. as_echo_n='/usr/ucb/echo -n'
  9030. else
  9031. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9032. as_echo_n_body='eval
  9033. arg=$1;
  9034. case $arg in #(
  9035. *"$as_nl"*)
  9036. expr "X$arg" : "X\\(.*\\)$as_nl";
  9037. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9038. esac;
  9039. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9040. '
  9041. export as_echo_n_body
  9042. as_echo_n='sh -c $as_echo_n_body as_echo'
  9043. fi
  9044. export as_echo_body
  9045. as_echo='sh -c $as_echo_body as_echo'
  9046. fi
  9047. # The user is always right.
  9048. if test "${PATH_SEPARATOR+set}" != set; then
  9049. PATH_SEPARATOR=:
  9050. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9051. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9052. PATH_SEPARATOR=';'
  9053. }
  9054. fi
  9055. # IFS
  9056. # We need space, tab and new line, in precisely that order. Quoting is
  9057. # there to prevent editors from complaining about space-tab.
  9058. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9059. # splitting by setting IFS to empty value.)
  9060. IFS=" "" $as_nl"
  9061. # Find who we are. Look in the path if we contain no directory separator.
  9062. as_myself=
  9063. case $0 in #((
  9064. *[\\/]* ) as_myself=$0 ;;
  9065. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9066. for as_dir in $PATH
  9067. do
  9068. IFS=$as_save_IFS
  9069. test -z "$as_dir" && as_dir=.
  9070. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9071. done
  9072. IFS=$as_save_IFS
  9073. ;;
  9074. esac
  9075. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9076. # in which case we are not to be found in the path.
  9077. if test "x$as_myself" = x; then
  9078. as_myself=$0
  9079. fi
  9080. if test ! -f "$as_myself"; then
  9081. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9082. exit 1
  9083. fi
  9084. # Unset variables that we do not need and which cause bugs (e.g. in
  9085. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9086. # suppresses any "Segmentation fault" message there. '((' could
  9087. # trigger a bug in pdksh 5.2.14.
  9088. for as_var in BASH_ENV ENV MAIL MAILPATH
  9089. do eval test x\${$as_var+set} = xset \
  9090. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9091. done
  9092. PS1='$ '
  9093. PS2='> '
  9094. PS4='+ '
  9095. # NLS nuisances.
  9096. LC_ALL=C
  9097. export LC_ALL
  9098. LANGUAGE=C
  9099. export LANGUAGE
  9100. # CDPATH.
  9101. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9102. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9103. # ----------------------------------------
  9104. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9105. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9106. # script with STATUS, using 1 if that was 0.
  9107. as_fn_error ()
  9108. {
  9109. as_status=$1; test $as_status -eq 0 && as_status=1
  9110. if test "$4"; then
  9111. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9112. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9113. fi
  9114. $as_echo "$as_me: error: $2" >&2
  9115. as_fn_exit $as_status
  9116. } # as_fn_error
  9117. # as_fn_set_status STATUS
  9118. # -----------------------
  9119. # Set $? to STATUS, without forking.
  9120. as_fn_set_status ()
  9121. {
  9122. return $1
  9123. } # as_fn_set_status
  9124. # as_fn_exit STATUS
  9125. # -----------------
  9126. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9127. as_fn_exit ()
  9128. {
  9129. set +e
  9130. as_fn_set_status $1
  9131. exit $1
  9132. } # as_fn_exit
  9133. # as_fn_unset VAR
  9134. # ---------------
  9135. # Portably unset VAR.
  9136. as_fn_unset ()
  9137. {
  9138. { eval $1=; unset $1;}
  9139. }
  9140. as_unset=as_fn_unset
  9141. # as_fn_append VAR VALUE
  9142. # ----------------------
  9143. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9144. # advantage of any shell optimizations that allow amortized linear growth over
  9145. # repeated appends, instead of the typical quadratic growth present in naive
  9146. # implementations.
  9147. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9148. eval 'as_fn_append ()
  9149. {
  9150. eval $1+=\$2
  9151. }'
  9152. else
  9153. as_fn_append ()
  9154. {
  9155. eval $1=\$$1\$2
  9156. }
  9157. fi # as_fn_append
  9158. # as_fn_arith ARG...
  9159. # ------------------
  9160. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9161. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9162. # must be portable across $(()) and expr.
  9163. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9164. eval 'as_fn_arith ()
  9165. {
  9166. as_val=$(( $* ))
  9167. }'
  9168. else
  9169. as_fn_arith ()
  9170. {
  9171. as_val=`expr "$@" || test $? -eq 1`
  9172. }
  9173. fi # as_fn_arith
  9174. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9175. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9176. as_expr=expr
  9177. else
  9178. as_expr=false
  9179. fi
  9180. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9181. as_basename=basename
  9182. else
  9183. as_basename=false
  9184. fi
  9185. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9186. as_dirname=dirname
  9187. else
  9188. as_dirname=false
  9189. fi
  9190. as_me=`$as_basename -- "$0" ||
  9191. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9192. X"$0" : 'X\(//\)$' \| \
  9193. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9194. $as_echo X/"$0" |
  9195. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9196. s//\1/
  9197. q
  9198. }
  9199. /^X\/\(\/\/\)$/{
  9200. s//\1/
  9201. q
  9202. }
  9203. /^X\/\(\/\).*/{
  9204. s//\1/
  9205. q
  9206. }
  9207. s/.*/./; q'`
  9208. # Avoid depending upon Character Ranges.
  9209. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9210. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9211. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9212. as_cr_digits='0123456789'
  9213. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9214. ECHO_C= ECHO_N= ECHO_T=
  9215. case `echo -n x` in #(((((
  9216. -n*)
  9217. case `echo 'xy\c'` in
  9218. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9219. xy) ECHO_C='\c';;
  9220. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9221. ECHO_T=' ';;
  9222. esac;;
  9223. *)
  9224. ECHO_N='-n';;
  9225. esac
  9226. rm -f conf$$ conf$$.exe conf$$.file
  9227. if test -d conf$$.dir; then
  9228. rm -f conf$$.dir/conf$$.file
  9229. else
  9230. rm -f conf$$.dir
  9231. mkdir conf$$.dir 2>/dev/null
  9232. fi
  9233. if (echo >conf$$.file) 2>/dev/null; then
  9234. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9235. as_ln_s='ln -s'
  9236. # ... but there are two gotchas:
  9237. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9238. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9239. # In both cases, we have to default to `cp -pR'.
  9240. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9241. as_ln_s='cp -pR'
  9242. elif ln conf$$.file conf$$ 2>/dev/null; then
  9243. as_ln_s=ln
  9244. else
  9245. as_ln_s='cp -pR'
  9246. fi
  9247. else
  9248. as_ln_s='cp -pR'
  9249. fi
  9250. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9251. rmdir conf$$.dir 2>/dev/null
  9252. # as_fn_mkdir_p
  9253. # -------------
  9254. # Create "$as_dir" as a directory, including parents if necessary.
  9255. as_fn_mkdir_p ()
  9256. {
  9257. case $as_dir in #(
  9258. -*) as_dir=./$as_dir;;
  9259. esac
  9260. test -d "$as_dir" || eval $as_mkdir_p || {
  9261. as_dirs=
  9262. while :; do
  9263. case $as_dir in #(
  9264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9265. *) as_qdir=$as_dir;;
  9266. esac
  9267. as_dirs="'$as_qdir' $as_dirs"
  9268. as_dir=`$as_dirname -- "$as_dir" ||
  9269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9270. X"$as_dir" : 'X\(//\)[^/]' \| \
  9271. X"$as_dir" : 'X\(//\)$' \| \
  9272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9273. $as_echo X"$as_dir" |
  9274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9275. s//\1/
  9276. q
  9277. }
  9278. /^X\(\/\/\)[^/].*/{
  9279. s//\1/
  9280. q
  9281. }
  9282. /^X\(\/\/\)$/{
  9283. s//\1/
  9284. q
  9285. }
  9286. /^X\(\/\).*/{
  9287. s//\1/
  9288. q
  9289. }
  9290. s/.*/./; q'`
  9291. test -d "$as_dir" && break
  9292. done
  9293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9294. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9295. } # as_fn_mkdir_p
  9296. if mkdir -p . 2>/dev/null; then
  9297. as_mkdir_p='mkdir -p "$as_dir"'
  9298. else
  9299. test -d ./-p && rmdir ./-p
  9300. as_mkdir_p=false
  9301. fi
  9302. # as_fn_executable_p FILE
  9303. # -----------------------
  9304. # Test if FILE is an executable regular file.
  9305. as_fn_executable_p ()
  9306. {
  9307. test -f "$1" && test -x "$1"
  9308. } # as_fn_executable_p
  9309. as_test_x='test -x'
  9310. as_executable_p=as_fn_executable_p
  9311. # Sed expression to map a string onto a valid CPP name.
  9312. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9313. # Sed expression to map a string onto a valid variable name.
  9314. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9315. exec 6>&1
  9316. ## ----------------------------------- ##
  9317. ## Main body of $CONFIG_STATUS script. ##
  9318. ## ----------------------------------- ##
  9319. _ASEOF
  9320. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9321. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9322. # Save the log message, to keep $0 and so on meaningful, and to
  9323. # report actual input values of CONFIG_FILES etc. instead of their
  9324. # values after options handling.
  9325. ac_log="
  9326. This file was extended by xrefresh $as_me 1.0.5, which was
  9327. generated by GNU Autoconf 2.69. Invocation command line was
  9328. CONFIG_FILES = $CONFIG_FILES
  9329. CONFIG_HEADERS = $CONFIG_HEADERS
  9330. CONFIG_LINKS = $CONFIG_LINKS
  9331. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9332. $ $0 $@
  9333. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9334. "
  9335. _ACEOF
  9336. case $ac_config_files in *"
  9337. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9338. esac
  9339. case $ac_config_headers in *"
  9340. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9341. esac
  9342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9343. # Files that config.status was made for.
  9344. config_files="$ac_config_files"
  9345. config_headers="$ac_config_headers"
  9346. config_commands="$ac_config_commands"
  9347. _ACEOF
  9348. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9349. ac_cs_usage="\
  9350. \`$as_me' instantiates files and other configuration actions
  9351. from templates according to the current configuration. Unless the files
  9352. and actions are specified as TAGs, all are instantiated by default.
  9353. Usage: $0 [OPTION]... [TAG]...
  9354. -h, --help print this help, then exit
  9355. -V, --version print version number and configuration settings, then exit
  9356. --config print configuration, then exit
  9357. -q, --quiet, --silent
  9358. do not print progress messages
  9359. -d, --debug don't remove temporary files
  9360. --recheck update $as_me by reconfiguring in the same conditions
  9361. --file=FILE[:TEMPLATE]
  9362. instantiate the configuration file FILE
  9363. --header=FILE[:TEMPLATE]
  9364. instantiate the configuration header FILE
  9365. Configuration files:
  9366. $config_files
  9367. Configuration headers:
  9368. $config_headers
  9369. Configuration commands:
  9370. $config_commands
  9371. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9372. _ACEOF
  9373. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9374. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9375. ac_cs_version="\\
  9376. xrefresh config.status 1.0.5
  9377. configured by $0, generated by GNU Autoconf 2.69,
  9378. with options \\"\$ac_cs_config\\"
  9379. Copyright (C) 2012 Free Software Foundation, Inc.
  9380. This config.status script is free software; the Free Software Foundation
  9381. gives unlimited permission to copy, distribute and modify it."
  9382. ac_pwd='$ac_pwd'
  9383. srcdir='$srcdir'
  9384. INSTALL='$INSTALL'
  9385. MKDIR_P='$MKDIR_P'
  9386. AWK='$AWK'
  9387. test -n "\$AWK" || AWK=awk
  9388. _ACEOF
  9389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9390. # The default lists apply if the user does not specify any file.
  9391. ac_need_defaults=:
  9392. while test $# != 0
  9393. do
  9394. case $1 in
  9395. --*=?*)
  9396. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9397. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9398. ac_shift=:
  9399. ;;
  9400. --*=)
  9401. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9402. ac_optarg=
  9403. ac_shift=:
  9404. ;;
  9405. *)
  9406. ac_option=$1
  9407. ac_optarg=$2
  9408. ac_shift=shift
  9409. ;;
  9410. esac
  9411. case $ac_option in
  9412. # Handling of the options.
  9413. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9414. ac_cs_recheck=: ;;
  9415. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9416. $as_echo "$ac_cs_version"; exit ;;
  9417. --config | --confi | --conf | --con | --co | --c )
  9418. $as_echo "$ac_cs_config"; exit ;;
  9419. --debug | --debu | --deb | --de | --d | -d )
  9420. debug=: ;;
  9421. --file | --fil | --fi | --f )
  9422. $ac_shift
  9423. case $ac_optarg in
  9424. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9425. '') as_fn_error $? "missing file argument" ;;
  9426. esac
  9427. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9428. ac_need_defaults=false;;
  9429. --header | --heade | --head | --hea )
  9430. $ac_shift
  9431. case $ac_optarg in
  9432. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9433. esac
  9434. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9435. ac_need_defaults=false;;
  9436. --he | --h)
  9437. # Conflict between --help and --header
  9438. as_fn_error $? "ambiguous option: \`$1'
  9439. Try \`$0 --help' for more information.";;
  9440. --help | --hel | -h )
  9441. $as_echo "$ac_cs_usage"; exit ;;
  9442. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9443. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9444. ac_cs_silent=: ;;
  9445. # This is an error.
  9446. -*) as_fn_error $? "unrecognized option: \`$1'
  9447. Try \`$0 --help' for more information." ;;
  9448. *) as_fn_append ac_config_targets " $1"
  9449. ac_need_defaults=false ;;
  9450. esac
  9451. shift
  9452. done
  9453. ac_configure_extra_args=
  9454. if $ac_cs_silent; then
  9455. exec 6>/dev/null
  9456. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9457. fi
  9458. _ACEOF
  9459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9460. if \$ac_cs_recheck; then
  9461. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9462. shift
  9463. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9464. CONFIG_SHELL='$SHELL'
  9465. export CONFIG_SHELL
  9466. exec "\$@"
  9467. fi
  9468. _ACEOF
  9469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9470. exec 5>>config.log
  9471. {
  9472. echo
  9473. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9474. ## Running $as_me. ##
  9475. _ASBOX
  9476. $as_echo "$ac_log"
  9477. } >&5
  9478. _ACEOF
  9479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9480. #
  9481. # INIT-COMMANDS
  9482. #
  9483. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9484. _ACEOF
  9485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9486. # Handling of arguments.
  9487. for ac_config_target in $ac_config_targets
  9488. do
  9489. case $ac_config_target in
  9490. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9491. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9492. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9493. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9494. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9495. esac
  9496. done
  9497. # If the user did not use the arguments to specify the items to instantiate,
  9498. # then the envvar interface is used. Set only those that are not.
  9499. # We use the long form for the default assignment because of an extremely
  9500. # bizarre bug on SunOS 4.1.3.
  9501. if $ac_need_defaults; then
  9502. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9503. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9504. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9505. fi
  9506. # Have a temporary directory for convenience. Make it in the build tree
  9507. # simply because there is no reason against having it here, and in addition,
  9508. # creating and moving files from /tmp can sometimes cause problems.
  9509. # Hook for its removal unless debugging.
  9510. # Note that there is a small window in which the directory will not be cleaned:
  9511. # after its creation but before its name has been assigned to `$tmp'.
  9512. $debug ||
  9513. {
  9514. tmp= ac_tmp=
  9515. trap 'exit_status=$?
  9516. : "${ac_tmp:=$tmp}"
  9517. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9518. ' 0
  9519. trap 'as_fn_exit 1' 1 2 13 15
  9520. }
  9521. # Create a (secure) tmp directory for tmp files.
  9522. {
  9523. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9524. test -d "$tmp"
  9525. } ||
  9526. {
  9527. tmp=./conf$$-$RANDOM
  9528. (umask 077 && mkdir "$tmp")
  9529. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9530. ac_tmp=$tmp
  9531. # Set up the scripts for CONFIG_FILES section.
  9532. # No need to generate them if there are no CONFIG_FILES.
  9533. # This happens for instance with `./config.status config.h'.
  9534. if test -n "$CONFIG_FILES"; then
  9535. ac_cr=`echo X | tr X '\015'`
  9536. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9537. # But we know of no other shell where ac_cr would be empty at this
  9538. # point, so we can use a bashism as a fallback.
  9539. if test "x$ac_cr" = x; then
  9540. eval ac_cr=\$\'\\r\'
  9541. fi
  9542. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9543. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9544. ac_cs_awk_cr='\\r'
  9545. else
  9546. ac_cs_awk_cr=$ac_cr
  9547. fi
  9548. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9549. _ACEOF
  9550. {
  9551. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9552. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9553. echo "_ACEOF"
  9554. } >conf$$subs.sh ||
  9555. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9556. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9557. ac_delim='%!_!# '
  9558. for ac_last_try in false false false false false :; do
  9559. . ./conf$$subs.sh ||
  9560. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9561. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9562. if test $ac_delim_n = $ac_delim_num; then
  9563. break
  9564. elif $ac_last_try; then
  9565. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9566. else
  9567. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9568. fi
  9569. done
  9570. rm -f conf$$subs.sh
  9571. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9572. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9573. _ACEOF
  9574. sed -n '
  9575. h
  9576. s/^/S["/; s/!.*/"]=/
  9577. p
  9578. g
  9579. s/^[^!]*!//
  9580. :repl
  9581. t repl
  9582. s/'"$ac_delim"'$//
  9583. t delim
  9584. :nl
  9585. h
  9586. s/\(.\{148\}\)..*/\1/
  9587. t more1
  9588. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9589. p
  9590. n
  9591. b repl
  9592. :more1
  9593. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9594. p
  9595. g
  9596. s/.\{148\}//
  9597. t nl
  9598. :delim
  9599. h
  9600. s/\(.\{148\}\)..*/\1/
  9601. t more2
  9602. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9603. p
  9604. b
  9605. :more2
  9606. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9607. p
  9608. g
  9609. s/.\{148\}//
  9610. t delim
  9611. ' <conf$$subs.awk | sed '
  9612. /^[^""]/{
  9613. N
  9614. s/\n//
  9615. }
  9616. ' >>$CONFIG_STATUS || ac_write_fail=1
  9617. rm -f conf$$subs.awk
  9618. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9619. _ACAWK
  9620. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9621. for (key in S) S_is_set[key] = 1
  9622. FS = ""
  9623. }
  9624. {
  9625. line = $ 0
  9626. nfields = split(line, field, "@")
  9627. substed = 0
  9628. len = length(field[1])
  9629. for (i = 2; i < nfields; i++) {
  9630. key = field[i]
  9631. keylen = length(key)
  9632. if (S_is_set[key]) {
  9633. value = S[key]
  9634. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9635. len += length(value) + length(field[++i])
  9636. substed = 1
  9637. } else
  9638. len += 1 + keylen
  9639. }
  9640. print line
  9641. }
  9642. _ACAWK
  9643. _ACEOF
  9644. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9645. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9646. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9647. else
  9648. cat
  9649. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9650. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9651. _ACEOF
  9652. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9653. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9654. # trailing colons and then remove the whole line if VPATH becomes empty
  9655. # (actually we leave an empty line to preserve line numbers).
  9656. if test "x$srcdir" = x.; then
  9657. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9658. h
  9659. s///
  9660. s/^/:/
  9661. s/[ ]*$/:/
  9662. s/:\$(srcdir):/:/g
  9663. s/:\${srcdir}:/:/g
  9664. s/:@srcdir@:/:/g
  9665. s/^:*//
  9666. s/:*$//
  9667. x
  9668. s/\(=[ ]*\).*/\1/
  9669. G
  9670. s/\n//
  9671. s/^[^=]*=[ ]*$//
  9672. }'
  9673. fi
  9674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9675. fi # test -n "$CONFIG_FILES"
  9676. # Set up the scripts for CONFIG_HEADERS section.
  9677. # No need to generate them if there are no CONFIG_HEADERS.
  9678. # This happens for instance with `./config.status Makefile'.
  9679. if test -n "$CONFIG_HEADERS"; then
  9680. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9681. BEGIN {
  9682. _ACEOF
  9683. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9684. # here-document in config.status, that substitutes the proper values into
  9685. # config.h.in to produce config.h.
  9686. # Create a delimiter string that does not exist in confdefs.h, to ease
  9687. # handling of long lines.
  9688. ac_delim='%!_!# '
  9689. for ac_last_try in false false :; do
  9690. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9691. if test -z "$ac_tt"; then
  9692. break
  9693. elif $ac_last_try; then
  9694. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9695. else
  9696. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9697. fi
  9698. done
  9699. # For the awk script, D is an array of macro values keyed by name,
  9700. # likewise P contains macro parameters if any. Preserve backslash
  9701. # newline sequences.
  9702. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9703. sed -n '
  9704. s/.\{148\}/&'"$ac_delim"'/g
  9705. t rset
  9706. :rset
  9707. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9708. t def
  9709. d
  9710. :def
  9711. s/\\$//
  9712. t bsnl
  9713. s/["\\]/\\&/g
  9714. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9715. D["\1"]=" \3"/p
  9716. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9717. d
  9718. :bsnl
  9719. s/["\\]/\\&/g
  9720. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9721. D["\1"]=" \3\\\\\\n"\\/p
  9722. t cont
  9723. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9724. t cont
  9725. d
  9726. :cont
  9727. n
  9728. s/.\{148\}/&'"$ac_delim"'/g
  9729. t clear
  9730. :clear
  9731. s/\\$//
  9732. t bsnlc
  9733. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9734. d
  9735. :bsnlc
  9736. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9737. b cont
  9738. ' <confdefs.h | sed '
  9739. s/'"$ac_delim"'/"\\\
  9740. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9742. for (key in D) D_is_set[key] = 1
  9743. FS = ""
  9744. }
  9745. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9746. line = \$ 0
  9747. split(line, arg, " ")
  9748. if (arg[1] == "#") {
  9749. defundef = arg[2]
  9750. mac1 = arg[3]
  9751. } else {
  9752. defundef = substr(arg[1], 2)
  9753. mac1 = arg[2]
  9754. }
  9755. split(mac1, mac2, "(") #)
  9756. macro = mac2[1]
  9757. prefix = substr(line, 1, index(line, defundef) - 1)
  9758. if (D_is_set[macro]) {
  9759. # Preserve the white space surrounding the "#".
  9760. print prefix "define", macro P[macro] D[macro]
  9761. next
  9762. } else {
  9763. # Replace #undef with comments. This is necessary, for example,
  9764. # in the case of _POSIX_SOURCE, which is predefined and required
  9765. # on some systems where configure will not decide to define it.
  9766. if (defundef == "undef") {
  9767. print "/*", prefix defundef, macro, "*/"
  9768. next
  9769. }
  9770. }
  9771. }
  9772. { print }
  9773. _ACAWK
  9774. _ACEOF
  9775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9776. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9777. fi # test -n "$CONFIG_HEADERS"
  9778. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9779. shift
  9780. for ac_tag
  9781. do
  9782. case $ac_tag in
  9783. :[FHLC]) ac_mode=$ac_tag; continue;;
  9784. esac
  9785. case $ac_mode$ac_tag in
  9786. :[FHL]*:*);;
  9787. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9788. :[FH]-) ac_tag=-:-;;
  9789. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9790. esac
  9791. ac_save_IFS=$IFS
  9792. IFS=:
  9793. set x $ac_tag
  9794. IFS=$ac_save_IFS
  9795. shift
  9796. ac_file=$1
  9797. shift
  9798. case $ac_mode in
  9799. :L) ac_source=$1;;
  9800. :[FH])
  9801. ac_file_inputs=
  9802. for ac_f
  9803. do
  9804. case $ac_f in
  9805. -) ac_f="$ac_tmp/stdin";;
  9806. *) # Look for the file first in the build tree, then in the source tree
  9807. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9808. # because $ac_f cannot contain `:'.
  9809. test -f "$ac_f" ||
  9810. case $ac_f in
  9811. [\\/$]*) false;;
  9812. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9813. esac ||
  9814. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9815. esac
  9816. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9817. as_fn_append ac_file_inputs " '$ac_f'"
  9818. done
  9819. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9820. # use $as_me), people would be surprised to read:
  9821. # /* config.h. Generated by config.status. */
  9822. configure_input='Generated from '`
  9823. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9824. `' by configure.'
  9825. if test x"$ac_file" != x-; then
  9826. configure_input="$ac_file. $configure_input"
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9828. $as_echo "$as_me: creating $ac_file" >&6;}
  9829. fi
  9830. # Neutralize special characters interpreted by sed in replacement strings.
  9831. case $configure_input in #(
  9832. *\&* | *\|* | *\\* )
  9833. ac_sed_conf_input=`$as_echo "$configure_input" |
  9834. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9835. *) ac_sed_conf_input=$configure_input;;
  9836. esac
  9837. case $ac_tag in
  9838. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9839. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9840. esac
  9841. ;;
  9842. esac
  9843. ac_dir=`$as_dirname -- "$ac_file" ||
  9844. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9845. X"$ac_file" : 'X\(//\)[^/]' \| \
  9846. X"$ac_file" : 'X\(//\)$' \| \
  9847. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9848. $as_echo X"$ac_file" |
  9849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9850. s//\1/
  9851. q
  9852. }
  9853. /^X\(\/\/\)[^/].*/{
  9854. s//\1/
  9855. q
  9856. }
  9857. /^X\(\/\/\)$/{
  9858. s//\1/
  9859. q
  9860. }
  9861. /^X\(\/\).*/{
  9862. s//\1/
  9863. q
  9864. }
  9865. s/.*/./; q'`
  9866. as_dir="$ac_dir"; as_fn_mkdir_p
  9867. ac_builddir=.
  9868. case "$ac_dir" in
  9869. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9870. *)
  9871. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9872. # A ".." for each directory in $ac_dir_suffix.
  9873. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9874. case $ac_top_builddir_sub in
  9875. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9876. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9877. esac ;;
  9878. esac
  9879. ac_abs_top_builddir=$ac_pwd
  9880. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9881. # for backward compatibility:
  9882. ac_top_builddir=$ac_top_build_prefix
  9883. case $srcdir in
  9884. .) # We are building in place.
  9885. ac_srcdir=.
  9886. ac_top_srcdir=$ac_top_builddir_sub
  9887. ac_abs_top_srcdir=$ac_pwd ;;
  9888. [\\/]* | ?:[\\/]* ) # Absolute name.
  9889. ac_srcdir=$srcdir$ac_dir_suffix;
  9890. ac_top_srcdir=$srcdir
  9891. ac_abs_top_srcdir=$srcdir ;;
  9892. *) # Relative name.
  9893. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9894. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9895. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9896. esac
  9897. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9898. case $ac_mode in
  9899. :F)
  9900. #
  9901. # CONFIG_FILE
  9902. #
  9903. case $INSTALL in
  9904. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9905. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9906. esac
  9907. ac_MKDIR_P=$MKDIR_P
  9908. case $MKDIR_P in
  9909. [\\/$]* | ?:[\\/]* ) ;;
  9910. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9911. esac
  9912. _ACEOF
  9913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9914. # If the template does not know about datarootdir, expand it.
  9915. # FIXME: This hack should be removed a few years after 2.60.
  9916. ac_datarootdir_hack=; ac_datarootdir_seen=
  9917. ac_sed_dataroot='
  9918. /datarootdir/ {
  9919. p
  9920. q
  9921. }
  9922. /@datadir@/p
  9923. /@docdir@/p
  9924. /@infodir@/p
  9925. /@localedir@/p
  9926. /@mandir@/p'
  9927. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9928. *datarootdir*) ac_datarootdir_seen=yes;;
  9929. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9931. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9932. _ACEOF
  9933. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9934. ac_datarootdir_hack='
  9935. s&@datadir@&$datadir&g
  9936. s&@docdir@&$docdir&g
  9937. s&@infodir@&$infodir&g
  9938. s&@localedir@&$localedir&g
  9939. s&@mandir@&$mandir&g
  9940. s&\\\${datarootdir}&$datarootdir&g' ;;
  9941. esac
  9942. _ACEOF
  9943. # Neutralize VPATH when `$srcdir' = `.'.
  9944. # Shell code in configure.ac might set extrasub.
  9945. # FIXME: do we really want to maintain this feature?
  9946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9947. ac_sed_extra="$ac_vpsub
  9948. $extrasub
  9949. _ACEOF
  9950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9951. :t
  9952. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9953. s|@configure_input@|$ac_sed_conf_input|;t t
  9954. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9955. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9956. s&@srcdir@&$ac_srcdir&;t t
  9957. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9958. s&@top_srcdir@&$ac_top_srcdir&;t t
  9959. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9960. s&@builddir@&$ac_builddir&;t t
  9961. s&@abs_builddir@&$ac_abs_builddir&;t t
  9962. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9963. s&@INSTALL@&$ac_INSTALL&;t t
  9964. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9965. $ac_datarootdir_hack
  9966. "
  9967. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9968. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9969. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9970. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9971. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9972. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9974. which seems to be undefined. Please make sure it is defined" >&5
  9975. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9976. which seems to be undefined. Please make sure it is defined" >&2;}
  9977. rm -f "$ac_tmp/stdin"
  9978. case $ac_file in
  9979. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9980. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9981. esac \
  9982. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9983. ;;
  9984. :H)
  9985. #
  9986. # CONFIG_HEADER
  9987. #
  9988. if test x"$ac_file" != x-; then
  9989. {
  9990. $as_echo "/* $configure_input */" \
  9991. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9992. } >"$ac_tmp/config.h" \
  9993. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9994. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9996. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9997. else
  9998. rm -f "$ac_file"
  9999. mv "$ac_tmp/config.h" "$ac_file" \
  10000. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10001. fi
  10002. else
  10003. $as_echo "/* $configure_input */" \
  10004. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10005. || as_fn_error $? "could not create -" "$LINENO" 5
  10006. fi
  10007. # Compute "$ac_file"'s index in $config_headers.
  10008. _am_arg="$ac_file"
  10009. _am_stamp_count=1
  10010. for _am_header in $config_headers :; do
  10011. case $_am_header in
  10012. $_am_arg | $_am_arg:* )
  10013. break ;;
  10014. * )
  10015. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10016. esac
  10017. done
  10018. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10019. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10020. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10021. X"$_am_arg" : 'X\(//\)$' \| \
  10022. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10023. $as_echo X"$_am_arg" |
  10024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10025. s//\1/
  10026. q
  10027. }
  10028. /^X\(\/\/\)[^/].*/{
  10029. s//\1/
  10030. q
  10031. }
  10032. /^X\(\/\/\)$/{
  10033. s//\1/
  10034. q
  10035. }
  10036. /^X\(\/\).*/{
  10037. s//\1/
  10038. q
  10039. }
  10040. s/.*/./; q'`/stamp-h$_am_stamp_count
  10041. ;;
  10042. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10043. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10044. ;;
  10045. esac
  10046. case $ac_file$ac_mode in
  10047. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10048. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10049. # are listed without --file. Let's play safe and only enable the eval
  10050. # if we detect the quoting.
  10051. case $CONFIG_FILES in
  10052. *\'*) eval set x "$CONFIG_FILES" ;;
  10053. *) set x $CONFIG_FILES ;;
  10054. esac
  10055. shift
  10056. for mf
  10057. do
  10058. # Strip MF so we end up with the name of the file.
  10059. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10060. # Check whether this is an Automake generated Makefile or not.
  10061. # We used to match only the files named 'Makefile.in', but
  10062. # some people rename them; so instead we look at the file content.
  10063. # Grep'ing the first line is not enough: some people post-process
  10064. # each Makefile.in and add a new line on top of each file to say so.
  10065. # Grep'ing the whole file is not good either: AIX grep has a line
  10066. # limit of 2048, but all sed's we know have understand at least 4000.
  10067. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10068. dirpart=`$as_dirname -- "$mf" ||
  10069. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10070. X"$mf" : 'X\(//\)[^/]' \| \
  10071. X"$mf" : 'X\(//\)$' \| \
  10072. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10073. $as_echo X"$mf" |
  10074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10075. s//\1/
  10076. q
  10077. }
  10078. /^X\(\/\/\)[^/].*/{
  10079. s//\1/
  10080. q
  10081. }
  10082. /^X\(\/\/\)$/{
  10083. s//\1/
  10084. q
  10085. }
  10086. /^X\(\/\).*/{
  10087. s//\1/
  10088. q
  10089. }
  10090. s/.*/./; q'`
  10091. else
  10092. continue
  10093. fi
  10094. # Extract the definition of DEPDIR, am__include, and am__quote
  10095. # from the Makefile without running 'make'.
  10096. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10097. test -z "$DEPDIR" && continue
  10098. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10099. test -z "am__include" && continue
  10100. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10101. # Find all dependency output files, they are included files with
  10102. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10103. # simplest approach to changing $(DEPDIR) to its actual value in the
  10104. # expansion.
  10105. for file in `sed -n "
  10106. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10107. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10108. # Make sure the directory exists.
  10109. test -f "$dirpart/$file" && continue
  10110. fdir=`$as_dirname -- "$file" ||
  10111. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10112. X"$file" : 'X\(//\)[^/]' \| \
  10113. X"$file" : 'X\(//\)$' \| \
  10114. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10115. $as_echo X"$file" |
  10116. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10117. s//\1/
  10118. q
  10119. }
  10120. /^X\(\/\/\)[^/].*/{
  10121. s//\1/
  10122. q
  10123. }
  10124. /^X\(\/\/\)$/{
  10125. s//\1/
  10126. q
  10127. }
  10128. /^X\(\/\).*/{
  10129. s//\1/
  10130. q
  10131. }
  10132. s/.*/./; q'`
  10133. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10134. # echo "creating $dirpart/$file"
  10135. echo '# dummy' > "$dirpart/$file"
  10136. done
  10137. done
  10138. }
  10139. ;;
  10140. esac
  10141. done # for ac_tag
  10142. as_fn_exit 0
  10143. _ACEOF
  10144. ac_clean_files=$ac_clean_files_save
  10145. test $ac_write_fail = 0 ||
  10146. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10147. # configure is writing to config.log, and then calls config.status.
  10148. # config.status does its own redirection, appending to config.log.
  10149. # Unfortunately, on DOS this fails, as config.log is still kept open
  10150. # by configure, so config.status won't be able to write to it; its
  10151. # output is simply discarded. So we exec the FD to /dev/null,
  10152. # effectively closing config.log, so it can be properly (re)opened and
  10153. # appended to by config.status. When coming back to configure, we
  10154. # need to make the FD available again.
  10155. if test "$no_create" != yes; then
  10156. ac_cs_success=:
  10157. ac_config_status_args=
  10158. test "$silent" = yes &&
  10159. ac_config_status_args="$ac_config_status_args --quiet"
  10160. exec 5>/dev/null
  10161. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10162. exec 5>>config.log
  10163. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10164. # would make configure fail if this is the last instruction.
  10165. $ac_cs_success || as_fn_exit 1
  10166. fi
  10167. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10169. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10170. fi