configure 341 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for makedepend 1.0.4.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='makedepend'
  535. PACKAGE_TARNAME='makedepend'
  536. PACKAGE_VERSION='1.0.4'
  537. PACKAGE_STRING='makedepend 1.0.4'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_subst_vars='am__EXEEXT_FALSE
  576. am__EXEEXT_TRUE
  577. LTLIBOBJS
  578. LIBOBJS
  579. X_LIBS
  580. X_CFLAGS
  581. LINT_FALSE
  582. LINT_TRUE
  583. LINT_FLAGS
  584. LINT
  585. AM_BACKSLASH
  586. AM_DEFAULT_VERBOSITY
  587. AM_DEFAULT_V
  588. AM_V
  589. MAN_SUBSTS
  590. XORG_MAN_PAGE
  591. ADMIN_MAN_DIR
  592. DRIVER_MAN_DIR
  593. MISC_MAN_DIR
  594. FILE_MAN_DIR
  595. LIB_MAN_DIR
  596. APP_MAN_DIR
  597. ADMIN_MAN_SUFFIX
  598. DRIVER_MAN_SUFFIX
  599. MISC_MAN_SUFFIX
  600. FILE_MAN_SUFFIX
  601. LIB_MAN_SUFFIX
  602. APP_MAN_SUFFIX
  603. SED
  604. host_os
  605. host_vendor
  606. host_cpu
  607. host
  608. build_os
  609. build_vendor
  610. build_cpu
  611. build
  612. INSTALL_CMD
  613. PKG_CONFIG_LIBDIR
  614. PKG_CONFIG_PATH
  615. PKG_CONFIG
  616. CHANGELOG_CMD
  617. STRICT_CFLAGS
  618. CWARNFLAGS
  619. BASE_CFLAGS
  620. EGREP
  621. GREP
  622. CPP
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. am__nodep
  627. AMDEPBACKSLASH
  628. AMDEP_FALSE
  629. AMDEP_TRUE
  630. am__quote
  631. am__include
  632. DEPDIR
  633. OBJEXT
  634. EXEEXT
  635. ac_ct_CC
  636. CPPFLAGS
  637. LDFLAGS
  638. CFLAGS
  639. CC
  640. MAINT
  641. MAINTAINER_MODE_FALSE
  642. MAINTAINER_MODE_TRUE
  643. am__untar
  644. am__tar
  645. AMTAR
  646. am__leading_dot
  647. SET_MAKE
  648. AWK
  649. mkdir_p
  650. MKDIR_P
  651. INSTALL_STRIP_PROGRAM
  652. STRIP
  653. install_sh
  654. MAKEINFO
  655. AUTOHEADER
  656. AUTOMAKE
  657. AUTOCONF
  658. ACLOCAL
  659. VERSION
  660. PACKAGE
  661. CYGPATH_W
  662. am__isrc
  663. INSTALL_DATA
  664. INSTALL_SCRIPT
  665. INSTALL_PROGRAM
  666. target_alias
  667. host_alias
  668. build_alias
  669. LIBS
  670. ECHO_T
  671. ECHO_N
  672. ECHO_C
  673. DEFS
  674. mandir
  675. localedir
  676. libdir
  677. psdir
  678. pdfdir
  679. dvidir
  680. htmldir
  681. infodir
  682. docdir
  683. oldincludedir
  684. includedir
  685. localstatedir
  686. sharedstatedir
  687. sysconfdir
  688. datadir
  689. datarootdir
  690. libexecdir
  691. sbindir
  692. bindir
  693. program_transform_name
  694. prefix
  695. exec_prefix
  696. PACKAGE_URL
  697. PACKAGE_BUGREPORT
  698. PACKAGE_STRING
  699. PACKAGE_VERSION
  700. PACKAGE_TARNAME
  701. PACKAGE_NAME
  702. PATH_SEPARATOR
  703. SHELL'
  704. ac_subst_files=''
  705. ac_user_opts='
  706. enable_option_checking
  707. enable_maintainer_mode
  708. enable_dependency_tracking
  709. enable_selective_werror
  710. enable_strict_compilation
  711. enable_silent_rules
  712. with_lint
  713. enable_largefile
  714. '
  715. ac_precious_vars='build_alias
  716. host_alias
  717. target_alias
  718. CC
  719. CFLAGS
  720. LDFLAGS
  721. LIBS
  722. CPPFLAGS
  723. CPP
  724. PKG_CONFIG
  725. PKG_CONFIG_PATH
  726. PKG_CONFIG_LIBDIR
  727. LINT
  728. LINT_FLAGS
  729. X_CFLAGS
  730. X_LIBS'
  731. # Initialize some variables set by options.
  732. ac_init_help=
  733. ac_init_version=false
  734. ac_unrecognized_opts=
  735. ac_unrecognized_sep=
  736. # The variables have the same names as the options, with
  737. # dashes changed to underlines.
  738. cache_file=/dev/null
  739. exec_prefix=NONE
  740. no_create=
  741. no_recursion=
  742. prefix=NONE
  743. program_prefix=NONE
  744. program_suffix=NONE
  745. program_transform_name=s,x,x,
  746. silent=
  747. site=
  748. srcdir=
  749. verbose=
  750. x_includes=NONE
  751. x_libraries=NONE
  752. # Installation directory options.
  753. # These are left unexpanded so users can "make install exec_prefix=/foo"
  754. # and all the variables that are supposed to be based on exec_prefix
  755. # by default will actually change.
  756. # Use braces instead of parens because sh, perl, etc. also accept them.
  757. # (The list follows the same order as the GNU Coding Standards.)
  758. bindir='${exec_prefix}/bin'
  759. sbindir='${exec_prefix}/sbin'
  760. libexecdir='${exec_prefix}/libexec'
  761. datarootdir='${prefix}/share'
  762. datadir='${datarootdir}'
  763. sysconfdir='${prefix}/etc'
  764. sharedstatedir='${prefix}/com'
  765. localstatedir='${prefix}/var'
  766. includedir='${prefix}/include'
  767. oldincludedir='/usr/include'
  768. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  769. infodir='${datarootdir}/info'
  770. htmldir='${docdir}'
  771. dvidir='${docdir}'
  772. pdfdir='${docdir}'
  773. psdir='${docdir}'
  774. libdir='${exec_prefix}/lib'
  775. localedir='${datarootdir}/locale'
  776. mandir='${datarootdir}/man'
  777. ac_prev=
  778. ac_dashdash=
  779. for ac_option
  780. do
  781. # If the previous option needs an argument, assign it.
  782. if test -n "$ac_prev"; then
  783. eval $ac_prev=\$ac_option
  784. ac_prev=
  785. continue
  786. fi
  787. case $ac_option in
  788. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  789. *=) ac_optarg= ;;
  790. *) ac_optarg=yes ;;
  791. esac
  792. # Accept the important Cygnus configure options, so we can diagnose typos.
  793. case $ac_dashdash$ac_option in
  794. --)
  795. ac_dashdash=yes ;;
  796. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  797. ac_prev=bindir ;;
  798. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  799. bindir=$ac_optarg ;;
  800. -build | --build | --buil | --bui | --bu)
  801. ac_prev=build_alias ;;
  802. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  803. build_alias=$ac_optarg ;;
  804. -cache-file | --cache-file | --cache-fil | --cache-fi \
  805. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  806. ac_prev=cache_file ;;
  807. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  808. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  809. cache_file=$ac_optarg ;;
  810. --config-cache | -C)
  811. cache_file=config.cache ;;
  812. -datadir | --datadir | --datadi | --datad)
  813. ac_prev=datadir ;;
  814. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  815. datadir=$ac_optarg ;;
  816. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  817. | --dataroo | --dataro | --datar)
  818. ac_prev=datarootdir ;;
  819. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  820. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  821. datarootdir=$ac_optarg ;;
  822. -disable-* | --disable-*)
  823. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  824. # Reject names that are not valid shell variable names.
  825. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  826. as_fn_error $? "invalid feature name: $ac_useropt"
  827. ac_useropt_orig=$ac_useropt
  828. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  829. case $ac_user_opts in
  830. *"
  831. "enable_$ac_useropt"
  832. "*) ;;
  833. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  834. ac_unrecognized_sep=', ';;
  835. esac
  836. eval enable_$ac_useropt=no ;;
  837. -docdir | --docdir | --docdi | --doc | --do)
  838. ac_prev=docdir ;;
  839. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  840. docdir=$ac_optarg ;;
  841. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  842. ac_prev=dvidir ;;
  843. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  844. dvidir=$ac_optarg ;;
  845. -enable-* | --enable-*)
  846. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  847. # Reject names that are not valid shell variable names.
  848. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  849. as_fn_error $? "invalid feature name: $ac_useropt"
  850. ac_useropt_orig=$ac_useropt
  851. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  852. case $ac_user_opts in
  853. *"
  854. "enable_$ac_useropt"
  855. "*) ;;
  856. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  857. ac_unrecognized_sep=', ';;
  858. esac
  859. eval enable_$ac_useropt=\$ac_optarg ;;
  860. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  861. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  862. | --exec | --exe | --ex)
  863. ac_prev=exec_prefix ;;
  864. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  865. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  866. | --exec=* | --exe=* | --ex=*)
  867. exec_prefix=$ac_optarg ;;
  868. -gas | --gas | --ga | --g)
  869. # Obsolete; use --with-gas.
  870. with_gas=yes ;;
  871. -help | --help | --hel | --he | -h)
  872. ac_init_help=long ;;
  873. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  874. ac_init_help=recursive ;;
  875. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  876. ac_init_help=short ;;
  877. -host | --host | --hos | --ho)
  878. ac_prev=host_alias ;;
  879. -host=* | --host=* | --hos=* | --ho=*)
  880. host_alias=$ac_optarg ;;
  881. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  882. ac_prev=htmldir ;;
  883. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  884. | --ht=*)
  885. htmldir=$ac_optarg ;;
  886. -includedir | --includedir | --includedi | --included | --include \
  887. | --includ | --inclu | --incl | --inc)
  888. ac_prev=includedir ;;
  889. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  890. | --includ=* | --inclu=* | --incl=* | --inc=*)
  891. includedir=$ac_optarg ;;
  892. -infodir | --infodir | --infodi | --infod | --info | --inf)
  893. ac_prev=infodir ;;
  894. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  895. infodir=$ac_optarg ;;
  896. -libdir | --libdir | --libdi | --libd)
  897. ac_prev=libdir ;;
  898. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  899. libdir=$ac_optarg ;;
  900. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  901. | --libexe | --libex | --libe)
  902. ac_prev=libexecdir ;;
  903. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  904. | --libexe=* | --libex=* | --libe=*)
  905. libexecdir=$ac_optarg ;;
  906. -localedir | --localedir | --localedi | --localed | --locale)
  907. ac_prev=localedir ;;
  908. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  909. localedir=$ac_optarg ;;
  910. -localstatedir | --localstatedir | --localstatedi | --localstated \
  911. | --localstate | --localstat | --localsta | --localst | --locals)
  912. ac_prev=localstatedir ;;
  913. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  914. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  915. localstatedir=$ac_optarg ;;
  916. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  917. ac_prev=mandir ;;
  918. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  919. mandir=$ac_optarg ;;
  920. -nfp | --nfp | --nf)
  921. # Obsolete; use --without-fp.
  922. with_fp=no ;;
  923. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  924. | --no-cr | --no-c | -n)
  925. no_create=yes ;;
  926. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  927. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  928. no_recursion=yes ;;
  929. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  930. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  931. | --oldin | --oldi | --old | --ol | --o)
  932. ac_prev=oldincludedir ;;
  933. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  934. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  935. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  936. oldincludedir=$ac_optarg ;;
  937. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  938. ac_prev=prefix ;;
  939. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  940. prefix=$ac_optarg ;;
  941. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  942. | --program-pre | --program-pr | --program-p)
  943. ac_prev=program_prefix ;;
  944. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  945. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  946. program_prefix=$ac_optarg ;;
  947. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  948. | --program-suf | --program-su | --program-s)
  949. ac_prev=program_suffix ;;
  950. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  951. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  952. program_suffix=$ac_optarg ;;
  953. -program-transform-name | --program-transform-name \
  954. | --program-transform-nam | --program-transform-na \
  955. | --program-transform-n | --program-transform- \
  956. | --program-transform | --program-transfor \
  957. | --program-transfo | --program-transf \
  958. | --program-trans | --program-tran \
  959. | --progr-tra | --program-tr | --program-t)
  960. ac_prev=program_transform_name ;;
  961. -program-transform-name=* | --program-transform-name=* \
  962. | --program-transform-nam=* | --program-transform-na=* \
  963. | --program-transform-n=* | --program-transform-=* \
  964. | --program-transform=* | --program-transfor=* \
  965. | --program-transfo=* | --program-transf=* \
  966. | --program-trans=* | --program-tran=* \
  967. | --progr-tra=* | --program-tr=* | --program-t=*)
  968. program_transform_name=$ac_optarg ;;
  969. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  970. ac_prev=pdfdir ;;
  971. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  972. pdfdir=$ac_optarg ;;
  973. -psdir | --psdir | --psdi | --psd | --ps)
  974. ac_prev=psdir ;;
  975. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  976. psdir=$ac_optarg ;;
  977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  978. | -silent | --silent | --silen | --sile | --sil)
  979. silent=yes ;;
  980. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  981. ac_prev=sbindir ;;
  982. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  983. | --sbi=* | --sb=*)
  984. sbindir=$ac_optarg ;;
  985. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  986. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  987. | --sharedst | --shareds | --shared | --share | --shar \
  988. | --sha | --sh)
  989. ac_prev=sharedstatedir ;;
  990. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  991. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  992. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  993. | --sha=* | --sh=*)
  994. sharedstatedir=$ac_optarg ;;
  995. -site | --site | --sit)
  996. ac_prev=site ;;
  997. -site=* | --site=* | --sit=*)
  998. site=$ac_optarg ;;
  999. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1000. ac_prev=srcdir ;;
  1001. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1002. srcdir=$ac_optarg ;;
  1003. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1004. | --syscon | --sysco | --sysc | --sys | --sy)
  1005. ac_prev=sysconfdir ;;
  1006. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1007. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1008. sysconfdir=$ac_optarg ;;
  1009. -target | --target | --targe | --targ | --tar | --ta | --t)
  1010. ac_prev=target_alias ;;
  1011. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1012. target_alias=$ac_optarg ;;
  1013. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1014. verbose=yes ;;
  1015. -version | --version | --versio | --versi | --vers | -V)
  1016. ac_init_version=: ;;
  1017. -with-* | --with-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid package name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "with_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval with_$ac_useropt=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error $? "invalid package name: $ac_useropt"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "with_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval with_$ac_useropt=no ;;
  1047. --x)
  1048. # Obsolete; use --with-x.
  1049. with_x=yes ;;
  1050. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1051. | --x-incl | --x-inc | --x-in | --x-i)
  1052. ac_prev=x_includes ;;
  1053. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1054. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1055. x_includes=$ac_optarg ;;
  1056. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1057. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1058. ac_prev=x_libraries ;;
  1059. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1060. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1061. x_libraries=$ac_optarg ;;
  1062. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1063. Try \`$0 --help' for more information"
  1064. ;;
  1065. *=*)
  1066. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1067. # Reject names that are not valid shell variable names.
  1068. case $ac_envvar in #(
  1069. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1070. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1071. esac
  1072. eval $ac_envvar=\$ac_optarg
  1073. export $ac_envvar ;;
  1074. *)
  1075. # FIXME: should be removed in autoconf 3.0.
  1076. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1077. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1078. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1079. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1080. ;;
  1081. esac
  1082. done
  1083. if test -n "$ac_prev"; then
  1084. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1085. as_fn_error $? "missing argument to $ac_option"
  1086. fi
  1087. if test -n "$ac_unrecognized_opts"; then
  1088. case $enable_option_checking in
  1089. no) ;;
  1090. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1091. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1092. esac
  1093. fi
  1094. # Check all directory arguments for consistency.
  1095. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1096. datadir sysconfdir sharedstatedir localstatedir includedir \
  1097. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1098. libdir localedir mandir
  1099. do
  1100. eval ac_val=\$$ac_var
  1101. # Remove trailing slashes.
  1102. case $ac_val in
  1103. */ )
  1104. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1105. eval $ac_var=\$ac_val;;
  1106. esac
  1107. # Be sure to have absolute directory names.
  1108. case $ac_val in
  1109. [\\/$]* | ?:[\\/]* ) continue;;
  1110. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1111. esac
  1112. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1113. done
  1114. # There might be people who depend on the old broken behavior: `$host'
  1115. # used to hold the argument of --host etc.
  1116. # FIXME: To remove some day.
  1117. build=$build_alias
  1118. host=$host_alias
  1119. target=$target_alias
  1120. # FIXME: To remove some day.
  1121. if test "x$host_alias" != x; then
  1122. if test "x$build_alias" = x; then
  1123. cross_compiling=maybe
  1124. elif test "x$build_alias" != "x$host_alias"; then
  1125. cross_compiling=yes
  1126. fi
  1127. fi
  1128. ac_tool_prefix=
  1129. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1130. test "$silent" = yes && exec 6>/dev/null
  1131. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1132. ac_ls_di=`ls -di .` &&
  1133. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1134. as_fn_error $? "working directory cannot be determined"
  1135. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1136. as_fn_error $? "pwd does not report name of working directory"
  1137. # Find the source files, if location was not specified.
  1138. if test -z "$srcdir"; then
  1139. ac_srcdir_defaulted=yes
  1140. # Try the directory containing this script, then the parent directory.
  1141. ac_confdir=`$as_dirname -- "$as_myself" ||
  1142. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1143. X"$as_myself" : 'X\(//\)[^/]' \| \
  1144. X"$as_myself" : 'X\(//\)$' \| \
  1145. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1146. $as_echo X"$as_myself" |
  1147. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)[^/].*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\).*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. s/.*/./; q'`
  1164. srcdir=$ac_confdir
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. srcdir=..
  1167. fi
  1168. else
  1169. ac_srcdir_defaulted=no
  1170. fi
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1173. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1174. fi
  1175. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1176. ac_abs_confdir=`(
  1177. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1178. pwd)`
  1179. # When building in place, set srcdir=.
  1180. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1181. srcdir=.
  1182. fi
  1183. # Remove unnecessary trailing slashes from srcdir.
  1184. # Double slashes in file names in object file debugging info
  1185. # mess up M-x gdb in Emacs.
  1186. case $srcdir in
  1187. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1188. esac
  1189. for ac_var in $ac_precious_vars; do
  1190. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_env_${ac_var}_value=\$${ac_var}
  1192. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1194. done
  1195. #
  1196. # Report the --help message.
  1197. #
  1198. if test "$ac_init_help" = "long"; then
  1199. # Omit some internal or obsolete options to make the list less imposing.
  1200. # This message is too long to be a string in the A/UX 3.1 sh.
  1201. cat <<_ACEOF
  1202. \`configure' configures makedepend 1.0.4 to adapt to many kinds of systems.
  1203. Usage: $0 [OPTION]... [VAR=VALUE]...
  1204. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1205. VAR=VALUE. See below for descriptions of some of the useful variables.
  1206. Defaults for the options are specified in brackets.
  1207. Configuration:
  1208. -h, --help display this help and exit
  1209. --help=short display options specific to this package
  1210. --help=recursive display the short help of all the included packages
  1211. -V, --version display version information and exit
  1212. -q, --quiet, --silent do not print \`checking ...' messages
  1213. --cache-file=FILE cache test results in FILE [disabled]
  1214. -C, --config-cache alias for \`--cache-file=config.cache'
  1215. -n, --no-create do not create output files
  1216. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1217. Installation directories:
  1218. --prefix=PREFIX install architecture-independent files in PREFIX
  1219. [$ac_default_prefix]
  1220. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1221. [PREFIX]
  1222. By default, \`make install' will install all the files in
  1223. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1224. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1225. for instance \`--prefix=\$HOME'.
  1226. For better control, use the options below.
  1227. Fine tuning of the installation directories:
  1228. --bindir=DIR user executables [EPREFIX/bin]
  1229. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1230. --libexecdir=DIR program executables [EPREFIX/libexec]
  1231. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1232. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1233. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1234. --libdir=DIR object code libraries [EPREFIX/lib]
  1235. --includedir=DIR C header files [PREFIX/include]
  1236. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1237. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1238. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1239. --infodir=DIR info documentation [DATAROOTDIR/info]
  1240. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1241. --mandir=DIR man documentation [DATAROOTDIR/man]
  1242. --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend]
  1243. --htmldir=DIR html documentation [DOCDIR]
  1244. --dvidir=DIR dvi documentation [DOCDIR]
  1245. --pdfdir=DIR pdf documentation [DOCDIR]
  1246. --psdir=DIR ps documentation [DOCDIR]
  1247. _ACEOF
  1248. cat <<\_ACEOF
  1249. Program names:
  1250. --program-prefix=PREFIX prepend PREFIX to installed program names
  1251. --program-suffix=SUFFIX append SUFFIX to installed program names
  1252. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1253. System types:
  1254. --build=BUILD configure for building on BUILD [guessed]
  1255. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1256. _ACEOF
  1257. fi
  1258. if test -n "$ac_init_help"; then
  1259. case $ac_init_help in
  1260. short | recursive ) echo "Configuration of makedepend 1.0.4:";;
  1261. esac
  1262. cat <<\_ACEOF
  1263. Optional Features:
  1264. --disable-option-checking ignore unrecognized --enable/--with options
  1265. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1266. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1267. --enable-maintainer-mode
  1268. enable make rules and dependencies not useful (and
  1269. sometimes confusing) to the casual installer
  1270. --enable-dependency-tracking
  1271. do not reject slow dependency extractors
  1272. --disable-dependency-tracking
  1273. speeds up one-time build
  1274. --disable-selective-werror
  1275. Turn off selective compiler errors. (default:
  1276. enabled)
  1277. --enable-strict-compilation
  1278. Enable all warnings from compiler and make them
  1279. errors (default: disabled)
  1280. --enable-silent-rules less verbose build output (undo: "make V=1")
  1281. --disable-silent-rules verbose build output (undo: "make V=0")
  1282. --disable-largefile omit support for large files
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --with-lint Use a lint-style source code checker (default:
  1287. disabled)
  1288. Some influential environment variables:
  1289. CC C compiler command
  1290. CFLAGS C compiler flags
  1291. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1292. nonstandard directory <lib dir>
  1293. LIBS libraries to pass to the linker, e.g. -l<library>
  1294. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1295. you have headers in a nonstandard directory <include dir>
  1296. CPP C preprocessor
  1297. PKG_CONFIG path to pkg-config utility
  1298. PKG_CONFIG_PATH
  1299. directories to add to pkg-config's search path
  1300. PKG_CONFIG_LIBDIR
  1301. path overriding pkg-config's built-in search path
  1302. LINT Path to a lint-style command
  1303. LINT_FLAGS Flags for the lint-style command
  1304. X_CFLAGS C compiler flags for X, overriding pkg-config
  1305. X_LIBS linker flags for X, overriding pkg-config
  1306. Use these variables to override the choices made by `configure' or to help
  1307. it to find libraries and programs with nonstandard names/locations.
  1308. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1309. _ACEOF
  1310. ac_status=$?
  1311. fi
  1312. if test "$ac_init_help" = "recursive"; then
  1313. # If there are subdirs, report their specific --help.
  1314. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1315. test -d "$ac_dir" ||
  1316. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1317. continue
  1318. ac_builddir=.
  1319. case "$ac_dir" in
  1320. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *)
  1322. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1323. # A ".." for each directory in $ac_dir_suffix.
  1324. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1325. case $ac_top_builddir_sub in
  1326. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1327. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1328. esac ;;
  1329. esac
  1330. ac_abs_top_builddir=$ac_pwd
  1331. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1332. # for backward compatibility:
  1333. ac_top_builddir=$ac_top_build_prefix
  1334. case $srcdir in
  1335. .) # We are building in place.
  1336. ac_srcdir=.
  1337. ac_top_srcdir=$ac_top_builddir_sub
  1338. ac_abs_top_srcdir=$ac_pwd ;;
  1339. [\\/]* | ?:[\\/]* ) # Absolute name.
  1340. ac_srcdir=$srcdir$ac_dir_suffix;
  1341. ac_top_srcdir=$srcdir
  1342. ac_abs_top_srcdir=$srcdir ;;
  1343. *) # Relative name.
  1344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1347. esac
  1348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1349. cd "$ac_dir" || { ac_status=$?; continue; }
  1350. # Check for guested configure.
  1351. if test -f "$ac_srcdir/configure.gnu"; then
  1352. echo &&
  1353. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1354. elif test -f "$ac_srcdir/configure"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure" --help=recursive
  1357. else
  1358. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1359. fi || ac_status=$?
  1360. cd "$ac_pwd" || { ac_status=$?; break; }
  1361. done
  1362. fi
  1363. test -n "$ac_init_help" && exit $ac_status
  1364. if $ac_init_version; then
  1365. cat <<\_ACEOF
  1366. makedepend configure 1.0.4
  1367. generated by GNU Autoconf 2.69
  1368. Copyright (C) 2012 Free Software Foundation, Inc.
  1369. This configure script is free software; the Free Software Foundation
  1370. gives unlimited permission to copy, distribute and modify it.
  1371. _ACEOF
  1372. exit
  1373. fi
  1374. ## ------------------------ ##
  1375. ## Autoconf initialization. ##
  1376. ## ------------------------ ##
  1377. # ac_fn_c_try_compile LINENO
  1378. # --------------------------
  1379. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1380. ac_fn_c_try_compile ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. rm -f conftest.$ac_objext
  1384. if { { ac_try="$ac_compile"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_compile") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } && {
  1400. test -z "$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. } && test -s conftest.$ac_objext; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_compile
  1412. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1413. # ---------------------------------------------
  1414. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1415. # accordingly.
  1416. ac_fn_c_check_decl ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1420. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1422. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1423. if eval \${$3+:} false; then :
  1424. $as_echo_n "(cached) " >&6
  1425. else
  1426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1427. /* end confdefs.h. */
  1428. $4
  1429. int
  1430. main ()
  1431. {
  1432. #ifndef $as_decl_name
  1433. #ifdef __cplusplus
  1434. (void) $as_decl_use;
  1435. #else
  1436. (void) $as_decl_name;
  1437. #endif
  1438. #endif
  1439. ;
  1440. return 0;
  1441. }
  1442. _ACEOF
  1443. if ac_fn_c_try_compile "$LINENO"; then :
  1444. eval "$3=yes"
  1445. else
  1446. eval "$3=no"
  1447. fi
  1448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1449. fi
  1450. eval ac_res=\$$3
  1451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1452. $as_echo "$ac_res" >&6; }
  1453. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1454. } # ac_fn_c_check_decl
  1455. # ac_fn_c_try_cpp LINENO
  1456. # ----------------------
  1457. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1458. ac_fn_c_try_cpp ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } > conftest.i && {
  1477. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. }; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_cpp
  1489. # ac_fn_c_try_run LINENO
  1490. # ----------------------
  1491. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1492. # that executables *can* be run.
  1493. ac_fn_c_try_run ()
  1494. {
  1495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>&5
  1504. ac_status=$?
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1507. { { case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_try") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; }; }; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: program exited with status $ac_status" >&5
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=$ac_status
  1523. fi
  1524. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. as_fn_set_status $ac_retval
  1527. } # ac_fn_c_try_run
  1528. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1529. # -------------------------------------------------------
  1530. # Tests whether HEADER exists and can be compiled using the include files in
  1531. # INCLUDES, setting the cache variable VAR accordingly.
  1532. ac_fn_c_check_header_compile ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1536. $as_echo_n "checking for $2... " >&6; }
  1537. if eval \${$3+:} false; then :
  1538. $as_echo_n "(cached) " >&6
  1539. else
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. #include <$2>
  1544. _ACEOF
  1545. if ac_fn_c_try_compile "$LINENO"; then :
  1546. eval "$3=yes"
  1547. else
  1548. eval "$3=no"
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. } # ac_fn_c_check_header_compile
  1557. # ac_fn_c_try_link LINENO
  1558. # -----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_c_try_link ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. rm -f conftest.$ac_objext conftest$ac_exeext
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && {
  1580. test -z "$ac_c_werror_flag" ||
  1581. test ! -s conftest.err
  1582. } && test -s conftest$ac_exeext && {
  1583. test "$cross_compiling" = yes ||
  1584. test -x conftest$ac_exeext
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1593. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1594. # interfere with the next link command; also delete a directory that is
  1595. # left behind by Apple's compiler. We do this before executing the actions.
  1596. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. as_fn_set_status $ac_retval
  1599. } # ac_fn_c_try_link
  1600. # ac_fn_c_check_func LINENO FUNC VAR
  1601. # ----------------------------------
  1602. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1603. ac_fn_c_check_func ()
  1604. {
  1605. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1607. $as_echo_n "checking for $2... " >&6; }
  1608. if eval \${$3+:} false; then :
  1609. $as_echo_n "(cached) " >&6
  1610. else
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1614. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1615. #define $2 innocuous_$2
  1616. /* System header to define __stub macros and hopefully few prototypes,
  1617. which can conflict with char $2 (); below.
  1618. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1619. <limits.h> exists even on freestanding compilers. */
  1620. #ifdef __STDC__
  1621. # include <limits.h>
  1622. #else
  1623. # include <assert.h>
  1624. #endif
  1625. #undef $2
  1626. /* Override any GCC internal prototype to avoid an error.
  1627. Use char because int might match the return type of a GCC
  1628. builtin and then its argument prototype would still apply. */
  1629. #ifdef __cplusplus
  1630. extern "C"
  1631. #endif
  1632. char $2 ();
  1633. /* The GNU C library defines this for functions which it implements
  1634. to always fail with ENOSYS. Some functions are actually named
  1635. something starting with __ and the normal name is an alias. */
  1636. #if defined __stub_$2 || defined __stub___$2
  1637. choke me
  1638. #endif
  1639. int
  1640. main ()
  1641. {
  1642. return $2 ();
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_c_try_link "$LINENO"; then :
  1648. eval "$3=yes"
  1649. else
  1650. eval "$3=no"
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext \
  1653. conftest$ac_exeext conftest.$ac_ext
  1654. fi
  1655. eval ac_res=\$$3
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1659. } # ac_fn_c_check_func
  1660. cat >config.log <<_ACEOF
  1661. This file contains any messages produced by compilers while
  1662. running configure, to aid debugging if configure makes a mistake.
  1663. It was created by makedepend $as_me 1.0.4, which was
  1664. generated by GNU Autoconf 2.69. Invocation command line was
  1665. $ $0 $@
  1666. _ACEOF
  1667. exec 5>>config.log
  1668. {
  1669. cat <<_ASUNAME
  1670. ## --------- ##
  1671. ## Platform. ##
  1672. ## --------- ##
  1673. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1674. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1675. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1676. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1677. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1678. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1679. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1680. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1681. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1682. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1683. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1684. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1685. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1686. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1687. _ASUNAME
  1688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1689. for as_dir in $PATH
  1690. do
  1691. IFS=$as_save_IFS
  1692. test -z "$as_dir" && as_dir=.
  1693. $as_echo "PATH: $as_dir"
  1694. done
  1695. IFS=$as_save_IFS
  1696. } >&5
  1697. cat >&5 <<_ACEOF
  1698. ## ----------- ##
  1699. ## Core tests. ##
  1700. ## ----------- ##
  1701. _ACEOF
  1702. # Keep a trace of the command line.
  1703. # Strip out --no-create and --no-recursion so they do not pile up.
  1704. # Strip out --silent because we don't want to record it for future runs.
  1705. # Also quote any args containing shell meta-characters.
  1706. # Make two passes to allow for proper duplicate-argument suppression.
  1707. ac_configure_args=
  1708. ac_configure_args0=
  1709. ac_configure_args1=
  1710. ac_must_keep_next=false
  1711. for ac_pass in 1 2
  1712. do
  1713. for ac_arg
  1714. do
  1715. case $ac_arg in
  1716. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1717. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1718. | -silent | --silent | --silen | --sile | --sil)
  1719. continue ;;
  1720. *\'*)
  1721. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1722. esac
  1723. case $ac_pass in
  1724. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1725. 2)
  1726. as_fn_append ac_configure_args1 " '$ac_arg'"
  1727. if test $ac_must_keep_next = true; then
  1728. ac_must_keep_next=false # Got value, back to normal.
  1729. else
  1730. case $ac_arg in
  1731. *=* | --config-cache | -C | -disable-* | --disable-* \
  1732. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1733. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1734. | -with-* | --with-* | -without-* | --without-* | --x)
  1735. case "$ac_configure_args0 " in
  1736. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1737. esac
  1738. ;;
  1739. -* ) ac_must_keep_next=true ;;
  1740. esac
  1741. fi
  1742. as_fn_append ac_configure_args " '$ac_arg'"
  1743. ;;
  1744. esac
  1745. done
  1746. done
  1747. { ac_configure_args0=; unset ac_configure_args0;}
  1748. { ac_configure_args1=; unset ac_configure_args1;}
  1749. # When interrupted or exit'd, cleanup temporary files, and complete
  1750. # config.log. We remove comments because anyway the quotes in there
  1751. # would cause problems or look ugly.
  1752. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1753. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1754. trap 'exit_status=$?
  1755. # Save into config.log some information that might help in debugging.
  1756. {
  1757. echo
  1758. $as_echo "## ---------------- ##
  1759. ## Cache variables. ##
  1760. ## ---------------- ##"
  1761. echo
  1762. # The following way of writing the cache mishandles newlines in values,
  1763. (
  1764. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1765. eval ac_val=\$$ac_var
  1766. case $ac_val in #(
  1767. *${as_nl}*)
  1768. case $ac_var in #(
  1769. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1770. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1771. esac
  1772. case $ac_var in #(
  1773. _ | IFS | as_nl) ;; #(
  1774. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1775. *) { eval $ac_var=; unset $ac_var;} ;;
  1776. esac ;;
  1777. esac
  1778. done
  1779. (set) 2>&1 |
  1780. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1781. *${as_nl}ac_space=\ *)
  1782. sed -n \
  1783. "s/'\''/'\''\\\\'\'''\''/g;
  1784. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1785. ;; #(
  1786. *)
  1787. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1788. ;;
  1789. esac |
  1790. sort
  1791. )
  1792. echo
  1793. $as_echo "## ----------------- ##
  1794. ## Output variables. ##
  1795. ## ----------------- ##"
  1796. echo
  1797. for ac_var in $ac_subst_vars
  1798. do
  1799. eval ac_val=\$$ac_var
  1800. case $ac_val in
  1801. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1802. esac
  1803. $as_echo "$ac_var='\''$ac_val'\''"
  1804. done | sort
  1805. echo
  1806. if test -n "$ac_subst_files"; then
  1807. $as_echo "## ------------------- ##
  1808. ## File substitutions. ##
  1809. ## ------------------- ##"
  1810. echo
  1811. for ac_var in $ac_subst_files
  1812. do
  1813. eval ac_val=\$$ac_var
  1814. case $ac_val in
  1815. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1816. esac
  1817. $as_echo "$ac_var='\''$ac_val'\''"
  1818. done | sort
  1819. echo
  1820. fi
  1821. if test -s confdefs.h; then
  1822. $as_echo "## ----------- ##
  1823. ## confdefs.h. ##
  1824. ## ----------- ##"
  1825. echo
  1826. cat confdefs.h
  1827. echo
  1828. fi
  1829. test "$ac_signal" != 0 &&
  1830. $as_echo "$as_me: caught signal $ac_signal"
  1831. $as_echo "$as_me: exit $exit_status"
  1832. } >&5
  1833. rm -f core *.core core.conftest.* &&
  1834. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1835. exit $exit_status
  1836. ' 0
  1837. for ac_signal in 1 2 13 15; do
  1838. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1839. done
  1840. ac_signal=0
  1841. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1842. rm -f -r conftest* confdefs.h
  1843. $as_echo "/* confdefs.h */" > confdefs.h
  1844. # Predefined preprocessor variables.
  1845. cat >>confdefs.h <<_ACEOF
  1846. #define PACKAGE_NAME "$PACKAGE_NAME"
  1847. _ACEOF
  1848. cat >>confdefs.h <<_ACEOF
  1849. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1850. _ACEOF
  1851. cat >>confdefs.h <<_ACEOF
  1852. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1853. _ACEOF
  1854. cat >>confdefs.h <<_ACEOF
  1855. #define PACKAGE_STRING "$PACKAGE_STRING"
  1856. _ACEOF
  1857. cat >>confdefs.h <<_ACEOF
  1858. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1859. _ACEOF
  1860. cat >>confdefs.h <<_ACEOF
  1861. #define PACKAGE_URL "$PACKAGE_URL"
  1862. _ACEOF
  1863. # Let the site file select an alternate cache file if it wants to.
  1864. # Prefer an explicitly selected file to automatically selected ones.
  1865. ac_site_file1=NONE
  1866. ac_site_file2=NONE
  1867. if test -n "$CONFIG_SITE"; then
  1868. # We do not want a PATH search for config.site.
  1869. case $CONFIG_SITE in #((
  1870. -*) ac_site_file1=./$CONFIG_SITE;;
  1871. */*) ac_site_file1=$CONFIG_SITE;;
  1872. *) ac_site_file1=./$CONFIG_SITE;;
  1873. esac
  1874. elif test "x$prefix" != xNONE; then
  1875. ac_site_file1=$prefix/share/config.site
  1876. ac_site_file2=$prefix/etc/config.site
  1877. else
  1878. ac_site_file1=$ac_default_prefix/share/config.site
  1879. ac_site_file2=$ac_default_prefix/etc/config.site
  1880. fi
  1881. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1882. do
  1883. test "x$ac_site_file" = xNONE && continue
  1884. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1886. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1887. sed 's/^/| /' "$ac_site_file" >&5
  1888. . "$ac_site_file" \
  1889. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1890. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1891. as_fn_error $? "failed to load site script $ac_site_file
  1892. See \`config.log' for more details" "$LINENO" 5; }
  1893. fi
  1894. done
  1895. if test -r "$cache_file"; then
  1896. # Some versions of bash will fail to source /dev/null (special files
  1897. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1898. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1900. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1901. case $cache_file in
  1902. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1903. *) . "./$cache_file";;
  1904. esac
  1905. fi
  1906. else
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1908. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1909. >$cache_file
  1910. fi
  1911. # Check that the precious variables saved in the cache have kept the same
  1912. # value.
  1913. ac_cache_corrupted=false
  1914. for ac_var in $ac_precious_vars; do
  1915. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1916. eval ac_new_set=\$ac_env_${ac_var}_set
  1917. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1918. eval ac_new_val=\$ac_env_${ac_var}_value
  1919. case $ac_old_set,$ac_new_set in
  1920. set,)
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1922. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1923. ac_cache_corrupted=: ;;
  1924. ,set)
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1926. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1927. ac_cache_corrupted=: ;;
  1928. ,);;
  1929. *)
  1930. if test "x$ac_old_val" != "x$ac_new_val"; then
  1931. # differences in whitespace do not lead to failure.
  1932. ac_old_val_w=`echo x $ac_old_val`
  1933. ac_new_val_w=`echo x $ac_new_val`
  1934. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1936. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1937. ac_cache_corrupted=:
  1938. else
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1940. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1941. eval $ac_var=\$ac_old_val
  1942. fi
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1944. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1946. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1947. fi;;
  1948. esac
  1949. # Pass precious variables to config.status.
  1950. if test "$ac_new_set" = set; then
  1951. case $ac_new_val in
  1952. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. *) ac_arg=$ac_var=$ac_new_val ;;
  1954. esac
  1955. case " $ac_configure_args " in
  1956. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1957. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1958. esac
  1959. fi
  1960. done
  1961. if $ac_cache_corrupted; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1965. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1966. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1967. fi
  1968. ## -------------------- ##
  1969. ## Main body of script. ##
  1970. ## -------------------- ##
  1971. ac_ext=c
  1972. ac_cpp='$CPP $CPPFLAGS'
  1973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1976. am__api_version='1.12'
  1977. ac_aux_dir=
  1978. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1979. if test -f "$ac_dir/install-sh"; then
  1980. ac_aux_dir=$ac_dir
  1981. ac_install_sh="$ac_aux_dir/install-sh -c"
  1982. break
  1983. elif test -f "$ac_dir/install.sh"; then
  1984. ac_aux_dir=$ac_dir
  1985. ac_install_sh="$ac_aux_dir/install.sh -c"
  1986. break
  1987. elif test -f "$ac_dir/shtool"; then
  1988. ac_aux_dir=$ac_dir
  1989. ac_install_sh="$ac_aux_dir/shtool install -c"
  1990. break
  1991. fi
  1992. done
  1993. if test -z "$ac_aux_dir"; then
  1994. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1995. fi
  1996. # These three variables are undocumented and unsupported,
  1997. # and are intended to be withdrawn in a future Autoconf release.
  1998. # They can cause serious problems if a builder's source tree is in a directory
  1999. # whose full name contains unusual characters.
  2000. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2001. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2002. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2003. # Find a good install program. We prefer a C program (faster),
  2004. # so one script is as good as another. But avoid the broken or
  2005. # incompatible versions:
  2006. # SysV /etc/install, /usr/sbin/install
  2007. # SunOS /usr/etc/install
  2008. # IRIX /sbin/install
  2009. # AIX /bin/install
  2010. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2011. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2012. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2013. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2014. # OS/2's system install, which has a completely different semantic
  2015. # ./install, which can be erroneously created by make from ./install.sh.
  2016. # Reject install programs that cannot install multiple files.
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2018. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2019. if test -z "$INSTALL"; then
  2020. if ${ac_cv_path_install+:} false; then :
  2021. $as_echo_n "(cached) " >&6
  2022. else
  2023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2024. for as_dir in $PATH
  2025. do
  2026. IFS=$as_save_IFS
  2027. test -z "$as_dir" && as_dir=.
  2028. # Account for people who put trailing slashes in PATH elements.
  2029. case $as_dir/ in #((
  2030. ./ | .// | /[cC]/* | \
  2031. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2032. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2033. /usr/ucb/* ) ;;
  2034. *)
  2035. # OSF1 and SCO ODT 3.0 have their own names for install.
  2036. # Don't use installbsd from OSF since it installs stuff as root
  2037. # by default.
  2038. for ac_prog in ginstall scoinst install; do
  2039. for ac_exec_ext in '' $ac_executable_extensions; do
  2040. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2041. if test $ac_prog = install &&
  2042. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2043. # AIX install. It has an incompatible calling convention.
  2044. :
  2045. elif test $ac_prog = install &&
  2046. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2047. # program-specific install script used by HP pwplus--don't use.
  2048. :
  2049. else
  2050. rm -rf conftest.one conftest.two conftest.dir
  2051. echo one > conftest.one
  2052. echo two > conftest.two
  2053. mkdir conftest.dir
  2054. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2055. test -s conftest.one && test -s conftest.two &&
  2056. test -s conftest.dir/conftest.one &&
  2057. test -s conftest.dir/conftest.two
  2058. then
  2059. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2060. break 3
  2061. fi
  2062. fi
  2063. fi
  2064. done
  2065. done
  2066. ;;
  2067. esac
  2068. done
  2069. IFS=$as_save_IFS
  2070. rm -rf conftest.one conftest.two conftest.dir
  2071. fi
  2072. if test "${ac_cv_path_install+set}" = set; then
  2073. INSTALL=$ac_cv_path_install
  2074. else
  2075. # As a last resort, use the slow shell script. Don't cache a
  2076. # value for INSTALL within a source directory, because that will
  2077. # break other packages using the cache if that directory is
  2078. # removed, or if the value is a relative name.
  2079. INSTALL=$ac_install_sh
  2080. fi
  2081. fi
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2083. $as_echo "$INSTALL" >&6; }
  2084. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2085. # It thinks the first close brace ends the variable substitution.
  2086. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2087. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2088. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2090. $as_echo_n "checking whether build environment is sane... " >&6; }
  2091. # Reject unsafe characters in $srcdir or the absolute working directory
  2092. # name. Accept space and tab only in the latter.
  2093. am_lf='
  2094. '
  2095. case `pwd` in
  2096. *[\\\"\#\$\&\'\`$am_lf]*)
  2097. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2098. esac
  2099. case $srcdir in
  2100. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2101. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2102. esac
  2103. # Do 'set' in a subshell so we don't clobber the current shell's
  2104. # arguments. Must try -L first in case configure is actually a
  2105. # symlink; some systems play weird games with the mod time of symlinks
  2106. # (eg FreeBSD returns the mod time of the symlink's containing
  2107. # directory).
  2108. if (
  2109. am_has_slept=no
  2110. for am_try in 1 2; do
  2111. echo "timestamp, slept: $am_has_slept" > conftest.file
  2112. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2113. if test "$*" = "X"; then
  2114. # -L didn't work.
  2115. set X `ls -t "$srcdir/configure" conftest.file`
  2116. fi
  2117. if test "$*" != "X $srcdir/configure conftest.file" \
  2118. && test "$*" != "X conftest.file $srcdir/configure"; then
  2119. # If neither matched, then we have a broken ls. This can happen
  2120. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2121. # broken ls alias from the environment. This has actually
  2122. # happened. Such a system could not be considered "sane".
  2123. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2124. alias in your environment" "$LINENO" 5
  2125. fi
  2126. if test "$2" = conftest.file || test $am_try -eq 2; then
  2127. break
  2128. fi
  2129. # Just in case.
  2130. sleep 1
  2131. am_has_slept=yes
  2132. done
  2133. test "$2" = conftest.file
  2134. )
  2135. then
  2136. # Ok.
  2137. :
  2138. else
  2139. as_fn_error $? "newly created file is older than distributed files!
  2140. Check your system clock" "$LINENO" 5
  2141. fi
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2143. $as_echo "yes" >&6; }
  2144. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2145. # generated files are strictly newer.
  2146. am_sleep_pid=
  2147. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2148. ( sleep 1 ) &
  2149. am_sleep_pid=$!
  2150. fi
  2151. rm -f conftest.file
  2152. test "$program_prefix" != NONE &&
  2153. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2154. # Use a double $ so make ignores it.
  2155. test "$program_suffix" != NONE &&
  2156. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2157. # Double any \ or $.
  2158. # By default was `s,x,x', remove it if useless.
  2159. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2160. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2161. # expand $ac_aux_dir to an absolute path
  2162. am_aux_dir=`cd $ac_aux_dir && pwd`
  2163. if test x"${MISSING+set}" != xset; then
  2164. case $am_aux_dir in
  2165. *\ * | *\ *)
  2166. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2167. *)
  2168. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2169. esac
  2170. fi
  2171. # Use eval to expand $SHELL
  2172. if eval "$MISSING --run true"; then
  2173. am_missing_run="$MISSING --run "
  2174. else
  2175. am_missing_run=
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2177. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2178. fi
  2179. if test x"${install_sh}" != xset; then
  2180. case $am_aux_dir in
  2181. *\ * | *\ *)
  2182. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2183. *)
  2184. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2185. esac
  2186. fi
  2187. # Installed binaries are usually stripped using 'strip' when the user
  2188. # run "make install-strip". However 'strip' might not be the right
  2189. # tool to use in cross-compilation environments, therefore Automake
  2190. # will honor the 'STRIP' environment variable to overrule this program.
  2191. if test "$cross_compiling" != no; then
  2192. if test -n "$ac_tool_prefix"; then
  2193. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2194. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2196. $as_echo_n "checking for $ac_word... " >&6; }
  2197. if ${ac_cv_prog_STRIP+:} false; then :
  2198. $as_echo_n "(cached) " >&6
  2199. else
  2200. if test -n "$STRIP"; then
  2201. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2202. else
  2203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2204. for as_dir in $PATH
  2205. do
  2206. IFS=$as_save_IFS
  2207. test -z "$as_dir" && as_dir=.
  2208. for ac_exec_ext in '' $ac_executable_extensions; do
  2209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2210. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2212. break 2
  2213. fi
  2214. done
  2215. done
  2216. IFS=$as_save_IFS
  2217. fi
  2218. fi
  2219. STRIP=$ac_cv_prog_STRIP
  2220. if test -n "$STRIP"; then
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2222. $as_echo "$STRIP" >&6; }
  2223. else
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2225. $as_echo "no" >&6; }
  2226. fi
  2227. fi
  2228. if test -z "$ac_cv_prog_STRIP"; then
  2229. ac_ct_STRIP=$STRIP
  2230. # Extract the first word of "strip", so it can be a program name with args.
  2231. set dummy strip; ac_word=$2
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2233. $as_echo_n "checking for $ac_word... " >&6; }
  2234. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. if test -n "$ac_ct_STRIP"; then
  2238. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2239. else
  2240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2241. for as_dir in $PATH
  2242. do
  2243. IFS=$as_save_IFS
  2244. test -z "$as_dir" && as_dir=.
  2245. for ac_exec_ext in '' $ac_executable_extensions; do
  2246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2247. ac_cv_prog_ac_ct_STRIP="strip"
  2248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2249. break 2
  2250. fi
  2251. done
  2252. done
  2253. IFS=$as_save_IFS
  2254. fi
  2255. fi
  2256. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2257. if test -n "$ac_ct_STRIP"; then
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2259. $as_echo "$ac_ct_STRIP" >&6; }
  2260. else
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2262. $as_echo "no" >&6; }
  2263. fi
  2264. if test "x$ac_ct_STRIP" = x; then
  2265. STRIP=":"
  2266. else
  2267. case $cross_compiling:$ac_tool_warned in
  2268. yes:)
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2270. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2271. ac_tool_warned=yes ;;
  2272. esac
  2273. STRIP=$ac_ct_STRIP
  2274. fi
  2275. else
  2276. STRIP="$ac_cv_prog_STRIP"
  2277. fi
  2278. fi
  2279. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2281. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2282. if test -z "$MKDIR_P"; then
  2283. if ${ac_cv_path_mkdir+:} false; then :
  2284. $as_echo_n "(cached) " >&6
  2285. else
  2286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2287. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2288. do
  2289. IFS=$as_save_IFS
  2290. test -z "$as_dir" && as_dir=.
  2291. for ac_prog in mkdir gmkdir; do
  2292. for ac_exec_ext in '' $ac_executable_extensions; do
  2293. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2294. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2295. 'mkdir (GNU coreutils) '* | \
  2296. 'mkdir (coreutils) '* | \
  2297. 'mkdir (fileutils) '4.1*)
  2298. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2299. break 3;;
  2300. esac
  2301. done
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. fi
  2306. test -d ./--version && rmdir ./--version
  2307. if test "${ac_cv_path_mkdir+set}" = set; then
  2308. MKDIR_P="$ac_cv_path_mkdir -p"
  2309. else
  2310. # As a last resort, use the slow shell script. Don't cache a
  2311. # value for MKDIR_P within a source directory, because that will
  2312. # break other packages using the cache if that directory is
  2313. # removed, or if the value is a relative name.
  2314. MKDIR_P="$ac_install_sh -d"
  2315. fi
  2316. fi
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2318. $as_echo "$MKDIR_P" >&6; }
  2319. for ac_prog in gawk mawk nawk awk
  2320. do
  2321. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2322. set dummy $ac_prog; ac_word=$2
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2324. $as_echo_n "checking for $ac_word... " >&6; }
  2325. if ${ac_cv_prog_AWK+:} false; then :
  2326. $as_echo_n "(cached) " >&6
  2327. else
  2328. if test -n "$AWK"; then
  2329. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2330. else
  2331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2332. for as_dir in $PATH
  2333. do
  2334. IFS=$as_save_IFS
  2335. test -z "$as_dir" && as_dir=.
  2336. for ac_exec_ext in '' $ac_executable_extensions; do
  2337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2338. ac_cv_prog_AWK="$ac_prog"
  2339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2340. break 2
  2341. fi
  2342. done
  2343. done
  2344. IFS=$as_save_IFS
  2345. fi
  2346. fi
  2347. AWK=$ac_cv_prog_AWK
  2348. if test -n "$AWK"; then
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2350. $as_echo "$AWK" >&6; }
  2351. else
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2353. $as_echo "no" >&6; }
  2354. fi
  2355. test -n "$AWK" && break
  2356. done
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2358. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2359. set x ${MAKE-make}
  2360. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2361. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. cat >conftest.make <<\_ACEOF
  2365. SHELL = /bin/sh
  2366. all:
  2367. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2368. _ACEOF
  2369. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2370. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2371. *@@@%%%=?*=@@@%%%*)
  2372. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2373. *)
  2374. eval ac_cv_prog_make_${ac_make}_set=no;;
  2375. esac
  2376. rm -f conftest.make
  2377. fi
  2378. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2380. $as_echo "yes" >&6; }
  2381. SET_MAKE=
  2382. else
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2384. $as_echo "no" >&6; }
  2385. SET_MAKE="MAKE=${MAKE-make}"
  2386. fi
  2387. rm -rf .tst 2>/dev/null
  2388. mkdir .tst 2>/dev/null
  2389. if test -d .tst; then
  2390. am__leading_dot=.
  2391. else
  2392. am__leading_dot=_
  2393. fi
  2394. rmdir .tst 2>/dev/null
  2395. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2396. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2397. # is not polluted with repeated "-I."
  2398. am__isrc=' -I$(srcdir)'
  2399. # test to see if srcdir already configured
  2400. if test -f $srcdir/config.status; then
  2401. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2402. fi
  2403. fi
  2404. # test whether we have cygpath
  2405. if test -z "$CYGPATH_W"; then
  2406. if (cygpath --version) >/dev/null 2>/dev/null; then
  2407. CYGPATH_W='cygpath -w'
  2408. else
  2409. CYGPATH_W=echo
  2410. fi
  2411. fi
  2412. # Define the identity of the package.
  2413. PACKAGE='makedepend'
  2414. VERSION='1.0.4'
  2415. cat >>confdefs.h <<_ACEOF
  2416. #define PACKAGE "$PACKAGE"
  2417. _ACEOF
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define VERSION "$VERSION"
  2420. _ACEOF
  2421. # Some tools Automake needs.
  2422. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2423. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2424. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2425. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2426. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2427. # For better backward compatibility. To be removed once Automake 1.9.x
  2428. # dies out for good. For more background, see:
  2429. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2430. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2431. mkdir_p='$(MKDIR_P)'
  2432. # We need awk for the "check" target. The system "awk" is bad on
  2433. # some platforms.
  2434. # Always define AMTAR for backward compatibility. Yes, it's still used
  2435. # in the wild :-( We should find a proper way to deprecate it ...
  2436. AMTAR='$${TAR-tar}'
  2437. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2439. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2440. # Check whether --enable-maintainer-mode was given.
  2441. if test "${enable_maintainer_mode+set}" = set; then :
  2442. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2443. else
  2444. USE_MAINTAINER_MODE=no
  2445. fi
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2447. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2448. if test $USE_MAINTAINER_MODE = yes; then
  2449. MAINTAINER_MODE_TRUE=
  2450. MAINTAINER_MODE_FALSE='#'
  2451. else
  2452. MAINTAINER_MODE_TRUE='#'
  2453. MAINTAINER_MODE_FALSE=
  2454. fi
  2455. MAINT=$MAINTAINER_MODE_TRUE
  2456. ac_config_headers="$ac_config_headers makedepend-config.h"
  2457. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2458. DEPDIR="${am__leading_dot}deps"
  2459. ac_config_commands="$ac_config_commands depfiles"
  2460. am_make=${MAKE-make}
  2461. cat > confinc << 'END'
  2462. am__doit:
  2463. @echo this is the am__doit target
  2464. .PHONY: am__doit
  2465. END
  2466. # If we don't find an include directive, just comment out the code.
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2468. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2469. am__include="#"
  2470. am__quote=
  2471. _am_result=none
  2472. # First try GNU make style include.
  2473. echo "include confinc" > confmf
  2474. # Ignore all kinds of additional output from 'make'.
  2475. case `$am_make -s -f confmf 2> /dev/null` in #(
  2476. *the\ am__doit\ target*)
  2477. am__include=include
  2478. am__quote=
  2479. _am_result=GNU
  2480. ;;
  2481. esac
  2482. # Now try BSD make style include.
  2483. if test "$am__include" = "#"; then
  2484. echo '.include "confinc"' > confmf
  2485. case `$am_make -s -f confmf 2> /dev/null` in #(
  2486. *the\ am__doit\ target*)
  2487. am__include=.include
  2488. am__quote="\""
  2489. _am_result=BSD
  2490. ;;
  2491. esac
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2494. $as_echo "$_am_result" >&6; }
  2495. rm -f confinc confmf
  2496. # Check whether --enable-dependency-tracking was given.
  2497. if test "${enable_dependency_tracking+set}" = set; then :
  2498. enableval=$enable_dependency_tracking;
  2499. fi
  2500. if test "x$enable_dependency_tracking" != xno; then
  2501. am_depcomp="$ac_aux_dir/depcomp"
  2502. AMDEPBACKSLASH='\'
  2503. am__nodep='_no'
  2504. fi
  2505. if test "x$enable_dependency_tracking" != xno; then
  2506. AMDEP_TRUE=
  2507. AMDEP_FALSE='#'
  2508. else
  2509. AMDEP_TRUE='#'
  2510. AMDEP_FALSE=
  2511. fi
  2512. ac_ext=c
  2513. ac_cpp='$CPP $CPPFLAGS'
  2514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2517. if test -n "$ac_tool_prefix"; then
  2518. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2519. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2521. $as_echo_n "checking for $ac_word... " >&6; }
  2522. if ${ac_cv_prog_CC+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. if test -n "$CC"; then
  2526. ac_cv_prog_CC="$CC" # Let the user override the test.
  2527. else
  2528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2529. for as_dir in $PATH
  2530. do
  2531. IFS=$as_save_IFS
  2532. test -z "$as_dir" && as_dir=.
  2533. for ac_exec_ext in '' $ac_executable_extensions; do
  2534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2535. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537. break 2
  2538. fi
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. fi
  2543. fi
  2544. CC=$ac_cv_prog_CC
  2545. if test -n "$CC"; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2547. $as_echo "$CC" >&6; }
  2548. else
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2550. $as_echo "no" >&6; }
  2551. fi
  2552. fi
  2553. if test -z "$ac_cv_prog_CC"; then
  2554. ac_ct_CC=$CC
  2555. # Extract the first word of "gcc", so it can be a program name with args.
  2556. set dummy gcc; ac_word=$2
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2558. $as_echo_n "checking for $ac_word... " >&6; }
  2559. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. if test -n "$ac_ct_CC"; then
  2563. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2564. else
  2565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2566. for as_dir in $PATH
  2567. do
  2568. IFS=$as_save_IFS
  2569. test -z "$as_dir" && as_dir=.
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2572. ac_cv_prog_ac_ct_CC="gcc"
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574. break 2
  2575. fi
  2576. done
  2577. done
  2578. IFS=$as_save_IFS
  2579. fi
  2580. fi
  2581. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2582. if test -n "$ac_ct_CC"; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2584. $as_echo "$ac_ct_CC" >&6; }
  2585. else
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2587. $as_echo "no" >&6; }
  2588. fi
  2589. if test "x$ac_ct_CC" = x; then
  2590. CC=""
  2591. else
  2592. case $cross_compiling:$ac_tool_warned in
  2593. yes:)
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2596. ac_tool_warned=yes ;;
  2597. esac
  2598. CC=$ac_ct_CC
  2599. fi
  2600. else
  2601. CC="$ac_cv_prog_CC"
  2602. fi
  2603. if test -z "$CC"; then
  2604. if test -n "$ac_tool_prefix"; then
  2605. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2606. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2608. $as_echo_n "checking for $ac_word... " >&6; }
  2609. if ${ac_cv_prog_CC+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. if test -n "$CC"; then
  2613. ac_cv_prog_CC="$CC" # Let the user override the test.
  2614. else
  2615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2616. for as_dir in $PATH
  2617. do
  2618. IFS=$as_save_IFS
  2619. test -z "$as_dir" && as_dir=.
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2622. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2624. break 2
  2625. fi
  2626. done
  2627. done
  2628. IFS=$as_save_IFS
  2629. fi
  2630. fi
  2631. CC=$ac_cv_prog_CC
  2632. if test -n "$CC"; then
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2634. $as_echo "$CC" >&6; }
  2635. else
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2637. $as_echo "no" >&6; }
  2638. fi
  2639. fi
  2640. fi
  2641. if test -z "$CC"; then
  2642. # Extract the first word of "cc", so it can be a program name with args.
  2643. set dummy cc; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_CC+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$CC"; then
  2650. ac_cv_prog_CC="$CC" # Let the user override the test.
  2651. else
  2652. ac_prog_rejected=no
  2653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2654. for as_dir in $PATH
  2655. do
  2656. IFS=$as_save_IFS
  2657. test -z "$as_dir" && as_dir=.
  2658. for ac_exec_ext in '' $ac_executable_extensions; do
  2659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2660. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2661. ac_prog_rejected=yes
  2662. continue
  2663. fi
  2664. ac_cv_prog_CC="cc"
  2665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2666. break 2
  2667. fi
  2668. done
  2669. done
  2670. IFS=$as_save_IFS
  2671. if test $ac_prog_rejected = yes; then
  2672. # We found a bogon in the path, so make sure we never use it.
  2673. set dummy $ac_cv_prog_CC
  2674. shift
  2675. if test $# != 0; then
  2676. # We chose a different compiler from the bogus one.
  2677. # However, it has the same basename, so the bogon will be chosen
  2678. # first if we set CC to just the basename; use the full file name.
  2679. shift
  2680. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2681. fi
  2682. fi
  2683. fi
  2684. fi
  2685. CC=$ac_cv_prog_CC
  2686. if test -n "$CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2688. $as_echo "$CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. fi
  2694. if test -z "$CC"; then
  2695. if test -n "$ac_tool_prefix"; then
  2696. for ac_prog in cl.exe
  2697. do
  2698. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2699. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2701. $as_echo_n "checking for $ac_word... " >&6; }
  2702. if ${ac_cv_prog_CC+:} false; then :
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. if test -n "$CC"; then
  2706. ac_cv_prog_CC="$CC" # Let the user override the test.
  2707. else
  2708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2709. for as_dir in $PATH
  2710. do
  2711. IFS=$as_save_IFS
  2712. test -z "$as_dir" && as_dir=.
  2713. for ac_exec_ext in '' $ac_executable_extensions; do
  2714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2715. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2717. break 2
  2718. fi
  2719. done
  2720. done
  2721. IFS=$as_save_IFS
  2722. fi
  2723. fi
  2724. CC=$ac_cv_prog_CC
  2725. if test -n "$CC"; then
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2727. $as_echo "$CC" >&6; }
  2728. else
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2730. $as_echo "no" >&6; }
  2731. fi
  2732. test -n "$CC" && break
  2733. done
  2734. fi
  2735. if test -z "$CC"; then
  2736. ac_ct_CC=$CC
  2737. for ac_prog in cl.exe
  2738. do
  2739. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2740. set dummy $ac_prog; ac_word=$2
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2742. $as_echo_n "checking for $ac_word... " >&6; }
  2743. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. if test -n "$ac_ct_CC"; then
  2747. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2748. else
  2749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2750. for as_dir in $PATH
  2751. do
  2752. IFS=$as_save_IFS
  2753. test -z "$as_dir" && as_dir=.
  2754. for ac_exec_ext in '' $ac_executable_extensions; do
  2755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2756. ac_cv_prog_ac_ct_CC="$ac_prog"
  2757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2758. break 2
  2759. fi
  2760. done
  2761. done
  2762. IFS=$as_save_IFS
  2763. fi
  2764. fi
  2765. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2766. if test -n "$ac_ct_CC"; then
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2768. $as_echo "$ac_ct_CC" >&6; }
  2769. else
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2771. $as_echo "no" >&6; }
  2772. fi
  2773. test -n "$ac_ct_CC" && break
  2774. done
  2775. if test "x$ac_ct_CC" = x; then
  2776. CC=""
  2777. else
  2778. case $cross_compiling:$ac_tool_warned in
  2779. yes:)
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2781. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2782. ac_tool_warned=yes ;;
  2783. esac
  2784. CC=$ac_ct_CC
  2785. fi
  2786. fi
  2787. fi
  2788. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2789. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2790. as_fn_error $? "no acceptable C compiler found in \$PATH
  2791. See \`config.log' for more details" "$LINENO" 5; }
  2792. # Provide some information about the compiler.
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2794. set X $ac_compile
  2795. ac_compiler=$2
  2796. for ac_option in --version -v -V -qversion; do
  2797. { { ac_try="$ac_compiler $ac_option >&5"
  2798. case "(($ac_try" in
  2799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2800. *) ac_try_echo=$ac_try;;
  2801. esac
  2802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2803. $as_echo "$ac_try_echo"; } >&5
  2804. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2805. ac_status=$?
  2806. if test -s conftest.err; then
  2807. sed '10a\
  2808. ... rest of stderr output deleted ...
  2809. 10q' conftest.err >conftest.er1
  2810. cat conftest.er1 >&5
  2811. fi
  2812. rm -f conftest.er1 conftest.err
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2814. test $ac_status = 0; }
  2815. done
  2816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2817. /* end confdefs.h. */
  2818. int
  2819. main ()
  2820. {
  2821. ;
  2822. return 0;
  2823. }
  2824. _ACEOF
  2825. ac_clean_files_save=$ac_clean_files
  2826. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2827. # Try to create an executable without -o first, disregard a.out.
  2828. # It will help us diagnose broken compilers, and finding out an intuition
  2829. # of exeext.
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2831. $as_echo_n "checking whether the C compiler works... " >&6; }
  2832. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2833. # The possible output files:
  2834. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2835. ac_rmfiles=
  2836. for ac_file in $ac_files
  2837. do
  2838. case $ac_file in
  2839. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2840. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2841. esac
  2842. done
  2843. rm -f $ac_rmfiles
  2844. if { { ac_try="$ac_link_default"
  2845. case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2850. $as_echo "$ac_try_echo"; } >&5
  2851. (eval "$ac_link_default") 2>&5
  2852. ac_status=$?
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2854. test $ac_status = 0; }; then :
  2855. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2856. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2857. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2858. # so that the user can short-circuit this test for compilers unknown to
  2859. # Autoconf.
  2860. for ac_file in $ac_files ''
  2861. do
  2862. test -f "$ac_file" || continue
  2863. case $ac_file in
  2864. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2865. ;;
  2866. [ab].out )
  2867. # We found the default executable, but exeext='' is most
  2868. # certainly right.
  2869. break;;
  2870. *.* )
  2871. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2872. then :; else
  2873. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2874. fi
  2875. # We set ac_cv_exeext here because the later test for it is not
  2876. # safe: cross compilers may not add the suffix if given an `-o'
  2877. # argument, so we may need to know it at that point already.
  2878. # Even if this section looks crufty: it has the advantage of
  2879. # actually working.
  2880. break;;
  2881. * )
  2882. break;;
  2883. esac
  2884. done
  2885. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2886. else
  2887. ac_file=''
  2888. fi
  2889. if test -z "$ac_file"; then :
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891. $as_echo "no" >&6; }
  2892. $as_echo "$as_me: failed program was:" >&5
  2893. sed 's/^/| /' conftest.$ac_ext >&5
  2894. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. as_fn_error 77 "C compiler cannot create executables
  2897. See \`config.log' for more details" "$LINENO" 5; }
  2898. else
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2900. $as_echo "yes" >&6; }
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2903. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2905. $as_echo "$ac_file" >&6; }
  2906. ac_exeext=$ac_cv_exeext
  2907. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2908. ac_clean_files=$ac_clean_files_save
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2910. $as_echo_n "checking for suffix of executables... " >&6; }
  2911. if { { ac_try="$ac_link"
  2912. case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2917. $as_echo "$ac_try_echo"; } >&5
  2918. (eval "$ac_link") 2>&5
  2919. ac_status=$?
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2921. test $ac_status = 0; }; then :
  2922. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2923. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2924. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2925. # `rm'.
  2926. for ac_file in conftest.exe conftest conftest.*; do
  2927. test -f "$ac_file" || continue
  2928. case $ac_file in
  2929. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2930. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2931. break;;
  2932. * ) break;;
  2933. esac
  2934. done
  2935. else
  2936. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2938. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2939. See \`config.log' for more details" "$LINENO" 5; }
  2940. fi
  2941. rm -f conftest conftest$ac_cv_exeext
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2943. $as_echo "$ac_cv_exeext" >&6; }
  2944. rm -f conftest.$ac_ext
  2945. EXEEXT=$ac_cv_exeext
  2946. ac_exeext=$EXEEXT
  2947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2948. /* end confdefs.h. */
  2949. #include <stdio.h>
  2950. int
  2951. main ()
  2952. {
  2953. FILE *f = fopen ("conftest.out", "w");
  2954. return ferror (f) || fclose (f) != 0;
  2955. ;
  2956. return 0;
  2957. }
  2958. _ACEOF
  2959. ac_clean_files="$ac_clean_files conftest.out"
  2960. # Check that the compiler produces executables we can run. If not, either
  2961. # the compiler is broken, or we cross compile.
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2963. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2964. if test "$cross_compiling" != yes; then
  2965. { { ac_try="$ac_link"
  2966. case "(($ac_try" in
  2967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2968. *) ac_try_echo=$ac_try;;
  2969. esac
  2970. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2971. $as_echo "$ac_try_echo"; } >&5
  2972. (eval "$ac_link") 2>&5
  2973. ac_status=$?
  2974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2975. test $ac_status = 0; }
  2976. if { ac_try='./conftest$ac_cv_exeext'
  2977. { { case "(($ac_try" in
  2978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2979. *) ac_try_echo=$ac_try;;
  2980. esac
  2981. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2982. $as_echo "$ac_try_echo"; } >&5
  2983. (eval "$ac_try") 2>&5
  2984. ac_status=$?
  2985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2986. test $ac_status = 0; }; }; then
  2987. cross_compiling=no
  2988. else
  2989. if test "$cross_compiling" = maybe; then
  2990. cross_compiling=yes
  2991. else
  2992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2994. as_fn_error $? "cannot run C compiled programs.
  2995. If you meant to cross compile, use \`--host'.
  2996. See \`config.log' for more details" "$LINENO" 5; }
  2997. fi
  2998. fi
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3001. $as_echo "$cross_compiling" >&6; }
  3002. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3003. ac_clean_files=$ac_clean_files_save
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3005. $as_echo_n "checking for suffix of object files... " >&6; }
  3006. if ${ac_cv_objext+:} false; then :
  3007. $as_echo_n "(cached) " >&6
  3008. else
  3009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3010. /* end confdefs.h. */
  3011. int
  3012. main ()
  3013. {
  3014. ;
  3015. return 0;
  3016. }
  3017. _ACEOF
  3018. rm -f conftest.o conftest.obj
  3019. if { { ac_try="$ac_compile"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_compile") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }; then :
  3030. for ac_file in conftest.o conftest.obj conftest.*; do
  3031. test -f "$ac_file" || continue;
  3032. case $ac_file in
  3033. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3034. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3035. break;;
  3036. esac
  3037. done
  3038. else
  3039. $as_echo "$as_me: failed program was:" >&5
  3040. sed 's/^/| /' conftest.$ac_ext >&5
  3041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3043. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3044. See \`config.log' for more details" "$LINENO" 5; }
  3045. fi
  3046. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3047. fi
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3049. $as_echo "$ac_cv_objext" >&6; }
  3050. OBJEXT=$ac_cv_objext
  3051. ac_objext=$OBJEXT
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3053. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3054. if ${ac_cv_c_compiler_gnu+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. int
  3060. main ()
  3061. {
  3062. #ifndef __GNUC__
  3063. choke me
  3064. #endif
  3065. ;
  3066. return 0;
  3067. }
  3068. _ACEOF
  3069. if ac_fn_c_try_compile "$LINENO"; then :
  3070. ac_compiler_gnu=yes
  3071. else
  3072. ac_compiler_gnu=no
  3073. fi
  3074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3075. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3078. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3079. if test $ac_compiler_gnu = yes; then
  3080. GCC=yes
  3081. else
  3082. GCC=
  3083. fi
  3084. ac_test_CFLAGS=${CFLAGS+set}
  3085. ac_save_CFLAGS=$CFLAGS
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3087. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3088. if ${ac_cv_prog_cc_g+:} false; then :
  3089. $as_echo_n "(cached) " >&6
  3090. else
  3091. ac_save_c_werror_flag=$ac_c_werror_flag
  3092. ac_c_werror_flag=yes
  3093. ac_cv_prog_cc_g=no
  3094. CFLAGS="-g"
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. if ac_fn_c_try_compile "$LINENO"; then :
  3105. ac_cv_prog_cc_g=yes
  3106. else
  3107. CFLAGS=""
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. if ac_fn_c_try_compile "$LINENO"; then :
  3118. else
  3119. ac_c_werror_flag=$ac_save_c_werror_flag
  3120. CFLAGS="-g"
  3121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3122. /* end confdefs.h. */
  3123. int
  3124. main ()
  3125. {
  3126. ;
  3127. return 0;
  3128. }
  3129. _ACEOF
  3130. if ac_fn_c_try_compile "$LINENO"; then :
  3131. ac_cv_prog_cc_g=yes
  3132. fi
  3133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3134. fi
  3135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3136. fi
  3137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3138. ac_c_werror_flag=$ac_save_c_werror_flag
  3139. fi
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3141. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3142. if test "$ac_test_CFLAGS" = set; then
  3143. CFLAGS=$ac_save_CFLAGS
  3144. elif test $ac_cv_prog_cc_g = yes; then
  3145. if test "$GCC" = yes; then
  3146. CFLAGS="-g -O2"
  3147. else
  3148. CFLAGS="-g"
  3149. fi
  3150. else
  3151. if test "$GCC" = yes; then
  3152. CFLAGS="-O2"
  3153. else
  3154. CFLAGS=
  3155. fi
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3158. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3159. if ${ac_cv_prog_cc_c89+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. ac_cv_prog_cc_c89=no
  3163. ac_save_CC=$CC
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. #include <stdarg.h>
  3167. #include <stdio.h>
  3168. struct stat;
  3169. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3170. struct buf { int x; };
  3171. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3172. static char *e (p, i)
  3173. char **p;
  3174. int i;
  3175. {
  3176. return p[i];
  3177. }
  3178. static char *f (char * (*g) (char **, int), char **p, ...)
  3179. {
  3180. char *s;
  3181. va_list v;
  3182. va_start (v,p);
  3183. s = g (p, va_arg (v,int));
  3184. va_end (v);
  3185. return s;
  3186. }
  3187. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3188. function prototypes and stuff, but not '\xHH' hex character constants.
  3189. These don't provoke an error unfortunately, instead are silently treated
  3190. as 'x'. The following induces an error, until -std is added to get
  3191. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3192. array size at least. It's necessary to write '\x00'==0 to get something
  3193. that's true only with -std. */
  3194. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3195. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3196. inside strings and character constants. */
  3197. #define FOO(x) 'x'
  3198. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3199. int test (int i, double x);
  3200. struct s1 {int (*f) (int a);};
  3201. struct s2 {int (*f) (double a);};
  3202. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3203. int argc;
  3204. char **argv;
  3205. int
  3206. main ()
  3207. {
  3208. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3214. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3215. do
  3216. CC="$ac_save_CC $ac_arg"
  3217. if ac_fn_c_try_compile "$LINENO"; then :
  3218. ac_cv_prog_cc_c89=$ac_arg
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext
  3221. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3222. done
  3223. rm -f conftest.$ac_ext
  3224. CC=$ac_save_CC
  3225. fi
  3226. # AC_CACHE_VAL
  3227. case "x$ac_cv_prog_cc_c89" in
  3228. x)
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3230. $as_echo "none needed" >&6; } ;;
  3231. xno)
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3233. $as_echo "unsupported" >&6; } ;;
  3234. *)
  3235. CC="$CC $ac_cv_prog_cc_c89"
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3237. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3238. esac
  3239. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3240. fi
  3241. ac_ext=c
  3242. ac_cpp='$CPP $CPPFLAGS'
  3243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3246. depcc="$CC" am_compiler_list=
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3248. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3249. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3253. # We make a subdir and do the tests there. Otherwise we can end up
  3254. # making bogus files that we don't know about and never remove. For
  3255. # instance it was reported that on HP-UX the gcc test will end up
  3256. # making a dummy file named 'D' -- because '-MD' means "put the output
  3257. # in D".
  3258. rm -rf conftest.dir
  3259. mkdir conftest.dir
  3260. # Copy depcomp to subdir because otherwise we won't find it if we're
  3261. # using a relative directory.
  3262. cp "$am_depcomp" conftest.dir
  3263. cd conftest.dir
  3264. # We will build objects and dependencies in a subdirectory because
  3265. # it helps to detect inapplicable dependency modes. For instance
  3266. # both Tru64's cc and ICC support -MD to output dependencies as a
  3267. # side effect of compilation, but ICC will put the dependencies in
  3268. # the current directory while Tru64 will put them in the object
  3269. # directory.
  3270. mkdir sub
  3271. am_cv_CC_dependencies_compiler_type=none
  3272. if test "$am_compiler_list" = ""; then
  3273. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3274. fi
  3275. am__universal=false
  3276. case " $depcc " in #(
  3277. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3278. esac
  3279. for depmode in $am_compiler_list; do
  3280. # Setup a source with many dependencies, because some compilers
  3281. # like to wrap large dependency lists on column 80 (with \), and
  3282. # we should not choose a depcomp mode which is confused by this.
  3283. #
  3284. # We need to recreate these files for each test, as the compiler may
  3285. # overwrite some of them when testing with obscure command lines.
  3286. # This happens at least with the AIX C compiler.
  3287. : > sub/conftest.c
  3288. for i in 1 2 3 4 5 6; do
  3289. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3290. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3291. # Solaris 10 /bin/sh.
  3292. echo '/* dummy */' > sub/conftst$i.h
  3293. done
  3294. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3295. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3296. # mode. It turns out that the SunPro C++ compiler does not properly
  3297. # handle '-M -o', and we need to detect this. Also, some Intel
  3298. # versions had trouble with output in subdirs.
  3299. am__obj=sub/conftest.${OBJEXT-o}
  3300. am__minus_obj="-o $am__obj"
  3301. case $depmode in
  3302. gcc)
  3303. # This depmode causes a compiler race in universal mode.
  3304. test "$am__universal" = false || continue
  3305. ;;
  3306. nosideeffect)
  3307. # After this tag, mechanisms are not by side-effect, so they'll
  3308. # only be used when explicitly requested.
  3309. if test "x$enable_dependency_tracking" = xyes; then
  3310. continue
  3311. else
  3312. break
  3313. fi
  3314. ;;
  3315. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3316. # This compiler won't grok '-c -o', but also, the minuso test has
  3317. # not run yet. These depmodes are late enough in the game, and
  3318. # so weak that their functioning should not be impacted.
  3319. am__obj=conftest.${OBJEXT-o}
  3320. am__minus_obj=
  3321. ;;
  3322. none) break ;;
  3323. esac
  3324. if depmode=$depmode \
  3325. source=sub/conftest.c object=$am__obj \
  3326. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3327. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3328. >/dev/null 2>conftest.err &&
  3329. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3330. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3331. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3332. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3333. # icc doesn't choke on unknown options, it will just issue warnings
  3334. # or remarks (even with -Werror). So we grep stderr for any message
  3335. # that says an option was ignored or not supported.
  3336. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3337. # icc: Command line warning: ignoring option '-M'; no argument required
  3338. # The diagnosis changed in icc 8.0:
  3339. # icc: Command line remark: option '-MP' not supported
  3340. if (grep 'ignoring option' conftest.err ||
  3341. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3342. am_cv_CC_dependencies_compiler_type=$depmode
  3343. break
  3344. fi
  3345. fi
  3346. done
  3347. cd ..
  3348. rm -rf conftest.dir
  3349. else
  3350. am_cv_CC_dependencies_compiler_type=none
  3351. fi
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3354. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3355. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3356. if
  3357. test "x$enable_dependency_tracking" != xno \
  3358. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3359. am__fastdepCC_TRUE=
  3360. am__fastdepCC_FALSE='#'
  3361. else
  3362. am__fastdepCC_TRUE='#'
  3363. am__fastdepCC_FALSE=
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3366. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3367. if ${ac_cv_prog_cc_c99+:} false; then :
  3368. $as_echo_n "(cached) " >&6
  3369. else
  3370. ac_cv_prog_cc_c99=no
  3371. ac_save_CC=$CC
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374. #include <stdarg.h>
  3375. #include <stdbool.h>
  3376. #include <stdlib.h>
  3377. #include <wchar.h>
  3378. #include <stdio.h>
  3379. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3380. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3381. #define showlist(...) puts (#__VA_ARGS__)
  3382. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3383. static void
  3384. test_varargs_macros (void)
  3385. {
  3386. int x = 1234;
  3387. int y = 5678;
  3388. debug ("Flag");
  3389. debug ("X = %d\n", x);
  3390. showlist (The first, second, and third items.);
  3391. report (x>y, "x is %d but y is %d", x, y);
  3392. }
  3393. // Check long long types.
  3394. #define BIG64 18446744073709551615ull
  3395. #define BIG32 4294967295ul
  3396. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3397. #if !BIG_OK
  3398. your preprocessor is broken;
  3399. #endif
  3400. #if BIG_OK
  3401. #else
  3402. your preprocessor is broken;
  3403. #endif
  3404. static long long int bignum = -9223372036854775807LL;
  3405. static unsigned long long int ubignum = BIG64;
  3406. struct incomplete_array
  3407. {
  3408. int datasize;
  3409. double data[];
  3410. };
  3411. struct named_init {
  3412. int number;
  3413. const wchar_t *name;
  3414. double average;
  3415. };
  3416. typedef const char *ccp;
  3417. static inline int
  3418. test_restrict (ccp restrict text)
  3419. {
  3420. // See if C++-style comments work.
  3421. // Iterate through items via the restricted pointer.
  3422. // Also check for declarations in for loops.
  3423. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3424. continue;
  3425. return 0;
  3426. }
  3427. // Check varargs and va_copy.
  3428. static void
  3429. test_varargs (const char *format, ...)
  3430. {
  3431. va_list args;
  3432. va_start (args, format);
  3433. va_list args_copy;
  3434. va_copy (args_copy, args);
  3435. const char *str;
  3436. int number;
  3437. float fnumber;
  3438. while (*format)
  3439. {
  3440. switch (*format++)
  3441. {
  3442. case 's': // string
  3443. str = va_arg (args_copy, const char *);
  3444. break;
  3445. case 'd': // int
  3446. number = va_arg (args_copy, int);
  3447. break;
  3448. case 'f': // float
  3449. fnumber = va_arg (args_copy, double);
  3450. break;
  3451. default:
  3452. break;
  3453. }
  3454. }
  3455. va_end (args_copy);
  3456. va_end (args);
  3457. }
  3458. int
  3459. main ()
  3460. {
  3461. // Check bool.
  3462. _Bool success = false;
  3463. // Check restrict.
  3464. if (test_restrict ("String literal") == 0)
  3465. success = true;
  3466. char *restrict newvar = "Another string";
  3467. // Check varargs.
  3468. test_varargs ("s, d' f .", "string", 65, 34.234);
  3469. test_varargs_macros ();
  3470. // Check flexible array members.
  3471. struct incomplete_array *ia =
  3472. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3473. ia->datasize = 10;
  3474. for (int i = 0; i < ia->datasize; ++i)
  3475. ia->data[i] = i * 1.234;
  3476. // Check named initializers.
  3477. struct named_init ni = {
  3478. .number = 34,
  3479. .name = L"Test wide string",
  3480. .average = 543.34343,
  3481. };
  3482. ni.number = 58;
  3483. int dynamic_array[ni.number];
  3484. dynamic_array[ni.number - 1] = 543;
  3485. // work around unused variable warnings
  3486. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3487. || dynamic_array[ni.number - 1] != 543);
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3493. do
  3494. CC="$ac_save_CC $ac_arg"
  3495. if ac_fn_c_try_compile "$LINENO"; then :
  3496. ac_cv_prog_cc_c99=$ac_arg
  3497. fi
  3498. rm -f core conftest.err conftest.$ac_objext
  3499. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3500. done
  3501. rm -f conftest.$ac_ext
  3502. CC=$ac_save_CC
  3503. fi
  3504. # AC_CACHE_VAL
  3505. case "x$ac_cv_prog_cc_c99" in
  3506. x)
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3508. $as_echo "none needed" >&6; } ;;
  3509. xno)
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3511. $as_echo "unsupported" >&6; } ;;
  3512. *)
  3513. CC="$CC $ac_cv_prog_cc_c99"
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3515. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3516. esac
  3517. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3518. fi
  3519. ac_ext=c
  3520. ac_cpp='$CPP $CPPFLAGS'
  3521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3525. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3526. # On Suns, sometimes $CPP names a directory.
  3527. if test -n "$CPP" && test -d "$CPP"; then
  3528. CPP=
  3529. fi
  3530. if test -z "$CPP"; then
  3531. if ${ac_cv_prog_CPP+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. # Double quotes because CPP needs to be expanded
  3535. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3536. do
  3537. ac_preproc_ok=false
  3538. for ac_c_preproc_warn_flag in '' yes
  3539. do
  3540. # Use a header file that comes with gcc, so configuring glibc
  3541. # with a fresh cross-compiler works.
  3542. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3543. # <limits.h> exists even on freestanding compilers.
  3544. # On the NeXT, cc -E runs the code through the compiler's parser,
  3545. # not just through cpp. "Syntax error" is here to catch this case.
  3546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3547. /* end confdefs.h. */
  3548. #ifdef __STDC__
  3549. # include <limits.h>
  3550. #else
  3551. # include <assert.h>
  3552. #endif
  3553. Syntax error
  3554. _ACEOF
  3555. if ac_fn_c_try_cpp "$LINENO"; then :
  3556. else
  3557. # Broken: fails on valid input.
  3558. continue
  3559. fi
  3560. rm -f conftest.err conftest.i conftest.$ac_ext
  3561. # OK, works on sane cases. Now check whether nonexistent headers
  3562. # can be detected and how.
  3563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3564. /* end confdefs.h. */
  3565. #include <ac_nonexistent.h>
  3566. _ACEOF
  3567. if ac_fn_c_try_cpp "$LINENO"; then :
  3568. # Broken: success on invalid input.
  3569. continue
  3570. else
  3571. # Passes both tests.
  3572. ac_preproc_ok=:
  3573. break
  3574. fi
  3575. rm -f conftest.err conftest.i conftest.$ac_ext
  3576. done
  3577. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3578. rm -f conftest.i conftest.err conftest.$ac_ext
  3579. if $ac_preproc_ok; then :
  3580. break
  3581. fi
  3582. done
  3583. ac_cv_prog_CPP=$CPP
  3584. fi
  3585. CPP=$ac_cv_prog_CPP
  3586. else
  3587. ac_cv_prog_CPP=$CPP
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3590. $as_echo "$CPP" >&6; }
  3591. ac_preproc_ok=false
  3592. for ac_c_preproc_warn_flag in '' yes
  3593. do
  3594. # Use a header file that comes with gcc, so configuring glibc
  3595. # with a fresh cross-compiler works.
  3596. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3597. # <limits.h> exists even on freestanding compilers.
  3598. # On the NeXT, cc -E runs the code through the compiler's parser,
  3599. # not just through cpp. "Syntax error" is here to catch this case.
  3600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3601. /* end confdefs.h. */
  3602. #ifdef __STDC__
  3603. # include <limits.h>
  3604. #else
  3605. # include <assert.h>
  3606. #endif
  3607. Syntax error
  3608. _ACEOF
  3609. if ac_fn_c_try_cpp "$LINENO"; then :
  3610. else
  3611. # Broken: fails on valid input.
  3612. continue
  3613. fi
  3614. rm -f conftest.err conftest.i conftest.$ac_ext
  3615. # OK, works on sane cases. Now check whether nonexistent headers
  3616. # can be detected and how.
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. #include <ac_nonexistent.h>
  3620. _ACEOF
  3621. if ac_fn_c_try_cpp "$LINENO"; then :
  3622. # Broken: success on invalid input.
  3623. continue
  3624. else
  3625. # Passes both tests.
  3626. ac_preproc_ok=:
  3627. break
  3628. fi
  3629. rm -f conftest.err conftest.i conftest.$ac_ext
  3630. done
  3631. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3632. rm -f conftest.i conftest.err conftest.$ac_ext
  3633. if $ac_preproc_ok; then :
  3634. else
  3635. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3636. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3637. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3638. See \`config.log' for more details" "$LINENO" 5; }
  3639. fi
  3640. ac_ext=c
  3641. ac_cpp='$CPP $CPPFLAGS'
  3642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3646. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3647. if ${ac_cv_path_GREP+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -z "$GREP"; then
  3651. ac_path_GREP_found=false
  3652. # Loop through the user's path and test for each of PROGNAME-LIST
  3653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3654. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3655. do
  3656. IFS=$as_save_IFS
  3657. test -z "$as_dir" && as_dir=.
  3658. for ac_prog in grep ggrep; do
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3661. as_fn_executable_p "$ac_path_GREP" || continue
  3662. # Check for GNU ac_path_GREP and select it if it is found.
  3663. # Check for GNU $ac_path_GREP
  3664. case `"$ac_path_GREP" --version 2>&1` in
  3665. *GNU*)
  3666. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3667. *)
  3668. ac_count=0
  3669. $as_echo_n 0123456789 >"conftest.in"
  3670. while :
  3671. do
  3672. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3673. mv "conftest.tmp" "conftest.in"
  3674. cp "conftest.in" "conftest.nl"
  3675. $as_echo 'GREP' >> "conftest.nl"
  3676. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3677. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3678. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3679. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3680. # Best one so far, save it but keep looking for a better one
  3681. ac_cv_path_GREP="$ac_path_GREP"
  3682. ac_path_GREP_max=$ac_count
  3683. fi
  3684. # 10*(2^10) chars as input seems more than enough
  3685. test $ac_count -gt 10 && break
  3686. done
  3687. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3688. esac
  3689. $ac_path_GREP_found && break 3
  3690. done
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. if test -z "$ac_cv_path_GREP"; then
  3695. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3696. fi
  3697. else
  3698. ac_cv_path_GREP=$GREP
  3699. fi
  3700. fi
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3702. $as_echo "$ac_cv_path_GREP" >&6; }
  3703. GREP="$ac_cv_path_GREP"
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3705. $as_echo_n "checking for egrep... " >&6; }
  3706. if ${ac_cv_path_EGREP+:} false; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3710. then ac_cv_path_EGREP="$GREP -E"
  3711. else
  3712. if test -z "$EGREP"; then
  3713. ac_path_EGREP_found=false
  3714. # Loop through the user's path and test for each of PROGNAME-LIST
  3715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3716. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3717. do
  3718. IFS=$as_save_IFS
  3719. test -z "$as_dir" && as_dir=.
  3720. for ac_prog in egrep; do
  3721. for ac_exec_ext in '' $ac_executable_extensions; do
  3722. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3723. as_fn_executable_p "$ac_path_EGREP" || continue
  3724. # Check for GNU ac_path_EGREP and select it if it is found.
  3725. # Check for GNU $ac_path_EGREP
  3726. case `"$ac_path_EGREP" --version 2>&1` in
  3727. *GNU*)
  3728. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3729. *)
  3730. ac_count=0
  3731. $as_echo_n 0123456789 >"conftest.in"
  3732. while :
  3733. do
  3734. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3735. mv "conftest.tmp" "conftest.in"
  3736. cp "conftest.in" "conftest.nl"
  3737. $as_echo 'EGREP' >> "conftest.nl"
  3738. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3739. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3740. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3741. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3742. # Best one so far, save it but keep looking for a better one
  3743. ac_cv_path_EGREP="$ac_path_EGREP"
  3744. ac_path_EGREP_max=$ac_count
  3745. fi
  3746. # 10*(2^10) chars as input seems more than enough
  3747. test $ac_count -gt 10 && break
  3748. done
  3749. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3750. esac
  3751. $ac_path_EGREP_found && break 3
  3752. done
  3753. done
  3754. done
  3755. IFS=$as_save_IFS
  3756. if test -z "$ac_cv_path_EGREP"; then
  3757. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3758. fi
  3759. else
  3760. ac_cv_path_EGREP=$EGREP
  3761. fi
  3762. fi
  3763. fi
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3765. $as_echo "$ac_cv_path_EGREP" >&6; }
  3766. EGREP="$ac_cv_path_EGREP"
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3768. $as_echo_n "checking for ANSI C header files... " >&6; }
  3769. if ${ac_cv_header_stdc+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3773. /* end confdefs.h. */
  3774. #include <stdlib.h>
  3775. #include <stdarg.h>
  3776. #include <string.h>
  3777. #include <float.h>
  3778. int
  3779. main ()
  3780. {
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. if ac_fn_c_try_compile "$LINENO"; then :
  3786. ac_cv_header_stdc=yes
  3787. else
  3788. ac_cv_header_stdc=no
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. if test $ac_cv_header_stdc = yes; then
  3792. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3794. /* end confdefs.h. */
  3795. #include <string.h>
  3796. _ACEOF
  3797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3798. $EGREP "memchr" >/dev/null 2>&1; then :
  3799. else
  3800. ac_cv_header_stdc=no
  3801. fi
  3802. rm -f conftest*
  3803. fi
  3804. if test $ac_cv_header_stdc = yes; then
  3805. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3807. /* end confdefs.h. */
  3808. #include <stdlib.h>
  3809. _ACEOF
  3810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3811. $EGREP "free" >/dev/null 2>&1; then :
  3812. else
  3813. ac_cv_header_stdc=no
  3814. fi
  3815. rm -f conftest*
  3816. fi
  3817. if test $ac_cv_header_stdc = yes; then
  3818. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3819. if test "$cross_compiling" = yes; then :
  3820. :
  3821. else
  3822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3823. /* end confdefs.h. */
  3824. #include <ctype.h>
  3825. #include <stdlib.h>
  3826. #if ((' ' & 0x0FF) == 0x020)
  3827. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3828. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3829. #else
  3830. # define ISLOWER(c) \
  3831. (('a' <= (c) && (c) <= 'i') \
  3832. || ('j' <= (c) && (c) <= 'r') \
  3833. || ('s' <= (c) && (c) <= 'z'))
  3834. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3835. #endif
  3836. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3837. int
  3838. main ()
  3839. {
  3840. int i;
  3841. for (i = 0; i < 256; i++)
  3842. if (XOR (islower (i), ISLOWER (i))
  3843. || toupper (i) != TOUPPER (i))
  3844. return 2;
  3845. return 0;
  3846. }
  3847. _ACEOF
  3848. if ac_fn_c_try_run "$LINENO"; then :
  3849. else
  3850. ac_cv_header_stdc=no
  3851. fi
  3852. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3853. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3854. fi
  3855. fi
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3858. $as_echo "$ac_cv_header_stdc" >&6; }
  3859. if test $ac_cv_header_stdc = yes; then
  3860. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3861. fi
  3862. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3863. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3864. inttypes.h stdint.h unistd.h
  3865. do :
  3866. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3867. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3868. "
  3869. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3870. cat >>confdefs.h <<_ACEOF
  3871. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3872. _ACEOF
  3873. fi
  3874. done
  3875. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3876. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3877. CLANGCC="yes"
  3878. else
  3879. CLANGCC="no"
  3880. fi
  3881. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3882. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3883. INTELCC="yes"
  3884. else
  3885. INTELCC="no"
  3886. fi
  3887. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3888. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3889. SUNCC="yes"
  3890. else
  3891. SUNCC="no"
  3892. fi
  3893. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3894. if test -n "$ac_tool_prefix"; then
  3895. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3896. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3898. $as_echo_n "checking for $ac_word... " >&6; }
  3899. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. case $PKG_CONFIG in
  3903. [\\/]* | ?:[\\/]*)
  3904. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3905. ;;
  3906. *)
  3907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3908. for as_dir in $PATH
  3909. do
  3910. IFS=$as_save_IFS
  3911. test -z "$as_dir" && as_dir=.
  3912. for ac_exec_ext in '' $ac_executable_extensions; do
  3913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3914. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3916. break 2
  3917. fi
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. ;;
  3922. esac
  3923. fi
  3924. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3925. if test -n "$PKG_CONFIG"; then
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3927. $as_echo "$PKG_CONFIG" >&6; }
  3928. else
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3930. $as_echo "no" >&6; }
  3931. fi
  3932. fi
  3933. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3934. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3935. # Extract the first word of "pkg-config", so it can be a program name with args.
  3936. set dummy pkg-config; ac_word=$2
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3938. $as_echo_n "checking for $ac_word... " >&6; }
  3939. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3940. $as_echo_n "(cached) " >&6
  3941. else
  3942. case $ac_pt_PKG_CONFIG in
  3943. [\\/]* | ?:[\\/]*)
  3944. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3945. ;;
  3946. *)
  3947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3948. for as_dir in $PATH
  3949. do
  3950. IFS=$as_save_IFS
  3951. test -z "$as_dir" && as_dir=.
  3952. for ac_exec_ext in '' $ac_executable_extensions; do
  3953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3954. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3956. break 2
  3957. fi
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. ;;
  3962. esac
  3963. fi
  3964. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3965. if test -n "$ac_pt_PKG_CONFIG"; then
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3967. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3968. else
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3970. $as_echo "no" >&6; }
  3971. fi
  3972. if test "x$ac_pt_PKG_CONFIG" = x; then
  3973. PKG_CONFIG=""
  3974. else
  3975. case $cross_compiling:$ac_tool_warned in
  3976. yes:)
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3979. ac_tool_warned=yes ;;
  3980. esac
  3981. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3982. fi
  3983. else
  3984. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3985. fi
  3986. fi
  3987. if test -n "$PKG_CONFIG"; then
  3988. _pkg_min_version=0.9.0
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3990. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3991. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3993. $as_echo "yes" >&6; }
  3994. else
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. PKG_CONFIG=""
  3998. fi
  3999. fi
  4000. # Make sure we can run config.sub.
  4001. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4002. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4004. $as_echo_n "checking build system type... " >&6; }
  4005. if ${ac_cv_build+:} false; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. ac_build_alias=$build_alias
  4009. test "x$ac_build_alias" = x &&
  4010. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4011. test "x$ac_build_alias" = x &&
  4012. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4013. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4014. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4015. fi
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4017. $as_echo "$ac_cv_build" >&6; }
  4018. case $ac_cv_build in
  4019. *-*-*) ;;
  4020. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4021. esac
  4022. build=$ac_cv_build
  4023. ac_save_IFS=$IFS; IFS='-'
  4024. set x $ac_cv_build
  4025. shift
  4026. build_cpu=$1
  4027. build_vendor=$2
  4028. shift; shift
  4029. # Remember, the first character of IFS is used to create $*,
  4030. # except with old shells:
  4031. build_os=$*
  4032. IFS=$ac_save_IFS
  4033. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4035. $as_echo_n "checking host system type... " >&6; }
  4036. if ${ac_cv_host+:} false; then :
  4037. $as_echo_n "(cached) " >&6
  4038. else
  4039. if test "x$host_alias" = x; then
  4040. ac_cv_host=$ac_cv_build
  4041. else
  4042. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4043. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4044. fi
  4045. fi
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4047. $as_echo "$ac_cv_host" >&6; }
  4048. case $ac_cv_host in
  4049. *-*-*) ;;
  4050. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4051. esac
  4052. host=$ac_cv_host
  4053. ac_save_IFS=$IFS; IFS='-'
  4054. set x $ac_cv_host
  4055. shift
  4056. host_cpu=$1
  4057. host_vendor=$2
  4058. shift; shift
  4059. # Remember, the first character of IFS is used to create $*,
  4060. # except with old shells:
  4061. host_os=$*
  4062. IFS=$ac_save_IFS
  4063. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4065. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4066. if ${ac_cv_path_SED+:} false; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4070. for ac_i in 1 2 3 4 5 6 7; do
  4071. ac_script="$ac_script$as_nl$ac_script"
  4072. done
  4073. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4074. { ac_script=; unset ac_script;}
  4075. if test -z "$SED"; then
  4076. ac_path_SED_found=false
  4077. # Loop through the user's path and test for each of PROGNAME-LIST
  4078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4079. for as_dir in $PATH
  4080. do
  4081. IFS=$as_save_IFS
  4082. test -z "$as_dir" && as_dir=.
  4083. for ac_prog in sed gsed; do
  4084. for ac_exec_ext in '' $ac_executable_extensions; do
  4085. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4086. as_fn_executable_p "$ac_path_SED" || continue
  4087. # Check for GNU ac_path_SED and select it if it is found.
  4088. # Check for GNU $ac_path_SED
  4089. case `"$ac_path_SED" --version 2>&1` in
  4090. *GNU*)
  4091. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4092. *)
  4093. ac_count=0
  4094. $as_echo_n 0123456789 >"conftest.in"
  4095. while :
  4096. do
  4097. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4098. mv "conftest.tmp" "conftest.in"
  4099. cp "conftest.in" "conftest.nl"
  4100. $as_echo '' >> "conftest.nl"
  4101. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4102. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4103. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4104. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4105. # Best one so far, save it but keep looking for a better one
  4106. ac_cv_path_SED="$ac_path_SED"
  4107. ac_path_SED_max=$ac_count
  4108. fi
  4109. # 10*(2^10) chars as input seems more than enough
  4110. test $ac_count -gt 10 && break
  4111. done
  4112. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4113. esac
  4114. $ac_path_SED_found && break 3
  4115. done
  4116. done
  4117. done
  4118. IFS=$as_save_IFS
  4119. if test -z "$ac_cv_path_SED"; then
  4120. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4121. fi
  4122. else
  4123. ac_cv_path_SED=$SED
  4124. fi
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4127. $as_echo "$ac_cv_path_SED" >&6; }
  4128. SED="$ac_cv_path_SED"
  4129. rm -f conftest.sed
  4130. # Check whether --enable-selective-werror was given.
  4131. if test "${enable_selective_werror+set}" = set; then :
  4132. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4133. else
  4134. SELECTIVE_WERROR=yes
  4135. fi
  4136. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4137. if test "x$SUNCC" = "xyes"; then
  4138. BASE_CFLAGS="-v"
  4139. else
  4140. BASE_CFLAGS=""
  4141. fi
  4142. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4143. xorg_testset_save_CFLAGS="$CFLAGS"
  4144. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4145. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4147. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4148. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. int i;
  4154. _ACEOF
  4155. if ac_fn_c_try_compile "$LINENO"; then :
  4156. xorg_cv_cc_flag_unknown_warning_option=yes
  4157. else
  4158. xorg_cv_cc_flag_unknown_warning_option=no
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4161. fi
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4163. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4164. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4165. CFLAGS="$xorg_testset_save_CFLAGS"
  4166. fi
  4167. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4168. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4169. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4170. fi
  4171. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4173. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4174. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4178. /* end confdefs.h. */
  4179. int i;
  4180. _ACEOF
  4181. if ac_fn_c_try_compile "$LINENO"; then :
  4182. xorg_cv_cc_flag_unused_command_line_argument=yes
  4183. else
  4184. xorg_cv_cc_flag_unused_command_line_argument=no
  4185. fi
  4186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4189. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4190. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4191. CFLAGS="$xorg_testset_save_CFLAGS"
  4192. fi
  4193. found="no"
  4194. if test $found = "no" ; then
  4195. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4196. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4197. fi
  4198. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4199. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4200. fi
  4201. CFLAGS="$CFLAGS -Wall"
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4203. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4204. cacheid=xorg_cv_cc_flag__Wall
  4205. if eval \${$cacheid+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4209. /* end confdefs.h. */
  4210. int i;
  4211. int
  4212. main ()
  4213. {
  4214. ;
  4215. return 0;
  4216. }
  4217. _ACEOF
  4218. if ac_fn_c_try_link "$LINENO"; then :
  4219. eval $cacheid=yes
  4220. else
  4221. eval $cacheid=no
  4222. fi
  4223. rm -f core conftest.err conftest.$ac_objext \
  4224. conftest$ac_exeext conftest.$ac_ext
  4225. fi
  4226. CFLAGS="$xorg_testset_save_CFLAGS"
  4227. eval supported=\$$cacheid
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4229. $as_echo "$supported" >&6; }
  4230. if test "$supported" = "yes" ; then
  4231. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4232. found="yes"
  4233. fi
  4234. fi
  4235. xorg_testset_save_CFLAGS="$CFLAGS"
  4236. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4237. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4239. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4240. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. int i;
  4246. _ACEOF
  4247. if ac_fn_c_try_compile "$LINENO"; then :
  4248. xorg_cv_cc_flag_unknown_warning_option=yes
  4249. else
  4250. xorg_cv_cc_flag_unknown_warning_option=no
  4251. fi
  4252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4255. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4256. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4257. CFLAGS="$xorg_testset_save_CFLAGS"
  4258. fi
  4259. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4260. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4261. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4262. fi
  4263. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4265. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4266. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4270. /* end confdefs.h. */
  4271. int i;
  4272. _ACEOF
  4273. if ac_fn_c_try_compile "$LINENO"; then :
  4274. xorg_cv_cc_flag_unused_command_line_argument=yes
  4275. else
  4276. xorg_cv_cc_flag_unused_command_line_argument=no
  4277. fi
  4278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4279. fi
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4281. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4282. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4283. CFLAGS="$xorg_testset_save_CFLAGS"
  4284. fi
  4285. found="no"
  4286. if test $found = "no" ; then
  4287. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4288. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4289. fi
  4290. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4291. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4292. fi
  4293. CFLAGS="$CFLAGS -Wpointer-arith"
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4295. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4296. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4297. if eval \${$cacheid+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. int i;
  4303. int
  4304. main ()
  4305. {
  4306. ;
  4307. return 0;
  4308. }
  4309. _ACEOF
  4310. if ac_fn_c_try_link "$LINENO"; then :
  4311. eval $cacheid=yes
  4312. else
  4313. eval $cacheid=no
  4314. fi
  4315. rm -f core conftest.err conftest.$ac_objext \
  4316. conftest$ac_exeext conftest.$ac_ext
  4317. fi
  4318. CFLAGS="$xorg_testset_save_CFLAGS"
  4319. eval supported=\$$cacheid
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4321. $as_echo "$supported" >&6; }
  4322. if test "$supported" = "yes" ; then
  4323. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4324. found="yes"
  4325. fi
  4326. fi
  4327. xorg_testset_save_CFLAGS="$CFLAGS"
  4328. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4329. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4331. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4332. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4336. /* end confdefs.h. */
  4337. int i;
  4338. _ACEOF
  4339. if ac_fn_c_try_compile "$LINENO"; then :
  4340. xorg_cv_cc_flag_unknown_warning_option=yes
  4341. else
  4342. xorg_cv_cc_flag_unknown_warning_option=no
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4345. fi
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4347. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4348. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4349. CFLAGS="$xorg_testset_save_CFLAGS"
  4350. fi
  4351. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4352. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4354. fi
  4355. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4357. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4358. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4362. /* end confdefs.h. */
  4363. int i;
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"; then :
  4366. xorg_cv_cc_flag_unused_command_line_argument=yes
  4367. else
  4368. xorg_cv_cc_flag_unused_command_line_argument=no
  4369. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4373. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4374. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4375. CFLAGS="$xorg_testset_save_CFLAGS"
  4376. fi
  4377. found="no"
  4378. if test $found = "no" ; then
  4379. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4380. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4381. fi
  4382. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4383. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4384. fi
  4385. CFLAGS="$CFLAGS -Wmissing-declarations"
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4387. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4388. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4389. if eval \${$cacheid+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4393. /* end confdefs.h. */
  4394. int i;
  4395. int
  4396. main ()
  4397. {
  4398. ;
  4399. return 0;
  4400. }
  4401. _ACEOF
  4402. if ac_fn_c_try_link "$LINENO"; then :
  4403. eval $cacheid=yes
  4404. else
  4405. eval $cacheid=no
  4406. fi
  4407. rm -f core conftest.err conftest.$ac_objext \
  4408. conftest$ac_exeext conftest.$ac_ext
  4409. fi
  4410. CFLAGS="$xorg_testset_save_CFLAGS"
  4411. eval supported=\$$cacheid
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4413. $as_echo "$supported" >&6; }
  4414. if test "$supported" = "yes" ; then
  4415. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4416. found="yes"
  4417. fi
  4418. fi
  4419. xorg_testset_save_CFLAGS="$CFLAGS"
  4420. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4421. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4423. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4424. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4428. /* end confdefs.h. */
  4429. int i;
  4430. _ACEOF
  4431. if ac_fn_c_try_compile "$LINENO"; then :
  4432. xorg_cv_cc_flag_unknown_warning_option=yes
  4433. else
  4434. xorg_cv_cc_flag_unknown_warning_option=no
  4435. fi
  4436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4439. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4440. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4441. CFLAGS="$xorg_testset_save_CFLAGS"
  4442. fi
  4443. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4444. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4445. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4446. fi
  4447. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4449. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4450. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4451. $as_echo_n "(cached) " >&6
  4452. else
  4453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4454. /* end confdefs.h. */
  4455. int i;
  4456. _ACEOF
  4457. if ac_fn_c_try_compile "$LINENO"; then :
  4458. xorg_cv_cc_flag_unused_command_line_argument=yes
  4459. else
  4460. xorg_cv_cc_flag_unused_command_line_argument=no
  4461. fi
  4462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4463. fi
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4465. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4466. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4467. CFLAGS="$xorg_testset_save_CFLAGS"
  4468. fi
  4469. found="no"
  4470. if test $found = "no" ; then
  4471. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4472. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4473. fi
  4474. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4475. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4476. fi
  4477. CFLAGS="$CFLAGS -Wformat=2"
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4479. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4480. cacheid=xorg_cv_cc_flag__Wformat_2
  4481. if eval \${$cacheid+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4485. /* end confdefs.h. */
  4486. int i;
  4487. int
  4488. main ()
  4489. {
  4490. ;
  4491. return 0;
  4492. }
  4493. _ACEOF
  4494. if ac_fn_c_try_link "$LINENO"; then :
  4495. eval $cacheid=yes
  4496. else
  4497. eval $cacheid=no
  4498. fi
  4499. rm -f core conftest.err conftest.$ac_objext \
  4500. conftest$ac_exeext conftest.$ac_ext
  4501. fi
  4502. CFLAGS="$xorg_testset_save_CFLAGS"
  4503. eval supported=\$$cacheid
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4505. $as_echo "$supported" >&6; }
  4506. if test "$supported" = "yes" ; then
  4507. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4508. found="yes"
  4509. fi
  4510. fi
  4511. if test $found = "no" ; then
  4512. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4513. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4514. fi
  4515. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4516. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4517. fi
  4518. CFLAGS="$CFLAGS -Wformat"
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4520. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4521. cacheid=xorg_cv_cc_flag__Wformat
  4522. if eval \${$cacheid+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. int i;
  4528. int
  4529. main ()
  4530. {
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. if ac_fn_c_try_link "$LINENO"; then :
  4536. eval $cacheid=yes
  4537. else
  4538. eval $cacheid=no
  4539. fi
  4540. rm -f core conftest.err conftest.$ac_objext \
  4541. conftest$ac_exeext conftest.$ac_ext
  4542. fi
  4543. CFLAGS="$xorg_testset_save_CFLAGS"
  4544. eval supported=\$$cacheid
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4546. $as_echo "$supported" >&6; }
  4547. if test "$supported" = "yes" ; then
  4548. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4549. found="yes"
  4550. fi
  4551. fi
  4552. xorg_testset_save_CFLAGS="$CFLAGS"
  4553. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4554. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4556. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4557. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4561. /* end confdefs.h. */
  4562. int i;
  4563. _ACEOF
  4564. if ac_fn_c_try_compile "$LINENO"; then :
  4565. xorg_cv_cc_flag_unknown_warning_option=yes
  4566. else
  4567. xorg_cv_cc_flag_unknown_warning_option=no
  4568. fi
  4569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4570. fi
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4572. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4573. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4574. CFLAGS="$xorg_testset_save_CFLAGS"
  4575. fi
  4576. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4577. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4578. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4579. fi
  4580. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4582. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4583. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4587. /* end confdefs.h. */
  4588. int i;
  4589. _ACEOF
  4590. if ac_fn_c_try_compile "$LINENO"; then :
  4591. xorg_cv_cc_flag_unused_command_line_argument=yes
  4592. else
  4593. xorg_cv_cc_flag_unused_command_line_argument=no
  4594. fi
  4595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4596. fi
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4598. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4599. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4600. CFLAGS="$xorg_testset_save_CFLAGS"
  4601. fi
  4602. found="no"
  4603. if test $found = "no" ; then
  4604. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4605. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4606. fi
  4607. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4608. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4609. fi
  4610. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4612. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4613. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4614. if eval \${$cacheid+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4618. /* end confdefs.h. */
  4619. int i;
  4620. int
  4621. main ()
  4622. {
  4623. ;
  4624. return 0;
  4625. }
  4626. _ACEOF
  4627. if ac_fn_c_try_link "$LINENO"; then :
  4628. eval $cacheid=yes
  4629. else
  4630. eval $cacheid=no
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext \
  4633. conftest$ac_exeext conftest.$ac_ext
  4634. fi
  4635. CFLAGS="$xorg_testset_save_CFLAGS"
  4636. eval supported=\$$cacheid
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4638. $as_echo "$supported" >&6; }
  4639. if test "$supported" = "yes" ; then
  4640. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4641. found="yes"
  4642. fi
  4643. fi
  4644. xorg_testset_save_CFLAGS="$CFLAGS"
  4645. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4646. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4648. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4649. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4653. /* end confdefs.h. */
  4654. int i;
  4655. _ACEOF
  4656. if ac_fn_c_try_compile "$LINENO"; then :
  4657. xorg_cv_cc_flag_unknown_warning_option=yes
  4658. else
  4659. xorg_cv_cc_flag_unknown_warning_option=no
  4660. fi
  4661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4662. fi
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4664. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4665. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4666. CFLAGS="$xorg_testset_save_CFLAGS"
  4667. fi
  4668. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4669. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4670. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4671. fi
  4672. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4674. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4675. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4679. /* end confdefs.h. */
  4680. int i;
  4681. _ACEOF
  4682. if ac_fn_c_try_compile "$LINENO"; then :
  4683. xorg_cv_cc_flag_unused_command_line_argument=yes
  4684. else
  4685. xorg_cv_cc_flag_unused_command_line_argument=no
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4690. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4691. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4692. CFLAGS="$xorg_testset_save_CFLAGS"
  4693. fi
  4694. found="no"
  4695. if test $found = "no" ; then
  4696. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4697. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4698. fi
  4699. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4700. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4701. fi
  4702. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4704. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4705. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4706. if eval \${$cacheid+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. int i;
  4712. int
  4713. main ()
  4714. {
  4715. ;
  4716. return 0;
  4717. }
  4718. _ACEOF
  4719. if ac_fn_c_try_link "$LINENO"; then :
  4720. eval $cacheid=yes
  4721. else
  4722. eval $cacheid=no
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext \
  4725. conftest$ac_exeext conftest.$ac_ext
  4726. fi
  4727. CFLAGS="$xorg_testset_save_CFLAGS"
  4728. eval supported=\$$cacheid
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4730. $as_echo "$supported" >&6; }
  4731. if test "$supported" = "yes" ; then
  4732. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4733. found="yes"
  4734. fi
  4735. fi
  4736. xorg_testset_save_CFLAGS="$CFLAGS"
  4737. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4738. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4740. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4741. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4742. $as_echo_n "(cached) " >&6
  4743. else
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h. */
  4746. int i;
  4747. _ACEOF
  4748. if ac_fn_c_try_compile "$LINENO"; then :
  4749. xorg_cv_cc_flag_unknown_warning_option=yes
  4750. else
  4751. xorg_cv_cc_flag_unknown_warning_option=no
  4752. fi
  4753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4756. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4757. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4758. CFLAGS="$xorg_testset_save_CFLAGS"
  4759. fi
  4760. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4761. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4762. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4763. fi
  4764. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4766. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4767. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. int i;
  4773. _ACEOF
  4774. if ac_fn_c_try_compile "$LINENO"; then :
  4775. xorg_cv_cc_flag_unused_command_line_argument=yes
  4776. else
  4777. xorg_cv_cc_flag_unused_command_line_argument=no
  4778. fi
  4779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4780. fi
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4782. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4783. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4784. CFLAGS="$xorg_testset_save_CFLAGS"
  4785. fi
  4786. found="no"
  4787. if test $found = "no" ; then
  4788. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4789. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4790. fi
  4791. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4792. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4793. fi
  4794. CFLAGS="$CFLAGS -Wnested-externs"
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4796. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4797. cacheid=xorg_cv_cc_flag__Wnested_externs
  4798. if eval \${$cacheid+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4802. /* end confdefs.h. */
  4803. int i;
  4804. int
  4805. main ()
  4806. {
  4807. ;
  4808. return 0;
  4809. }
  4810. _ACEOF
  4811. if ac_fn_c_try_link "$LINENO"; then :
  4812. eval $cacheid=yes
  4813. else
  4814. eval $cacheid=no
  4815. fi
  4816. rm -f core conftest.err conftest.$ac_objext \
  4817. conftest$ac_exeext conftest.$ac_ext
  4818. fi
  4819. CFLAGS="$xorg_testset_save_CFLAGS"
  4820. eval supported=\$$cacheid
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4822. $as_echo "$supported" >&6; }
  4823. if test "$supported" = "yes" ; then
  4824. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4825. found="yes"
  4826. fi
  4827. fi
  4828. xorg_testset_save_CFLAGS="$CFLAGS"
  4829. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4830. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4832. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4833. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4837. /* end confdefs.h. */
  4838. int i;
  4839. _ACEOF
  4840. if ac_fn_c_try_compile "$LINENO"; then :
  4841. xorg_cv_cc_flag_unknown_warning_option=yes
  4842. else
  4843. xorg_cv_cc_flag_unknown_warning_option=no
  4844. fi
  4845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4848. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4849. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4850. CFLAGS="$xorg_testset_save_CFLAGS"
  4851. fi
  4852. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4853. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4854. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4855. fi
  4856. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4858. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4859. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4860. $as_echo_n "(cached) " >&6
  4861. else
  4862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4863. /* end confdefs.h. */
  4864. int i;
  4865. _ACEOF
  4866. if ac_fn_c_try_compile "$LINENO"; then :
  4867. xorg_cv_cc_flag_unused_command_line_argument=yes
  4868. else
  4869. xorg_cv_cc_flag_unused_command_line_argument=no
  4870. fi
  4871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4872. fi
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4874. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4875. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4876. CFLAGS="$xorg_testset_save_CFLAGS"
  4877. fi
  4878. found="no"
  4879. if test $found = "no" ; then
  4880. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4881. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4882. fi
  4883. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4884. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4885. fi
  4886. CFLAGS="$CFLAGS -Wbad-function-cast"
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4888. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4889. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4890. if eval \${$cacheid+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h. */
  4895. int i;
  4896. int
  4897. main ()
  4898. {
  4899. ;
  4900. return 0;
  4901. }
  4902. _ACEOF
  4903. if ac_fn_c_try_link "$LINENO"; then :
  4904. eval $cacheid=yes
  4905. else
  4906. eval $cacheid=no
  4907. fi
  4908. rm -f core conftest.err conftest.$ac_objext \
  4909. conftest$ac_exeext conftest.$ac_ext
  4910. fi
  4911. CFLAGS="$xorg_testset_save_CFLAGS"
  4912. eval supported=\$$cacheid
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4914. $as_echo "$supported" >&6; }
  4915. if test "$supported" = "yes" ; then
  4916. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4917. found="yes"
  4918. fi
  4919. fi
  4920. xorg_testset_save_CFLAGS="$CFLAGS"
  4921. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4922. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4924. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4925. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4929. /* end confdefs.h. */
  4930. int i;
  4931. _ACEOF
  4932. if ac_fn_c_try_compile "$LINENO"; then :
  4933. xorg_cv_cc_flag_unknown_warning_option=yes
  4934. else
  4935. xorg_cv_cc_flag_unknown_warning_option=no
  4936. fi
  4937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4938. fi
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4940. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4941. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4942. CFLAGS="$xorg_testset_save_CFLAGS"
  4943. fi
  4944. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4945. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4946. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4947. fi
  4948. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4950. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4951. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end confdefs.h. */
  4956. int i;
  4957. _ACEOF
  4958. if ac_fn_c_try_compile "$LINENO"; then :
  4959. xorg_cv_cc_flag_unused_command_line_argument=yes
  4960. else
  4961. xorg_cv_cc_flag_unused_command_line_argument=no
  4962. fi
  4963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4964. fi
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4966. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4967. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4968. CFLAGS="$xorg_testset_save_CFLAGS"
  4969. fi
  4970. found="no"
  4971. if test $found = "no" ; then
  4972. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4973. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4974. fi
  4975. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4976. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4977. fi
  4978. CFLAGS="$CFLAGS -Wold-style-definition"
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4980. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4981. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4982. if eval \${$cacheid+:} false; then :
  4983. $as_echo_n "(cached) " >&6
  4984. else
  4985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4986. /* end confdefs.h. */
  4987. int i;
  4988. int
  4989. main ()
  4990. {
  4991. ;
  4992. return 0;
  4993. }
  4994. _ACEOF
  4995. if ac_fn_c_try_link "$LINENO"; then :
  4996. eval $cacheid=yes
  4997. else
  4998. eval $cacheid=no
  4999. fi
  5000. rm -f core conftest.err conftest.$ac_objext \
  5001. conftest$ac_exeext conftest.$ac_ext
  5002. fi
  5003. CFLAGS="$xorg_testset_save_CFLAGS"
  5004. eval supported=\$$cacheid
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5006. $as_echo "$supported" >&6; }
  5007. if test "$supported" = "yes" ; then
  5008. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5009. found="yes"
  5010. fi
  5011. fi
  5012. xorg_testset_save_CFLAGS="$CFLAGS"
  5013. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5014. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5016. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5017. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5021. /* end confdefs.h. */
  5022. int i;
  5023. _ACEOF
  5024. if ac_fn_c_try_compile "$LINENO"; then :
  5025. xorg_cv_cc_flag_unknown_warning_option=yes
  5026. else
  5027. xorg_cv_cc_flag_unknown_warning_option=no
  5028. fi
  5029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5030. fi
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5032. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5033. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5034. CFLAGS="$xorg_testset_save_CFLAGS"
  5035. fi
  5036. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5037. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5038. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5039. fi
  5040. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5042. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5043. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5047. /* end confdefs.h. */
  5048. int i;
  5049. _ACEOF
  5050. if ac_fn_c_try_compile "$LINENO"; then :
  5051. xorg_cv_cc_flag_unused_command_line_argument=yes
  5052. else
  5053. xorg_cv_cc_flag_unused_command_line_argument=no
  5054. fi
  5055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5056. fi
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5058. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5059. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5060. CFLAGS="$xorg_testset_save_CFLAGS"
  5061. fi
  5062. found="no"
  5063. if test $found = "no" ; then
  5064. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5065. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5066. fi
  5067. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5068. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5069. fi
  5070. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5072. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5073. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5074. if eval \${$cacheid+:} false; then :
  5075. $as_echo_n "(cached) " >&6
  5076. else
  5077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5078. /* end confdefs.h. */
  5079. int i;
  5080. int
  5081. main ()
  5082. {
  5083. ;
  5084. return 0;
  5085. }
  5086. _ACEOF
  5087. if ac_fn_c_try_link "$LINENO"; then :
  5088. eval $cacheid=yes
  5089. else
  5090. eval $cacheid=no
  5091. fi
  5092. rm -f core conftest.err conftest.$ac_objext \
  5093. conftest$ac_exeext conftest.$ac_ext
  5094. fi
  5095. CFLAGS="$xorg_testset_save_CFLAGS"
  5096. eval supported=\$$cacheid
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5098. $as_echo "$supported" >&6; }
  5099. if test "$supported" = "yes" ; then
  5100. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5101. found="yes"
  5102. fi
  5103. fi
  5104. # This chunk adds additional warnings that could catch undesired effects.
  5105. xorg_testset_save_CFLAGS="$CFLAGS"
  5106. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5107. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5109. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5110. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. int i;
  5116. _ACEOF
  5117. if ac_fn_c_try_compile "$LINENO"; then :
  5118. xorg_cv_cc_flag_unknown_warning_option=yes
  5119. else
  5120. xorg_cv_cc_flag_unknown_warning_option=no
  5121. fi
  5122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5125. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5126. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5127. CFLAGS="$xorg_testset_save_CFLAGS"
  5128. fi
  5129. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5130. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5131. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5132. fi
  5133. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5135. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5136. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. int i;
  5142. _ACEOF
  5143. if ac_fn_c_try_compile "$LINENO"; then :
  5144. xorg_cv_cc_flag_unused_command_line_argument=yes
  5145. else
  5146. xorg_cv_cc_flag_unused_command_line_argument=no
  5147. fi
  5148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5151. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5152. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5153. CFLAGS="$xorg_testset_save_CFLAGS"
  5154. fi
  5155. found="no"
  5156. if test $found = "no" ; then
  5157. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5158. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5159. fi
  5160. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5161. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5162. fi
  5163. CFLAGS="$CFLAGS -Wunused"
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5165. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5166. cacheid=xorg_cv_cc_flag__Wunused
  5167. if eval \${$cacheid+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5171. /* end confdefs.h. */
  5172. int i;
  5173. int
  5174. main ()
  5175. {
  5176. ;
  5177. return 0;
  5178. }
  5179. _ACEOF
  5180. if ac_fn_c_try_link "$LINENO"; then :
  5181. eval $cacheid=yes
  5182. else
  5183. eval $cacheid=no
  5184. fi
  5185. rm -f core conftest.err conftest.$ac_objext \
  5186. conftest$ac_exeext conftest.$ac_ext
  5187. fi
  5188. CFLAGS="$xorg_testset_save_CFLAGS"
  5189. eval supported=\$$cacheid
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5191. $as_echo "$supported" >&6; }
  5192. if test "$supported" = "yes" ; then
  5193. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5194. found="yes"
  5195. fi
  5196. fi
  5197. xorg_testset_save_CFLAGS="$CFLAGS"
  5198. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5201. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5202. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5206. /* end confdefs.h. */
  5207. int i;
  5208. _ACEOF
  5209. if ac_fn_c_try_compile "$LINENO"; then :
  5210. xorg_cv_cc_flag_unknown_warning_option=yes
  5211. else
  5212. xorg_cv_cc_flag_unknown_warning_option=no
  5213. fi
  5214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5217. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5218. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5219. CFLAGS="$xorg_testset_save_CFLAGS"
  5220. fi
  5221. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5222. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5223. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5224. fi
  5225. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5227. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5228. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5229. $as_echo_n "(cached) " >&6
  5230. else
  5231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5232. /* end confdefs.h. */
  5233. int i;
  5234. _ACEOF
  5235. if ac_fn_c_try_compile "$LINENO"; then :
  5236. xorg_cv_cc_flag_unused_command_line_argument=yes
  5237. else
  5238. xorg_cv_cc_flag_unused_command_line_argument=no
  5239. fi
  5240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5241. fi
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5243. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5244. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5245. CFLAGS="$xorg_testset_save_CFLAGS"
  5246. fi
  5247. found="no"
  5248. if test $found = "no" ; then
  5249. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5250. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5251. fi
  5252. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5253. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5254. fi
  5255. CFLAGS="$CFLAGS -Wuninitialized"
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5257. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5258. cacheid=xorg_cv_cc_flag__Wuninitialized
  5259. if eval \${$cacheid+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5263. /* end confdefs.h. */
  5264. int i;
  5265. int
  5266. main ()
  5267. {
  5268. ;
  5269. return 0;
  5270. }
  5271. _ACEOF
  5272. if ac_fn_c_try_link "$LINENO"; then :
  5273. eval $cacheid=yes
  5274. else
  5275. eval $cacheid=no
  5276. fi
  5277. rm -f core conftest.err conftest.$ac_objext \
  5278. conftest$ac_exeext conftest.$ac_ext
  5279. fi
  5280. CFLAGS="$xorg_testset_save_CFLAGS"
  5281. eval supported=\$$cacheid
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5283. $as_echo "$supported" >&6; }
  5284. if test "$supported" = "yes" ; then
  5285. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5286. found="yes"
  5287. fi
  5288. fi
  5289. xorg_testset_save_CFLAGS="$CFLAGS"
  5290. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5291. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5293. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5294. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. int i;
  5300. _ACEOF
  5301. if ac_fn_c_try_compile "$LINENO"; then :
  5302. xorg_cv_cc_flag_unknown_warning_option=yes
  5303. else
  5304. xorg_cv_cc_flag_unknown_warning_option=no
  5305. fi
  5306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5307. fi
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5309. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5310. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5311. CFLAGS="$xorg_testset_save_CFLAGS"
  5312. fi
  5313. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5314. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5315. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5316. fi
  5317. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5319. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5320. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. int i;
  5326. _ACEOF
  5327. if ac_fn_c_try_compile "$LINENO"; then :
  5328. xorg_cv_cc_flag_unused_command_line_argument=yes
  5329. else
  5330. xorg_cv_cc_flag_unused_command_line_argument=no
  5331. fi
  5332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5333. fi
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5335. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5336. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5337. CFLAGS="$xorg_testset_save_CFLAGS"
  5338. fi
  5339. found="no"
  5340. if test $found = "no" ; then
  5341. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5342. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5343. fi
  5344. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5345. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5346. fi
  5347. CFLAGS="$CFLAGS -Wshadow"
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5349. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5350. cacheid=xorg_cv_cc_flag__Wshadow
  5351. if eval \${$cacheid+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h. */
  5356. int i;
  5357. int
  5358. main ()
  5359. {
  5360. ;
  5361. return 0;
  5362. }
  5363. _ACEOF
  5364. if ac_fn_c_try_link "$LINENO"; then :
  5365. eval $cacheid=yes
  5366. else
  5367. eval $cacheid=no
  5368. fi
  5369. rm -f core conftest.err conftest.$ac_objext \
  5370. conftest$ac_exeext conftest.$ac_ext
  5371. fi
  5372. CFLAGS="$xorg_testset_save_CFLAGS"
  5373. eval supported=\$$cacheid
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5375. $as_echo "$supported" >&6; }
  5376. if test "$supported" = "yes" ; then
  5377. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5378. found="yes"
  5379. fi
  5380. fi
  5381. xorg_testset_save_CFLAGS="$CFLAGS"
  5382. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5385. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5386. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5390. /* end confdefs.h. */
  5391. int i;
  5392. _ACEOF
  5393. if ac_fn_c_try_compile "$LINENO"; then :
  5394. xorg_cv_cc_flag_unknown_warning_option=yes
  5395. else
  5396. xorg_cv_cc_flag_unknown_warning_option=no
  5397. fi
  5398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5399. fi
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5401. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5402. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5403. CFLAGS="$xorg_testset_save_CFLAGS"
  5404. fi
  5405. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5406. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5407. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5408. fi
  5409. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5411. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5412. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5416. /* end confdefs.h. */
  5417. int i;
  5418. _ACEOF
  5419. if ac_fn_c_try_compile "$LINENO"; then :
  5420. xorg_cv_cc_flag_unused_command_line_argument=yes
  5421. else
  5422. xorg_cv_cc_flag_unused_command_line_argument=no
  5423. fi
  5424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5425. fi
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5427. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5428. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5429. CFLAGS="$xorg_testset_save_CFLAGS"
  5430. fi
  5431. found="no"
  5432. if test $found = "no" ; then
  5433. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5434. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5435. fi
  5436. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5437. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5438. fi
  5439. CFLAGS="$CFLAGS -Wcast-qual"
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
  5441. $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
  5442. cacheid=xorg_cv_cc_flag__Wcast_qual
  5443. if eval \${$cacheid+:} false; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5447. /* end confdefs.h. */
  5448. int i;
  5449. int
  5450. main ()
  5451. {
  5452. ;
  5453. return 0;
  5454. }
  5455. _ACEOF
  5456. if ac_fn_c_try_link "$LINENO"; then :
  5457. eval $cacheid=yes
  5458. else
  5459. eval $cacheid=no
  5460. fi
  5461. rm -f core conftest.err conftest.$ac_objext \
  5462. conftest$ac_exeext conftest.$ac_ext
  5463. fi
  5464. CFLAGS="$xorg_testset_save_CFLAGS"
  5465. eval supported=\$$cacheid
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5467. $as_echo "$supported" >&6; }
  5468. if test "$supported" = "yes" ; then
  5469. BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
  5470. found="yes"
  5471. fi
  5472. fi
  5473. xorg_testset_save_CFLAGS="$CFLAGS"
  5474. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5475. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5477. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5478. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5482. /* end confdefs.h. */
  5483. int i;
  5484. _ACEOF
  5485. if ac_fn_c_try_compile "$LINENO"; then :
  5486. xorg_cv_cc_flag_unknown_warning_option=yes
  5487. else
  5488. xorg_cv_cc_flag_unknown_warning_option=no
  5489. fi
  5490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5491. fi
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5493. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5494. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5495. CFLAGS="$xorg_testset_save_CFLAGS"
  5496. fi
  5497. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5498. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5499. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5500. fi
  5501. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5503. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5504. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5508. /* end confdefs.h. */
  5509. int i;
  5510. _ACEOF
  5511. if ac_fn_c_try_compile "$LINENO"; then :
  5512. xorg_cv_cc_flag_unused_command_line_argument=yes
  5513. else
  5514. xorg_cv_cc_flag_unused_command_line_argument=no
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5519. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5520. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5521. CFLAGS="$xorg_testset_save_CFLAGS"
  5522. fi
  5523. found="no"
  5524. if test $found = "no" ; then
  5525. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5526. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5527. fi
  5528. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5529. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5530. fi
  5531. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5533. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5534. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5535. if eval \${$cacheid+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. int i;
  5541. int
  5542. main ()
  5543. {
  5544. ;
  5545. return 0;
  5546. }
  5547. _ACEOF
  5548. if ac_fn_c_try_link "$LINENO"; then :
  5549. eval $cacheid=yes
  5550. else
  5551. eval $cacheid=no
  5552. fi
  5553. rm -f core conftest.err conftest.$ac_objext \
  5554. conftest$ac_exeext conftest.$ac_ext
  5555. fi
  5556. CFLAGS="$xorg_testset_save_CFLAGS"
  5557. eval supported=\$$cacheid
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5559. $as_echo "$supported" >&6; }
  5560. if test "$supported" = "yes" ; then
  5561. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5562. found="yes"
  5563. fi
  5564. fi
  5565. xorg_testset_save_CFLAGS="$CFLAGS"
  5566. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5569. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5570. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5574. /* end confdefs.h. */
  5575. int i;
  5576. _ACEOF
  5577. if ac_fn_c_try_compile "$LINENO"; then :
  5578. xorg_cv_cc_flag_unknown_warning_option=yes
  5579. else
  5580. xorg_cv_cc_flag_unknown_warning_option=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5583. fi
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5585. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5586. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5587. CFLAGS="$xorg_testset_save_CFLAGS"
  5588. fi
  5589. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5590. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5591. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5592. fi
  5593. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5595. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5596. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5600. /* end confdefs.h. */
  5601. int i;
  5602. _ACEOF
  5603. if ac_fn_c_try_compile "$LINENO"; then :
  5604. xorg_cv_cc_flag_unused_command_line_argument=yes
  5605. else
  5606. xorg_cv_cc_flag_unused_command_line_argument=no
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5609. fi
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5611. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5612. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5613. CFLAGS="$xorg_testset_save_CFLAGS"
  5614. fi
  5615. found="no"
  5616. if test $found = "no" ; then
  5617. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5618. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5619. fi
  5620. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5621. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5622. fi
  5623. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5625. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5626. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5627. if eval \${$cacheid+:} false; then :
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5631. /* end confdefs.h. */
  5632. int i;
  5633. int
  5634. main ()
  5635. {
  5636. ;
  5637. return 0;
  5638. }
  5639. _ACEOF
  5640. if ac_fn_c_try_link "$LINENO"; then :
  5641. eval $cacheid=yes
  5642. else
  5643. eval $cacheid=no
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext \
  5646. conftest$ac_exeext conftest.$ac_ext
  5647. fi
  5648. CFLAGS="$xorg_testset_save_CFLAGS"
  5649. eval supported=\$$cacheid
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5651. $as_echo "$supported" >&6; }
  5652. if test "$supported" = "yes" ; then
  5653. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5654. found="yes"
  5655. fi
  5656. fi
  5657. # These are currently disabled because they are noisy. They will be enabled
  5658. # in the future once the codebase is sufficiently modernized to silence
  5659. # them. For now, I don't want them to drown out the other warnings.
  5660. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
  5661. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5662. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5663. # Turn some warnings into errors, so we don't accidently get successful builds
  5664. # when there are problems that should be fixed.
  5665. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5666. xorg_testset_save_CFLAGS="$CFLAGS"
  5667. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5668. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5670. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5671. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5675. /* end confdefs.h. */
  5676. int i;
  5677. _ACEOF
  5678. if ac_fn_c_try_compile "$LINENO"; then :
  5679. xorg_cv_cc_flag_unknown_warning_option=yes
  5680. else
  5681. xorg_cv_cc_flag_unknown_warning_option=no
  5682. fi
  5683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5684. fi
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5686. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5687. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5688. CFLAGS="$xorg_testset_save_CFLAGS"
  5689. fi
  5690. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5691. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5692. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5693. fi
  5694. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5696. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5697. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5701. /* end confdefs.h. */
  5702. int i;
  5703. _ACEOF
  5704. if ac_fn_c_try_compile "$LINENO"; then :
  5705. xorg_cv_cc_flag_unused_command_line_argument=yes
  5706. else
  5707. xorg_cv_cc_flag_unused_command_line_argument=no
  5708. fi
  5709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5710. fi
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5712. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5713. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5714. CFLAGS="$xorg_testset_save_CFLAGS"
  5715. fi
  5716. found="no"
  5717. if test $found = "no" ; then
  5718. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5719. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5720. fi
  5721. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5722. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5723. fi
  5724. CFLAGS="$CFLAGS -Werror=implicit"
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5726. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5727. cacheid=xorg_cv_cc_flag__Werror_implicit
  5728. if eval \${$cacheid+:} false; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5732. /* end confdefs.h. */
  5733. int i;
  5734. int
  5735. main ()
  5736. {
  5737. ;
  5738. return 0;
  5739. }
  5740. _ACEOF
  5741. if ac_fn_c_try_link "$LINENO"; then :
  5742. eval $cacheid=yes
  5743. else
  5744. eval $cacheid=no
  5745. fi
  5746. rm -f core conftest.err conftest.$ac_objext \
  5747. conftest$ac_exeext conftest.$ac_ext
  5748. fi
  5749. CFLAGS="$xorg_testset_save_CFLAGS"
  5750. eval supported=\$$cacheid
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5752. $as_echo "$supported" >&6; }
  5753. if test "$supported" = "yes" ; then
  5754. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5755. found="yes"
  5756. fi
  5757. fi
  5758. if test $found = "no" ; then
  5759. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5760. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5761. fi
  5762. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5763. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5764. fi
  5765. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5767. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5768. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5769. if eval \${$cacheid+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. int i;
  5775. int
  5776. main ()
  5777. {
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. if ac_fn_c_try_link "$LINENO"; then :
  5783. eval $cacheid=yes
  5784. else
  5785. eval $cacheid=no
  5786. fi
  5787. rm -f core conftest.err conftest.$ac_objext \
  5788. conftest$ac_exeext conftest.$ac_ext
  5789. fi
  5790. CFLAGS="$xorg_testset_save_CFLAGS"
  5791. eval supported=\$$cacheid
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5793. $as_echo "$supported" >&6; }
  5794. if test "$supported" = "yes" ; then
  5795. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5796. found="yes"
  5797. fi
  5798. fi
  5799. xorg_testset_save_CFLAGS="$CFLAGS"
  5800. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5801. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5803. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5804. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5805. $as_echo_n "(cached) " >&6
  5806. else
  5807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5808. /* end confdefs.h. */
  5809. int i;
  5810. _ACEOF
  5811. if ac_fn_c_try_compile "$LINENO"; then :
  5812. xorg_cv_cc_flag_unknown_warning_option=yes
  5813. else
  5814. xorg_cv_cc_flag_unknown_warning_option=no
  5815. fi
  5816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5817. fi
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5819. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5820. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5821. CFLAGS="$xorg_testset_save_CFLAGS"
  5822. fi
  5823. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5824. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5825. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5826. fi
  5827. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5829. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5830. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5834. /* end confdefs.h. */
  5835. int i;
  5836. _ACEOF
  5837. if ac_fn_c_try_compile "$LINENO"; then :
  5838. xorg_cv_cc_flag_unused_command_line_argument=yes
  5839. else
  5840. xorg_cv_cc_flag_unused_command_line_argument=no
  5841. fi
  5842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5843. fi
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5845. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5846. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5847. CFLAGS="$xorg_testset_save_CFLAGS"
  5848. fi
  5849. found="no"
  5850. if test $found = "no" ; then
  5851. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5852. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5853. fi
  5854. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5855. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5856. fi
  5857. CFLAGS="$CFLAGS -Werror=nonnull"
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5859. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5860. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5861. if eval \${$cacheid+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5865. /* end confdefs.h. */
  5866. int i;
  5867. int
  5868. main ()
  5869. {
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. if ac_fn_c_try_link "$LINENO"; then :
  5875. eval $cacheid=yes
  5876. else
  5877. eval $cacheid=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext \
  5880. conftest$ac_exeext conftest.$ac_ext
  5881. fi
  5882. CFLAGS="$xorg_testset_save_CFLAGS"
  5883. eval supported=\$$cacheid
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5885. $as_echo "$supported" >&6; }
  5886. if test "$supported" = "yes" ; then
  5887. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5888. found="yes"
  5889. fi
  5890. fi
  5891. xorg_testset_save_CFLAGS="$CFLAGS"
  5892. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5893. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5895. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5896. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5900. /* end confdefs.h. */
  5901. int i;
  5902. _ACEOF
  5903. if ac_fn_c_try_compile "$LINENO"; then :
  5904. xorg_cv_cc_flag_unknown_warning_option=yes
  5905. else
  5906. xorg_cv_cc_flag_unknown_warning_option=no
  5907. fi
  5908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5909. fi
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5911. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5912. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5913. CFLAGS="$xorg_testset_save_CFLAGS"
  5914. fi
  5915. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5916. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5917. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5918. fi
  5919. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5921. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5922. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5926. /* end confdefs.h. */
  5927. int i;
  5928. _ACEOF
  5929. if ac_fn_c_try_compile "$LINENO"; then :
  5930. xorg_cv_cc_flag_unused_command_line_argument=yes
  5931. else
  5932. xorg_cv_cc_flag_unused_command_line_argument=no
  5933. fi
  5934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5935. fi
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5937. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5938. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5939. CFLAGS="$xorg_testset_save_CFLAGS"
  5940. fi
  5941. found="no"
  5942. if test $found = "no" ; then
  5943. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5944. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5945. fi
  5946. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5947. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5948. fi
  5949. CFLAGS="$CFLAGS -Werror=init-self"
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5951. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5952. cacheid=xorg_cv_cc_flag__Werror_init_self
  5953. if eval \${$cacheid+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5957. /* end confdefs.h. */
  5958. int i;
  5959. int
  5960. main ()
  5961. {
  5962. ;
  5963. return 0;
  5964. }
  5965. _ACEOF
  5966. if ac_fn_c_try_link "$LINENO"; then :
  5967. eval $cacheid=yes
  5968. else
  5969. eval $cacheid=no
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext \
  5972. conftest$ac_exeext conftest.$ac_ext
  5973. fi
  5974. CFLAGS="$xorg_testset_save_CFLAGS"
  5975. eval supported=\$$cacheid
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5977. $as_echo "$supported" >&6; }
  5978. if test "$supported" = "yes" ; then
  5979. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5980. found="yes"
  5981. fi
  5982. fi
  5983. xorg_testset_save_CFLAGS="$CFLAGS"
  5984. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5985. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5987. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5988. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5992. /* end confdefs.h. */
  5993. int i;
  5994. _ACEOF
  5995. if ac_fn_c_try_compile "$LINENO"; then :
  5996. xorg_cv_cc_flag_unknown_warning_option=yes
  5997. else
  5998. xorg_cv_cc_flag_unknown_warning_option=no
  5999. fi
  6000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6001. fi
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6003. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6004. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6005. CFLAGS="$xorg_testset_save_CFLAGS"
  6006. fi
  6007. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6008. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6009. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6010. fi
  6011. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6013. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6014. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6018. /* end confdefs.h. */
  6019. int i;
  6020. _ACEOF
  6021. if ac_fn_c_try_compile "$LINENO"; then :
  6022. xorg_cv_cc_flag_unused_command_line_argument=yes
  6023. else
  6024. xorg_cv_cc_flag_unused_command_line_argument=no
  6025. fi
  6026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6029. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6030. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6031. CFLAGS="$xorg_testset_save_CFLAGS"
  6032. fi
  6033. found="no"
  6034. if test $found = "no" ; then
  6035. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6036. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6037. fi
  6038. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6039. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6040. fi
  6041. CFLAGS="$CFLAGS -Werror=main"
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6043. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6044. cacheid=xorg_cv_cc_flag__Werror_main
  6045. if eval \${$cacheid+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6049. /* end confdefs.h. */
  6050. int i;
  6051. int
  6052. main ()
  6053. {
  6054. ;
  6055. return 0;
  6056. }
  6057. _ACEOF
  6058. if ac_fn_c_try_link "$LINENO"; then :
  6059. eval $cacheid=yes
  6060. else
  6061. eval $cacheid=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext \
  6064. conftest$ac_exeext conftest.$ac_ext
  6065. fi
  6066. CFLAGS="$xorg_testset_save_CFLAGS"
  6067. eval supported=\$$cacheid
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6069. $as_echo "$supported" >&6; }
  6070. if test "$supported" = "yes" ; then
  6071. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6072. found="yes"
  6073. fi
  6074. fi
  6075. xorg_testset_save_CFLAGS="$CFLAGS"
  6076. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6077. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6079. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6080. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. int i;
  6086. _ACEOF
  6087. if ac_fn_c_try_compile "$LINENO"; then :
  6088. xorg_cv_cc_flag_unknown_warning_option=yes
  6089. else
  6090. xorg_cv_cc_flag_unknown_warning_option=no
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6093. fi
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6095. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6096. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6097. CFLAGS="$xorg_testset_save_CFLAGS"
  6098. fi
  6099. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6100. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6101. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6102. fi
  6103. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6105. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6106. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6107. $as_echo_n "(cached) " >&6
  6108. else
  6109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6110. /* end confdefs.h. */
  6111. int i;
  6112. _ACEOF
  6113. if ac_fn_c_try_compile "$LINENO"; then :
  6114. xorg_cv_cc_flag_unused_command_line_argument=yes
  6115. else
  6116. xorg_cv_cc_flag_unused_command_line_argument=no
  6117. fi
  6118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. fi
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6121. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6122. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6123. CFLAGS="$xorg_testset_save_CFLAGS"
  6124. fi
  6125. found="no"
  6126. if test $found = "no" ; then
  6127. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6128. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6129. fi
  6130. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6131. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6132. fi
  6133. CFLAGS="$CFLAGS -Werror=missing-braces"
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6135. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6136. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6137. if eval \${$cacheid+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6141. /* end confdefs.h. */
  6142. int i;
  6143. int
  6144. main ()
  6145. {
  6146. ;
  6147. return 0;
  6148. }
  6149. _ACEOF
  6150. if ac_fn_c_try_link "$LINENO"; then :
  6151. eval $cacheid=yes
  6152. else
  6153. eval $cacheid=no
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext \
  6156. conftest$ac_exeext conftest.$ac_ext
  6157. fi
  6158. CFLAGS="$xorg_testset_save_CFLAGS"
  6159. eval supported=\$$cacheid
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6161. $as_echo "$supported" >&6; }
  6162. if test "$supported" = "yes" ; then
  6163. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6164. found="yes"
  6165. fi
  6166. fi
  6167. xorg_testset_save_CFLAGS="$CFLAGS"
  6168. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6169. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6171. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6172. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. int i;
  6178. _ACEOF
  6179. if ac_fn_c_try_compile "$LINENO"; then :
  6180. xorg_cv_cc_flag_unknown_warning_option=yes
  6181. else
  6182. xorg_cv_cc_flag_unknown_warning_option=no
  6183. fi
  6184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6185. fi
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6187. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6188. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6189. CFLAGS="$xorg_testset_save_CFLAGS"
  6190. fi
  6191. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6192. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6193. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6194. fi
  6195. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6197. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6198. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6199. $as_echo_n "(cached) " >&6
  6200. else
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. int i;
  6204. _ACEOF
  6205. if ac_fn_c_try_compile "$LINENO"; then :
  6206. xorg_cv_cc_flag_unused_command_line_argument=yes
  6207. else
  6208. xorg_cv_cc_flag_unused_command_line_argument=no
  6209. fi
  6210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6211. fi
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6213. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6214. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6215. CFLAGS="$xorg_testset_save_CFLAGS"
  6216. fi
  6217. found="no"
  6218. if test $found = "no" ; then
  6219. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6220. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6221. fi
  6222. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6223. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6224. fi
  6225. CFLAGS="$CFLAGS -Werror=sequence-point"
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6227. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6228. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6229. if eval \${$cacheid+:} false; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. int i;
  6235. int
  6236. main ()
  6237. {
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. if ac_fn_c_try_link "$LINENO"; then :
  6243. eval $cacheid=yes
  6244. else
  6245. eval $cacheid=no
  6246. fi
  6247. rm -f core conftest.err conftest.$ac_objext \
  6248. conftest$ac_exeext conftest.$ac_ext
  6249. fi
  6250. CFLAGS="$xorg_testset_save_CFLAGS"
  6251. eval supported=\$$cacheid
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6253. $as_echo "$supported" >&6; }
  6254. if test "$supported" = "yes" ; then
  6255. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6256. found="yes"
  6257. fi
  6258. fi
  6259. xorg_testset_save_CFLAGS="$CFLAGS"
  6260. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6261. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6263. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6264. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. int i;
  6270. _ACEOF
  6271. if ac_fn_c_try_compile "$LINENO"; then :
  6272. xorg_cv_cc_flag_unknown_warning_option=yes
  6273. else
  6274. xorg_cv_cc_flag_unknown_warning_option=no
  6275. fi
  6276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6277. fi
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6279. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6280. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6281. CFLAGS="$xorg_testset_save_CFLAGS"
  6282. fi
  6283. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6284. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6285. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6286. fi
  6287. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6289. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6290. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6294. /* end confdefs.h. */
  6295. int i;
  6296. _ACEOF
  6297. if ac_fn_c_try_compile "$LINENO"; then :
  6298. xorg_cv_cc_flag_unused_command_line_argument=yes
  6299. else
  6300. xorg_cv_cc_flag_unused_command_line_argument=no
  6301. fi
  6302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6303. fi
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6305. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6306. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6307. CFLAGS="$xorg_testset_save_CFLAGS"
  6308. fi
  6309. found="no"
  6310. if test $found = "no" ; then
  6311. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6312. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6313. fi
  6314. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6315. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6316. fi
  6317. CFLAGS="$CFLAGS -Werror=return-type"
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6319. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6320. cacheid=xorg_cv_cc_flag__Werror_return_type
  6321. if eval \${$cacheid+:} false; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6325. /* end confdefs.h. */
  6326. int i;
  6327. int
  6328. main ()
  6329. {
  6330. ;
  6331. return 0;
  6332. }
  6333. _ACEOF
  6334. if ac_fn_c_try_link "$LINENO"; then :
  6335. eval $cacheid=yes
  6336. else
  6337. eval $cacheid=no
  6338. fi
  6339. rm -f core conftest.err conftest.$ac_objext \
  6340. conftest$ac_exeext conftest.$ac_ext
  6341. fi
  6342. CFLAGS="$xorg_testset_save_CFLAGS"
  6343. eval supported=\$$cacheid
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6345. $as_echo "$supported" >&6; }
  6346. if test "$supported" = "yes" ; then
  6347. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6348. found="yes"
  6349. fi
  6350. fi
  6351. if test $found = "no" ; then
  6352. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6354. fi
  6355. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6356. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6357. fi
  6358. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6360. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6361. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6362. if eval \${$cacheid+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int i;
  6368. int
  6369. main ()
  6370. {
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. if ac_fn_c_try_link "$LINENO"; then :
  6376. eval $cacheid=yes
  6377. else
  6378. eval $cacheid=no
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext \
  6381. conftest$ac_exeext conftest.$ac_ext
  6382. fi
  6383. CFLAGS="$xorg_testset_save_CFLAGS"
  6384. eval supported=\$$cacheid
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6386. $as_echo "$supported" >&6; }
  6387. if test "$supported" = "yes" ; then
  6388. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6389. found="yes"
  6390. fi
  6391. fi
  6392. xorg_testset_save_CFLAGS="$CFLAGS"
  6393. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6394. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6396. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6397. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6401. /* end confdefs.h. */
  6402. int i;
  6403. _ACEOF
  6404. if ac_fn_c_try_compile "$LINENO"; then :
  6405. xorg_cv_cc_flag_unknown_warning_option=yes
  6406. else
  6407. xorg_cv_cc_flag_unknown_warning_option=no
  6408. fi
  6409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6410. fi
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6412. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6413. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6414. CFLAGS="$xorg_testset_save_CFLAGS"
  6415. fi
  6416. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6417. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6419. fi
  6420. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6422. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6423. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6427. /* end confdefs.h. */
  6428. int i;
  6429. _ACEOF
  6430. if ac_fn_c_try_compile "$LINENO"; then :
  6431. xorg_cv_cc_flag_unused_command_line_argument=yes
  6432. else
  6433. xorg_cv_cc_flag_unused_command_line_argument=no
  6434. fi
  6435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6436. fi
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6438. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6439. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6440. CFLAGS="$xorg_testset_save_CFLAGS"
  6441. fi
  6442. found="no"
  6443. if test $found = "no" ; then
  6444. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6445. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6446. fi
  6447. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6448. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6449. fi
  6450. CFLAGS="$CFLAGS -Werror=trigraphs"
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6452. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6453. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6454. if eval \${$cacheid+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6458. /* end confdefs.h. */
  6459. int i;
  6460. int
  6461. main ()
  6462. {
  6463. ;
  6464. return 0;
  6465. }
  6466. _ACEOF
  6467. if ac_fn_c_try_link "$LINENO"; then :
  6468. eval $cacheid=yes
  6469. else
  6470. eval $cacheid=no
  6471. fi
  6472. rm -f core conftest.err conftest.$ac_objext \
  6473. conftest$ac_exeext conftest.$ac_ext
  6474. fi
  6475. CFLAGS="$xorg_testset_save_CFLAGS"
  6476. eval supported=\$$cacheid
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6478. $as_echo "$supported" >&6; }
  6479. if test "$supported" = "yes" ; then
  6480. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6481. found="yes"
  6482. fi
  6483. fi
  6484. xorg_testset_save_CFLAGS="$CFLAGS"
  6485. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6486. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6488. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6489. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6493. /* end confdefs.h. */
  6494. int i;
  6495. _ACEOF
  6496. if ac_fn_c_try_compile "$LINENO"; then :
  6497. xorg_cv_cc_flag_unknown_warning_option=yes
  6498. else
  6499. xorg_cv_cc_flag_unknown_warning_option=no
  6500. fi
  6501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6502. fi
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6504. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6505. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6506. CFLAGS="$xorg_testset_save_CFLAGS"
  6507. fi
  6508. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6509. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6510. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6511. fi
  6512. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6514. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6515. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. int i;
  6521. _ACEOF
  6522. if ac_fn_c_try_compile "$LINENO"; then :
  6523. xorg_cv_cc_flag_unused_command_line_argument=yes
  6524. else
  6525. xorg_cv_cc_flag_unused_command_line_argument=no
  6526. fi
  6527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6528. fi
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6530. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6531. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6532. CFLAGS="$xorg_testset_save_CFLAGS"
  6533. fi
  6534. found="no"
  6535. if test $found = "no" ; then
  6536. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6537. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6538. fi
  6539. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6540. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6541. fi
  6542. CFLAGS="$CFLAGS -Werror=array-bounds"
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6544. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6545. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6546. if eval \${$cacheid+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. int i;
  6552. int
  6553. main ()
  6554. {
  6555. ;
  6556. return 0;
  6557. }
  6558. _ACEOF
  6559. if ac_fn_c_try_link "$LINENO"; then :
  6560. eval $cacheid=yes
  6561. else
  6562. eval $cacheid=no
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext \
  6565. conftest$ac_exeext conftest.$ac_ext
  6566. fi
  6567. CFLAGS="$xorg_testset_save_CFLAGS"
  6568. eval supported=\$$cacheid
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6570. $as_echo "$supported" >&6; }
  6571. if test "$supported" = "yes" ; then
  6572. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6573. found="yes"
  6574. fi
  6575. fi
  6576. xorg_testset_save_CFLAGS="$CFLAGS"
  6577. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6578. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6580. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6581. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6582. $as_echo_n "(cached) " >&6
  6583. else
  6584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6585. /* end confdefs.h. */
  6586. int i;
  6587. _ACEOF
  6588. if ac_fn_c_try_compile "$LINENO"; then :
  6589. xorg_cv_cc_flag_unknown_warning_option=yes
  6590. else
  6591. xorg_cv_cc_flag_unknown_warning_option=no
  6592. fi
  6593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6596. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6597. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6598. CFLAGS="$xorg_testset_save_CFLAGS"
  6599. fi
  6600. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6601. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6602. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6603. fi
  6604. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6606. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6607. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. int i;
  6613. _ACEOF
  6614. if ac_fn_c_try_compile "$LINENO"; then :
  6615. xorg_cv_cc_flag_unused_command_line_argument=yes
  6616. else
  6617. xorg_cv_cc_flag_unused_command_line_argument=no
  6618. fi
  6619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6620. fi
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6622. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6623. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6624. CFLAGS="$xorg_testset_save_CFLAGS"
  6625. fi
  6626. found="no"
  6627. if test $found = "no" ; then
  6628. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6629. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6630. fi
  6631. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6632. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6633. fi
  6634. CFLAGS="$CFLAGS -Werror=write-strings"
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6636. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6637. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6638. if eval \${$cacheid+:} false; then :
  6639. $as_echo_n "(cached) " >&6
  6640. else
  6641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6642. /* end confdefs.h. */
  6643. int i;
  6644. int
  6645. main ()
  6646. {
  6647. ;
  6648. return 0;
  6649. }
  6650. _ACEOF
  6651. if ac_fn_c_try_link "$LINENO"; then :
  6652. eval $cacheid=yes
  6653. else
  6654. eval $cacheid=no
  6655. fi
  6656. rm -f core conftest.err conftest.$ac_objext \
  6657. conftest$ac_exeext conftest.$ac_ext
  6658. fi
  6659. CFLAGS="$xorg_testset_save_CFLAGS"
  6660. eval supported=\$$cacheid
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6662. $as_echo "$supported" >&6; }
  6663. if test "$supported" = "yes" ; then
  6664. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6665. found="yes"
  6666. fi
  6667. fi
  6668. xorg_testset_save_CFLAGS="$CFLAGS"
  6669. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6670. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6672. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6673. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6677. /* end confdefs.h. */
  6678. int i;
  6679. _ACEOF
  6680. if ac_fn_c_try_compile "$LINENO"; then :
  6681. xorg_cv_cc_flag_unknown_warning_option=yes
  6682. else
  6683. xorg_cv_cc_flag_unknown_warning_option=no
  6684. fi
  6685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6686. fi
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6688. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6689. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6690. CFLAGS="$xorg_testset_save_CFLAGS"
  6691. fi
  6692. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6693. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6694. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6695. fi
  6696. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6698. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6699. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6700. $as_echo_n "(cached) " >&6
  6701. else
  6702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6703. /* end confdefs.h. */
  6704. int i;
  6705. _ACEOF
  6706. if ac_fn_c_try_compile "$LINENO"; then :
  6707. xorg_cv_cc_flag_unused_command_line_argument=yes
  6708. else
  6709. xorg_cv_cc_flag_unused_command_line_argument=no
  6710. fi
  6711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6712. fi
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6714. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6715. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6716. CFLAGS="$xorg_testset_save_CFLAGS"
  6717. fi
  6718. found="no"
  6719. if test $found = "no" ; then
  6720. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6721. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6722. fi
  6723. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6724. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6725. fi
  6726. CFLAGS="$CFLAGS -Werror=address"
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6728. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6729. cacheid=xorg_cv_cc_flag__Werror_address
  6730. if eval \${$cacheid+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6734. /* end confdefs.h. */
  6735. int i;
  6736. int
  6737. main ()
  6738. {
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. if ac_fn_c_try_link "$LINENO"; then :
  6744. eval $cacheid=yes
  6745. else
  6746. eval $cacheid=no
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext \
  6749. conftest$ac_exeext conftest.$ac_ext
  6750. fi
  6751. CFLAGS="$xorg_testset_save_CFLAGS"
  6752. eval supported=\$$cacheid
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6754. $as_echo "$supported" >&6; }
  6755. if test "$supported" = "yes" ; then
  6756. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6757. found="yes"
  6758. fi
  6759. fi
  6760. xorg_testset_save_CFLAGS="$CFLAGS"
  6761. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6762. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6764. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6765. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6766. $as_echo_n "(cached) " >&6
  6767. else
  6768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6769. /* end confdefs.h. */
  6770. int i;
  6771. _ACEOF
  6772. if ac_fn_c_try_compile "$LINENO"; then :
  6773. xorg_cv_cc_flag_unknown_warning_option=yes
  6774. else
  6775. xorg_cv_cc_flag_unknown_warning_option=no
  6776. fi
  6777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6778. fi
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6780. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6781. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6782. CFLAGS="$xorg_testset_save_CFLAGS"
  6783. fi
  6784. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6785. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6786. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6787. fi
  6788. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6790. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6791. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6795. /* end confdefs.h. */
  6796. int i;
  6797. _ACEOF
  6798. if ac_fn_c_try_compile "$LINENO"; then :
  6799. xorg_cv_cc_flag_unused_command_line_argument=yes
  6800. else
  6801. xorg_cv_cc_flag_unused_command_line_argument=no
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6804. fi
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6806. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6807. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6808. CFLAGS="$xorg_testset_save_CFLAGS"
  6809. fi
  6810. found="no"
  6811. if test $found = "no" ; then
  6812. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6813. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6814. fi
  6815. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6816. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6817. fi
  6818. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6820. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6821. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6822. if eval \${$cacheid+:} false; then :
  6823. $as_echo_n "(cached) " >&6
  6824. else
  6825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6826. /* end confdefs.h. */
  6827. int i;
  6828. int
  6829. main ()
  6830. {
  6831. ;
  6832. return 0;
  6833. }
  6834. _ACEOF
  6835. if ac_fn_c_try_link "$LINENO"; then :
  6836. eval $cacheid=yes
  6837. else
  6838. eval $cacheid=no
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext \
  6841. conftest$ac_exeext conftest.$ac_ext
  6842. fi
  6843. CFLAGS="$xorg_testset_save_CFLAGS"
  6844. eval supported=\$$cacheid
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6846. $as_echo "$supported" >&6; }
  6847. if test "$supported" = "yes" ; then
  6848. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6849. found="yes"
  6850. fi
  6851. fi
  6852. if test $found = "no" ; then
  6853. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6854. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6855. fi
  6856. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6857. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6858. fi
  6859. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6861. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6862. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6863. if eval \${$cacheid+:} false; then :
  6864. $as_echo_n "(cached) " >&6
  6865. else
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. int i;
  6869. int
  6870. main ()
  6871. {
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. if ac_fn_c_try_link "$LINENO"; then :
  6877. eval $cacheid=yes
  6878. else
  6879. eval $cacheid=no
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext \
  6882. conftest$ac_exeext conftest.$ac_ext
  6883. fi
  6884. CFLAGS="$xorg_testset_save_CFLAGS"
  6885. eval supported=\$$cacheid
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6887. $as_echo "$supported" >&6; }
  6888. if test "$supported" = "yes" ; then
  6889. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6890. found="yes"
  6891. fi
  6892. fi
  6893. xorg_testset_save_CFLAGS="$CFLAGS"
  6894. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6895. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6897. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6898. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6902. /* end confdefs.h. */
  6903. int i;
  6904. _ACEOF
  6905. if ac_fn_c_try_compile "$LINENO"; then :
  6906. xorg_cv_cc_flag_unknown_warning_option=yes
  6907. else
  6908. xorg_cv_cc_flag_unknown_warning_option=no
  6909. fi
  6910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6913. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6914. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6915. CFLAGS="$xorg_testset_save_CFLAGS"
  6916. fi
  6917. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6918. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6919. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6920. fi
  6921. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6923. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6924. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6928. /* end confdefs.h. */
  6929. int i;
  6930. _ACEOF
  6931. if ac_fn_c_try_compile "$LINENO"; then :
  6932. xorg_cv_cc_flag_unused_command_line_argument=yes
  6933. else
  6934. xorg_cv_cc_flag_unused_command_line_argument=no
  6935. fi
  6936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6937. fi
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6939. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6940. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6941. CFLAGS="$xorg_testset_save_CFLAGS"
  6942. fi
  6943. found="no"
  6944. if test $found = "no" ; then
  6945. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6946. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6947. fi
  6948. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6949. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6950. fi
  6951. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6953. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6954. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6955. if eval \${$cacheid+:} false; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6959. /* end confdefs.h. */
  6960. int i;
  6961. int
  6962. main ()
  6963. {
  6964. ;
  6965. return 0;
  6966. }
  6967. _ACEOF
  6968. if ac_fn_c_try_link "$LINENO"; then :
  6969. eval $cacheid=yes
  6970. else
  6971. eval $cacheid=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext \
  6974. conftest$ac_exeext conftest.$ac_ext
  6975. fi
  6976. CFLAGS="$xorg_testset_save_CFLAGS"
  6977. eval supported=\$$cacheid
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6979. $as_echo "$supported" >&6; }
  6980. if test "$supported" = "yes" ; then
  6981. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6982. found="yes"
  6983. fi
  6984. fi
  6985. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6986. else
  6987. { $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
  6988. $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;}
  6989. xorg_testset_save_CFLAGS="$CFLAGS"
  6990. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6991. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6993. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6994. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6998. /* end confdefs.h. */
  6999. int i;
  7000. _ACEOF
  7001. if ac_fn_c_try_compile "$LINENO"; then :
  7002. xorg_cv_cc_flag_unknown_warning_option=yes
  7003. else
  7004. xorg_cv_cc_flag_unknown_warning_option=no
  7005. fi
  7006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7007. fi
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7009. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7010. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7011. CFLAGS="$xorg_testset_save_CFLAGS"
  7012. fi
  7013. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7014. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7015. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7016. fi
  7017. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7019. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7020. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7024. /* end confdefs.h. */
  7025. int i;
  7026. _ACEOF
  7027. if ac_fn_c_try_compile "$LINENO"; then :
  7028. xorg_cv_cc_flag_unused_command_line_argument=yes
  7029. else
  7030. xorg_cv_cc_flag_unused_command_line_argument=no
  7031. fi
  7032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7035. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7036. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7037. CFLAGS="$xorg_testset_save_CFLAGS"
  7038. fi
  7039. found="no"
  7040. if test $found = "no" ; then
  7041. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7042. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7043. fi
  7044. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7045. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7046. fi
  7047. CFLAGS="$CFLAGS -Wimplicit"
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7049. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7050. cacheid=xorg_cv_cc_flag__Wimplicit
  7051. if eval \${$cacheid+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7055. /* end confdefs.h. */
  7056. int i;
  7057. int
  7058. main ()
  7059. {
  7060. ;
  7061. return 0;
  7062. }
  7063. _ACEOF
  7064. if ac_fn_c_try_link "$LINENO"; then :
  7065. eval $cacheid=yes
  7066. else
  7067. eval $cacheid=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext \
  7070. conftest$ac_exeext conftest.$ac_ext
  7071. fi
  7072. CFLAGS="$xorg_testset_save_CFLAGS"
  7073. eval supported=\$$cacheid
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7075. $as_echo "$supported" >&6; }
  7076. if test "$supported" = "yes" ; then
  7077. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7078. found="yes"
  7079. fi
  7080. fi
  7081. xorg_testset_save_CFLAGS="$CFLAGS"
  7082. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7083. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7085. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7086. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7087. $as_echo_n "(cached) " >&6
  7088. else
  7089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7090. /* end confdefs.h. */
  7091. int i;
  7092. _ACEOF
  7093. if ac_fn_c_try_compile "$LINENO"; then :
  7094. xorg_cv_cc_flag_unknown_warning_option=yes
  7095. else
  7096. xorg_cv_cc_flag_unknown_warning_option=no
  7097. fi
  7098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7099. fi
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7101. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7102. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7103. CFLAGS="$xorg_testset_save_CFLAGS"
  7104. fi
  7105. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7106. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7107. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7108. fi
  7109. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7111. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7112. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7113. $as_echo_n "(cached) " >&6
  7114. else
  7115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7116. /* end confdefs.h. */
  7117. int i;
  7118. _ACEOF
  7119. if ac_fn_c_try_compile "$LINENO"; then :
  7120. xorg_cv_cc_flag_unused_command_line_argument=yes
  7121. else
  7122. xorg_cv_cc_flag_unused_command_line_argument=no
  7123. fi
  7124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7125. fi
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7127. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7128. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7129. CFLAGS="$xorg_testset_save_CFLAGS"
  7130. fi
  7131. found="no"
  7132. if test $found = "no" ; then
  7133. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7134. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7135. fi
  7136. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7137. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7138. fi
  7139. CFLAGS="$CFLAGS -Wnonnull"
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7141. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7142. cacheid=xorg_cv_cc_flag__Wnonnull
  7143. if eval \${$cacheid+:} false; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7147. /* end confdefs.h. */
  7148. int i;
  7149. int
  7150. main ()
  7151. {
  7152. ;
  7153. return 0;
  7154. }
  7155. _ACEOF
  7156. if ac_fn_c_try_link "$LINENO"; then :
  7157. eval $cacheid=yes
  7158. else
  7159. eval $cacheid=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext \
  7162. conftest$ac_exeext conftest.$ac_ext
  7163. fi
  7164. CFLAGS="$xorg_testset_save_CFLAGS"
  7165. eval supported=\$$cacheid
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7167. $as_echo "$supported" >&6; }
  7168. if test "$supported" = "yes" ; then
  7169. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7170. found="yes"
  7171. fi
  7172. fi
  7173. xorg_testset_save_CFLAGS="$CFLAGS"
  7174. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7175. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7177. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7178. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7182. /* end confdefs.h. */
  7183. int i;
  7184. _ACEOF
  7185. if ac_fn_c_try_compile "$LINENO"; then :
  7186. xorg_cv_cc_flag_unknown_warning_option=yes
  7187. else
  7188. xorg_cv_cc_flag_unknown_warning_option=no
  7189. fi
  7190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7191. fi
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7193. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7194. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7195. CFLAGS="$xorg_testset_save_CFLAGS"
  7196. fi
  7197. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7198. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7200. fi
  7201. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7203. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7204. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7208. /* end confdefs.h. */
  7209. int i;
  7210. _ACEOF
  7211. if ac_fn_c_try_compile "$LINENO"; then :
  7212. xorg_cv_cc_flag_unused_command_line_argument=yes
  7213. else
  7214. xorg_cv_cc_flag_unused_command_line_argument=no
  7215. fi
  7216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7217. fi
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7219. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7220. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7221. CFLAGS="$xorg_testset_save_CFLAGS"
  7222. fi
  7223. found="no"
  7224. if test $found = "no" ; then
  7225. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7226. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7227. fi
  7228. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7229. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7230. fi
  7231. CFLAGS="$CFLAGS -Winit-self"
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7233. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7234. cacheid=xorg_cv_cc_flag__Winit_self
  7235. if eval \${$cacheid+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7239. /* end confdefs.h. */
  7240. int i;
  7241. int
  7242. main ()
  7243. {
  7244. ;
  7245. return 0;
  7246. }
  7247. _ACEOF
  7248. if ac_fn_c_try_link "$LINENO"; then :
  7249. eval $cacheid=yes
  7250. else
  7251. eval $cacheid=no
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext \
  7254. conftest$ac_exeext conftest.$ac_ext
  7255. fi
  7256. CFLAGS="$xorg_testset_save_CFLAGS"
  7257. eval supported=\$$cacheid
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7259. $as_echo "$supported" >&6; }
  7260. if test "$supported" = "yes" ; then
  7261. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7262. found="yes"
  7263. fi
  7264. fi
  7265. xorg_testset_save_CFLAGS="$CFLAGS"
  7266. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7267. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7269. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7270. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7274. /* end confdefs.h. */
  7275. int i;
  7276. _ACEOF
  7277. if ac_fn_c_try_compile "$LINENO"; then :
  7278. xorg_cv_cc_flag_unknown_warning_option=yes
  7279. else
  7280. xorg_cv_cc_flag_unknown_warning_option=no
  7281. fi
  7282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7283. fi
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7285. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7286. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7287. CFLAGS="$xorg_testset_save_CFLAGS"
  7288. fi
  7289. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7290. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7291. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7292. fi
  7293. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7295. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7296. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7300. /* end confdefs.h. */
  7301. int i;
  7302. _ACEOF
  7303. if ac_fn_c_try_compile "$LINENO"; then :
  7304. xorg_cv_cc_flag_unused_command_line_argument=yes
  7305. else
  7306. xorg_cv_cc_flag_unused_command_line_argument=no
  7307. fi
  7308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7309. fi
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7311. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7312. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7313. CFLAGS="$xorg_testset_save_CFLAGS"
  7314. fi
  7315. found="no"
  7316. if test $found = "no" ; then
  7317. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7318. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7319. fi
  7320. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7321. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7322. fi
  7323. CFLAGS="$CFLAGS -Wmain"
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7325. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7326. cacheid=xorg_cv_cc_flag__Wmain
  7327. if eval \${$cacheid+:} false; then :
  7328. $as_echo_n "(cached) " >&6
  7329. else
  7330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7331. /* end confdefs.h. */
  7332. int i;
  7333. int
  7334. main ()
  7335. {
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. if ac_fn_c_try_link "$LINENO"; then :
  7341. eval $cacheid=yes
  7342. else
  7343. eval $cacheid=no
  7344. fi
  7345. rm -f core conftest.err conftest.$ac_objext \
  7346. conftest$ac_exeext conftest.$ac_ext
  7347. fi
  7348. CFLAGS="$xorg_testset_save_CFLAGS"
  7349. eval supported=\$$cacheid
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7351. $as_echo "$supported" >&6; }
  7352. if test "$supported" = "yes" ; then
  7353. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7354. found="yes"
  7355. fi
  7356. fi
  7357. xorg_testset_save_CFLAGS="$CFLAGS"
  7358. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7359. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7361. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7362. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7366. /* end confdefs.h. */
  7367. int i;
  7368. _ACEOF
  7369. if ac_fn_c_try_compile "$LINENO"; then :
  7370. xorg_cv_cc_flag_unknown_warning_option=yes
  7371. else
  7372. xorg_cv_cc_flag_unknown_warning_option=no
  7373. fi
  7374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7377. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7378. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7379. CFLAGS="$xorg_testset_save_CFLAGS"
  7380. fi
  7381. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7382. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7384. fi
  7385. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7387. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7388. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7389. $as_echo_n "(cached) " >&6
  7390. else
  7391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7392. /* end confdefs.h. */
  7393. int i;
  7394. _ACEOF
  7395. if ac_fn_c_try_compile "$LINENO"; then :
  7396. xorg_cv_cc_flag_unused_command_line_argument=yes
  7397. else
  7398. xorg_cv_cc_flag_unused_command_line_argument=no
  7399. fi
  7400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7403. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7404. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7405. CFLAGS="$xorg_testset_save_CFLAGS"
  7406. fi
  7407. found="no"
  7408. if test $found = "no" ; then
  7409. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7410. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7411. fi
  7412. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7413. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7414. fi
  7415. CFLAGS="$CFLAGS -Wmissing-braces"
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7417. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7418. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7419. if eval \${$cacheid+:} false; then :
  7420. $as_echo_n "(cached) " >&6
  7421. else
  7422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7423. /* end confdefs.h. */
  7424. int i;
  7425. int
  7426. main ()
  7427. {
  7428. ;
  7429. return 0;
  7430. }
  7431. _ACEOF
  7432. if ac_fn_c_try_link "$LINENO"; then :
  7433. eval $cacheid=yes
  7434. else
  7435. eval $cacheid=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext \
  7438. conftest$ac_exeext conftest.$ac_ext
  7439. fi
  7440. CFLAGS="$xorg_testset_save_CFLAGS"
  7441. eval supported=\$$cacheid
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7443. $as_echo "$supported" >&6; }
  7444. if test "$supported" = "yes" ; then
  7445. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7446. found="yes"
  7447. fi
  7448. fi
  7449. xorg_testset_save_CFLAGS="$CFLAGS"
  7450. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7451. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7453. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7454. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7455. $as_echo_n "(cached) " >&6
  7456. else
  7457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7458. /* end confdefs.h. */
  7459. int i;
  7460. _ACEOF
  7461. if ac_fn_c_try_compile "$LINENO"; then :
  7462. xorg_cv_cc_flag_unknown_warning_option=yes
  7463. else
  7464. xorg_cv_cc_flag_unknown_warning_option=no
  7465. fi
  7466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7467. fi
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7469. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7470. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7471. CFLAGS="$xorg_testset_save_CFLAGS"
  7472. fi
  7473. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7474. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7475. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7476. fi
  7477. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7479. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7480. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7481. $as_echo_n "(cached) " >&6
  7482. else
  7483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7484. /* end confdefs.h. */
  7485. int i;
  7486. _ACEOF
  7487. if ac_fn_c_try_compile "$LINENO"; then :
  7488. xorg_cv_cc_flag_unused_command_line_argument=yes
  7489. else
  7490. xorg_cv_cc_flag_unused_command_line_argument=no
  7491. fi
  7492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7493. fi
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7495. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7496. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7497. CFLAGS="$xorg_testset_save_CFLAGS"
  7498. fi
  7499. found="no"
  7500. if test $found = "no" ; then
  7501. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7503. fi
  7504. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7505. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7506. fi
  7507. CFLAGS="$CFLAGS -Wsequence-point"
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7509. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7510. cacheid=xorg_cv_cc_flag__Wsequence_point
  7511. if eval \${$cacheid+:} false; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7515. /* end confdefs.h. */
  7516. int i;
  7517. int
  7518. main ()
  7519. {
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. if ac_fn_c_try_link "$LINENO"; then :
  7525. eval $cacheid=yes
  7526. else
  7527. eval $cacheid=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext \
  7530. conftest$ac_exeext conftest.$ac_ext
  7531. fi
  7532. CFLAGS="$xorg_testset_save_CFLAGS"
  7533. eval supported=\$$cacheid
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7535. $as_echo "$supported" >&6; }
  7536. if test "$supported" = "yes" ; then
  7537. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7538. found="yes"
  7539. fi
  7540. fi
  7541. xorg_testset_save_CFLAGS="$CFLAGS"
  7542. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7543. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7545. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7546. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7547. $as_echo_n "(cached) " >&6
  7548. else
  7549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7550. /* end confdefs.h. */
  7551. int i;
  7552. _ACEOF
  7553. if ac_fn_c_try_compile "$LINENO"; then :
  7554. xorg_cv_cc_flag_unknown_warning_option=yes
  7555. else
  7556. xorg_cv_cc_flag_unknown_warning_option=no
  7557. fi
  7558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7561. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7562. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7563. CFLAGS="$xorg_testset_save_CFLAGS"
  7564. fi
  7565. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7566. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7568. fi
  7569. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7571. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7572. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7573. $as_echo_n "(cached) " >&6
  7574. else
  7575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7576. /* end confdefs.h. */
  7577. int i;
  7578. _ACEOF
  7579. if ac_fn_c_try_compile "$LINENO"; then :
  7580. xorg_cv_cc_flag_unused_command_line_argument=yes
  7581. else
  7582. xorg_cv_cc_flag_unused_command_line_argument=no
  7583. fi
  7584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7585. fi
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7587. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7588. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7589. CFLAGS="$xorg_testset_save_CFLAGS"
  7590. fi
  7591. found="no"
  7592. if test $found = "no" ; then
  7593. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7594. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7595. fi
  7596. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7597. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7598. fi
  7599. CFLAGS="$CFLAGS -Wreturn-type"
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7601. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7602. cacheid=xorg_cv_cc_flag__Wreturn_type
  7603. if eval \${$cacheid+:} false; then :
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7607. /* end confdefs.h. */
  7608. int i;
  7609. int
  7610. main ()
  7611. {
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. if ac_fn_c_try_link "$LINENO"; then :
  7617. eval $cacheid=yes
  7618. else
  7619. eval $cacheid=no
  7620. fi
  7621. rm -f core conftest.err conftest.$ac_objext \
  7622. conftest$ac_exeext conftest.$ac_ext
  7623. fi
  7624. CFLAGS="$xorg_testset_save_CFLAGS"
  7625. eval supported=\$$cacheid
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7627. $as_echo "$supported" >&6; }
  7628. if test "$supported" = "yes" ; then
  7629. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7630. found="yes"
  7631. fi
  7632. fi
  7633. xorg_testset_save_CFLAGS="$CFLAGS"
  7634. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7635. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7637. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7638. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7639. $as_echo_n "(cached) " >&6
  7640. else
  7641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7642. /* end confdefs.h. */
  7643. int i;
  7644. _ACEOF
  7645. if ac_fn_c_try_compile "$LINENO"; then :
  7646. xorg_cv_cc_flag_unknown_warning_option=yes
  7647. else
  7648. xorg_cv_cc_flag_unknown_warning_option=no
  7649. fi
  7650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7651. fi
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7653. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7654. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7655. CFLAGS="$xorg_testset_save_CFLAGS"
  7656. fi
  7657. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7658. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7659. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7660. fi
  7661. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7663. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7664. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7668. /* end confdefs.h. */
  7669. int i;
  7670. _ACEOF
  7671. if ac_fn_c_try_compile "$LINENO"; then :
  7672. xorg_cv_cc_flag_unused_command_line_argument=yes
  7673. else
  7674. xorg_cv_cc_flag_unused_command_line_argument=no
  7675. fi
  7676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7679. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7680. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7681. CFLAGS="$xorg_testset_save_CFLAGS"
  7682. fi
  7683. found="no"
  7684. if test $found = "no" ; then
  7685. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7686. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7687. fi
  7688. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7689. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7690. fi
  7691. CFLAGS="$CFLAGS -Wtrigraphs"
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7693. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7694. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7695. if eval \${$cacheid+:} false; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7699. /* end confdefs.h. */
  7700. int i;
  7701. int
  7702. main ()
  7703. {
  7704. ;
  7705. return 0;
  7706. }
  7707. _ACEOF
  7708. if ac_fn_c_try_link "$LINENO"; then :
  7709. eval $cacheid=yes
  7710. else
  7711. eval $cacheid=no
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext \
  7714. conftest$ac_exeext conftest.$ac_ext
  7715. fi
  7716. CFLAGS="$xorg_testset_save_CFLAGS"
  7717. eval supported=\$$cacheid
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7719. $as_echo "$supported" >&6; }
  7720. if test "$supported" = "yes" ; then
  7721. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7722. found="yes"
  7723. fi
  7724. fi
  7725. xorg_testset_save_CFLAGS="$CFLAGS"
  7726. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7727. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7729. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7730. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7734. /* end confdefs.h. */
  7735. int i;
  7736. _ACEOF
  7737. if ac_fn_c_try_compile "$LINENO"; then :
  7738. xorg_cv_cc_flag_unknown_warning_option=yes
  7739. else
  7740. xorg_cv_cc_flag_unknown_warning_option=no
  7741. fi
  7742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7743. fi
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7745. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7746. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7747. CFLAGS="$xorg_testset_save_CFLAGS"
  7748. fi
  7749. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7750. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7751. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7752. fi
  7753. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7755. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7756. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7757. $as_echo_n "(cached) " >&6
  7758. else
  7759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7760. /* end confdefs.h. */
  7761. int i;
  7762. _ACEOF
  7763. if ac_fn_c_try_compile "$LINENO"; then :
  7764. xorg_cv_cc_flag_unused_command_line_argument=yes
  7765. else
  7766. xorg_cv_cc_flag_unused_command_line_argument=no
  7767. fi
  7768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7769. fi
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7771. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7772. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7773. CFLAGS="$xorg_testset_save_CFLAGS"
  7774. fi
  7775. found="no"
  7776. if test $found = "no" ; then
  7777. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7778. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7779. fi
  7780. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7781. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7782. fi
  7783. CFLAGS="$CFLAGS -Warray-bounds"
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7785. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7786. cacheid=xorg_cv_cc_flag__Warray_bounds
  7787. if eval \${$cacheid+:} false; then :
  7788. $as_echo_n "(cached) " >&6
  7789. else
  7790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7791. /* end confdefs.h. */
  7792. int i;
  7793. int
  7794. main ()
  7795. {
  7796. ;
  7797. return 0;
  7798. }
  7799. _ACEOF
  7800. if ac_fn_c_try_link "$LINENO"; then :
  7801. eval $cacheid=yes
  7802. else
  7803. eval $cacheid=no
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext \
  7806. conftest$ac_exeext conftest.$ac_ext
  7807. fi
  7808. CFLAGS="$xorg_testset_save_CFLAGS"
  7809. eval supported=\$$cacheid
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7811. $as_echo "$supported" >&6; }
  7812. if test "$supported" = "yes" ; then
  7813. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7814. found="yes"
  7815. fi
  7816. fi
  7817. xorg_testset_save_CFLAGS="$CFLAGS"
  7818. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7819. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7821. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7822. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7826. /* end confdefs.h. */
  7827. int i;
  7828. _ACEOF
  7829. if ac_fn_c_try_compile "$LINENO"; then :
  7830. xorg_cv_cc_flag_unknown_warning_option=yes
  7831. else
  7832. xorg_cv_cc_flag_unknown_warning_option=no
  7833. fi
  7834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7835. fi
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7837. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7838. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7839. CFLAGS="$xorg_testset_save_CFLAGS"
  7840. fi
  7841. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7842. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7843. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7844. fi
  7845. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7847. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7848. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7849. $as_echo_n "(cached) " >&6
  7850. else
  7851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7852. /* end confdefs.h. */
  7853. int i;
  7854. _ACEOF
  7855. if ac_fn_c_try_compile "$LINENO"; then :
  7856. xorg_cv_cc_flag_unused_command_line_argument=yes
  7857. else
  7858. xorg_cv_cc_flag_unused_command_line_argument=no
  7859. fi
  7860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7861. fi
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7863. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7864. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7865. CFLAGS="$xorg_testset_save_CFLAGS"
  7866. fi
  7867. found="no"
  7868. if test $found = "no" ; then
  7869. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7870. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7871. fi
  7872. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7873. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7874. fi
  7875. CFLAGS="$CFLAGS -Wwrite-strings"
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7877. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7878. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7879. if eval \${$cacheid+:} false; then :
  7880. $as_echo_n "(cached) " >&6
  7881. else
  7882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7883. /* end confdefs.h. */
  7884. int i;
  7885. int
  7886. main ()
  7887. {
  7888. ;
  7889. return 0;
  7890. }
  7891. _ACEOF
  7892. if ac_fn_c_try_link "$LINENO"; then :
  7893. eval $cacheid=yes
  7894. else
  7895. eval $cacheid=no
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext \
  7898. conftest$ac_exeext conftest.$ac_ext
  7899. fi
  7900. CFLAGS="$xorg_testset_save_CFLAGS"
  7901. eval supported=\$$cacheid
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7903. $as_echo "$supported" >&6; }
  7904. if test "$supported" = "yes" ; then
  7905. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7906. found="yes"
  7907. fi
  7908. fi
  7909. xorg_testset_save_CFLAGS="$CFLAGS"
  7910. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7911. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7913. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7914. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7915. $as_echo_n "(cached) " >&6
  7916. else
  7917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7918. /* end confdefs.h. */
  7919. int i;
  7920. _ACEOF
  7921. if ac_fn_c_try_compile "$LINENO"; then :
  7922. xorg_cv_cc_flag_unknown_warning_option=yes
  7923. else
  7924. xorg_cv_cc_flag_unknown_warning_option=no
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7927. fi
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7929. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7930. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7931. CFLAGS="$xorg_testset_save_CFLAGS"
  7932. fi
  7933. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7934. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7935. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7936. fi
  7937. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7939. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7940. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7941. $as_echo_n "(cached) " >&6
  7942. else
  7943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7944. /* end confdefs.h. */
  7945. int i;
  7946. _ACEOF
  7947. if ac_fn_c_try_compile "$LINENO"; then :
  7948. xorg_cv_cc_flag_unused_command_line_argument=yes
  7949. else
  7950. xorg_cv_cc_flag_unused_command_line_argument=no
  7951. fi
  7952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7953. fi
  7954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7955. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7956. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7957. CFLAGS="$xorg_testset_save_CFLAGS"
  7958. fi
  7959. found="no"
  7960. if test $found = "no" ; then
  7961. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7962. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7963. fi
  7964. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7965. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7966. fi
  7967. CFLAGS="$CFLAGS -Waddress"
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7969. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7970. cacheid=xorg_cv_cc_flag__Waddress
  7971. if eval \${$cacheid+:} false; then :
  7972. $as_echo_n "(cached) " >&6
  7973. else
  7974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7975. /* end confdefs.h. */
  7976. int i;
  7977. int
  7978. main ()
  7979. {
  7980. ;
  7981. return 0;
  7982. }
  7983. _ACEOF
  7984. if ac_fn_c_try_link "$LINENO"; then :
  7985. eval $cacheid=yes
  7986. else
  7987. eval $cacheid=no
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext \
  7990. conftest$ac_exeext conftest.$ac_ext
  7991. fi
  7992. CFLAGS="$xorg_testset_save_CFLAGS"
  7993. eval supported=\$$cacheid
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7995. $as_echo "$supported" >&6; }
  7996. if test "$supported" = "yes" ; then
  7997. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7998. found="yes"
  7999. fi
  8000. fi
  8001. xorg_testset_save_CFLAGS="$CFLAGS"
  8002. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8003. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8005. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8006. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8010. /* end confdefs.h. */
  8011. int i;
  8012. _ACEOF
  8013. if ac_fn_c_try_compile "$LINENO"; then :
  8014. xorg_cv_cc_flag_unknown_warning_option=yes
  8015. else
  8016. xorg_cv_cc_flag_unknown_warning_option=no
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8019. fi
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8021. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8022. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8023. CFLAGS="$xorg_testset_save_CFLAGS"
  8024. fi
  8025. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8026. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8027. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8028. fi
  8029. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8031. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8032. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8033. $as_echo_n "(cached) " >&6
  8034. else
  8035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8036. /* end confdefs.h. */
  8037. int i;
  8038. _ACEOF
  8039. if ac_fn_c_try_compile "$LINENO"; then :
  8040. xorg_cv_cc_flag_unused_command_line_argument=yes
  8041. else
  8042. xorg_cv_cc_flag_unused_command_line_argument=no
  8043. fi
  8044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8047. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8048. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8049. CFLAGS="$xorg_testset_save_CFLAGS"
  8050. fi
  8051. found="no"
  8052. if test $found = "no" ; then
  8053. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8054. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8055. fi
  8056. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8057. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8058. fi
  8059. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8061. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8062. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8063. if eval \${$cacheid+:} false; then :
  8064. $as_echo_n "(cached) " >&6
  8065. else
  8066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8067. /* end confdefs.h. */
  8068. int i;
  8069. int
  8070. main ()
  8071. {
  8072. ;
  8073. return 0;
  8074. }
  8075. _ACEOF
  8076. if ac_fn_c_try_link "$LINENO"; then :
  8077. eval $cacheid=yes
  8078. else
  8079. eval $cacheid=no
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext \
  8082. conftest$ac_exeext conftest.$ac_ext
  8083. fi
  8084. CFLAGS="$xorg_testset_save_CFLAGS"
  8085. eval supported=\$$cacheid
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8087. $as_echo "$supported" >&6; }
  8088. if test "$supported" = "yes" ; then
  8089. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8090. found="yes"
  8091. fi
  8092. fi
  8093. xorg_testset_save_CFLAGS="$CFLAGS"
  8094. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8095. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8097. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8098. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8099. $as_echo_n "(cached) " >&6
  8100. else
  8101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8102. /* end confdefs.h. */
  8103. int i;
  8104. _ACEOF
  8105. if ac_fn_c_try_compile "$LINENO"; then :
  8106. xorg_cv_cc_flag_unknown_warning_option=yes
  8107. else
  8108. xorg_cv_cc_flag_unknown_warning_option=no
  8109. fi
  8110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8111. fi
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8113. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8114. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8115. CFLAGS="$xorg_testset_save_CFLAGS"
  8116. fi
  8117. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8118. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8119. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8120. fi
  8121. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8123. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8124. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8125. $as_echo_n "(cached) " >&6
  8126. else
  8127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8128. /* end confdefs.h. */
  8129. int i;
  8130. _ACEOF
  8131. if ac_fn_c_try_compile "$LINENO"; then :
  8132. xorg_cv_cc_flag_unused_command_line_argument=yes
  8133. else
  8134. xorg_cv_cc_flag_unused_command_line_argument=no
  8135. fi
  8136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8137. fi
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8139. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8140. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8141. CFLAGS="$xorg_testset_save_CFLAGS"
  8142. fi
  8143. found="no"
  8144. if test $found = "no" ; then
  8145. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8146. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8147. fi
  8148. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8149. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8150. fi
  8151. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8153. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8154. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8155. if eval \${$cacheid+:} false; then :
  8156. $as_echo_n "(cached) " >&6
  8157. else
  8158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8159. /* end confdefs.h. */
  8160. int i;
  8161. int
  8162. main ()
  8163. {
  8164. ;
  8165. return 0;
  8166. }
  8167. _ACEOF
  8168. if ac_fn_c_try_link "$LINENO"; then :
  8169. eval $cacheid=yes
  8170. else
  8171. eval $cacheid=no
  8172. fi
  8173. rm -f core conftest.err conftest.$ac_objext \
  8174. conftest$ac_exeext conftest.$ac_ext
  8175. fi
  8176. CFLAGS="$xorg_testset_save_CFLAGS"
  8177. eval supported=\$$cacheid
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8179. $as_echo "$supported" >&6; }
  8180. if test "$supported" = "yes" ; then
  8181. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8182. found="yes"
  8183. fi
  8184. fi
  8185. fi
  8186. CWARNFLAGS="$BASE_CFLAGS"
  8187. if test "x$GCC" = xyes ; then
  8188. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8189. fi
  8190. # Check whether --enable-strict-compilation was given.
  8191. if test "${enable_strict_compilation+set}" = set; then :
  8192. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8193. else
  8194. STRICT_COMPILE=no
  8195. fi
  8196. STRICT_CFLAGS=""
  8197. xorg_testset_save_CFLAGS="$CFLAGS"
  8198. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8201. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8202. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8203. $as_echo_n "(cached) " >&6
  8204. else
  8205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8206. /* end confdefs.h. */
  8207. int i;
  8208. _ACEOF
  8209. if ac_fn_c_try_compile "$LINENO"; then :
  8210. xorg_cv_cc_flag_unknown_warning_option=yes
  8211. else
  8212. xorg_cv_cc_flag_unknown_warning_option=no
  8213. fi
  8214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8215. fi
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8217. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8218. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8219. CFLAGS="$xorg_testset_save_CFLAGS"
  8220. fi
  8221. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8222. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8223. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8224. fi
  8225. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8227. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8228. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8229. $as_echo_n "(cached) " >&6
  8230. else
  8231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8232. /* end confdefs.h. */
  8233. int i;
  8234. _ACEOF
  8235. if ac_fn_c_try_compile "$LINENO"; then :
  8236. xorg_cv_cc_flag_unused_command_line_argument=yes
  8237. else
  8238. xorg_cv_cc_flag_unused_command_line_argument=no
  8239. fi
  8240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8241. fi
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8243. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8244. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8245. CFLAGS="$xorg_testset_save_CFLAGS"
  8246. fi
  8247. found="no"
  8248. if test $found = "no" ; then
  8249. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8250. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8251. fi
  8252. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8253. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8254. fi
  8255. CFLAGS="$CFLAGS -pedantic"
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8257. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8258. cacheid=xorg_cv_cc_flag__pedantic
  8259. if eval \${$cacheid+:} false; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8263. /* end confdefs.h. */
  8264. int i;
  8265. int
  8266. main ()
  8267. {
  8268. ;
  8269. return 0;
  8270. }
  8271. _ACEOF
  8272. if ac_fn_c_try_link "$LINENO"; then :
  8273. eval $cacheid=yes
  8274. else
  8275. eval $cacheid=no
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext \
  8278. conftest$ac_exeext conftest.$ac_ext
  8279. fi
  8280. CFLAGS="$xorg_testset_save_CFLAGS"
  8281. eval supported=\$$cacheid
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8283. $as_echo "$supported" >&6; }
  8284. if test "$supported" = "yes" ; then
  8285. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8286. found="yes"
  8287. fi
  8288. fi
  8289. xorg_testset_save_CFLAGS="$CFLAGS"
  8290. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8291. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8293. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8294. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8295. $as_echo_n "(cached) " >&6
  8296. else
  8297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8298. /* end confdefs.h. */
  8299. int i;
  8300. _ACEOF
  8301. if ac_fn_c_try_compile "$LINENO"; then :
  8302. xorg_cv_cc_flag_unknown_warning_option=yes
  8303. else
  8304. xorg_cv_cc_flag_unknown_warning_option=no
  8305. fi
  8306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8307. fi
  8308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8309. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8310. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8311. CFLAGS="$xorg_testset_save_CFLAGS"
  8312. fi
  8313. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8314. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8315. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8316. fi
  8317. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8319. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8320. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8321. $as_echo_n "(cached) " >&6
  8322. else
  8323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8324. /* end confdefs.h. */
  8325. int i;
  8326. _ACEOF
  8327. if ac_fn_c_try_compile "$LINENO"; then :
  8328. xorg_cv_cc_flag_unused_command_line_argument=yes
  8329. else
  8330. xorg_cv_cc_flag_unused_command_line_argument=no
  8331. fi
  8332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8333. fi
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8335. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8336. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8337. CFLAGS="$xorg_testset_save_CFLAGS"
  8338. fi
  8339. found="no"
  8340. if test $found = "no" ; then
  8341. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8342. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8343. fi
  8344. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8345. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8346. fi
  8347. CFLAGS="$CFLAGS -Werror"
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8349. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8350. cacheid=xorg_cv_cc_flag__Werror
  8351. if eval \${$cacheid+:} false; then :
  8352. $as_echo_n "(cached) " >&6
  8353. else
  8354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8355. /* end confdefs.h. */
  8356. int i;
  8357. int
  8358. main ()
  8359. {
  8360. ;
  8361. return 0;
  8362. }
  8363. _ACEOF
  8364. if ac_fn_c_try_link "$LINENO"; then :
  8365. eval $cacheid=yes
  8366. else
  8367. eval $cacheid=no
  8368. fi
  8369. rm -f core conftest.err conftest.$ac_objext \
  8370. conftest$ac_exeext conftest.$ac_ext
  8371. fi
  8372. CFLAGS="$xorg_testset_save_CFLAGS"
  8373. eval supported=\$$cacheid
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8375. $as_echo "$supported" >&6; }
  8376. if test "$supported" = "yes" ; then
  8377. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8378. found="yes"
  8379. fi
  8380. fi
  8381. if test $found = "no" ; then
  8382. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8384. fi
  8385. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8386. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8387. fi
  8388. CFLAGS="$CFLAGS -errwarn"
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8390. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8391. cacheid=xorg_cv_cc_flag__errwarn
  8392. if eval \${$cacheid+:} false; then :
  8393. $as_echo_n "(cached) " >&6
  8394. else
  8395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8396. /* end confdefs.h. */
  8397. int i;
  8398. int
  8399. main ()
  8400. {
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. if ac_fn_c_try_link "$LINENO"; then :
  8406. eval $cacheid=yes
  8407. else
  8408. eval $cacheid=no
  8409. fi
  8410. rm -f core conftest.err conftest.$ac_objext \
  8411. conftest$ac_exeext conftest.$ac_ext
  8412. fi
  8413. CFLAGS="$xorg_testset_save_CFLAGS"
  8414. eval supported=\$$cacheid
  8415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8416. $as_echo "$supported" >&6; }
  8417. if test "$supported" = "yes" ; then
  8418. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8419. found="yes"
  8420. fi
  8421. fi
  8422. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8423. # activate it with -Werror, so we add it here explicitly.
  8424. xorg_testset_save_CFLAGS="$CFLAGS"
  8425. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8426. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8428. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8429. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
  8438. else
  8439. xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
  8444. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8445. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8446. CFLAGS="$xorg_testset_save_CFLAGS"
  8447. fi
  8448. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8449. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8450. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8451. fi
  8452. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8454. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8455. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8456. $as_echo_n "(cached) " >&6
  8457. else
  8458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8459. /* end confdefs.h. */
  8460. int i;
  8461. _ACEOF
  8462. if ac_fn_c_try_compile "$LINENO"; then :
  8463. xorg_cv_cc_flag_unused_command_line_argument=yes
  8464. else
  8465. xorg_cv_cc_flag_unused_command_line_argument=no
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. fi
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8470. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8471. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8472. CFLAGS="$xorg_testset_save_CFLAGS"
  8473. fi
  8474. found="no"
  8475. if test $found = "no" ; then
  8476. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8477. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8478. fi
  8479. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8480. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8481. fi
  8482. CFLAGS="$CFLAGS -Werror=attributes"
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8484. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8485. cacheid=xorg_cv_cc_flag__Werror_attributes
  8486. if eval \${$cacheid+:} false; then :
  8487. $as_echo_n "(cached) " >&6
  8488. else
  8489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8490. /* end confdefs.h. */
  8491. int i;
  8492. int
  8493. main ()
  8494. {
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. if ac_fn_c_try_link "$LINENO"; then :
  8500. eval $cacheid=yes
  8501. else
  8502. eval $cacheid=no
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext \
  8505. conftest$ac_exeext conftest.$ac_ext
  8506. fi
  8507. CFLAGS="$xorg_testset_save_CFLAGS"
  8508. eval supported=\$$cacheid
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8510. $as_echo "$supported" >&6; }
  8511. if test "$supported" = "yes" ; then
  8512. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8513. found="yes"
  8514. fi
  8515. fi
  8516. if test "x$STRICT_COMPILE" = "xyes"; then
  8517. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8518. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8519. fi
  8520. cat >>confdefs.h <<_ACEOF
  8521. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8522. _ACEOF
  8523. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8524. if test "x$PVM" = "x"; then
  8525. PVM="0"
  8526. fi
  8527. cat >>confdefs.h <<_ACEOF
  8528. #define PACKAGE_VERSION_MINOR $PVM
  8529. _ACEOF
  8530. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8531. if test "x$PVP" = "x"; then
  8532. PVP="0"
  8533. fi
  8534. cat >>confdefs.h <<_ACEOF
  8535. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8536. _ACEOF
  8537. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8538. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8539. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8540. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8541. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8542. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8543. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8544. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8545. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8546. if test x$APP_MAN_SUFFIX = x ; then
  8547. APP_MAN_SUFFIX=1
  8548. fi
  8549. if test x$APP_MAN_DIR = x ; then
  8550. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8551. fi
  8552. if test x$LIB_MAN_SUFFIX = x ; then
  8553. LIB_MAN_SUFFIX=3
  8554. fi
  8555. if test x$LIB_MAN_DIR = x ; then
  8556. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8557. fi
  8558. if test x$FILE_MAN_SUFFIX = x ; then
  8559. case $host_os in
  8560. solaris*) FILE_MAN_SUFFIX=4 ;;
  8561. *) FILE_MAN_SUFFIX=5 ;;
  8562. esac
  8563. fi
  8564. if test x$FILE_MAN_DIR = x ; then
  8565. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8566. fi
  8567. if test x$MISC_MAN_SUFFIX = x ; then
  8568. case $host_os in
  8569. solaris*) MISC_MAN_SUFFIX=5 ;;
  8570. *) MISC_MAN_SUFFIX=7 ;;
  8571. esac
  8572. fi
  8573. if test x$MISC_MAN_DIR = x ; then
  8574. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8575. fi
  8576. if test x$DRIVER_MAN_SUFFIX = x ; then
  8577. case $host_os in
  8578. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8579. *) DRIVER_MAN_SUFFIX=4 ;;
  8580. esac
  8581. fi
  8582. if test x$DRIVER_MAN_DIR = x ; then
  8583. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8584. fi
  8585. if test x$ADMIN_MAN_SUFFIX = x ; then
  8586. case $host_os in
  8587. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8588. *) ADMIN_MAN_SUFFIX=8 ;;
  8589. esac
  8590. fi
  8591. if test x$ADMIN_MAN_DIR = x ; then
  8592. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8593. fi
  8594. XORG_MAN_PAGE="X Version 11"
  8595. MAN_SUBSTS="\
  8596. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8597. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8598. -e 's|__xservername__|Xorg|g' \
  8599. -e 's|__xconfigfile__|xorg.conf|g' \
  8600. -e 's|__projectroot__|\$(prefix)|g' \
  8601. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8602. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8603. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8604. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8605. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8606. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8607. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8608. # Check whether --enable-silent-rules was given.
  8609. if test "${enable_silent_rules+set}" = set; then :
  8610. enableval=$enable_silent_rules;
  8611. fi
  8612. case $enable_silent_rules in # (((
  8613. yes) AM_DEFAULT_VERBOSITY=0;;
  8614. no) AM_DEFAULT_VERBOSITY=1;;
  8615. *) AM_DEFAULT_VERBOSITY=0;;
  8616. esac
  8617. am_make=${MAKE-make}
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8619. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8620. if ${am_cv_make_support_nested_variables+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. if $as_echo 'TRUE=$(BAR$(V))
  8624. BAR0=false
  8625. BAR1=true
  8626. V=1
  8627. am__doit:
  8628. @$(TRUE)
  8629. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8630. am_cv_make_support_nested_variables=yes
  8631. else
  8632. am_cv_make_support_nested_variables=no
  8633. fi
  8634. fi
  8635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8636. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8637. if test $am_cv_make_support_nested_variables = yes; then
  8638. AM_V='$(V)'
  8639. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8640. else
  8641. AM_V=$AM_DEFAULT_VERBOSITY
  8642. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8643. fi
  8644. AM_BACKSLASH='\'
  8645. # Check whether --with-lint was given.
  8646. if test "${with_lint+set}" = set; then :
  8647. withval=$with_lint; use_lint=$withval
  8648. else
  8649. use_lint=no
  8650. fi
  8651. # Obtain platform specific info like program name and options
  8652. # The lint program on FreeBSD and NetBSD is different from the one on Solaris
  8653. case $host_os in
  8654. *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
  8655. lint_name=splint
  8656. lint_options="-badflag"
  8657. ;;
  8658. *freebsd* | *netbsd*)
  8659. lint_name=lint
  8660. lint_options="-u -b"
  8661. ;;
  8662. *solaris*)
  8663. lint_name=lint
  8664. lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
  8665. ;;
  8666. esac
  8667. # Test for the presence of the program (either guessed by the code or spelled out by the user)
  8668. if test "x$use_lint" = x"yes" ; then
  8669. # Extract the first word of "$lint_name", so it can be a program name with args.
  8670. set dummy $lint_name; ac_word=$2
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8672. $as_echo_n "checking for $ac_word... " >&6; }
  8673. if ${ac_cv_path_LINT+:} false; then :
  8674. $as_echo_n "(cached) " >&6
  8675. else
  8676. case $LINT in
  8677. [\\/]* | ?:[\\/]*)
  8678. ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
  8679. ;;
  8680. *)
  8681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8682. for as_dir in $PATH
  8683. do
  8684. IFS=$as_save_IFS
  8685. test -z "$as_dir" && as_dir=.
  8686. for ac_exec_ext in '' $ac_executable_extensions; do
  8687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8688. ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
  8689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8690. break 2
  8691. fi
  8692. done
  8693. done
  8694. IFS=$as_save_IFS
  8695. ;;
  8696. esac
  8697. fi
  8698. LINT=$ac_cv_path_LINT
  8699. if test -n "$LINT"; then
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
  8701. $as_echo "$LINT" >&6; }
  8702. else
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8704. $as_echo "no" >&6; }
  8705. fi
  8706. if test "x$LINT" = "x"; then
  8707. as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
  8708. fi
  8709. elif test "x$use_lint" = x"no" ; then
  8710. if test "x$LINT" != "x"; then
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
  8712. $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
  8713. fi
  8714. else
  8715. as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
  8716. fi
  8717. # User supplied flags override default flags
  8718. if test "x$LINT_FLAGS" != "x"; then
  8719. lint_options=$LINT_FLAGS
  8720. fi
  8721. LINT_FLAGS=$lint_options
  8722. if test "x$LINT" != x; then
  8723. LINT_TRUE=
  8724. LINT_FALSE='#'
  8725. else
  8726. LINT_TRUE='#'
  8727. LINT_FALSE=
  8728. fi
  8729. for ac_func in rename fchmod
  8730. do :
  8731. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8732. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8733. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8734. cat >>confdefs.h <<_ACEOF
  8735. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8736. _ACEOF
  8737. fi
  8738. done
  8739. # Check whether --enable-largefile was given.
  8740. if test "${enable_largefile+set}" = set; then :
  8741. enableval=$enable_largefile;
  8742. fi
  8743. if test "$enable_largefile" != no; then
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  8745. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  8746. if ${ac_cv_sys_largefile_CC+:} false; then :
  8747. $as_echo_n "(cached) " >&6
  8748. else
  8749. ac_cv_sys_largefile_CC=no
  8750. if test "$GCC" != yes; then
  8751. ac_save_CC=$CC
  8752. while :; do
  8753. # IRIX 6.2 and later do not support large files by default,
  8754. # so use the C compiler's -n32 option if that helps.
  8755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8756. /* end confdefs.h. */
  8757. #include <sys/types.h>
  8758. /* Check that off_t can represent 2**63 - 1 correctly.
  8759. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8760. since some C++ compilers masquerading as C compilers
  8761. incorrectly reject 9223372036854775807. */
  8762. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8763. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8764. && LARGE_OFF_T % 2147483647 == 1)
  8765. ? 1 : -1];
  8766. int
  8767. main ()
  8768. {
  8769. ;
  8770. return 0;
  8771. }
  8772. _ACEOF
  8773. if ac_fn_c_try_compile "$LINENO"; then :
  8774. break
  8775. fi
  8776. rm -f core conftest.err conftest.$ac_objext
  8777. CC="$CC -n32"
  8778. if ac_fn_c_try_compile "$LINENO"; then :
  8779. ac_cv_sys_largefile_CC=' -n32'; break
  8780. fi
  8781. rm -f core conftest.err conftest.$ac_objext
  8782. break
  8783. done
  8784. CC=$ac_save_CC
  8785. rm -f conftest.$ac_ext
  8786. fi
  8787. fi
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  8789. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  8790. if test "$ac_cv_sys_largefile_CC" != no; then
  8791. CC=$CC$ac_cv_sys_largefile_CC
  8792. fi
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8794. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  8795. if ${ac_cv_sys_file_offset_bits+:} false; then :
  8796. $as_echo_n "(cached) " >&6
  8797. else
  8798. while :; do
  8799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8800. /* end confdefs.h. */
  8801. #include <sys/types.h>
  8802. /* Check that off_t can represent 2**63 - 1 correctly.
  8803. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8804. since some C++ compilers masquerading as C compilers
  8805. incorrectly reject 9223372036854775807. */
  8806. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8807. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8808. && LARGE_OFF_T % 2147483647 == 1)
  8809. ? 1 : -1];
  8810. int
  8811. main ()
  8812. {
  8813. ;
  8814. return 0;
  8815. }
  8816. _ACEOF
  8817. if ac_fn_c_try_compile "$LINENO"; then :
  8818. ac_cv_sys_file_offset_bits=no; break
  8819. fi
  8820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8822. /* end confdefs.h. */
  8823. #define _FILE_OFFSET_BITS 64
  8824. #include <sys/types.h>
  8825. /* Check that off_t can represent 2**63 - 1 correctly.
  8826. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8827. since some C++ compilers masquerading as C compilers
  8828. incorrectly reject 9223372036854775807. */
  8829. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8830. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8831. && LARGE_OFF_T % 2147483647 == 1)
  8832. ? 1 : -1];
  8833. int
  8834. main ()
  8835. {
  8836. ;
  8837. return 0;
  8838. }
  8839. _ACEOF
  8840. if ac_fn_c_try_compile "$LINENO"; then :
  8841. ac_cv_sys_file_offset_bits=64; break
  8842. fi
  8843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8844. ac_cv_sys_file_offset_bits=unknown
  8845. break
  8846. done
  8847. fi
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  8849. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  8850. case $ac_cv_sys_file_offset_bits in #(
  8851. no | unknown) ;;
  8852. *)
  8853. cat >>confdefs.h <<_ACEOF
  8854. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8855. _ACEOF
  8856. ;;
  8857. esac
  8858. rm -rf conftest*
  8859. if test $ac_cv_sys_file_offset_bits = unknown; then
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  8861. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  8862. if ${ac_cv_sys_large_files+:} false; then :
  8863. $as_echo_n "(cached) " >&6
  8864. else
  8865. while :; do
  8866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8867. /* end confdefs.h. */
  8868. #include <sys/types.h>
  8869. /* Check that off_t can represent 2**63 - 1 correctly.
  8870. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8871. since some C++ compilers masquerading as C compilers
  8872. incorrectly reject 9223372036854775807. */
  8873. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8874. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8875. && LARGE_OFF_T % 2147483647 == 1)
  8876. ? 1 : -1];
  8877. int
  8878. main ()
  8879. {
  8880. ;
  8881. return 0;
  8882. }
  8883. _ACEOF
  8884. if ac_fn_c_try_compile "$LINENO"; then :
  8885. ac_cv_sys_large_files=no; break
  8886. fi
  8887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8889. /* end confdefs.h. */
  8890. #define _LARGE_FILES 1
  8891. #include <sys/types.h>
  8892. /* Check that off_t can represent 2**63 - 1 correctly.
  8893. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8894. since some C++ compilers masquerading as C compilers
  8895. incorrectly reject 9223372036854775807. */
  8896. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8897. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8898. && LARGE_OFF_T % 2147483647 == 1)
  8899. ? 1 : -1];
  8900. int
  8901. main ()
  8902. {
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. if ac_fn_c_try_compile "$LINENO"; then :
  8908. ac_cv_sys_large_files=1; break
  8909. fi
  8910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8911. ac_cv_sys_large_files=unknown
  8912. break
  8913. done
  8914. fi
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  8916. $as_echo "$ac_cv_sys_large_files" >&6; }
  8917. case $ac_cv_sys_large_files in #(
  8918. no | unknown) ;;
  8919. *)
  8920. cat >>confdefs.h <<_ACEOF
  8921. #define _LARGE_FILES $ac_cv_sys_large_files
  8922. _ACEOF
  8923. ;;
  8924. esac
  8925. rm -rf conftest*
  8926. fi
  8927. fi
  8928. pkg_failed=no
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  8930. $as_echo_n "checking for X... " >&6; }
  8931. if test -n "$X_CFLAGS"; then
  8932. pkg_cv_X_CFLAGS="$X_CFLAGS"
  8933. elif test -n "$PKG_CONFIG"; then
  8934. if test -n "$PKG_CONFIG" && \
  8935. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
  8936. ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
  8937. ac_status=$?
  8938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8939. test $ac_status = 0; }; then
  8940. pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
  8941. test "x$?" != "x0" && pkg_failed=yes
  8942. else
  8943. pkg_failed=yes
  8944. fi
  8945. else
  8946. pkg_failed=untried
  8947. fi
  8948. if test -n "$X_LIBS"; then
  8949. pkg_cv_X_LIBS="$X_LIBS"
  8950. elif test -n "$PKG_CONFIG"; then
  8951. if test -n "$PKG_CONFIG" && \
  8952. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
  8953. ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
  8954. ac_status=$?
  8955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8956. test $ac_status = 0; }; then
  8957. pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
  8958. test "x$?" != "x0" && pkg_failed=yes
  8959. else
  8960. pkg_failed=yes
  8961. fi
  8962. else
  8963. pkg_failed=untried
  8964. fi
  8965. if test $pkg_failed = yes; then
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8967. $as_echo "no" >&6; }
  8968. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8969. _pkg_short_errors_supported=yes
  8970. else
  8971. _pkg_short_errors_supported=no
  8972. fi
  8973. if test $_pkg_short_errors_supported = yes; then
  8974. X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
  8975. else
  8976. X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
  8977. fi
  8978. # Put the nasty error message in config.log where it belongs
  8979. echo "$X_PKG_ERRORS" >&5
  8980. as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
  8981. $X_PKG_ERRORS
  8982. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8983. installed software in a non-standard prefix.
  8984. Alternatively, you may set the environment variables X_CFLAGS
  8985. and X_LIBS to avoid the need to call pkg-config.
  8986. See the pkg-config man page for more details." "$LINENO" 5
  8987. elif test $pkg_failed = untried; then
  8988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8989. $as_echo "no" >&6; }
  8990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8992. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8993. is in your PATH or set the PKG_CONFIG environment variable to the full
  8994. path to pkg-config.
  8995. Alternatively, you may set the environment variables X_CFLAGS
  8996. and X_LIBS to avoid the need to call pkg-config.
  8997. See the pkg-config man page for more details.
  8998. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8999. See \`config.log' for more details" "$LINENO" 5; }
  9000. else
  9001. X_CFLAGS=$pkg_cv_X_CFLAGS
  9002. X_LIBS=$pkg_cv_X_LIBS
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9004. $as_echo "yes" >&6; }
  9005. fi
  9006. ac_config_files="$ac_config_files Makefile"
  9007. cat >confcache <<\_ACEOF
  9008. # This file is a shell script that caches the results of configure
  9009. # tests run on this system so they can be shared between configure
  9010. # scripts and configure runs, see configure's option --config-cache.
  9011. # It is not useful on other systems. If it contains results you don't
  9012. # want to keep, you may remove or edit it.
  9013. #
  9014. # config.status only pays attention to the cache file if you give it
  9015. # the --recheck option to rerun configure.
  9016. #
  9017. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9018. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9019. # following values.
  9020. _ACEOF
  9021. # The following way of writing the cache mishandles newlines in values,
  9022. # but we know of no workaround that is simple, portable, and efficient.
  9023. # So, we kill variables containing newlines.
  9024. # Ultrix sh set writes to stderr and can't be redirected directly,
  9025. # and sets the high bit in the cache file unless we assign to the vars.
  9026. (
  9027. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9028. eval ac_val=\$$ac_var
  9029. case $ac_val in #(
  9030. *${as_nl}*)
  9031. case $ac_var in #(
  9032. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9033. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9034. esac
  9035. case $ac_var in #(
  9036. _ | IFS | as_nl) ;; #(
  9037. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9038. *) { eval $ac_var=; unset $ac_var;} ;;
  9039. esac ;;
  9040. esac
  9041. done
  9042. (set) 2>&1 |
  9043. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9044. *${as_nl}ac_space=\ *)
  9045. # `set' does not quote correctly, so add quotes: double-quote
  9046. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9047. sed -n \
  9048. "s/'/'\\\\''/g;
  9049. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9050. ;; #(
  9051. *)
  9052. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9053. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9054. ;;
  9055. esac |
  9056. sort
  9057. ) |
  9058. sed '
  9059. /^ac_cv_env_/b end
  9060. t clear
  9061. :clear
  9062. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9063. t end
  9064. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9065. :end' >>confcache
  9066. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9067. if test -w "$cache_file"; then
  9068. if test "x$cache_file" != "x/dev/null"; then
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9070. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9071. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9072. cat confcache >"$cache_file"
  9073. else
  9074. case $cache_file in #(
  9075. */* | ?:*)
  9076. mv -f confcache "$cache_file"$$ &&
  9077. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9078. *)
  9079. mv -f confcache "$cache_file" ;;
  9080. esac
  9081. fi
  9082. fi
  9083. else
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9085. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9086. fi
  9087. fi
  9088. rm -f confcache
  9089. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9090. # Let make expand exec_prefix.
  9091. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9092. DEFS=-DHAVE_CONFIG_H
  9093. ac_libobjs=
  9094. ac_ltlibobjs=
  9095. U=
  9096. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9097. # 1. Remove the extension, and $U if already installed.
  9098. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9099. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9100. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9101. # will be set to the directory where LIBOBJS objects are built.
  9102. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9103. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9104. done
  9105. LIBOBJS=$ac_libobjs
  9106. LTLIBOBJS=$ac_ltlibobjs
  9107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9108. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9109. if test -n "$am_sleep_pid"; then
  9110. # Hide warnings about reused PIDs.
  9111. wait $am_sleep_pid 2>/dev/null
  9112. fi
  9113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9114. $as_echo "done" >&6; }
  9115. if test -n "$EXEEXT"; then
  9116. am__EXEEXT_TRUE=
  9117. am__EXEEXT_FALSE='#'
  9118. else
  9119. am__EXEEXT_TRUE='#'
  9120. am__EXEEXT_FALSE=
  9121. fi
  9122. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9123. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9124. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9125. fi
  9126. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9127. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9128. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9129. fi
  9130. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9131. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9132. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9133. fi
  9134. if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
  9135. as_fn_error $? "conditional \"LINT\" was never defined.
  9136. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9137. fi
  9138. : "${CONFIG_STATUS=./config.status}"
  9139. ac_write_fail=0
  9140. ac_clean_files_save=$ac_clean_files
  9141. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9143. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9144. as_write_fail=0
  9145. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9146. #! $SHELL
  9147. # Generated by $as_me.
  9148. # Run this file to recreate the current configuration.
  9149. # Compiler output produced by configure, useful for debugging
  9150. # configure, is in config.log if it exists.
  9151. debug=false
  9152. ac_cs_recheck=false
  9153. ac_cs_silent=false
  9154. SHELL=\${CONFIG_SHELL-$SHELL}
  9155. export SHELL
  9156. _ASEOF
  9157. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9158. ## -------------------- ##
  9159. ## M4sh Initialization. ##
  9160. ## -------------------- ##
  9161. # Be more Bourne compatible
  9162. DUALCASE=1; export DUALCASE # for MKS sh
  9163. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9164. emulate sh
  9165. NULLCMD=:
  9166. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9167. # is contrary to our usage. Disable this feature.
  9168. alias -g '${1+"$@"}'='"$@"'
  9169. setopt NO_GLOB_SUBST
  9170. else
  9171. case `(set -o) 2>/dev/null` in #(
  9172. *posix*) :
  9173. set -o posix ;; #(
  9174. *) :
  9175. ;;
  9176. esac
  9177. fi
  9178. as_nl='
  9179. '
  9180. export as_nl
  9181. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9182. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9183. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9184. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9185. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9186. # but without wasting forks for bash or zsh.
  9187. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9188. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9189. as_echo='print -r --'
  9190. as_echo_n='print -rn --'
  9191. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9192. as_echo='printf %s\n'
  9193. as_echo_n='printf %s'
  9194. else
  9195. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9196. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9197. as_echo_n='/usr/ucb/echo -n'
  9198. else
  9199. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9200. as_echo_n_body='eval
  9201. arg=$1;
  9202. case $arg in #(
  9203. *"$as_nl"*)
  9204. expr "X$arg" : "X\\(.*\\)$as_nl";
  9205. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9206. esac;
  9207. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9208. '
  9209. export as_echo_n_body
  9210. as_echo_n='sh -c $as_echo_n_body as_echo'
  9211. fi
  9212. export as_echo_body
  9213. as_echo='sh -c $as_echo_body as_echo'
  9214. fi
  9215. # The user is always right.
  9216. if test "${PATH_SEPARATOR+set}" != set; then
  9217. PATH_SEPARATOR=:
  9218. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9219. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9220. PATH_SEPARATOR=';'
  9221. }
  9222. fi
  9223. # IFS
  9224. # We need space, tab and new line, in precisely that order. Quoting is
  9225. # there to prevent editors from complaining about space-tab.
  9226. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9227. # splitting by setting IFS to empty value.)
  9228. IFS=" "" $as_nl"
  9229. # Find who we are. Look in the path if we contain no directory separator.
  9230. as_myself=
  9231. case $0 in #((
  9232. *[\\/]* ) as_myself=$0 ;;
  9233. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9234. for as_dir in $PATH
  9235. do
  9236. IFS=$as_save_IFS
  9237. test -z "$as_dir" && as_dir=.
  9238. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9239. done
  9240. IFS=$as_save_IFS
  9241. ;;
  9242. esac
  9243. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9244. # in which case we are not to be found in the path.
  9245. if test "x$as_myself" = x; then
  9246. as_myself=$0
  9247. fi
  9248. if test ! -f "$as_myself"; then
  9249. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9250. exit 1
  9251. fi
  9252. # Unset variables that we do not need and which cause bugs (e.g. in
  9253. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9254. # suppresses any "Segmentation fault" message there. '((' could
  9255. # trigger a bug in pdksh 5.2.14.
  9256. for as_var in BASH_ENV ENV MAIL MAILPATH
  9257. do eval test x\${$as_var+set} = xset \
  9258. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9259. done
  9260. PS1='$ '
  9261. PS2='> '
  9262. PS4='+ '
  9263. # NLS nuisances.
  9264. LC_ALL=C
  9265. export LC_ALL
  9266. LANGUAGE=C
  9267. export LANGUAGE
  9268. # CDPATH.
  9269. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9270. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9271. # ----------------------------------------
  9272. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9273. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9274. # script with STATUS, using 1 if that was 0.
  9275. as_fn_error ()
  9276. {
  9277. as_status=$1; test $as_status -eq 0 && as_status=1
  9278. if test "$4"; then
  9279. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9280. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9281. fi
  9282. $as_echo "$as_me: error: $2" >&2
  9283. as_fn_exit $as_status
  9284. } # as_fn_error
  9285. # as_fn_set_status STATUS
  9286. # -----------------------
  9287. # Set $? to STATUS, without forking.
  9288. as_fn_set_status ()
  9289. {
  9290. return $1
  9291. } # as_fn_set_status
  9292. # as_fn_exit STATUS
  9293. # -----------------
  9294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9295. as_fn_exit ()
  9296. {
  9297. set +e
  9298. as_fn_set_status $1
  9299. exit $1
  9300. } # as_fn_exit
  9301. # as_fn_unset VAR
  9302. # ---------------
  9303. # Portably unset VAR.
  9304. as_fn_unset ()
  9305. {
  9306. { eval $1=; unset $1;}
  9307. }
  9308. as_unset=as_fn_unset
  9309. # as_fn_append VAR VALUE
  9310. # ----------------------
  9311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9312. # advantage of any shell optimizations that allow amortized linear growth over
  9313. # repeated appends, instead of the typical quadratic growth present in naive
  9314. # implementations.
  9315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9316. eval 'as_fn_append ()
  9317. {
  9318. eval $1+=\$2
  9319. }'
  9320. else
  9321. as_fn_append ()
  9322. {
  9323. eval $1=\$$1\$2
  9324. }
  9325. fi # as_fn_append
  9326. # as_fn_arith ARG...
  9327. # ------------------
  9328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9330. # must be portable across $(()) and expr.
  9331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9332. eval 'as_fn_arith ()
  9333. {
  9334. as_val=$(( $* ))
  9335. }'
  9336. else
  9337. as_fn_arith ()
  9338. {
  9339. as_val=`expr "$@" || test $? -eq 1`
  9340. }
  9341. fi # as_fn_arith
  9342. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9343. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9344. as_expr=expr
  9345. else
  9346. as_expr=false
  9347. fi
  9348. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9349. as_basename=basename
  9350. else
  9351. as_basename=false
  9352. fi
  9353. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9354. as_dirname=dirname
  9355. else
  9356. as_dirname=false
  9357. fi
  9358. as_me=`$as_basename -- "$0" ||
  9359. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9360. X"$0" : 'X\(//\)$' \| \
  9361. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9362. $as_echo X/"$0" |
  9363. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9364. s//\1/
  9365. q
  9366. }
  9367. /^X\/\(\/\/\)$/{
  9368. s//\1/
  9369. q
  9370. }
  9371. /^X\/\(\/\).*/{
  9372. s//\1/
  9373. q
  9374. }
  9375. s/.*/./; q'`
  9376. # Avoid depending upon Character Ranges.
  9377. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9378. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9379. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9380. as_cr_digits='0123456789'
  9381. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9382. ECHO_C= ECHO_N= ECHO_T=
  9383. case `echo -n x` in #(((((
  9384. -n*)
  9385. case `echo 'xy\c'` in
  9386. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9387. xy) ECHO_C='\c';;
  9388. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9389. ECHO_T=' ';;
  9390. esac;;
  9391. *)
  9392. ECHO_N='-n';;
  9393. esac
  9394. rm -f conf$$ conf$$.exe conf$$.file
  9395. if test -d conf$$.dir; then
  9396. rm -f conf$$.dir/conf$$.file
  9397. else
  9398. rm -f conf$$.dir
  9399. mkdir conf$$.dir 2>/dev/null
  9400. fi
  9401. if (echo >conf$$.file) 2>/dev/null; then
  9402. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9403. as_ln_s='ln -s'
  9404. # ... but there are two gotchas:
  9405. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9406. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9407. # In both cases, we have to default to `cp -pR'.
  9408. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9409. as_ln_s='cp -pR'
  9410. elif ln conf$$.file conf$$ 2>/dev/null; then
  9411. as_ln_s=ln
  9412. else
  9413. as_ln_s='cp -pR'
  9414. fi
  9415. else
  9416. as_ln_s='cp -pR'
  9417. fi
  9418. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9419. rmdir conf$$.dir 2>/dev/null
  9420. # as_fn_mkdir_p
  9421. # -------------
  9422. # Create "$as_dir" as a directory, including parents if necessary.
  9423. as_fn_mkdir_p ()
  9424. {
  9425. case $as_dir in #(
  9426. -*) as_dir=./$as_dir;;
  9427. esac
  9428. test -d "$as_dir" || eval $as_mkdir_p || {
  9429. as_dirs=
  9430. while :; do
  9431. case $as_dir in #(
  9432. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9433. *) as_qdir=$as_dir;;
  9434. esac
  9435. as_dirs="'$as_qdir' $as_dirs"
  9436. as_dir=`$as_dirname -- "$as_dir" ||
  9437. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9438. X"$as_dir" : 'X\(//\)[^/]' \| \
  9439. X"$as_dir" : 'X\(//\)$' \| \
  9440. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9441. $as_echo X"$as_dir" |
  9442. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9443. s//\1/
  9444. q
  9445. }
  9446. /^X\(\/\/\)[^/].*/{
  9447. s//\1/
  9448. q
  9449. }
  9450. /^X\(\/\/\)$/{
  9451. s//\1/
  9452. q
  9453. }
  9454. /^X\(\/\).*/{
  9455. s//\1/
  9456. q
  9457. }
  9458. s/.*/./; q'`
  9459. test -d "$as_dir" && break
  9460. done
  9461. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9462. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9463. } # as_fn_mkdir_p
  9464. if mkdir -p . 2>/dev/null; then
  9465. as_mkdir_p='mkdir -p "$as_dir"'
  9466. else
  9467. test -d ./-p && rmdir ./-p
  9468. as_mkdir_p=false
  9469. fi
  9470. # as_fn_executable_p FILE
  9471. # -----------------------
  9472. # Test if FILE is an executable regular file.
  9473. as_fn_executable_p ()
  9474. {
  9475. test -f "$1" && test -x "$1"
  9476. } # as_fn_executable_p
  9477. as_test_x='test -x'
  9478. as_executable_p=as_fn_executable_p
  9479. # Sed expression to map a string onto a valid CPP name.
  9480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9481. # Sed expression to map a string onto a valid variable name.
  9482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9483. exec 6>&1
  9484. ## ----------------------------------- ##
  9485. ## Main body of $CONFIG_STATUS script. ##
  9486. ## ----------------------------------- ##
  9487. _ASEOF
  9488. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9489. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9490. # Save the log message, to keep $0 and so on meaningful, and to
  9491. # report actual input values of CONFIG_FILES etc. instead of their
  9492. # values after options handling.
  9493. ac_log="
  9494. This file was extended by makedepend $as_me 1.0.4, which was
  9495. generated by GNU Autoconf 2.69. Invocation command line was
  9496. CONFIG_FILES = $CONFIG_FILES
  9497. CONFIG_HEADERS = $CONFIG_HEADERS
  9498. CONFIG_LINKS = $CONFIG_LINKS
  9499. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9500. $ $0 $@
  9501. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9502. "
  9503. _ACEOF
  9504. case $ac_config_files in *"
  9505. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9506. esac
  9507. case $ac_config_headers in *"
  9508. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9509. esac
  9510. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9511. # Files that config.status was made for.
  9512. config_files="$ac_config_files"
  9513. config_headers="$ac_config_headers"
  9514. config_commands="$ac_config_commands"
  9515. _ACEOF
  9516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9517. ac_cs_usage="\
  9518. \`$as_me' instantiates files and other configuration actions
  9519. from templates according to the current configuration. Unless the files
  9520. and actions are specified as TAGs, all are instantiated by default.
  9521. Usage: $0 [OPTION]... [TAG]...
  9522. -h, --help print this help, then exit
  9523. -V, --version print version number and configuration settings, then exit
  9524. --config print configuration, then exit
  9525. -q, --quiet, --silent
  9526. do not print progress messages
  9527. -d, --debug don't remove temporary files
  9528. --recheck update $as_me by reconfiguring in the same conditions
  9529. --file=FILE[:TEMPLATE]
  9530. instantiate the configuration file FILE
  9531. --header=FILE[:TEMPLATE]
  9532. instantiate the configuration header FILE
  9533. Configuration files:
  9534. $config_files
  9535. Configuration headers:
  9536. $config_headers
  9537. Configuration commands:
  9538. $config_commands
  9539. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9540. _ACEOF
  9541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9542. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9543. ac_cs_version="\\
  9544. makedepend config.status 1.0.4
  9545. configured by $0, generated by GNU Autoconf 2.69,
  9546. with options \\"\$ac_cs_config\\"
  9547. Copyright (C) 2012 Free Software Foundation, Inc.
  9548. This config.status script is free software; the Free Software Foundation
  9549. gives unlimited permission to copy, distribute and modify it."
  9550. ac_pwd='$ac_pwd'
  9551. srcdir='$srcdir'
  9552. INSTALL='$INSTALL'
  9553. MKDIR_P='$MKDIR_P'
  9554. AWK='$AWK'
  9555. test -n "\$AWK" || AWK=awk
  9556. _ACEOF
  9557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9558. # The default lists apply if the user does not specify any file.
  9559. ac_need_defaults=:
  9560. while test $# != 0
  9561. do
  9562. case $1 in
  9563. --*=?*)
  9564. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9565. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9566. ac_shift=:
  9567. ;;
  9568. --*=)
  9569. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9570. ac_optarg=
  9571. ac_shift=:
  9572. ;;
  9573. *)
  9574. ac_option=$1
  9575. ac_optarg=$2
  9576. ac_shift=shift
  9577. ;;
  9578. esac
  9579. case $ac_option in
  9580. # Handling of the options.
  9581. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9582. ac_cs_recheck=: ;;
  9583. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9584. $as_echo "$ac_cs_version"; exit ;;
  9585. --config | --confi | --conf | --con | --co | --c )
  9586. $as_echo "$ac_cs_config"; exit ;;
  9587. --debug | --debu | --deb | --de | --d | -d )
  9588. debug=: ;;
  9589. --file | --fil | --fi | --f )
  9590. $ac_shift
  9591. case $ac_optarg in
  9592. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9593. '') as_fn_error $? "missing file argument" ;;
  9594. esac
  9595. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9596. ac_need_defaults=false;;
  9597. --header | --heade | --head | --hea )
  9598. $ac_shift
  9599. case $ac_optarg in
  9600. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9601. esac
  9602. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9603. ac_need_defaults=false;;
  9604. --he | --h)
  9605. # Conflict between --help and --header
  9606. as_fn_error $? "ambiguous option: \`$1'
  9607. Try \`$0 --help' for more information.";;
  9608. --help | --hel | -h )
  9609. $as_echo "$ac_cs_usage"; exit ;;
  9610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9612. ac_cs_silent=: ;;
  9613. # This is an error.
  9614. -*) as_fn_error $? "unrecognized option: \`$1'
  9615. Try \`$0 --help' for more information." ;;
  9616. *) as_fn_append ac_config_targets " $1"
  9617. ac_need_defaults=false ;;
  9618. esac
  9619. shift
  9620. done
  9621. ac_configure_extra_args=
  9622. if $ac_cs_silent; then
  9623. exec 6>/dev/null
  9624. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9625. fi
  9626. _ACEOF
  9627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9628. if \$ac_cs_recheck; then
  9629. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9630. shift
  9631. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9632. CONFIG_SHELL='$SHELL'
  9633. export CONFIG_SHELL
  9634. exec "\$@"
  9635. fi
  9636. _ACEOF
  9637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9638. exec 5>>config.log
  9639. {
  9640. echo
  9641. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9642. ## Running $as_me. ##
  9643. _ASBOX
  9644. $as_echo "$ac_log"
  9645. } >&5
  9646. _ACEOF
  9647. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9648. #
  9649. # INIT-COMMANDS
  9650. #
  9651. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9652. _ACEOF
  9653. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9654. # Handling of arguments.
  9655. for ac_config_target in $ac_config_targets
  9656. do
  9657. case $ac_config_target in
  9658. "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;;
  9659. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9660. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9661. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9662. esac
  9663. done
  9664. # If the user did not use the arguments to specify the items to instantiate,
  9665. # then the envvar interface is used. Set only those that are not.
  9666. # We use the long form for the default assignment because of an extremely
  9667. # bizarre bug on SunOS 4.1.3.
  9668. if $ac_need_defaults; then
  9669. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9670. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9671. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9672. fi
  9673. # Have a temporary directory for convenience. Make it in the build tree
  9674. # simply because there is no reason against having it here, and in addition,
  9675. # creating and moving files from /tmp can sometimes cause problems.
  9676. # Hook for its removal unless debugging.
  9677. # Note that there is a small window in which the directory will not be cleaned:
  9678. # after its creation but before its name has been assigned to `$tmp'.
  9679. $debug ||
  9680. {
  9681. tmp= ac_tmp=
  9682. trap 'exit_status=$?
  9683. : "${ac_tmp:=$tmp}"
  9684. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9685. ' 0
  9686. trap 'as_fn_exit 1' 1 2 13 15
  9687. }
  9688. # Create a (secure) tmp directory for tmp files.
  9689. {
  9690. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9691. test -d "$tmp"
  9692. } ||
  9693. {
  9694. tmp=./conf$$-$RANDOM
  9695. (umask 077 && mkdir "$tmp")
  9696. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9697. ac_tmp=$tmp
  9698. # Set up the scripts for CONFIG_FILES section.
  9699. # No need to generate them if there are no CONFIG_FILES.
  9700. # This happens for instance with `./config.status config.h'.
  9701. if test -n "$CONFIG_FILES"; then
  9702. ac_cr=`echo X | tr X '\015'`
  9703. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9704. # But we know of no other shell where ac_cr would be empty at this
  9705. # point, so we can use a bashism as a fallback.
  9706. if test "x$ac_cr" = x; then
  9707. eval ac_cr=\$\'\\r\'
  9708. fi
  9709. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9710. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9711. ac_cs_awk_cr='\\r'
  9712. else
  9713. ac_cs_awk_cr=$ac_cr
  9714. fi
  9715. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9716. _ACEOF
  9717. {
  9718. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9719. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9720. echo "_ACEOF"
  9721. } >conf$$subs.sh ||
  9722. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9723. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9724. ac_delim='%!_!# '
  9725. for ac_last_try in false false false false false :; do
  9726. . ./conf$$subs.sh ||
  9727. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9728. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9729. if test $ac_delim_n = $ac_delim_num; then
  9730. break
  9731. elif $ac_last_try; then
  9732. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9733. else
  9734. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9735. fi
  9736. done
  9737. rm -f conf$$subs.sh
  9738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9739. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9740. _ACEOF
  9741. sed -n '
  9742. h
  9743. s/^/S["/; s/!.*/"]=/
  9744. p
  9745. g
  9746. s/^[^!]*!//
  9747. :repl
  9748. t repl
  9749. s/'"$ac_delim"'$//
  9750. t delim
  9751. :nl
  9752. h
  9753. s/\(.\{148\}\)..*/\1/
  9754. t more1
  9755. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9756. p
  9757. n
  9758. b repl
  9759. :more1
  9760. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9761. p
  9762. g
  9763. s/.\{148\}//
  9764. t nl
  9765. :delim
  9766. h
  9767. s/\(.\{148\}\)..*/\1/
  9768. t more2
  9769. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9770. p
  9771. b
  9772. :more2
  9773. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9774. p
  9775. g
  9776. s/.\{148\}//
  9777. t delim
  9778. ' <conf$$subs.awk | sed '
  9779. /^[^""]/{
  9780. N
  9781. s/\n//
  9782. }
  9783. ' >>$CONFIG_STATUS || ac_write_fail=1
  9784. rm -f conf$$subs.awk
  9785. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9786. _ACAWK
  9787. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9788. for (key in S) S_is_set[key] = 1
  9789. FS = ""
  9790. }
  9791. {
  9792. line = $ 0
  9793. nfields = split(line, field, "@")
  9794. substed = 0
  9795. len = length(field[1])
  9796. for (i = 2; i < nfields; i++) {
  9797. key = field[i]
  9798. keylen = length(key)
  9799. if (S_is_set[key]) {
  9800. value = S[key]
  9801. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9802. len += length(value) + length(field[++i])
  9803. substed = 1
  9804. } else
  9805. len += 1 + keylen
  9806. }
  9807. print line
  9808. }
  9809. _ACAWK
  9810. _ACEOF
  9811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9812. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9813. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9814. else
  9815. cat
  9816. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9817. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9818. _ACEOF
  9819. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9820. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9821. # trailing colons and then remove the whole line if VPATH becomes empty
  9822. # (actually we leave an empty line to preserve line numbers).
  9823. if test "x$srcdir" = x.; then
  9824. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9825. h
  9826. s///
  9827. s/^/:/
  9828. s/[ ]*$/:/
  9829. s/:\$(srcdir):/:/g
  9830. s/:\${srcdir}:/:/g
  9831. s/:@srcdir@:/:/g
  9832. s/^:*//
  9833. s/:*$//
  9834. x
  9835. s/\(=[ ]*\).*/\1/
  9836. G
  9837. s/\n//
  9838. s/^[^=]*=[ ]*$//
  9839. }'
  9840. fi
  9841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9842. fi # test -n "$CONFIG_FILES"
  9843. # Set up the scripts for CONFIG_HEADERS section.
  9844. # No need to generate them if there are no CONFIG_HEADERS.
  9845. # This happens for instance with `./config.status Makefile'.
  9846. if test -n "$CONFIG_HEADERS"; then
  9847. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9848. BEGIN {
  9849. _ACEOF
  9850. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9851. # here-document in config.status, that substitutes the proper values into
  9852. # config.h.in to produce config.h.
  9853. # Create a delimiter string that does not exist in confdefs.h, to ease
  9854. # handling of long lines.
  9855. ac_delim='%!_!# '
  9856. for ac_last_try in false false :; do
  9857. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9858. if test -z "$ac_tt"; then
  9859. break
  9860. elif $ac_last_try; then
  9861. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9862. else
  9863. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9864. fi
  9865. done
  9866. # For the awk script, D is an array of macro values keyed by name,
  9867. # likewise P contains macro parameters if any. Preserve backslash
  9868. # newline sequences.
  9869. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9870. sed -n '
  9871. s/.\{148\}/&'"$ac_delim"'/g
  9872. t rset
  9873. :rset
  9874. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9875. t def
  9876. d
  9877. :def
  9878. s/\\$//
  9879. t bsnl
  9880. s/["\\]/\\&/g
  9881. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9882. D["\1"]=" \3"/p
  9883. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9884. d
  9885. :bsnl
  9886. s/["\\]/\\&/g
  9887. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9888. D["\1"]=" \3\\\\\\n"\\/p
  9889. t cont
  9890. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9891. t cont
  9892. d
  9893. :cont
  9894. n
  9895. s/.\{148\}/&'"$ac_delim"'/g
  9896. t clear
  9897. :clear
  9898. s/\\$//
  9899. t bsnlc
  9900. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9901. d
  9902. :bsnlc
  9903. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9904. b cont
  9905. ' <confdefs.h | sed '
  9906. s/'"$ac_delim"'/"\\\
  9907. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9908. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9909. for (key in D) D_is_set[key] = 1
  9910. FS = ""
  9911. }
  9912. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9913. line = \$ 0
  9914. split(line, arg, " ")
  9915. if (arg[1] == "#") {
  9916. defundef = arg[2]
  9917. mac1 = arg[3]
  9918. } else {
  9919. defundef = substr(arg[1], 2)
  9920. mac1 = arg[2]
  9921. }
  9922. split(mac1, mac2, "(") #)
  9923. macro = mac2[1]
  9924. prefix = substr(line, 1, index(line, defundef) - 1)
  9925. if (D_is_set[macro]) {
  9926. # Preserve the white space surrounding the "#".
  9927. print prefix "define", macro P[macro] D[macro]
  9928. next
  9929. } else {
  9930. # Replace #undef with comments. This is necessary, for example,
  9931. # in the case of _POSIX_SOURCE, which is predefined and required
  9932. # on some systems where configure will not decide to define it.
  9933. if (defundef == "undef") {
  9934. print "/*", prefix defundef, macro, "*/"
  9935. next
  9936. }
  9937. }
  9938. }
  9939. { print }
  9940. _ACAWK
  9941. _ACEOF
  9942. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9943. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9944. fi # test -n "$CONFIG_HEADERS"
  9945. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9946. shift
  9947. for ac_tag
  9948. do
  9949. case $ac_tag in
  9950. :[FHLC]) ac_mode=$ac_tag; continue;;
  9951. esac
  9952. case $ac_mode$ac_tag in
  9953. :[FHL]*:*);;
  9954. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9955. :[FH]-) ac_tag=-:-;;
  9956. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9957. esac
  9958. ac_save_IFS=$IFS
  9959. IFS=:
  9960. set x $ac_tag
  9961. IFS=$ac_save_IFS
  9962. shift
  9963. ac_file=$1
  9964. shift
  9965. case $ac_mode in
  9966. :L) ac_source=$1;;
  9967. :[FH])
  9968. ac_file_inputs=
  9969. for ac_f
  9970. do
  9971. case $ac_f in
  9972. -) ac_f="$ac_tmp/stdin";;
  9973. *) # Look for the file first in the build tree, then in the source tree
  9974. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9975. # because $ac_f cannot contain `:'.
  9976. test -f "$ac_f" ||
  9977. case $ac_f in
  9978. [\\/$]*) false;;
  9979. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9980. esac ||
  9981. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9982. esac
  9983. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9984. as_fn_append ac_file_inputs " '$ac_f'"
  9985. done
  9986. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9987. # use $as_me), people would be surprised to read:
  9988. # /* config.h. Generated by config.status. */
  9989. configure_input='Generated from '`
  9990. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9991. `' by configure.'
  9992. if test x"$ac_file" != x-; then
  9993. configure_input="$ac_file. $configure_input"
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9995. $as_echo "$as_me: creating $ac_file" >&6;}
  9996. fi
  9997. # Neutralize special characters interpreted by sed in replacement strings.
  9998. case $configure_input in #(
  9999. *\&* | *\|* | *\\* )
  10000. ac_sed_conf_input=`$as_echo "$configure_input" |
  10001. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10002. *) ac_sed_conf_input=$configure_input;;
  10003. esac
  10004. case $ac_tag in
  10005. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10006. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10007. esac
  10008. ;;
  10009. esac
  10010. ac_dir=`$as_dirname -- "$ac_file" ||
  10011. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10012. X"$ac_file" : 'X\(//\)[^/]' \| \
  10013. X"$ac_file" : 'X\(//\)$' \| \
  10014. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10015. $as_echo X"$ac_file" |
  10016. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10017. s//\1/
  10018. q
  10019. }
  10020. /^X\(\/\/\)[^/].*/{
  10021. s//\1/
  10022. q
  10023. }
  10024. /^X\(\/\/\)$/{
  10025. s//\1/
  10026. q
  10027. }
  10028. /^X\(\/\).*/{
  10029. s//\1/
  10030. q
  10031. }
  10032. s/.*/./; q'`
  10033. as_dir="$ac_dir"; as_fn_mkdir_p
  10034. ac_builddir=.
  10035. case "$ac_dir" in
  10036. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10037. *)
  10038. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10039. # A ".." for each directory in $ac_dir_suffix.
  10040. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10041. case $ac_top_builddir_sub in
  10042. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10043. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10044. esac ;;
  10045. esac
  10046. ac_abs_top_builddir=$ac_pwd
  10047. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10048. # for backward compatibility:
  10049. ac_top_builddir=$ac_top_build_prefix
  10050. case $srcdir in
  10051. .) # We are building in place.
  10052. ac_srcdir=.
  10053. ac_top_srcdir=$ac_top_builddir_sub
  10054. ac_abs_top_srcdir=$ac_pwd ;;
  10055. [\\/]* | ?:[\\/]* ) # Absolute name.
  10056. ac_srcdir=$srcdir$ac_dir_suffix;
  10057. ac_top_srcdir=$srcdir
  10058. ac_abs_top_srcdir=$srcdir ;;
  10059. *) # Relative name.
  10060. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10061. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10062. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10063. esac
  10064. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10065. case $ac_mode in
  10066. :F)
  10067. #
  10068. # CONFIG_FILE
  10069. #
  10070. case $INSTALL in
  10071. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10072. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10073. esac
  10074. ac_MKDIR_P=$MKDIR_P
  10075. case $MKDIR_P in
  10076. [\\/$]* | ?:[\\/]* ) ;;
  10077. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10078. esac
  10079. _ACEOF
  10080. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10081. # If the template does not know about datarootdir, expand it.
  10082. # FIXME: This hack should be removed a few years after 2.60.
  10083. ac_datarootdir_hack=; ac_datarootdir_seen=
  10084. ac_sed_dataroot='
  10085. /datarootdir/ {
  10086. p
  10087. q
  10088. }
  10089. /@datadir@/p
  10090. /@docdir@/p
  10091. /@infodir@/p
  10092. /@localedir@/p
  10093. /@mandir@/p'
  10094. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10095. *datarootdir*) ac_datarootdir_seen=yes;;
  10096. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10098. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10099. _ACEOF
  10100. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10101. ac_datarootdir_hack='
  10102. s&@datadir@&$datadir&g
  10103. s&@docdir@&$docdir&g
  10104. s&@infodir@&$infodir&g
  10105. s&@localedir@&$localedir&g
  10106. s&@mandir@&$mandir&g
  10107. s&\\\${datarootdir}&$datarootdir&g' ;;
  10108. esac
  10109. _ACEOF
  10110. # Neutralize VPATH when `$srcdir' = `.'.
  10111. # Shell code in configure.ac might set extrasub.
  10112. # FIXME: do we really want to maintain this feature?
  10113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10114. ac_sed_extra="$ac_vpsub
  10115. $extrasub
  10116. _ACEOF
  10117. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10118. :t
  10119. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10120. s|@configure_input@|$ac_sed_conf_input|;t t
  10121. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10122. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10123. s&@srcdir@&$ac_srcdir&;t t
  10124. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10125. s&@top_srcdir@&$ac_top_srcdir&;t t
  10126. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10127. s&@builddir@&$ac_builddir&;t t
  10128. s&@abs_builddir@&$ac_abs_builddir&;t t
  10129. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10130. s&@INSTALL@&$ac_INSTALL&;t t
  10131. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10132. $ac_datarootdir_hack
  10133. "
  10134. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10135. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10136. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10137. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10138. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10139. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10141. which seems to be undefined. Please make sure it is defined" >&5
  10142. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10143. which seems to be undefined. Please make sure it is defined" >&2;}
  10144. rm -f "$ac_tmp/stdin"
  10145. case $ac_file in
  10146. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10147. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10148. esac \
  10149. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10150. ;;
  10151. :H)
  10152. #
  10153. # CONFIG_HEADER
  10154. #
  10155. if test x"$ac_file" != x-; then
  10156. {
  10157. $as_echo "/* $configure_input */" \
  10158. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10159. } >"$ac_tmp/config.h" \
  10160. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10161. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10163. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10164. else
  10165. rm -f "$ac_file"
  10166. mv "$ac_tmp/config.h" "$ac_file" \
  10167. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10168. fi
  10169. else
  10170. $as_echo "/* $configure_input */" \
  10171. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10172. || as_fn_error $? "could not create -" "$LINENO" 5
  10173. fi
  10174. # Compute "$ac_file"'s index in $config_headers.
  10175. _am_arg="$ac_file"
  10176. _am_stamp_count=1
  10177. for _am_header in $config_headers :; do
  10178. case $_am_header in
  10179. $_am_arg | $_am_arg:* )
  10180. break ;;
  10181. * )
  10182. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10183. esac
  10184. done
  10185. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10186. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10187. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10188. X"$_am_arg" : 'X\(//\)$' \| \
  10189. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10190. $as_echo X"$_am_arg" |
  10191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10192. s//\1/
  10193. q
  10194. }
  10195. /^X\(\/\/\)[^/].*/{
  10196. s//\1/
  10197. q
  10198. }
  10199. /^X\(\/\/\)$/{
  10200. s//\1/
  10201. q
  10202. }
  10203. /^X\(\/\).*/{
  10204. s//\1/
  10205. q
  10206. }
  10207. s/.*/./; q'`/stamp-h$_am_stamp_count
  10208. ;;
  10209. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10210. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10211. ;;
  10212. esac
  10213. case $ac_file$ac_mode in
  10214. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10215. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10216. # are listed without --file. Let's play safe and only enable the eval
  10217. # if we detect the quoting.
  10218. case $CONFIG_FILES in
  10219. *\'*) eval set x "$CONFIG_FILES" ;;
  10220. *) set x $CONFIG_FILES ;;
  10221. esac
  10222. shift
  10223. for mf
  10224. do
  10225. # Strip MF so we end up with the name of the file.
  10226. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10227. # Check whether this is an Automake generated Makefile or not.
  10228. # We used to match only the files named 'Makefile.in', but
  10229. # some people rename them; so instead we look at the file content.
  10230. # Grep'ing the first line is not enough: some people post-process
  10231. # each Makefile.in and add a new line on top of each file to say so.
  10232. # Grep'ing the whole file is not good either: AIX grep has a line
  10233. # limit of 2048, but all sed's we know have understand at least 4000.
  10234. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10235. dirpart=`$as_dirname -- "$mf" ||
  10236. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10237. X"$mf" : 'X\(//\)[^/]' \| \
  10238. X"$mf" : 'X\(//\)$' \| \
  10239. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10240. $as_echo X"$mf" |
  10241. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10242. s//\1/
  10243. q
  10244. }
  10245. /^X\(\/\/\)[^/].*/{
  10246. s//\1/
  10247. q
  10248. }
  10249. /^X\(\/\/\)$/{
  10250. s//\1/
  10251. q
  10252. }
  10253. /^X\(\/\).*/{
  10254. s//\1/
  10255. q
  10256. }
  10257. s/.*/./; q'`
  10258. else
  10259. continue
  10260. fi
  10261. # Extract the definition of DEPDIR, am__include, and am__quote
  10262. # from the Makefile without running 'make'.
  10263. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10264. test -z "$DEPDIR" && continue
  10265. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10266. test -z "am__include" && continue
  10267. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10268. # Find all dependency output files, they are included files with
  10269. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10270. # simplest approach to changing $(DEPDIR) to its actual value in the
  10271. # expansion.
  10272. for file in `sed -n "
  10273. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10274. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10275. # Make sure the directory exists.
  10276. test -f "$dirpart/$file" && continue
  10277. fdir=`$as_dirname -- "$file" ||
  10278. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10279. X"$file" : 'X\(//\)[^/]' \| \
  10280. X"$file" : 'X\(//\)$' \| \
  10281. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10282. $as_echo X"$file" |
  10283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10284. s//\1/
  10285. q
  10286. }
  10287. /^X\(\/\/\)[^/].*/{
  10288. s//\1/
  10289. q
  10290. }
  10291. /^X\(\/\/\)$/{
  10292. s//\1/
  10293. q
  10294. }
  10295. /^X\(\/\).*/{
  10296. s//\1/
  10297. q
  10298. }
  10299. s/.*/./; q'`
  10300. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10301. # echo "creating $dirpart/$file"
  10302. echo '# dummy' > "$dirpart/$file"
  10303. done
  10304. done
  10305. }
  10306. ;;
  10307. esac
  10308. done # for ac_tag
  10309. as_fn_exit 0
  10310. _ACEOF
  10311. ac_clean_files=$ac_clean_files_save
  10312. test $ac_write_fail = 0 ||
  10313. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10314. # configure is writing to config.log, and then calls config.status.
  10315. # config.status does its own redirection, appending to config.log.
  10316. # Unfortunately, on DOS this fails, as config.log is still kept open
  10317. # by configure, so config.status won't be able to write to it; its
  10318. # output is simply discarded. So we exec the FD to /dev/null,
  10319. # effectively closing config.log, so it can be properly (re)opened and
  10320. # appended to by config.status. When coming back to configure, we
  10321. # need to make the FD available again.
  10322. if test "$no_create" != yes; then
  10323. ac_cs_success=:
  10324. ac_config_status_args=
  10325. test "$silent" = yes &&
  10326. ac_config_status_args="$ac_config_status_args --quiet"
  10327. exec 5>/dev/null
  10328. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10329. exec 5>>config.log
  10330. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10331. # would make configure fail if this is the last instruction.
  10332. $ac_cs_success || as_fn_exit 1
  10333. fi
  10334. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10336. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10337. fi