configure 331 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xcmsdb 1.0.5.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xcmsdb'
  535. PACKAGE_TARNAME='xcmsdb'
  536. PACKAGE_VERSION='1.0.5'
  537. PACKAGE_STRING='xcmsdb 1.0.5'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XCMSDB_LIBS
  581. XCMSDB_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. CHANGELOG_CMD
  614. STRICT_CFLAGS
  615. CWARNFLAGS
  616. BASE_CFLAGS
  617. EGREP
  618. GREP
  619. CPP
  620. am__fastdepCC_FALSE
  621. am__fastdepCC_TRUE
  622. CCDEPMODE
  623. am__nodep
  624. AMDEPBACKSLASH
  625. AMDEP_FALSE
  626. AMDEP_TRUE
  627. am__quote
  628. am__include
  629. DEPDIR
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. am__untar
  638. am__tar
  639. AMTAR
  640. am__leading_dot
  641. SET_MAKE
  642. AWK
  643. mkdir_p
  644. MKDIR_P
  645. INSTALL_STRIP_PROGRAM
  646. STRIP
  647. install_sh
  648. MAKEINFO
  649. AUTOHEADER
  650. AUTOMAKE
  651. AUTOCONF
  652. ACLOCAL
  653. VERSION
  654. PACKAGE
  655. CYGPATH_W
  656. am__isrc
  657. INSTALL_DATA
  658. INSTALL_SCRIPT
  659. INSTALL_PROGRAM
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. enable_dependency_tracking
  702. enable_selective_werror
  703. enable_strict_compilation
  704. enable_silent_rules
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. PKG_CONFIG
  716. PKG_CONFIG_PATH
  717. PKG_CONFIG_LIBDIR
  718. XCMSDB_CFLAGS
  719. XCMSDB_LIBS'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures xcmsdb 1.0.5 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/xcmsdb]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of xcmsdb 1.0.5:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dependency-tracking
  1257. do not reject slow dependency extractors
  1258. --disable-dependency-tracking
  1259. speeds up one-time build
  1260. --disable-selective-werror
  1261. Turn off selective compiler errors. (default:
  1262. enabled)
  1263. --enable-strict-compilation
  1264. Enable all warnings from compiler and make them
  1265. errors (default: disabled)
  1266. --enable-silent-rules less verbose build output (undo: "make V=1")
  1267. --disable-silent-rules verbose build output (undo: "make V=0")
  1268. Some influential environment variables:
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1272. nonstandard directory <lib dir>
  1273. LIBS libraries to pass to the linker, e.g. -l<library>
  1274. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1275. you have headers in a nonstandard directory <include dir>
  1276. CPP C preprocessor
  1277. PKG_CONFIG path to pkg-config utility
  1278. PKG_CONFIG_PATH
  1279. directories to add to pkg-config's search path
  1280. PKG_CONFIG_LIBDIR
  1281. path overriding pkg-config's built-in search path
  1282. XCMSDB_CFLAGS
  1283. C compiler flags for XCMSDB, overriding pkg-config
  1284. XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1288. _ACEOF
  1289. ac_status=$?
  1290. fi
  1291. if test "$ac_init_help" = "recursive"; then
  1292. # If there are subdirs, report their specific --help.
  1293. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1294. test -d "$ac_dir" ||
  1295. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1296. continue
  1297. ac_builddir=.
  1298. case "$ac_dir" in
  1299. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *)
  1301. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1302. # A ".." for each directory in $ac_dir_suffix.
  1303. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1304. case $ac_top_builddir_sub in
  1305. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1306. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1307. esac ;;
  1308. esac
  1309. ac_abs_top_builddir=$ac_pwd
  1310. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1311. # for backward compatibility:
  1312. ac_top_builddir=$ac_top_build_prefix
  1313. case $srcdir in
  1314. .) # We are building in place.
  1315. ac_srcdir=.
  1316. ac_top_srcdir=$ac_top_builddir_sub
  1317. ac_abs_top_srcdir=$ac_pwd ;;
  1318. [\\/]* | ?:[\\/]* ) # Absolute name.
  1319. ac_srcdir=$srcdir$ac_dir_suffix;
  1320. ac_top_srcdir=$srcdir
  1321. ac_abs_top_srcdir=$srcdir ;;
  1322. *) # Relative name.
  1323. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1324. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1325. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1326. esac
  1327. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1328. cd "$ac_dir" || { ac_status=$?; continue; }
  1329. # Check for guested configure.
  1330. if test -f "$ac_srcdir/configure.gnu"; then
  1331. echo &&
  1332. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1333. elif test -f "$ac_srcdir/configure"; then
  1334. echo &&
  1335. $SHELL "$ac_srcdir/configure" --help=recursive
  1336. else
  1337. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1338. fi || ac_status=$?
  1339. cd "$ac_pwd" || { ac_status=$?; break; }
  1340. done
  1341. fi
  1342. test -n "$ac_init_help" && exit $ac_status
  1343. if $ac_init_version; then
  1344. cat <<\_ACEOF
  1345. xcmsdb configure 1.0.5
  1346. generated by GNU Autoconf 2.69
  1347. Copyright (C) 2012 Free Software Foundation, Inc.
  1348. This configure script is free software; the Free Software Foundation
  1349. gives unlimited permission to copy, distribute and modify it.
  1350. _ACEOF
  1351. exit
  1352. fi
  1353. ## ------------------------ ##
  1354. ## Autoconf initialization. ##
  1355. ## ------------------------ ##
  1356. # ac_fn_c_try_compile LINENO
  1357. # --------------------------
  1358. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1359. ac_fn_c_try_compile ()
  1360. {
  1361. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1362. rm -f conftest.$ac_objext
  1363. if { { ac_try="$ac_compile"
  1364. case "(($ac_try" in
  1365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1366. *) ac_try_echo=$ac_try;;
  1367. esac
  1368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1369. $as_echo "$ac_try_echo"; } >&5
  1370. (eval "$ac_compile") 2>conftest.err
  1371. ac_status=$?
  1372. if test -s conftest.err; then
  1373. grep -v '^ *+' conftest.err >conftest.er1
  1374. cat conftest.er1 >&5
  1375. mv -f conftest.er1 conftest.err
  1376. fi
  1377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1378. test $ac_status = 0; } && {
  1379. test -z "$ac_c_werror_flag" ||
  1380. test ! -s conftest.err
  1381. } && test -s conftest.$ac_objext; then :
  1382. ac_retval=0
  1383. else
  1384. $as_echo "$as_me: failed program was:" >&5
  1385. sed 's/^/| /' conftest.$ac_ext >&5
  1386. ac_retval=1
  1387. fi
  1388. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1389. as_fn_set_status $ac_retval
  1390. } # ac_fn_c_try_compile
  1391. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1392. # ---------------------------------------------
  1393. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1394. # accordingly.
  1395. ac_fn_c_check_decl ()
  1396. {
  1397. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1398. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1399. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1401. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1402. if eval \${$3+:} false; then :
  1403. $as_echo_n "(cached) " >&6
  1404. else
  1405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1406. /* end confdefs.h. */
  1407. $4
  1408. int
  1409. main ()
  1410. {
  1411. #ifndef $as_decl_name
  1412. #ifdef __cplusplus
  1413. (void) $as_decl_use;
  1414. #else
  1415. (void) $as_decl_name;
  1416. #endif
  1417. #endif
  1418. ;
  1419. return 0;
  1420. }
  1421. _ACEOF
  1422. if ac_fn_c_try_compile "$LINENO"; then :
  1423. eval "$3=yes"
  1424. else
  1425. eval "$3=no"
  1426. fi
  1427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1428. fi
  1429. eval ac_res=\$$3
  1430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1431. $as_echo "$ac_res" >&6; }
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. } # ac_fn_c_check_decl
  1434. # ac_fn_c_try_cpp LINENO
  1435. # ----------------------
  1436. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_cpp ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1441. case "(($ac_try" in
  1442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1443. *) ac_try_echo=$ac_try;;
  1444. esac
  1445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1446. $as_echo "$ac_try_echo"; } >&5
  1447. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1448. ac_status=$?
  1449. if test -s conftest.err; then
  1450. grep -v '^ *+' conftest.err >conftest.er1
  1451. cat conftest.er1 >&5
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; } > conftest.i && {
  1456. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1457. test ! -s conftest.err
  1458. }; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_cpp
  1468. # ac_fn_c_try_run LINENO
  1469. # ----------------------
  1470. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1471. # that executables *can* be run.
  1472. ac_fn_c_try_run ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. if { { ac_try="$ac_link"
  1476. case "(($ac_try" in
  1477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1478. *) ac_try_echo=$ac_try;;
  1479. esac
  1480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1481. $as_echo "$ac_try_echo"; } >&5
  1482. (eval "$ac_link") 2>&5
  1483. ac_status=$?
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1486. { { case "(($ac_try" in
  1487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1488. *) ac_try_echo=$ac_try;;
  1489. esac
  1490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1491. $as_echo "$ac_try_echo"; } >&5
  1492. (eval "$ac_try") 2>&5
  1493. ac_status=$?
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; }; }; then :
  1496. ac_retval=0
  1497. else
  1498. $as_echo "$as_me: program exited with status $ac_status" >&5
  1499. $as_echo "$as_me: failed program was:" >&5
  1500. sed 's/^/| /' conftest.$ac_ext >&5
  1501. ac_retval=$ac_status
  1502. fi
  1503. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. as_fn_set_status $ac_retval
  1506. } # ac_fn_c_try_run
  1507. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1508. # -------------------------------------------------------
  1509. # Tests whether HEADER exists and can be compiled using the include files in
  1510. # INCLUDES, setting the cache variable VAR accordingly.
  1511. ac_fn_c_check_header_compile ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1515. $as_echo_n "checking for $2... " >&6; }
  1516. if eval \${$3+:} false; then :
  1517. $as_echo_n "(cached) " >&6
  1518. else
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. $4
  1522. #include <$2>
  1523. _ACEOF
  1524. if ac_fn_c_try_compile "$LINENO"; then :
  1525. eval "$3=yes"
  1526. else
  1527. eval "$3=no"
  1528. fi
  1529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1530. fi
  1531. eval ac_res=\$$3
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. $as_echo "$ac_res" >&6; }
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_c_check_header_compile
  1536. # ac_fn_c_try_link LINENO
  1537. # -----------------------
  1538. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_link ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. rm -f conftest.$ac_objext conftest$ac_exeext
  1543. if { { ac_try="$ac_link"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_link") 2>conftest.err
  1551. ac_status=$?
  1552. if test -s conftest.err; then
  1553. grep -v '^ *+' conftest.err >conftest.er1
  1554. cat conftest.er1 >&5
  1555. mv -f conftest.er1 conftest.err
  1556. fi
  1557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1558. test $ac_status = 0; } && {
  1559. test -z "$ac_c_werror_flag" ||
  1560. test ! -s conftest.err
  1561. } && test -s conftest$ac_exeext && {
  1562. test "$cross_compiling" = yes ||
  1563. test -x conftest$ac_exeext
  1564. }; then :
  1565. ac_retval=0
  1566. else
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=1
  1570. fi
  1571. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1572. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1573. # interfere with the next link command; also delete a directory that is
  1574. # left behind by Apple's compiler. We do this before executing the actions.
  1575. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. as_fn_set_status $ac_retval
  1578. } # ac_fn_c_try_link
  1579. cat >config.log <<_ACEOF
  1580. This file contains any messages produced by compilers while
  1581. running configure, to aid debugging if configure makes a mistake.
  1582. It was created by xcmsdb $as_me 1.0.5, which was
  1583. generated by GNU Autoconf 2.69. Invocation command line was
  1584. $ $0 $@
  1585. _ACEOF
  1586. exec 5>>config.log
  1587. {
  1588. cat <<_ASUNAME
  1589. ## --------- ##
  1590. ## Platform. ##
  1591. ## --------- ##
  1592. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1593. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1594. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1595. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1596. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1597. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1598. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1599. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1600. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1601. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1602. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1603. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1604. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1605. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1606. _ASUNAME
  1607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1608. for as_dir in $PATH
  1609. do
  1610. IFS=$as_save_IFS
  1611. test -z "$as_dir" && as_dir=.
  1612. $as_echo "PATH: $as_dir"
  1613. done
  1614. IFS=$as_save_IFS
  1615. } >&5
  1616. cat >&5 <<_ACEOF
  1617. ## ----------- ##
  1618. ## Core tests. ##
  1619. ## ----------- ##
  1620. _ACEOF
  1621. # Keep a trace of the command line.
  1622. # Strip out --no-create and --no-recursion so they do not pile up.
  1623. # Strip out --silent because we don't want to record it for future runs.
  1624. # Also quote any args containing shell meta-characters.
  1625. # Make two passes to allow for proper duplicate-argument suppression.
  1626. ac_configure_args=
  1627. ac_configure_args0=
  1628. ac_configure_args1=
  1629. ac_must_keep_next=false
  1630. for ac_pass in 1 2
  1631. do
  1632. for ac_arg
  1633. do
  1634. case $ac_arg in
  1635. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1636. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1637. | -silent | --silent | --silen | --sile | --sil)
  1638. continue ;;
  1639. *\'*)
  1640. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1641. esac
  1642. case $ac_pass in
  1643. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1644. 2)
  1645. as_fn_append ac_configure_args1 " '$ac_arg'"
  1646. if test $ac_must_keep_next = true; then
  1647. ac_must_keep_next=false # Got value, back to normal.
  1648. else
  1649. case $ac_arg in
  1650. *=* | --config-cache | -C | -disable-* | --disable-* \
  1651. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1652. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1653. | -with-* | --with-* | -without-* | --without-* | --x)
  1654. case "$ac_configure_args0 " in
  1655. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1656. esac
  1657. ;;
  1658. -* ) ac_must_keep_next=true ;;
  1659. esac
  1660. fi
  1661. as_fn_append ac_configure_args " '$ac_arg'"
  1662. ;;
  1663. esac
  1664. done
  1665. done
  1666. { ac_configure_args0=; unset ac_configure_args0;}
  1667. { ac_configure_args1=; unset ac_configure_args1;}
  1668. # When interrupted or exit'd, cleanup temporary files, and complete
  1669. # config.log. We remove comments because anyway the quotes in there
  1670. # would cause problems or look ugly.
  1671. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1672. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1673. trap 'exit_status=$?
  1674. # Save into config.log some information that might help in debugging.
  1675. {
  1676. echo
  1677. $as_echo "## ---------------- ##
  1678. ## Cache variables. ##
  1679. ## ---------------- ##"
  1680. echo
  1681. # The following way of writing the cache mishandles newlines in values,
  1682. (
  1683. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1684. eval ac_val=\$$ac_var
  1685. case $ac_val in #(
  1686. *${as_nl}*)
  1687. case $ac_var in #(
  1688. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1689. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1690. esac
  1691. case $ac_var in #(
  1692. _ | IFS | as_nl) ;; #(
  1693. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1694. *) { eval $ac_var=; unset $ac_var;} ;;
  1695. esac ;;
  1696. esac
  1697. done
  1698. (set) 2>&1 |
  1699. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1700. *${as_nl}ac_space=\ *)
  1701. sed -n \
  1702. "s/'\''/'\''\\\\'\'''\''/g;
  1703. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1704. ;; #(
  1705. *)
  1706. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1707. ;;
  1708. esac |
  1709. sort
  1710. )
  1711. echo
  1712. $as_echo "## ----------------- ##
  1713. ## Output variables. ##
  1714. ## ----------------- ##"
  1715. echo
  1716. for ac_var in $ac_subst_vars
  1717. do
  1718. eval ac_val=\$$ac_var
  1719. case $ac_val in
  1720. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1721. esac
  1722. $as_echo "$ac_var='\''$ac_val'\''"
  1723. done | sort
  1724. echo
  1725. if test -n "$ac_subst_files"; then
  1726. $as_echo "## ------------------- ##
  1727. ## File substitutions. ##
  1728. ## ------------------- ##"
  1729. echo
  1730. for ac_var in $ac_subst_files
  1731. do
  1732. eval ac_val=\$$ac_var
  1733. case $ac_val in
  1734. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1735. esac
  1736. $as_echo "$ac_var='\''$ac_val'\''"
  1737. done | sort
  1738. echo
  1739. fi
  1740. if test -s confdefs.h; then
  1741. $as_echo "## ----------- ##
  1742. ## confdefs.h. ##
  1743. ## ----------- ##"
  1744. echo
  1745. cat confdefs.h
  1746. echo
  1747. fi
  1748. test "$ac_signal" != 0 &&
  1749. $as_echo "$as_me: caught signal $ac_signal"
  1750. $as_echo "$as_me: exit $exit_status"
  1751. } >&5
  1752. rm -f core *.core core.conftest.* &&
  1753. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1754. exit $exit_status
  1755. ' 0
  1756. for ac_signal in 1 2 13 15; do
  1757. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1758. done
  1759. ac_signal=0
  1760. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1761. rm -f -r conftest* confdefs.h
  1762. $as_echo "/* confdefs.h */" > confdefs.h
  1763. # Predefined preprocessor variables.
  1764. cat >>confdefs.h <<_ACEOF
  1765. #define PACKAGE_NAME "$PACKAGE_NAME"
  1766. _ACEOF
  1767. cat >>confdefs.h <<_ACEOF
  1768. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1769. _ACEOF
  1770. cat >>confdefs.h <<_ACEOF
  1771. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1772. _ACEOF
  1773. cat >>confdefs.h <<_ACEOF
  1774. #define PACKAGE_STRING "$PACKAGE_STRING"
  1775. _ACEOF
  1776. cat >>confdefs.h <<_ACEOF
  1777. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1778. _ACEOF
  1779. cat >>confdefs.h <<_ACEOF
  1780. #define PACKAGE_URL "$PACKAGE_URL"
  1781. _ACEOF
  1782. # Let the site file select an alternate cache file if it wants to.
  1783. # Prefer an explicitly selected file to automatically selected ones.
  1784. ac_site_file1=NONE
  1785. ac_site_file2=NONE
  1786. if test -n "$CONFIG_SITE"; then
  1787. # We do not want a PATH search for config.site.
  1788. case $CONFIG_SITE in #((
  1789. -*) ac_site_file1=./$CONFIG_SITE;;
  1790. */*) ac_site_file1=$CONFIG_SITE;;
  1791. *) ac_site_file1=./$CONFIG_SITE;;
  1792. esac
  1793. elif test "x$prefix" != xNONE; then
  1794. ac_site_file1=$prefix/share/config.site
  1795. ac_site_file2=$prefix/etc/config.site
  1796. else
  1797. ac_site_file1=$ac_default_prefix/share/config.site
  1798. ac_site_file2=$ac_default_prefix/etc/config.site
  1799. fi
  1800. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1801. do
  1802. test "x$ac_site_file" = xNONE && continue
  1803. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1805. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1806. sed 's/^/| /' "$ac_site_file" >&5
  1807. . "$ac_site_file" \
  1808. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1810. as_fn_error $? "failed to load site script $ac_site_file
  1811. See \`config.log' for more details" "$LINENO" 5; }
  1812. fi
  1813. done
  1814. if test -r "$cache_file"; then
  1815. # Some versions of bash will fail to source /dev/null (special files
  1816. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1817. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1819. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1820. case $cache_file in
  1821. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1822. *) . "./$cache_file";;
  1823. esac
  1824. fi
  1825. else
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1827. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1828. >$cache_file
  1829. fi
  1830. # Check that the precious variables saved in the cache have kept the same
  1831. # value.
  1832. ac_cache_corrupted=false
  1833. for ac_var in $ac_precious_vars; do
  1834. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1835. eval ac_new_set=\$ac_env_${ac_var}_set
  1836. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1837. eval ac_new_val=\$ac_env_${ac_var}_value
  1838. case $ac_old_set,$ac_new_set in
  1839. set,)
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1841. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1842. ac_cache_corrupted=: ;;
  1843. ,set)
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1845. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1846. ac_cache_corrupted=: ;;
  1847. ,);;
  1848. *)
  1849. if test "x$ac_old_val" != "x$ac_new_val"; then
  1850. # differences in whitespace do not lead to failure.
  1851. ac_old_val_w=`echo x $ac_old_val`
  1852. ac_new_val_w=`echo x $ac_new_val`
  1853. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1855. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1856. ac_cache_corrupted=:
  1857. else
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1859. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1860. eval $ac_var=\$ac_old_val
  1861. fi
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1863. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1865. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1866. fi;;
  1867. esac
  1868. # Pass precious variables to config.status.
  1869. if test "$ac_new_set" = set; then
  1870. case $ac_new_val in
  1871. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1872. *) ac_arg=$ac_var=$ac_new_val ;;
  1873. esac
  1874. case " $ac_configure_args " in
  1875. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1876. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1877. esac
  1878. fi
  1879. done
  1880. if $ac_cache_corrupted; then
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1884. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1885. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1886. fi
  1887. ## -------------------- ##
  1888. ## Main body of script. ##
  1889. ## -------------------- ##
  1890. ac_ext=c
  1891. ac_cpp='$CPP $CPPFLAGS'
  1892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1895. ac_config_headers="$ac_config_headers config.h"
  1896. # Initialize Automake
  1897. am__api_version='1.12'
  1898. ac_aux_dir=
  1899. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1900. if test -f "$ac_dir/install-sh"; then
  1901. ac_aux_dir=$ac_dir
  1902. ac_install_sh="$ac_aux_dir/install-sh -c"
  1903. break
  1904. elif test -f "$ac_dir/install.sh"; then
  1905. ac_aux_dir=$ac_dir
  1906. ac_install_sh="$ac_aux_dir/install.sh -c"
  1907. break
  1908. elif test -f "$ac_dir/shtool"; then
  1909. ac_aux_dir=$ac_dir
  1910. ac_install_sh="$ac_aux_dir/shtool install -c"
  1911. break
  1912. fi
  1913. done
  1914. if test -z "$ac_aux_dir"; then
  1915. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1916. fi
  1917. # These three variables are undocumented and unsupported,
  1918. # and are intended to be withdrawn in a future Autoconf release.
  1919. # They can cause serious problems if a builder's source tree is in a directory
  1920. # whose full name contains unusual characters.
  1921. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1922. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1923. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1924. # Find a good install program. We prefer a C program (faster),
  1925. # so one script is as good as another. But avoid the broken or
  1926. # incompatible versions:
  1927. # SysV /etc/install, /usr/sbin/install
  1928. # SunOS /usr/etc/install
  1929. # IRIX /sbin/install
  1930. # AIX /bin/install
  1931. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1932. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1933. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1934. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1935. # OS/2's system install, which has a completely different semantic
  1936. # ./install, which can be erroneously created by make from ./install.sh.
  1937. # Reject install programs that cannot install multiple files.
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1939. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1940. if test -z "$INSTALL"; then
  1941. if ${ac_cv_path_install+:} false; then :
  1942. $as_echo_n "(cached) " >&6
  1943. else
  1944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1945. for as_dir in $PATH
  1946. do
  1947. IFS=$as_save_IFS
  1948. test -z "$as_dir" && as_dir=.
  1949. # Account for people who put trailing slashes in PATH elements.
  1950. case $as_dir/ in #((
  1951. ./ | .// | /[cC]/* | \
  1952. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1953. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1954. /usr/ucb/* ) ;;
  1955. *)
  1956. # OSF1 and SCO ODT 3.0 have their own names for install.
  1957. # Don't use installbsd from OSF since it installs stuff as root
  1958. # by default.
  1959. for ac_prog in ginstall scoinst install; do
  1960. for ac_exec_ext in '' $ac_executable_extensions; do
  1961. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1962. if test $ac_prog = install &&
  1963. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1964. # AIX install. It has an incompatible calling convention.
  1965. :
  1966. elif test $ac_prog = install &&
  1967. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1968. # program-specific install script used by HP pwplus--don't use.
  1969. :
  1970. else
  1971. rm -rf conftest.one conftest.two conftest.dir
  1972. echo one > conftest.one
  1973. echo two > conftest.two
  1974. mkdir conftest.dir
  1975. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1976. test -s conftest.one && test -s conftest.two &&
  1977. test -s conftest.dir/conftest.one &&
  1978. test -s conftest.dir/conftest.two
  1979. then
  1980. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1981. break 3
  1982. fi
  1983. fi
  1984. fi
  1985. done
  1986. done
  1987. ;;
  1988. esac
  1989. done
  1990. IFS=$as_save_IFS
  1991. rm -rf conftest.one conftest.two conftest.dir
  1992. fi
  1993. if test "${ac_cv_path_install+set}" = set; then
  1994. INSTALL=$ac_cv_path_install
  1995. else
  1996. # As a last resort, use the slow shell script. Don't cache a
  1997. # value for INSTALL within a source directory, because that will
  1998. # break other packages using the cache if that directory is
  1999. # removed, or if the value is a relative name.
  2000. INSTALL=$ac_install_sh
  2001. fi
  2002. fi
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2004. $as_echo "$INSTALL" >&6; }
  2005. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2006. # It thinks the first close brace ends the variable substitution.
  2007. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2008. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2009. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2011. $as_echo_n "checking whether build environment is sane... " >&6; }
  2012. # Reject unsafe characters in $srcdir or the absolute working directory
  2013. # name. Accept space and tab only in the latter.
  2014. am_lf='
  2015. '
  2016. case `pwd` in
  2017. *[\\\"\#\$\&\'\`$am_lf]*)
  2018. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2019. esac
  2020. case $srcdir in
  2021. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2022. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2023. esac
  2024. # Do 'set' in a subshell so we don't clobber the current shell's
  2025. # arguments. Must try -L first in case configure is actually a
  2026. # symlink; some systems play weird games with the mod time of symlinks
  2027. # (eg FreeBSD returns the mod time of the symlink's containing
  2028. # directory).
  2029. if (
  2030. am_has_slept=no
  2031. for am_try in 1 2; do
  2032. echo "timestamp, slept: $am_has_slept" > conftest.file
  2033. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2034. if test "$*" = "X"; then
  2035. # -L didn't work.
  2036. set X `ls -t "$srcdir/configure" conftest.file`
  2037. fi
  2038. if test "$*" != "X $srcdir/configure conftest.file" \
  2039. && test "$*" != "X conftest.file $srcdir/configure"; then
  2040. # If neither matched, then we have a broken ls. This can happen
  2041. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2042. # broken ls alias from the environment. This has actually
  2043. # happened. Such a system could not be considered "sane".
  2044. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2045. alias in your environment" "$LINENO" 5
  2046. fi
  2047. if test "$2" = conftest.file || test $am_try -eq 2; then
  2048. break
  2049. fi
  2050. # Just in case.
  2051. sleep 1
  2052. am_has_slept=yes
  2053. done
  2054. test "$2" = conftest.file
  2055. )
  2056. then
  2057. # Ok.
  2058. :
  2059. else
  2060. as_fn_error $? "newly created file is older than distributed files!
  2061. Check your system clock" "$LINENO" 5
  2062. fi
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2064. $as_echo "yes" >&6; }
  2065. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2066. # generated files are strictly newer.
  2067. am_sleep_pid=
  2068. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2069. ( sleep 1 ) &
  2070. am_sleep_pid=$!
  2071. fi
  2072. rm -f conftest.file
  2073. test "$program_prefix" != NONE &&
  2074. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2075. # Use a double $ so make ignores it.
  2076. test "$program_suffix" != NONE &&
  2077. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2078. # Double any \ or $.
  2079. # By default was `s,x,x', remove it if useless.
  2080. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2081. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2082. # expand $ac_aux_dir to an absolute path
  2083. am_aux_dir=`cd $ac_aux_dir && pwd`
  2084. if test x"${MISSING+set}" != xset; then
  2085. case $am_aux_dir in
  2086. *\ * | *\ *)
  2087. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2088. *)
  2089. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2090. esac
  2091. fi
  2092. # Use eval to expand $SHELL
  2093. if eval "$MISSING --run true"; then
  2094. am_missing_run="$MISSING --run "
  2095. else
  2096. am_missing_run=
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2098. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2099. fi
  2100. if test x"${install_sh}" != xset; then
  2101. case $am_aux_dir in
  2102. *\ * | *\ *)
  2103. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2104. *)
  2105. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2106. esac
  2107. fi
  2108. # Installed binaries are usually stripped using 'strip' when the user
  2109. # run "make install-strip". However 'strip' might not be the right
  2110. # tool to use in cross-compilation environments, therefore Automake
  2111. # will honor the 'STRIP' environment variable to overrule this program.
  2112. if test "$cross_compiling" != no; then
  2113. if test -n "$ac_tool_prefix"; then
  2114. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2115. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2117. $as_echo_n "checking for $ac_word... " >&6; }
  2118. if ${ac_cv_prog_STRIP+:} false; then :
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. if test -n "$STRIP"; then
  2122. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. for ac_exec_ext in '' $ac_executable_extensions; do
  2130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2131. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2133. break 2
  2134. fi
  2135. done
  2136. done
  2137. IFS=$as_save_IFS
  2138. fi
  2139. fi
  2140. STRIP=$ac_cv_prog_STRIP
  2141. if test -n "$STRIP"; then
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2143. $as_echo "$STRIP" >&6; }
  2144. else
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2146. $as_echo "no" >&6; }
  2147. fi
  2148. fi
  2149. if test -z "$ac_cv_prog_STRIP"; then
  2150. ac_ct_STRIP=$STRIP
  2151. # Extract the first word of "strip", so it can be a program name with args.
  2152. set dummy strip; ac_word=$2
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2154. $as_echo_n "checking for $ac_word... " >&6; }
  2155. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. if test -n "$ac_ct_STRIP"; then
  2159. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2160. else
  2161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2162. for as_dir in $PATH
  2163. do
  2164. IFS=$as_save_IFS
  2165. test -z "$as_dir" && as_dir=.
  2166. for ac_exec_ext in '' $ac_executable_extensions; do
  2167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2168. ac_cv_prog_ac_ct_STRIP="strip"
  2169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2170. break 2
  2171. fi
  2172. done
  2173. done
  2174. IFS=$as_save_IFS
  2175. fi
  2176. fi
  2177. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2178. if test -n "$ac_ct_STRIP"; then
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2180. $as_echo "$ac_ct_STRIP" >&6; }
  2181. else
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2183. $as_echo "no" >&6; }
  2184. fi
  2185. if test "x$ac_ct_STRIP" = x; then
  2186. STRIP=":"
  2187. else
  2188. case $cross_compiling:$ac_tool_warned in
  2189. yes:)
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2191. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2192. ac_tool_warned=yes ;;
  2193. esac
  2194. STRIP=$ac_ct_STRIP
  2195. fi
  2196. else
  2197. STRIP="$ac_cv_prog_STRIP"
  2198. fi
  2199. fi
  2200. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2202. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2203. if test -z "$MKDIR_P"; then
  2204. if ${ac_cv_path_mkdir+:} false; then :
  2205. $as_echo_n "(cached) " >&6
  2206. else
  2207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2209. do
  2210. IFS=$as_save_IFS
  2211. test -z "$as_dir" && as_dir=.
  2212. for ac_prog in mkdir gmkdir; do
  2213. for ac_exec_ext in '' $ac_executable_extensions; do
  2214. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2215. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2216. 'mkdir (GNU coreutils) '* | \
  2217. 'mkdir (coreutils) '* | \
  2218. 'mkdir (fileutils) '4.1*)
  2219. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2220. break 3;;
  2221. esac
  2222. done
  2223. done
  2224. done
  2225. IFS=$as_save_IFS
  2226. fi
  2227. test -d ./--version && rmdir ./--version
  2228. if test "${ac_cv_path_mkdir+set}" = set; then
  2229. MKDIR_P="$ac_cv_path_mkdir -p"
  2230. else
  2231. # As a last resort, use the slow shell script. Don't cache a
  2232. # value for MKDIR_P within a source directory, because that will
  2233. # break other packages using the cache if that directory is
  2234. # removed, or if the value is a relative name.
  2235. MKDIR_P="$ac_install_sh -d"
  2236. fi
  2237. fi
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2239. $as_echo "$MKDIR_P" >&6; }
  2240. for ac_prog in gawk mawk nawk awk
  2241. do
  2242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2243. set dummy $ac_prog; ac_word=$2
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2245. $as_echo_n "checking for $ac_word... " >&6; }
  2246. if ${ac_cv_prog_AWK+:} false; then :
  2247. $as_echo_n "(cached) " >&6
  2248. else
  2249. if test -n "$AWK"; then
  2250. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2251. else
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. for ac_exec_ext in '' $ac_executable_extensions; do
  2258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2259. ac_cv_prog_AWK="$ac_prog"
  2260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2261. break 2
  2262. fi
  2263. done
  2264. done
  2265. IFS=$as_save_IFS
  2266. fi
  2267. fi
  2268. AWK=$ac_cv_prog_AWK
  2269. if test -n "$AWK"; then
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2271. $as_echo "$AWK" >&6; }
  2272. else
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2274. $as_echo "no" >&6; }
  2275. fi
  2276. test -n "$AWK" && break
  2277. done
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2279. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2280. set x ${MAKE-make}
  2281. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2282. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2283. $as_echo_n "(cached) " >&6
  2284. else
  2285. cat >conftest.make <<\_ACEOF
  2286. SHELL = /bin/sh
  2287. all:
  2288. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2289. _ACEOF
  2290. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2291. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2292. *@@@%%%=?*=@@@%%%*)
  2293. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2294. *)
  2295. eval ac_cv_prog_make_${ac_make}_set=no;;
  2296. esac
  2297. rm -f conftest.make
  2298. fi
  2299. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2301. $as_echo "yes" >&6; }
  2302. SET_MAKE=
  2303. else
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2305. $as_echo "no" >&6; }
  2306. SET_MAKE="MAKE=${MAKE-make}"
  2307. fi
  2308. rm -rf .tst 2>/dev/null
  2309. mkdir .tst 2>/dev/null
  2310. if test -d .tst; then
  2311. am__leading_dot=.
  2312. else
  2313. am__leading_dot=_
  2314. fi
  2315. rmdir .tst 2>/dev/null
  2316. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2317. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2318. # is not polluted with repeated "-I."
  2319. am__isrc=' -I$(srcdir)'
  2320. # test to see if srcdir already configured
  2321. if test -f $srcdir/config.status; then
  2322. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2323. fi
  2324. fi
  2325. # test whether we have cygpath
  2326. if test -z "$CYGPATH_W"; then
  2327. if (cygpath --version) >/dev/null 2>/dev/null; then
  2328. CYGPATH_W='cygpath -w'
  2329. else
  2330. CYGPATH_W=echo
  2331. fi
  2332. fi
  2333. # Define the identity of the package.
  2334. PACKAGE='xcmsdb'
  2335. VERSION='1.0.5'
  2336. cat >>confdefs.h <<_ACEOF
  2337. #define PACKAGE "$PACKAGE"
  2338. _ACEOF
  2339. cat >>confdefs.h <<_ACEOF
  2340. #define VERSION "$VERSION"
  2341. _ACEOF
  2342. # Some tools Automake needs.
  2343. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2344. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2345. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2346. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2347. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2348. # For better backward compatibility. To be removed once Automake 1.9.x
  2349. # dies out for good. For more background, see:
  2350. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2351. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2352. mkdir_p='$(MKDIR_P)'
  2353. # We need awk for the "check" target. The system "awk" is bad on
  2354. # some platforms.
  2355. # Always define AMTAR for backward compatibility. Yes, it's still used
  2356. # in the wild :-( We should find a proper way to deprecate it ...
  2357. AMTAR='$${TAR-tar}'
  2358. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2359. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2360. DEPDIR="${am__leading_dot}deps"
  2361. ac_config_commands="$ac_config_commands depfiles"
  2362. am_make=${MAKE-make}
  2363. cat > confinc << 'END'
  2364. am__doit:
  2365. @echo this is the am__doit target
  2366. .PHONY: am__doit
  2367. END
  2368. # If we don't find an include directive, just comment out the code.
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2370. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2371. am__include="#"
  2372. am__quote=
  2373. _am_result=none
  2374. # First try GNU make style include.
  2375. echo "include confinc" > confmf
  2376. # Ignore all kinds of additional output from 'make'.
  2377. case `$am_make -s -f confmf 2> /dev/null` in #(
  2378. *the\ am__doit\ target*)
  2379. am__include=include
  2380. am__quote=
  2381. _am_result=GNU
  2382. ;;
  2383. esac
  2384. # Now try BSD make style include.
  2385. if test "$am__include" = "#"; then
  2386. echo '.include "confinc"' > confmf
  2387. case `$am_make -s -f confmf 2> /dev/null` in #(
  2388. *the\ am__doit\ target*)
  2389. am__include=.include
  2390. am__quote="\""
  2391. _am_result=BSD
  2392. ;;
  2393. esac
  2394. fi
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2396. $as_echo "$_am_result" >&6; }
  2397. rm -f confinc confmf
  2398. # Check whether --enable-dependency-tracking was given.
  2399. if test "${enable_dependency_tracking+set}" = set; then :
  2400. enableval=$enable_dependency_tracking;
  2401. fi
  2402. if test "x$enable_dependency_tracking" != xno; then
  2403. am_depcomp="$ac_aux_dir/depcomp"
  2404. AMDEPBACKSLASH='\'
  2405. am__nodep='_no'
  2406. fi
  2407. if test "x$enable_dependency_tracking" != xno; then
  2408. AMDEP_TRUE=
  2409. AMDEP_FALSE='#'
  2410. else
  2411. AMDEP_TRUE='#'
  2412. AMDEP_FALSE=
  2413. fi
  2414. ac_ext=c
  2415. ac_cpp='$CPP $CPPFLAGS'
  2416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2419. if test -n "$ac_tool_prefix"; then
  2420. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2421. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if ${ac_cv_prog_CC+:} false; then :
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$CC"; then
  2428. ac_cv_prog_CC="$CC" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2437. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. CC=$ac_cv_prog_CC
  2447. if test -n "$CC"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2449. $as_echo "$CC" >&6; }
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. fi
  2455. if test -z "$ac_cv_prog_CC"; then
  2456. ac_ct_CC=$CC
  2457. # Extract the first word of "gcc", so it can be a program name with args.
  2458. set dummy gcc; ac_word=$2
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2460. $as_echo_n "checking for $ac_word... " >&6; }
  2461. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test -n "$ac_ct_CC"; then
  2465. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2466. else
  2467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2468. for as_dir in $PATH
  2469. do
  2470. IFS=$as_save_IFS
  2471. test -z "$as_dir" && as_dir=.
  2472. for ac_exec_ext in '' $ac_executable_extensions; do
  2473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2474. ac_cv_prog_ac_ct_CC="gcc"
  2475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2476. break 2
  2477. fi
  2478. done
  2479. done
  2480. IFS=$as_save_IFS
  2481. fi
  2482. fi
  2483. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2484. if test -n "$ac_ct_CC"; then
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2486. $as_echo "$ac_ct_CC" >&6; }
  2487. else
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2489. $as_echo "no" >&6; }
  2490. fi
  2491. if test "x$ac_ct_CC" = x; then
  2492. CC=""
  2493. else
  2494. case $cross_compiling:$ac_tool_warned in
  2495. yes:)
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2497. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2498. ac_tool_warned=yes ;;
  2499. esac
  2500. CC=$ac_ct_CC
  2501. fi
  2502. else
  2503. CC="$ac_cv_prog_CC"
  2504. fi
  2505. if test -z "$CC"; then
  2506. if test -n "$ac_tool_prefix"; then
  2507. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2508. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2510. $as_echo_n "checking for $ac_word... " >&6; }
  2511. if ${ac_cv_prog_CC+:} false; then :
  2512. $as_echo_n "(cached) " >&6
  2513. else
  2514. if test -n "$CC"; then
  2515. ac_cv_prog_CC="$CC" # Let the user override the test.
  2516. else
  2517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2518. for as_dir in $PATH
  2519. do
  2520. IFS=$as_save_IFS
  2521. test -z "$as_dir" && as_dir=.
  2522. for ac_exec_ext in '' $ac_executable_extensions; do
  2523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2524. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2526. break 2
  2527. fi
  2528. done
  2529. done
  2530. IFS=$as_save_IFS
  2531. fi
  2532. fi
  2533. CC=$ac_cv_prog_CC
  2534. if test -n "$CC"; then
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2536. $as_echo "$CC" >&6; }
  2537. else
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2539. $as_echo "no" >&6; }
  2540. fi
  2541. fi
  2542. fi
  2543. if test -z "$CC"; then
  2544. # Extract the first word of "cc", so it can be a program name with args.
  2545. set dummy cc; ac_word=$2
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2547. $as_echo_n "checking for $ac_word... " >&6; }
  2548. if ${ac_cv_prog_CC+:} false; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. if test -n "$CC"; then
  2552. ac_cv_prog_CC="$CC" # Let the user override the test.
  2553. else
  2554. ac_prog_rejected=no
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. for ac_exec_ext in '' $ac_executable_extensions; do
  2561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2562. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2563. ac_prog_rejected=yes
  2564. continue
  2565. fi
  2566. ac_cv_prog_CC="cc"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. if test $ac_prog_rejected = yes; then
  2574. # We found a bogon in the path, so make sure we never use it.
  2575. set dummy $ac_cv_prog_CC
  2576. shift
  2577. if test $# != 0; then
  2578. # We chose a different compiler from the bogus one.
  2579. # However, it has the same basename, so the bogon will be chosen
  2580. # first if we set CC to just the basename; use the full file name.
  2581. shift
  2582. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2583. fi
  2584. fi
  2585. fi
  2586. fi
  2587. CC=$ac_cv_prog_CC
  2588. if test -n "$CC"; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2590. $as_echo "$CC" >&6; }
  2591. else
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595. fi
  2596. if test -z "$CC"; then
  2597. if test -n "$ac_tool_prefix"; then
  2598. for ac_prog in cl.exe
  2599. do
  2600. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2601. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2603. $as_echo_n "checking for $ac_word... " >&6; }
  2604. if ${ac_cv_prog_CC+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. if test -n "$CC"; then
  2608. ac_cv_prog_CC="$CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. test -z "$as_dir" && as_dir=.
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2617. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619. break 2
  2620. fi
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. fi
  2626. CC=$ac_cv_prog_CC
  2627. if test -n "$CC"; then
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2629. $as_echo "$CC" >&6; }
  2630. else
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2632. $as_echo "no" >&6; }
  2633. fi
  2634. test -n "$CC" && break
  2635. done
  2636. fi
  2637. if test -z "$CC"; then
  2638. ac_ct_CC=$CC
  2639. for ac_prog in cl.exe
  2640. do
  2641. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2642. set dummy $ac_prog; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$ac_ct_CC"; then
  2649. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. ac_cv_prog_ac_ct_CC="$ac_prog"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2668. if test -n "$ac_ct_CC"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2670. $as_echo "$ac_ct_CC" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. test -n "$ac_ct_CC" && break
  2676. done
  2677. if test "x$ac_ct_CC" = x; then
  2678. CC=""
  2679. else
  2680. case $cross_compiling:$ac_tool_warned in
  2681. yes:)
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2683. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2684. ac_tool_warned=yes ;;
  2685. esac
  2686. CC=$ac_ct_CC
  2687. fi
  2688. fi
  2689. fi
  2690. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2691. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2692. as_fn_error $? "no acceptable C compiler found in \$PATH
  2693. See \`config.log' for more details" "$LINENO" 5; }
  2694. # Provide some information about the compiler.
  2695. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2696. set X $ac_compile
  2697. ac_compiler=$2
  2698. for ac_option in --version -v -V -qversion; do
  2699. { { ac_try="$ac_compiler $ac_option >&5"
  2700. case "(($ac_try" in
  2701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2702. *) ac_try_echo=$ac_try;;
  2703. esac
  2704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2705. $as_echo "$ac_try_echo"; } >&5
  2706. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2707. ac_status=$?
  2708. if test -s conftest.err; then
  2709. sed '10a\
  2710. ... rest of stderr output deleted ...
  2711. 10q' conftest.err >conftest.er1
  2712. cat conftest.er1 >&5
  2713. fi
  2714. rm -f conftest.er1 conftest.err
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2716. test $ac_status = 0; }
  2717. done
  2718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2719. /* end confdefs.h. */
  2720. int
  2721. main ()
  2722. {
  2723. ;
  2724. return 0;
  2725. }
  2726. _ACEOF
  2727. ac_clean_files_save=$ac_clean_files
  2728. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2729. # Try to create an executable without -o first, disregard a.out.
  2730. # It will help us diagnose broken compilers, and finding out an intuition
  2731. # of exeext.
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2733. $as_echo_n "checking whether the C compiler works... " >&6; }
  2734. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2735. # The possible output files:
  2736. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2737. ac_rmfiles=
  2738. for ac_file in $ac_files
  2739. do
  2740. case $ac_file in
  2741. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2742. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2743. esac
  2744. done
  2745. rm -f $ac_rmfiles
  2746. if { { ac_try="$ac_link_default"
  2747. case "(($ac_try" in
  2748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2749. *) ac_try_echo=$ac_try;;
  2750. esac
  2751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2752. $as_echo "$ac_try_echo"; } >&5
  2753. (eval "$ac_link_default") 2>&5
  2754. ac_status=$?
  2755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2756. test $ac_status = 0; }; then :
  2757. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2758. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2759. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2760. # so that the user can short-circuit this test for compilers unknown to
  2761. # Autoconf.
  2762. for ac_file in $ac_files ''
  2763. do
  2764. test -f "$ac_file" || continue
  2765. case $ac_file in
  2766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2767. ;;
  2768. [ab].out )
  2769. # We found the default executable, but exeext='' is most
  2770. # certainly right.
  2771. break;;
  2772. *.* )
  2773. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2774. then :; else
  2775. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2776. fi
  2777. # We set ac_cv_exeext here because the later test for it is not
  2778. # safe: cross compilers may not add the suffix if given an `-o'
  2779. # argument, so we may need to know it at that point already.
  2780. # Even if this section looks crufty: it has the advantage of
  2781. # actually working.
  2782. break;;
  2783. * )
  2784. break;;
  2785. esac
  2786. done
  2787. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2788. else
  2789. ac_file=''
  2790. fi
  2791. if test -z "$ac_file"; then :
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. $as_echo "$as_me: failed program was:" >&5
  2795. sed 's/^/| /' conftest.$ac_ext >&5
  2796. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2797. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2798. as_fn_error 77 "C compiler cannot create executables
  2799. See \`config.log' for more details" "$LINENO" 5; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2802. $as_echo "yes" >&6; }
  2803. fi
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2805. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2807. $as_echo "$ac_file" >&6; }
  2808. ac_exeext=$ac_cv_exeext
  2809. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2810. ac_clean_files=$ac_clean_files_save
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2812. $as_echo_n "checking for suffix of executables... " >&6; }
  2813. if { { ac_try="$ac_link"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_link") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }; then :
  2824. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2825. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2826. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2827. # `rm'.
  2828. for ac_file in conftest.exe conftest conftest.*; do
  2829. test -f "$ac_file" || continue
  2830. case $ac_file in
  2831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2832. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2833. break;;
  2834. * ) break;;
  2835. esac
  2836. done
  2837. else
  2838. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2839. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2840. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2841. See \`config.log' for more details" "$LINENO" 5; }
  2842. fi
  2843. rm -f conftest conftest$ac_cv_exeext
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2845. $as_echo "$ac_cv_exeext" >&6; }
  2846. rm -f conftest.$ac_ext
  2847. EXEEXT=$ac_cv_exeext
  2848. ac_exeext=$EXEEXT
  2849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2850. /* end confdefs.h. */
  2851. #include <stdio.h>
  2852. int
  2853. main ()
  2854. {
  2855. FILE *f = fopen ("conftest.out", "w");
  2856. return ferror (f) || fclose (f) != 0;
  2857. ;
  2858. return 0;
  2859. }
  2860. _ACEOF
  2861. ac_clean_files="$ac_clean_files conftest.out"
  2862. # Check that the compiler produces executables we can run. If not, either
  2863. # the compiler is broken, or we cross compile.
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2865. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2866. if test "$cross_compiling" != yes; then
  2867. { { ac_try="$ac_link"
  2868. case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2873. $as_echo "$ac_try_echo"; } >&5
  2874. (eval "$ac_link") 2>&5
  2875. ac_status=$?
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2877. test $ac_status = 0; }
  2878. if { ac_try='./conftest$ac_cv_exeext'
  2879. { { case "(($ac_try" in
  2880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2881. *) ac_try_echo=$ac_try;;
  2882. esac
  2883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2884. $as_echo "$ac_try_echo"; } >&5
  2885. (eval "$ac_try") 2>&5
  2886. ac_status=$?
  2887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2888. test $ac_status = 0; }; }; then
  2889. cross_compiling=no
  2890. else
  2891. if test "$cross_compiling" = maybe; then
  2892. cross_compiling=yes
  2893. else
  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 $? "cannot run C compiled programs.
  2897. If you meant to cross compile, use \`--host'.
  2898. See \`config.log' for more details" "$LINENO" 5; }
  2899. fi
  2900. fi
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2903. $as_echo "$cross_compiling" >&6; }
  2904. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2905. ac_clean_files=$ac_clean_files_save
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2907. $as_echo_n "checking for suffix of object files... " >&6; }
  2908. if ${ac_cv_objext+:} false; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2912. /* end confdefs.h. */
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. rm -f conftest.o conftest.obj
  2921. if { { ac_try="$ac_compile"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo"; } >&5
  2928. (eval "$ac_compile") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2931. test $ac_status = 0; }; then :
  2932. for ac_file in conftest.o conftest.obj conftest.*; do
  2933. test -f "$ac_file" || continue;
  2934. case $ac_file in
  2935. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2936. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2937. break;;
  2938. esac
  2939. done
  2940. else
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2946. See \`config.log' for more details" "$LINENO" 5; }
  2947. fi
  2948. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2949. fi
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2951. $as_echo "$ac_cv_objext" >&6; }
  2952. OBJEXT=$ac_cv_objext
  2953. ac_objext=$OBJEXT
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2955. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2956. if ${ac_cv_c_compiler_gnu+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2960. /* end confdefs.h. */
  2961. int
  2962. main ()
  2963. {
  2964. #ifndef __GNUC__
  2965. choke me
  2966. #endif
  2967. ;
  2968. return 0;
  2969. }
  2970. _ACEOF
  2971. if ac_fn_c_try_compile "$LINENO"; then :
  2972. ac_compiler_gnu=yes
  2973. else
  2974. ac_compiler_gnu=no
  2975. fi
  2976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2978. fi
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2980. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2981. if test $ac_compiler_gnu = yes; then
  2982. GCC=yes
  2983. else
  2984. GCC=
  2985. fi
  2986. ac_test_CFLAGS=${CFLAGS+set}
  2987. ac_save_CFLAGS=$CFLAGS
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2989. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2990. if ${ac_cv_prog_cc_g+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. ac_save_c_werror_flag=$ac_c_werror_flag
  2994. ac_c_werror_flag=yes
  2995. ac_cv_prog_cc_g=no
  2996. CFLAGS="-g"
  2997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2998. /* end confdefs.h. */
  2999. int
  3000. main ()
  3001. {
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. if ac_fn_c_try_compile "$LINENO"; then :
  3007. ac_cv_prog_cc_g=yes
  3008. else
  3009. CFLAGS=""
  3010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3011. /* end confdefs.h. */
  3012. int
  3013. main ()
  3014. {
  3015. ;
  3016. return 0;
  3017. }
  3018. _ACEOF
  3019. if ac_fn_c_try_compile "$LINENO"; then :
  3020. else
  3021. ac_c_werror_flag=$ac_save_c_werror_flag
  3022. CFLAGS="-g"
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. if ac_fn_c_try_compile "$LINENO"; then :
  3033. ac_cv_prog_cc_g=yes
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3040. ac_c_werror_flag=$ac_save_c_werror_flag
  3041. fi
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3043. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3044. if test "$ac_test_CFLAGS" = set; then
  3045. CFLAGS=$ac_save_CFLAGS
  3046. elif test $ac_cv_prog_cc_g = yes; then
  3047. if test "$GCC" = yes; then
  3048. CFLAGS="-g -O2"
  3049. else
  3050. CFLAGS="-g"
  3051. fi
  3052. else
  3053. if test "$GCC" = yes; then
  3054. CFLAGS="-O2"
  3055. else
  3056. CFLAGS=
  3057. fi
  3058. fi
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3060. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3061. if ${ac_cv_prog_cc_c89+:} false; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. ac_cv_prog_cc_c89=no
  3065. ac_save_CC=$CC
  3066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3067. /* end confdefs.h. */
  3068. #include <stdarg.h>
  3069. #include <stdio.h>
  3070. struct stat;
  3071. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3072. struct buf { int x; };
  3073. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3074. static char *e (p, i)
  3075. char **p;
  3076. int i;
  3077. {
  3078. return p[i];
  3079. }
  3080. static char *f (char * (*g) (char **, int), char **p, ...)
  3081. {
  3082. char *s;
  3083. va_list v;
  3084. va_start (v,p);
  3085. s = g (p, va_arg (v,int));
  3086. va_end (v);
  3087. return s;
  3088. }
  3089. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3090. function prototypes and stuff, but not '\xHH' hex character constants.
  3091. These don't provoke an error unfortunately, instead are silently treated
  3092. as 'x'. The following induces an error, until -std is added to get
  3093. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3094. array size at least. It's necessary to write '\x00'==0 to get something
  3095. that's true only with -std. */
  3096. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3097. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3098. inside strings and character constants. */
  3099. #define FOO(x) 'x'
  3100. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3101. int test (int i, double x);
  3102. struct s1 {int (*f) (int a);};
  3103. struct s2 {int (*f) (double a);};
  3104. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3105. int argc;
  3106. char **argv;
  3107. int
  3108. main ()
  3109. {
  3110. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3116. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3117. do
  3118. CC="$ac_save_CC $ac_arg"
  3119. if ac_fn_c_try_compile "$LINENO"; then :
  3120. ac_cv_prog_cc_c89=$ac_arg
  3121. fi
  3122. rm -f core conftest.err conftest.$ac_objext
  3123. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3124. done
  3125. rm -f conftest.$ac_ext
  3126. CC=$ac_save_CC
  3127. fi
  3128. # AC_CACHE_VAL
  3129. case "x$ac_cv_prog_cc_c89" in
  3130. x)
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3132. $as_echo "none needed" >&6; } ;;
  3133. xno)
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3135. $as_echo "unsupported" >&6; } ;;
  3136. *)
  3137. CC="$CC $ac_cv_prog_cc_c89"
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3139. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3140. esac
  3141. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3142. fi
  3143. ac_ext=c
  3144. ac_cpp='$CPP $CPPFLAGS'
  3145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3148. depcc="$CC" am_compiler_list=
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3150. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3151. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3155. # We make a subdir and do the tests there. Otherwise we can end up
  3156. # making bogus files that we don't know about and never remove. For
  3157. # instance it was reported that on HP-UX the gcc test will end up
  3158. # making a dummy file named 'D' -- because '-MD' means "put the output
  3159. # in D".
  3160. rm -rf conftest.dir
  3161. mkdir conftest.dir
  3162. # Copy depcomp to subdir because otherwise we won't find it if we're
  3163. # using a relative directory.
  3164. cp "$am_depcomp" conftest.dir
  3165. cd conftest.dir
  3166. # We will build objects and dependencies in a subdirectory because
  3167. # it helps to detect inapplicable dependency modes. For instance
  3168. # both Tru64's cc and ICC support -MD to output dependencies as a
  3169. # side effect of compilation, but ICC will put the dependencies in
  3170. # the current directory while Tru64 will put them in the object
  3171. # directory.
  3172. mkdir sub
  3173. am_cv_CC_dependencies_compiler_type=none
  3174. if test "$am_compiler_list" = ""; then
  3175. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3176. fi
  3177. am__universal=false
  3178. case " $depcc " in #(
  3179. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3180. esac
  3181. for depmode in $am_compiler_list; do
  3182. # Setup a source with many dependencies, because some compilers
  3183. # like to wrap large dependency lists on column 80 (with \), and
  3184. # we should not choose a depcomp mode which is confused by this.
  3185. #
  3186. # We need to recreate these files for each test, as the compiler may
  3187. # overwrite some of them when testing with obscure command lines.
  3188. # This happens at least with the AIX C compiler.
  3189. : > sub/conftest.c
  3190. for i in 1 2 3 4 5 6; do
  3191. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3192. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3193. # Solaris 10 /bin/sh.
  3194. echo '/* dummy */' > sub/conftst$i.h
  3195. done
  3196. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3197. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3198. # mode. It turns out that the SunPro C++ compiler does not properly
  3199. # handle '-M -o', and we need to detect this. Also, some Intel
  3200. # versions had trouble with output in subdirs.
  3201. am__obj=sub/conftest.${OBJEXT-o}
  3202. am__minus_obj="-o $am__obj"
  3203. case $depmode in
  3204. gcc)
  3205. # This depmode causes a compiler race in universal mode.
  3206. test "$am__universal" = false || continue
  3207. ;;
  3208. nosideeffect)
  3209. # After this tag, mechanisms are not by side-effect, so they'll
  3210. # only be used when explicitly requested.
  3211. if test "x$enable_dependency_tracking" = xyes; then
  3212. continue
  3213. else
  3214. break
  3215. fi
  3216. ;;
  3217. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3218. # This compiler won't grok '-c -o', but also, the minuso test has
  3219. # not run yet. These depmodes are late enough in the game, and
  3220. # so weak that their functioning should not be impacted.
  3221. am__obj=conftest.${OBJEXT-o}
  3222. am__minus_obj=
  3223. ;;
  3224. none) break ;;
  3225. esac
  3226. if depmode=$depmode \
  3227. source=sub/conftest.c object=$am__obj \
  3228. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3229. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3230. >/dev/null 2>conftest.err &&
  3231. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3232. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3233. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3234. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3235. # icc doesn't choke on unknown options, it will just issue warnings
  3236. # or remarks (even with -Werror). So we grep stderr for any message
  3237. # that says an option was ignored or not supported.
  3238. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3239. # icc: Command line warning: ignoring option '-M'; no argument required
  3240. # The diagnosis changed in icc 8.0:
  3241. # icc: Command line remark: option '-MP' not supported
  3242. if (grep 'ignoring option' conftest.err ||
  3243. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3244. am_cv_CC_dependencies_compiler_type=$depmode
  3245. break
  3246. fi
  3247. fi
  3248. done
  3249. cd ..
  3250. rm -rf conftest.dir
  3251. else
  3252. am_cv_CC_dependencies_compiler_type=none
  3253. fi
  3254. fi
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3256. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3257. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3258. if
  3259. test "x$enable_dependency_tracking" != xno \
  3260. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3261. am__fastdepCC_TRUE=
  3262. am__fastdepCC_FALSE='#'
  3263. else
  3264. am__fastdepCC_TRUE='#'
  3265. am__fastdepCC_FALSE=
  3266. fi
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3268. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3269. if ${ac_cv_prog_cc_c99+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. ac_cv_prog_cc_c99=no
  3273. ac_save_CC=$CC
  3274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end confdefs.h. */
  3276. #include <stdarg.h>
  3277. #include <stdbool.h>
  3278. #include <stdlib.h>
  3279. #include <wchar.h>
  3280. #include <stdio.h>
  3281. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3282. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3283. #define showlist(...) puts (#__VA_ARGS__)
  3284. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3285. static void
  3286. test_varargs_macros (void)
  3287. {
  3288. int x = 1234;
  3289. int y = 5678;
  3290. debug ("Flag");
  3291. debug ("X = %d\n", x);
  3292. showlist (The first, second, and third items.);
  3293. report (x>y, "x is %d but y is %d", x, y);
  3294. }
  3295. // Check long long types.
  3296. #define BIG64 18446744073709551615ull
  3297. #define BIG32 4294967295ul
  3298. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3299. #if !BIG_OK
  3300. your preprocessor is broken;
  3301. #endif
  3302. #if BIG_OK
  3303. #else
  3304. your preprocessor is broken;
  3305. #endif
  3306. static long long int bignum = -9223372036854775807LL;
  3307. static unsigned long long int ubignum = BIG64;
  3308. struct incomplete_array
  3309. {
  3310. int datasize;
  3311. double data[];
  3312. };
  3313. struct named_init {
  3314. int number;
  3315. const wchar_t *name;
  3316. double average;
  3317. };
  3318. typedef const char *ccp;
  3319. static inline int
  3320. test_restrict (ccp restrict text)
  3321. {
  3322. // See if C++-style comments work.
  3323. // Iterate through items via the restricted pointer.
  3324. // Also check for declarations in for loops.
  3325. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3326. continue;
  3327. return 0;
  3328. }
  3329. // Check varargs and va_copy.
  3330. static void
  3331. test_varargs (const char *format, ...)
  3332. {
  3333. va_list args;
  3334. va_start (args, format);
  3335. va_list args_copy;
  3336. va_copy (args_copy, args);
  3337. const char *str;
  3338. int number;
  3339. float fnumber;
  3340. while (*format)
  3341. {
  3342. switch (*format++)
  3343. {
  3344. case 's': // string
  3345. str = va_arg (args_copy, const char *);
  3346. break;
  3347. case 'd': // int
  3348. number = va_arg (args_copy, int);
  3349. break;
  3350. case 'f': // float
  3351. fnumber = va_arg (args_copy, double);
  3352. break;
  3353. default:
  3354. break;
  3355. }
  3356. }
  3357. va_end (args_copy);
  3358. va_end (args);
  3359. }
  3360. int
  3361. main ()
  3362. {
  3363. // Check bool.
  3364. _Bool success = false;
  3365. // Check restrict.
  3366. if (test_restrict ("String literal") == 0)
  3367. success = true;
  3368. char *restrict newvar = "Another string";
  3369. // Check varargs.
  3370. test_varargs ("s, d' f .", "string", 65, 34.234);
  3371. test_varargs_macros ();
  3372. // Check flexible array members.
  3373. struct incomplete_array *ia =
  3374. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3375. ia->datasize = 10;
  3376. for (int i = 0; i < ia->datasize; ++i)
  3377. ia->data[i] = i * 1.234;
  3378. // Check named initializers.
  3379. struct named_init ni = {
  3380. .number = 34,
  3381. .name = L"Test wide string",
  3382. .average = 543.34343,
  3383. };
  3384. ni.number = 58;
  3385. int dynamic_array[ni.number];
  3386. dynamic_array[ni.number - 1] = 543;
  3387. // work around unused variable warnings
  3388. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3389. || dynamic_array[ni.number - 1] != 543);
  3390. ;
  3391. return 0;
  3392. }
  3393. _ACEOF
  3394. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3395. do
  3396. CC="$ac_save_CC $ac_arg"
  3397. if ac_fn_c_try_compile "$LINENO"; then :
  3398. ac_cv_prog_cc_c99=$ac_arg
  3399. fi
  3400. rm -f core conftest.err conftest.$ac_objext
  3401. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3402. done
  3403. rm -f conftest.$ac_ext
  3404. CC=$ac_save_CC
  3405. fi
  3406. # AC_CACHE_VAL
  3407. case "x$ac_cv_prog_cc_c99" in
  3408. x)
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3410. $as_echo "none needed" >&6; } ;;
  3411. xno)
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3413. $as_echo "unsupported" >&6; } ;;
  3414. *)
  3415. CC="$CC $ac_cv_prog_cc_c99"
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3417. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3418. esac
  3419. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3420. fi
  3421. ac_ext=c
  3422. ac_cpp='$CPP $CPPFLAGS'
  3423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3427. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3428. # On Suns, sometimes $CPP names a directory.
  3429. if test -n "$CPP" && test -d "$CPP"; then
  3430. CPP=
  3431. fi
  3432. if test -z "$CPP"; then
  3433. if ${ac_cv_prog_CPP+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. # Double quotes because CPP needs to be expanded
  3437. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3438. do
  3439. ac_preproc_ok=false
  3440. for ac_c_preproc_warn_flag in '' yes
  3441. do
  3442. # Use a header file that comes with gcc, so configuring glibc
  3443. # with a fresh cross-compiler works.
  3444. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3445. # <limits.h> exists even on freestanding compilers.
  3446. # On the NeXT, cc -E runs the code through the compiler's parser,
  3447. # not just through cpp. "Syntax error" is here to catch this case.
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. #ifdef __STDC__
  3451. # include <limits.h>
  3452. #else
  3453. # include <assert.h>
  3454. #endif
  3455. Syntax error
  3456. _ACEOF
  3457. if ac_fn_c_try_cpp "$LINENO"; then :
  3458. else
  3459. # Broken: fails on valid input.
  3460. continue
  3461. fi
  3462. rm -f conftest.err conftest.i conftest.$ac_ext
  3463. # OK, works on sane cases. Now check whether nonexistent headers
  3464. # can be detected and how.
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. #include <ac_nonexistent.h>
  3468. _ACEOF
  3469. if ac_fn_c_try_cpp "$LINENO"; then :
  3470. # Broken: success on invalid input.
  3471. continue
  3472. else
  3473. # Passes both tests.
  3474. ac_preproc_ok=:
  3475. break
  3476. fi
  3477. rm -f conftest.err conftest.i conftest.$ac_ext
  3478. done
  3479. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3480. rm -f conftest.i conftest.err conftest.$ac_ext
  3481. if $ac_preproc_ok; then :
  3482. break
  3483. fi
  3484. done
  3485. ac_cv_prog_CPP=$CPP
  3486. fi
  3487. CPP=$ac_cv_prog_CPP
  3488. else
  3489. ac_cv_prog_CPP=$CPP
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3492. $as_echo "$CPP" >&6; }
  3493. ac_preproc_ok=false
  3494. for ac_c_preproc_warn_flag in '' yes
  3495. do
  3496. # Use a header file that comes with gcc, so configuring glibc
  3497. # with a fresh cross-compiler works.
  3498. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3499. # <limits.h> exists even on freestanding compilers.
  3500. # On the NeXT, cc -E runs the code through the compiler's parser,
  3501. # not just through cpp. "Syntax error" is here to catch this case.
  3502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3503. /* end confdefs.h. */
  3504. #ifdef __STDC__
  3505. # include <limits.h>
  3506. #else
  3507. # include <assert.h>
  3508. #endif
  3509. Syntax error
  3510. _ACEOF
  3511. if ac_fn_c_try_cpp "$LINENO"; then :
  3512. else
  3513. # Broken: fails on valid input.
  3514. continue
  3515. fi
  3516. rm -f conftest.err conftest.i conftest.$ac_ext
  3517. # OK, works on sane cases. Now check whether nonexistent headers
  3518. # can be detected and how.
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. #include <ac_nonexistent.h>
  3522. _ACEOF
  3523. if ac_fn_c_try_cpp "$LINENO"; then :
  3524. # Broken: success on invalid input.
  3525. continue
  3526. else
  3527. # Passes both tests.
  3528. ac_preproc_ok=:
  3529. break
  3530. fi
  3531. rm -f conftest.err conftest.i conftest.$ac_ext
  3532. done
  3533. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3534. rm -f conftest.i conftest.err conftest.$ac_ext
  3535. if $ac_preproc_ok; then :
  3536. else
  3537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3539. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3540. See \`config.log' for more details" "$LINENO" 5; }
  3541. fi
  3542. ac_ext=c
  3543. ac_cpp='$CPP $CPPFLAGS'
  3544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3548. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3549. if ${ac_cv_path_GREP+:} false; then :
  3550. $as_echo_n "(cached) " >&6
  3551. else
  3552. if test -z "$GREP"; then
  3553. ac_path_GREP_found=false
  3554. # Loop through the user's path and test for each of PROGNAME-LIST
  3555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3556. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3557. do
  3558. IFS=$as_save_IFS
  3559. test -z "$as_dir" && as_dir=.
  3560. for ac_prog in grep ggrep; do
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3563. as_fn_executable_p "$ac_path_GREP" || continue
  3564. # Check for GNU ac_path_GREP and select it if it is found.
  3565. # Check for GNU $ac_path_GREP
  3566. case `"$ac_path_GREP" --version 2>&1` in
  3567. *GNU*)
  3568. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3569. *)
  3570. ac_count=0
  3571. $as_echo_n 0123456789 >"conftest.in"
  3572. while :
  3573. do
  3574. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3575. mv "conftest.tmp" "conftest.in"
  3576. cp "conftest.in" "conftest.nl"
  3577. $as_echo 'GREP' >> "conftest.nl"
  3578. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3579. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3580. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3581. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3582. # Best one so far, save it but keep looking for a better one
  3583. ac_cv_path_GREP="$ac_path_GREP"
  3584. ac_path_GREP_max=$ac_count
  3585. fi
  3586. # 10*(2^10) chars as input seems more than enough
  3587. test $ac_count -gt 10 && break
  3588. done
  3589. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3590. esac
  3591. $ac_path_GREP_found && break 3
  3592. done
  3593. done
  3594. done
  3595. IFS=$as_save_IFS
  3596. if test -z "$ac_cv_path_GREP"; then
  3597. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3598. fi
  3599. else
  3600. ac_cv_path_GREP=$GREP
  3601. fi
  3602. fi
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3604. $as_echo "$ac_cv_path_GREP" >&6; }
  3605. GREP="$ac_cv_path_GREP"
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3607. $as_echo_n "checking for egrep... " >&6; }
  3608. if ${ac_cv_path_EGREP+:} false; then :
  3609. $as_echo_n "(cached) " >&6
  3610. else
  3611. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3612. then ac_cv_path_EGREP="$GREP -E"
  3613. else
  3614. if test -z "$EGREP"; then
  3615. ac_path_EGREP_found=false
  3616. # Loop through the user's path and test for each of PROGNAME-LIST
  3617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_prog in egrep; do
  3623. for ac_exec_ext in '' $ac_executable_extensions; do
  3624. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3625. as_fn_executable_p "$ac_path_EGREP" || continue
  3626. # Check for GNU ac_path_EGREP and select it if it is found.
  3627. # Check for GNU $ac_path_EGREP
  3628. case `"$ac_path_EGREP" --version 2>&1` in
  3629. *GNU*)
  3630. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3631. *)
  3632. ac_count=0
  3633. $as_echo_n 0123456789 >"conftest.in"
  3634. while :
  3635. do
  3636. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3637. mv "conftest.tmp" "conftest.in"
  3638. cp "conftest.in" "conftest.nl"
  3639. $as_echo 'EGREP' >> "conftest.nl"
  3640. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3641. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3642. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3643. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3644. # Best one so far, save it but keep looking for a better one
  3645. ac_cv_path_EGREP="$ac_path_EGREP"
  3646. ac_path_EGREP_max=$ac_count
  3647. fi
  3648. # 10*(2^10) chars as input seems more than enough
  3649. test $ac_count -gt 10 && break
  3650. done
  3651. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3652. esac
  3653. $ac_path_EGREP_found && break 3
  3654. done
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. if test -z "$ac_cv_path_EGREP"; then
  3659. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3660. fi
  3661. else
  3662. ac_cv_path_EGREP=$EGREP
  3663. fi
  3664. fi
  3665. fi
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3667. $as_echo "$ac_cv_path_EGREP" >&6; }
  3668. EGREP="$ac_cv_path_EGREP"
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3670. $as_echo_n "checking for ANSI C header files... " >&6; }
  3671. if ${ac_cv_header_stdc+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3675. /* end confdefs.h. */
  3676. #include <stdlib.h>
  3677. #include <stdarg.h>
  3678. #include <string.h>
  3679. #include <float.h>
  3680. int
  3681. main ()
  3682. {
  3683. ;
  3684. return 0;
  3685. }
  3686. _ACEOF
  3687. if ac_fn_c_try_compile "$LINENO"; then :
  3688. ac_cv_header_stdc=yes
  3689. else
  3690. ac_cv_header_stdc=no
  3691. fi
  3692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3693. if test $ac_cv_header_stdc = yes; then
  3694. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. #include <string.h>
  3698. _ACEOF
  3699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3700. $EGREP "memchr" >/dev/null 2>&1; then :
  3701. else
  3702. ac_cv_header_stdc=no
  3703. fi
  3704. rm -f conftest*
  3705. fi
  3706. if test $ac_cv_header_stdc = yes; then
  3707. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3709. /* end confdefs.h. */
  3710. #include <stdlib.h>
  3711. _ACEOF
  3712. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3713. $EGREP "free" >/dev/null 2>&1; then :
  3714. else
  3715. ac_cv_header_stdc=no
  3716. fi
  3717. rm -f conftest*
  3718. fi
  3719. if test $ac_cv_header_stdc = yes; then
  3720. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3721. if test "$cross_compiling" = yes; then :
  3722. :
  3723. else
  3724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3725. /* end confdefs.h. */
  3726. #include <ctype.h>
  3727. #include <stdlib.h>
  3728. #if ((' ' & 0x0FF) == 0x020)
  3729. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3730. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3731. #else
  3732. # define ISLOWER(c) \
  3733. (('a' <= (c) && (c) <= 'i') \
  3734. || ('j' <= (c) && (c) <= 'r') \
  3735. || ('s' <= (c) && (c) <= 'z'))
  3736. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3737. #endif
  3738. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3739. int
  3740. main ()
  3741. {
  3742. int i;
  3743. for (i = 0; i < 256; i++)
  3744. if (XOR (islower (i), ISLOWER (i))
  3745. || toupper (i) != TOUPPER (i))
  3746. return 2;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. if ac_fn_c_try_run "$LINENO"; then :
  3751. else
  3752. ac_cv_header_stdc=no
  3753. fi
  3754. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3755. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3756. fi
  3757. fi
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3760. $as_echo "$ac_cv_header_stdc" >&6; }
  3761. if test $ac_cv_header_stdc = yes; then
  3762. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3763. fi
  3764. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3765. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3766. inttypes.h stdint.h unistd.h
  3767. do :
  3768. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3769. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3770. "
  3771. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3772. cat >>confdefs.h <<_ACEOF
  3773. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3774. _ACEOF
  3775. fi
  3776. done
  3777. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3778. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3779. CLANGCC="yes"
  3780. else
  3781. CLANGCC="no"
  3782. fi
  3783. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3784. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3785. INTELCC="yes"
  3786. else
  3787. INTELCC="no"
  3788. fi
  3789. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3790. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3791. SUNCC="yes"
  3792. else
  3793. SUNCC="no"
  3794. fi
  3795. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3796. if test -n "$ac_tool_prefix"; then
  3797. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3798. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3800. $as_echo_n "checking for $ac_word... " >&6; }
  3801. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. case $PKG_CONFIG in
  3805. [\\/]* | ?:[\\/]*)
  3806. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3807. ;;
  3808. *)
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3816. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. ;;
  3824. esac
  3825. fi
  3826. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3827. if test -n "$PKG_CONFIG"; then
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3829. $as_echo "$PKG_CONFIG" >&6; }
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. fi
  3835. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3836. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3837. # Extract the first word of "pkg-config", so it can be a program name with args.
  3838. set dummy pkg-config; ac_word=$2
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3840. $as_echo_n "checking for $ac_word... " >&6; }
  3841. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. case $ac_pt_PKG_CONFIG in
  3845. [\\/]* | ?:[\\/]*)
  3846. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3847. ;;
  3848. *)
  3849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3850. for as_dir in $PATH
  3851. do
  3852. IFS=$as_save_IFS
  3853. test -z "$as_dir" && as_dir=.
  3854. for ac_exec_ext in '' $ac_executable_extensions; do
  3855. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3856. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3858. break 2
  3859. fi
  3860. done
  3861. done
  3862. IFS=$as_save_IFS
  3863. ;;
  3864. esac
  3865. fi
  3866. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3867. if test -n "$ac_pt_PKG_CONFIG"; then
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3869. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3870. else
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3872. $as_echo "no" >&6; }
  3873. fi
  3874. if test "x$ac_pt_PKG_CONFIG" = x; then
  3875. PKG_CONFIG=""
  3876. else
  3877. case $cross_compiling:$ac_tool_warned in
  3878. yes:)
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3881. ac_tool_warned=yes ;;
  3882. esac
  3883. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3884. fi
  3885. else
  3886. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3887. fi
  3888. fi
  3889. if test -n "$PKG_CONFIG"; then
  3890. _pkg_min_version=0.9.0
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3892. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3893. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3895. $as_echo "yes" >&6; }
  3896. else
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3898. $as_echo "no" >&6; }
  3899. PKG_CONFIG=""
  3900. fi
  3901. fi
  3902. # Make sure we can run config.sub.
  3903. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3904. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3906. $as_echo_n "checking build system type... " >&6; }
  3907. if ${ac_cv_build+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. ac_build_alias=$build_alias
  3911. test "x$ac_build_alias" = x &&
  3912. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3913. test "x$ac_build_alias" = x &&
  3914. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3915. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3916. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3917. fi
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3919. $as_echo "$ac_cv_build" >&6; }
  3920. case $ac_cv_build in
  3921. *-*-*) ;;
  3922. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3923. esac
  3924. build=$ac_cv_build
  3925. ac_save_IFS=$IFS; IFS='-'
  3926. set x $ac_cv_build
  3927. shift
  3928. build_cpu=$1
  3929. build_vendor=$2
  3930. shift; shift
  3931. # Remember, the first character of IFS is used to create $*,
  3932. # except with old shells:
  3933. build_os=$*
  3934. IFS=$ac_save_IFS
  3935. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3937. $as_echo_n "checking host system type... " >&6; }
  3938. if ${ac_cv_host+:} false; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. if test "x$host_alias" = x; then
  3942. ac_cv_host=$ac_cv_build
  3943. else
  3944. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3945. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3946. fi
  3947. fi
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3949. $as_echo "$ac_cv_host" >&6; }
  3950. case $ac_cv_host in
  3951. *-*-*) ;;
  3952. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3953. esac
  3954. host=$ac_cv_host
  3955. ac_save_IFS=$IFS; IFS='-'
  3956. set x $ac_cv_host
  3957. shift
  3958. host_cpu=$1
  3959. host_vendor=$2
  3960. shift; shift
  3961. # Remember, the first character of IFS is used to create $*,
  3962. # except with old shells:
  3963. host_os=$*
  3964. IFS=$ac_save_IFS
  3965. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3967. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3968. if ${ac_cv_path_SED+:} false; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3972. for ac_i in 1 2 3 4 5 6 7; do
  3973. ac_script="$ac_script$as_nl$ac_script"
  3974. done
  3975. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3976. { ac_script=; unset ac_script;}
  3977. if test -z "$SED"; then
  3978. ac_path_SED_found=false
  3979. # Loop through the user's path and test for each of PROGNAME-LIST
  3980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3981. for as_dir in $PATH
  3982. do
  3983. IFS=$as_save_IFS
  3984. test -z "$as_dir" && as_dir=.
  3985. for ac_prog in sed gsed; do
  3986. for ac_exec_ext in '' $ac_executable_extensions; do
  3987. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3988. as_fn_executable_p "$ac_path_SED" || continue
  3989. # Check for GNU ac_path_SED and select it if it is found.
  3990. # Check for GNU $ac_path_SED
  3991. case `"$ac_path_SED" --version 2>&1` in
  3992. *GNU*)
  3993. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3994. *)
  3995. ac_count=0
  3996. $as_echo_n 0123456789 >"conftest.in"
  3997. while :
  3998. do
  3999. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4000. mv "conftest.tmp" "conftest.in"
  4001. cp "conftest.in" "conftest.nl"
  4002. $as_echo '' >> "conftest.nl"
  4003. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4004. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4005. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4006. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4007. # Best one so far, save it but keep looking for a better one
  4008. ac_cv_path_SED="$ac_path_SED"
  4009. ac_path_SED_max=$ac_count
  4010. fi
  4011. # 10*(2^10) chars as input seems more than enough
  4012. test $ac_count -gt 10 && break
  4013. done
  4014. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4015. esac
  4016. $ac_path_SED_found && break 3
  4017. done
  4018. done
  4019. done
  4020. IFS=$as_save_IFS
  4021. if test -z "$ac_cv_path_SED"; then
  4022. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4023. fi
  4024. else
  4025. ac_cv_path_SED=$SED
  4026. fi
  4027. fi
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4029. $as_echo "$ac_cv_path_SED" >&6; }
  4030. SED="$ac_cv_path_SED"
  4031. rm -f conftest.sed
  4032. # Check whether --enable-selective-werror was given.
  4033. if test "${enable_selective_werror+set}" = set; then :
  4034. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4035. else
  4036. SELECTIVE_WERROR=yes
  4037. fi
  4038. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4039. if test "x$SUNCC" = "xyes"; then
  4040. BASE_CFLAGS="-v"
  4041. else
  4042. BASE_CFLAGS=""
  4043. fi
  4044. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4045. xorg_testset_save_CFLAGS="$CFLAGS"
  4046. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4047. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4049. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4050. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4054. /* end confdefs.h. */
  4055. int i;
  4056. _ACEOF
  4057. if ac_fn_c_try_compile "$LINENO"; then :
  4058. xorg_cv_cc_flag_unknown_warning_option=yes
  4059. else
  4060. xorg_cv_cc_flag_unknown_warning_option=no
  4061. fi
  4062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4063. fi
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4065. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4066. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4067. CFLAGS="$xorg_testset_save_CFLAGS"
  4068. fi
  4069. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4070. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4071. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4072. fi
  4073. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4075. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4076. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4080. /* end confdefs.h. */
  4081. int i;
  4082. _ACEOF
  4083. if ac_fn_c_try_compile "$LINENO"; then :
  4084. xorg_cv_cc_flag_unused_command_line_argument=yes
  4085. else
  4086. xorg_cv_cc_flag_unused_command_line_argument=no
  4087. fi
  4088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4091. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4092. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4093. CFLAGS="$xorg_testset_save_CFLAGS"
  4094. fi
  4095. found="no"
  4096. if test $found = "no" ; then
  4097. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4098. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4099. fi
  4100. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4101. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4102. fi
  4103. CFLAGS="$CFLAGS -Wall"
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4105. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4106. cacheid=xorg_cv_cc_flag__Wall
  4107. if eval \${$cacheid+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. /* end confdefs.h. */
  4112. int i;
  4113. int
  4114. main ()
  4115. {
  4116. ;
  4117. return 0;
  4118. }
  4119. _ACEOF
  4120. if ac_fn_c_try_link "$LINENO"; then :
  4121. eval $cacheid=yes
  4122. else
  4123. eval $cacheid=no
  4124. fi
  4125. rm -f core conftest.err conftest.$ac_objext \
  4126. conftest$ac_exeext conftest.$ac_ext
  4127. fi
  4128. CFLAGS="$xorg_testset_save_CFLAGS"
  4129. eval supported=\$$cacheid
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4131. $as_echo "$supported" >&6; }
  4132. if test "$supported" = "yes" ; then
  4133. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4134. found="yes"
  4135. fi
  4136. fi
  4137. xorg_testset_save_CFLAGS="$CFLAGS"
  4138. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4139. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4141. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4142. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. int i;
  4148. _ACEOF
  4149. if ac_fn_c_try_compile "$LINENO"; then :
  4150. xorg_cv_cc_flag_unknown_warning_option=yes
  4151. else
  4152. xorg_cv_cc_flag_unknown_warning_option=no
  4153. fi
  4154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4155. fi
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4157. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4158. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4159. CFLAGS="$xorg_testset_save_CFLAGS"
  4160. fi
  4161. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4162. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4163. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4164. fi
  4165. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4167. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4168. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4172. /* end confdefs.h. */
  4173. int i;
  4174. _ACEOF
  4175. if ac_fn_c_try_compile "$LINENO"; then :
  4176. xorg_cv_cc_flag_unused_command_line_argument=yes
  4177. else
  4178. xorg_cv_cc_flag_unused_command_line_argument=no
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4181. fi
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4183. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4184. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4185. CFLAGS="$xorg_testset_save_CFLAGS"
  4186. fi
  4187. found="no"
  4188. if test $found = "no" ; then
  4189. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4190. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4191. fi
  4192. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4193. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4194. fi
  4195. CFLAGS="$CFLAGS -Wpointer-arith"
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4197. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4198. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4199. if eval \${$cacheid+:} false; then :
  4200. $as_echo_n "(cached) " >&6
  4201. else
  4202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4203. /* end confdefs.h. */
  4204. int i;
  4205. int
  4206. main ()
  4207. {
  4208. ;
  4209. return 0;
  4210. }
  4211. _ACEOF
  4212. if ac_fn_c_try_link "$LINENO"; then :
  4213. eval $cacheid=yes
  4214. else
  4215. eval $cacheid=no
  4216. fi
  4217. rm -f core conftest.err conftest.$ac_objext \
  4218. conftest$ac_exeext conftest.$ac_ext
  4219. fi
  4220. CFLAGS="$xorg_testset_save_CFLAGS"
  4221. eval supported=\$$cacheid
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4223. $as_echo "$supported" >&6; }
  4224. if test "$supported" = "yes" ; then
  4225. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4226. found="yes"
  4227. fi
  4228. fi
  4229. xorg_testset_save_CFLAGS="$CFLAGS"
  4230. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4231. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4233. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4234. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4238. /* end confdefs.h. */
  4239. int i;
  4240. _ACEOF
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. xorg_cv_cc_flag_unknown_warning_option=yes
  4243. else
  4244. xorg_cv_cc_flag_unknown_warning_option=no
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4249. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4250. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4251. CFLAGS="$xorg_testset_save_CFLAGS"
  4252. fi
  4253. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4254. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4255. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4256. fi
  4257. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4259. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4260. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. int i;
  4266. _ACEOF
  4267. if ac_fn_c_try_compile "$LINENO"; then :
  4268. xorg_cv_cc_flag_unused_command_line_argument=yes
  4269. else
  4270. xorg_cv_cc_flag_unused_command_line_argument=no
  4271. fi
  4272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4273. fi
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4275. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4276. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4277. CFLAGS="$xorg_testset_save_CFLAGS"
  4278. fi
  4279. found="no"
  4280. if test $found = "no" ; then
  4281. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4282. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4283. fi
  4284. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4285. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4286. fi
  4287. CFLAGS="$CFLAGS -Wmissing-declarations"
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4289. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4290. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4291. if eval \${$cacheid+:} false; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. /* end confdefs.h. */
  4296. int i;
  4297. int
  4298. main ()
  4299. {
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_link "$LINENO"; then :
  4305. eval $cacheid=yes
  4306. else
  4307. eval $cacheid=no
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext \
  4310. conftest$ac_exeext conftest.$ac_ext
  4311. fi
  4312. CFLAGS="$xorg_testset_save_CFLAGS"
  4313. eval supported=\$$cacheid
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4315. $as_echo "$supported" >&6; }
  4316. if test "$supported" = "yes" ; then
  4317. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4318. found="yes"
  4319. fi
  4320. fi
  4321. xorg_testset_save_CFLAGS="$CFLAGS"
  4322. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4323. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4325. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4326. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4327. $as_echo_n "(cached) " >&6
  4328. else
  4329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4330. /* end confdefs.h. */
  4331. int i;
  4332. _ACEOF
  4333. if ac_fn_c_try_compile "$LINENO"; then :
  4334. xorg_cv_cc_flag_unknown_warning_option=yes
  4335. else
  4336. xorg_cv_cc_flag_unknown_warning_option=no
  4337. fi
  4338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4339. fi
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4341. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4342. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4343. CFLAGS="$xorg_testset_save_CFLAGS"
  4344. fi
  4345. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4346. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4347. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4348. fi
  4349. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4351. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4352. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. int i;
  4358. _ACEOF
  4359. if ac_fn_c_try_compile "$LINENO"; then :
  4360. xorg_cv_cc_flag_unused_command_line_argument=yes
  4361. else
  4362. xorg_cv_cc_flag_unused_command_line_argument=no
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4367. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4368. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4369. CFLAGS="$xorg_testset_save_CFLAGS"
  4370. fi
  4371. found="no"
  4372. if test $found = "no" ; then
  4373. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4374. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4375. fi
  4376. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4377. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4378. fi
  4379. CFLAGS="$CFLAGS -Wformat=2"
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4381. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4382. cacheid=xorg_cv_cc_flag__Wformat_2
  4383. if eval \${$cacheid+:} false; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4387. /* end confdefs.h. */
  4388. int i;
  4389. int
  4390. main ()
  4391. {
  4392. ;
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. if ac_fn_c_try_link "$LINENO"; then :
  4397. eval $cacheid=yes
  4398. else
  4399. eval $cacheid=no
  4400. fi
  4401. rm -f core conftest.err conftest.$ac_objext \
  4402. conftest$ac_exeext conftest.$ac_ext
  4403. fi
  4404. CFLAGS="$xorg_testset_save_CFLAGS"
  4405. eval supported=\$$cacheid
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4407. $as_echo "$supported" >&6; }
  4408. if test "$supported" = "yes" ; then
  4409. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4410. found="yes"
  4411. fi
  4412. fi
  4413. if test $found = "no" ; then
  4414. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4415. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4416. fi
  4417. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4418. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4419. fi
  4420. CFLAGS="$CFLAGS -Wformat"
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4422. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4423. cacheid=xorg_cv_cc_flag__Wformat
  4424. if eval \${$cacheid+:} 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. int
  4431. main ()
  4432. {
  4433. ;
  4434. return 0;
  4435. }
  4436. _ACEOF
  4437. if ac_fn_c_try_link "$LINENO"; then :
  4438. eval $cacheid=yes
  4439. else
  4440. eval $cacheid=no
  4441. fi
  4442. rm -f core conftest.err conftest.$ac_objext \
  4443. conftest$ac_exeext conftest.$ac_ext
  4444. fi
  4445. CFLAGS="$xorg_testset_save_CFLAGS"
  4446. eval supported=\$$cacheid
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4448. $as_echo "$supported" >&6; }
  4449. if test "$supported" = "yes" ; then
  4450. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4451. found="yes"
  4452. fi
  4453. fi
  4454. xorg_testset_save_CFLAGS="$CFLAGS"
  4455. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4456. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4458. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4459. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4460. $as_echo_n "(cached) " >&6
  4461. else
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. int i;
  4465. _ACEOF
  4466. if ac_fn_c_try_compile "$LINENO"; then :
  4467. xorg_cv_cc_flag_unknown_warning_option=yes
  4468. else
  4469. xorg_cv_cc_flag_unknown_warning_option=no
  4470. fi
  4471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4472. fi
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4474. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4475. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4476. CFLAGS="$xorg_testset_save_CFLAGS"
  4477. fi
  4478. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4479. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4480. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4481. fi
  4482. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4484. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4485. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4489. /* end confdefs.h. */
  4490. int i;
  4491. _ACEOF
  4492. if ac_fn_c_try_compile "$LINENO"; then :
  4493. xorg_cv_cc_flag_unused_command_line_argument=yes
  4494. else
  4495. xorg_cv_cc_flag_unused_command_line_argument=no
  4496. fi
  4497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4498. fi
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4500. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4501. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4502. CFLAGS="$xorg_testset_save_CFLAGS"
  4503. fi
  4504. found="no"
  4505. if test $found = "no" ; then
  4506. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4507. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4508. fi
  4509. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4510. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4511. fi
  4512. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4514. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4515. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4516. if eval \${$cacheid+:} false; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4520. /* end confdefs.h. */
  4521. int i;
  4522. int
  4523. main ()
  4524. {
  4525. ;
  4526. return 0;
  4527. }
  4528. _ACEOF
  4529. if ac_fn_c_try_link "$LINENO"; then :
  4530. eval $cacheid=yes
  4531. else
  4532. eval $cacheid=no
  4533. fi
  4534. rm -f core conftest.err conftest.$ac_objext \
  4535. conftest$ac_exeext conftest.$ac_ext
  4536. fi
  4537. CFLAGS="$xorg_testset_save_CFLAGS"
  4538. eval supported=\$$cacheid
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4540. $as_echo "$supported" >&6; }
  4541. if test "$supported" = "yes" ; then
  4542. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4543. found="yes"
  4544. fi
  4545. fi
  4546. xorg_testset_save_CFLAGS="$CFLAGS"
  4547. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4548. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4550. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4551. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4552. $as_echo_n "(cached) " >&6
  4553. else
  4554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4555. /* end confdefs.h. */
  4556. int i;
  4557. _ACEOF
  4558. if ac_fn_c_try_compile "$LINENO"; then :
  4559. xorg_cv_cc_flag_unknown_warning_option=yes
  4560. else
  4561. xorg_cv_cc_flag_unknown_warning_option=no
  4562. fi
  4563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4564. fi
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4566. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4567. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4568. CFLAGS="$xorg_testset_save_CFLAGS"
  4569. fi
  4570. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4571. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4572. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4573. fi
  4574. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4576. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4577. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4581. /* end confdefs.h. */
  4582. int i;
  4583. _ACEOF
  4584. if ac_fn_c_try_compile "$LINENO"; then :
  4585. xorg_cv_cc_flag_unused_command_line_argument=yes
  4586. else
  4587. xorg_cv_cc_flag_unused_command_line_argument=no
  4588. fi
  4589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4592. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4593. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4594. CFLAGS="$xorg_testset_save_CFLAGS"
  4595. fi
  4596. found="no"
  4597. if test $found = "no" ; then
  4598. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4599. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4600. fi
  4601. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4602. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4603. fi
  4604. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4606. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4607. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4608. if eval \${$cacheid+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. /* end confdefs.h. */
  4613. int i;
  4614. int
  4615. main ()
  4616. {
  4617. ;
  4618. return 0;
  4619. }
  4620. _ACEOF
  4621. if ac_fn_c_try_link "$LINENO"; then :
  4622. eval $cacheid=yes
  4623. else
  4624. eval $cacheid=no
  4625. fi
  4626. rm -f core conftest.err conftest.$ac_objext \
  4627. conftest$ac_exeext conftest.$ac_ext
  4628. fi
  4629. CFLAGS="$xorg_testset_save_CFLAGS"
  4630. eval supported=\$$cacheid
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4632. $as_echo "$supported" >&6; }
  4633. if test "$supported" = "yes" ; then
  4634. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4635. found="yes"
  4636. fi
  4637. fi
  4638. xorg_testset_save_CFLAGS="$CFLAGS"
  4639. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4640. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4642. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4643. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4647. /* end confdefs.h. */
  4648. int i;
  4649. _ACEOF
  4650. if ac_fn_c_try_compile "$LINENO"; then :
  4651. xorg_cv_cc_flag_unknown_warning_option=yes
  4652. else
  4653. xorg_cv_cc_flag_unknown_warning_option=no
  4654. fi
  4655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4656. fi
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4658. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4659. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4660. CFLAGS="$xorg_testset_save_CFLAGS"
  4661. fi
  4662. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4663. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4664. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4665. fi
  4666. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4668. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4669. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4673. /* end confdefs.h. */
  4674. int i;
  4675. _ACEOF
  4676. if ac_fn_c_try_compile "$LINENO"; then :
  4677. xorg_cv_cc_flag_unused_command_line_argument=yes
  4678. else
  4679. xorg_cv_cc_flag_unused_command_line_argument=no
  4680. fi
  4681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4684. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4685. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4686. CFLAGS="$xorg_testset_save_CFLAGS"
  4687. fi
  4688. found="no"
  4689. if test $found = "no" ; then
  4690. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4691. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4692. fi
  4693. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4694. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4695. fi
  4696. CFLAGS="$CFLAGS -Wnested-externs"
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4698. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4699. cacheid=xorg_cv_cc_flag__Wnested_externs
  4700. if eval \${$cacheid+:} false; then :
  4701. $as_echo_n "(cached) " >&6
  4702. else
  4703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4704. /* end confdefs.h. */
  4705. int i;
  4706. int
  4707. main ()
  4708. {
  4709. ;
  4710. return 0;
  4711. }
  4712. _ACEOF
  4713. if ac_fn_c_try_link "$LINENO"; then :
  4714. eval $cacheid=yes
  4715. else
  4716. eval $cacheid=no
  4717. fi
  4718. rm -f core conftest.err conftest.$ac_objext \
  4719. conftest$ac_exeext conftest.$ac_ext
  4720. fi
  4721. CFLAGS="$xorg_testset_save_CFLAGS"
  4722. eval supported=\$$cacheid
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4724. $as_echo "$supported" >&6; }
  4725. if test "$supported" = "yes" ; then
  4726. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4727. found="yes"
  4728. fi
  4729. fi
  4730. xorg_testset_save_CFLAGS="$CFLAGS"
  4731. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4732. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4734. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4735. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4739. /* end confdefs.h. */
  4740. int i;
  4741. _ACEOF
  4742. if ac_fn_c_try_compile "$LINENO"; then :
  4743. xorg_cv_cc_flag_unknown_warning_option=yes
  4744. else
  4745. xorg_cv_cc_flag_unknown_warning_option=no
  4746. fi
  4747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4748. fi
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4750. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4751. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4752. CFLAGS="$xorg_testset_save_CFLAGS"
  4753. fi
  4754. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4755. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4756. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4757. fi
  4758. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4760. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4761. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4762. $as_echo_n "(cached) " >&6
  4763. else
  4764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end confdefs.h. */
  4766. int i;
  4767. _ACEOF
  4768. if ac_fn_c_try_compile "$LINENO"; then :
  4769. xorg_cv_cc_flag_unused_command_line_argument=yes
  4770. else
  4771. xorg_cv_cc_flag_unused_command_line_argument=no
  4772. fi
  4773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4774. fi
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4776. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4777. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4778. CFLAGS="$xorg_testset_save_CFLAGS"
  4779. fi
  4780. found="no"
  4781. if test $found = "no" ; then
  4782. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4783. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4784. fi
  4785. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4786. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4787. fi
  4788. CFLAGS="$CFLAGS -Wbad-function-cast"
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4790. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4791. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4792. if eval \${$cacheid+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4796. /* end confdefs.h. */
  4797. int i;
  4798. int
  4799. main ()
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. if ac_fn_c_try_link "$LINENO"; then :
  4806. eval $cacheid=yes
  4807. else
  4808. eval $cacheid=no
  4809. fi
  4810. rm -f core conftest.err conftest.$ac_objext \
  4811. conftest$ac_exeext conftest.$ac_ext
  4812. fi
  4813. CFLAGS="$xorg_testset_save_CFLAGS"
  4814. eval supported=\$$cacheid
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4816. $as_echo "$supported" >&6; }
  4817. if test "$supported" = "yes" ; then
  4818. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4819. found="yes"
  4820. fi
  4821. fi
  4822. xorg_testset_save_CFLAGS="$CFLAGS"
  4823. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4824. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4826. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4827. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4831. /* end confdefs.h. */
  4832. int i;
  4833. _ACEOF
  4834. if ac_fn_c_try_compile "$LINENO"; then :
  4835. xorg_cv_cc_flag_unknown_warning_option=yes
  4836. else
  4837. xorg_cv_cc_flag_unknown_warning_option=no
  4838. fi
  4839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4840. fi
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4842. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4843. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4844. CFLAGS="$xorg_testset_save_CFLAGS"
  4845. fi
  4846. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4847. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4848. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4849. fi
  4850. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4852. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4853. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4857. /* end confdefs.h. */
  4858. int i;
  4859. _ACEOF
  4860. if ac_fn_c_try_compile "$LINENO"; then :
  4861. xorg_cv_cc_flag_unused_command_line_argument=yes
  4862. else
  4863. xorg_cv_cc_flag_unused_command_line_argument=no
  4864. fi
  4865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4868. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4869. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4870. CFLAGS="$xorg_testset_save_CFLAGS"
  4871. fi
  4872. found="no"
  4873. if test $found = "no" ; then
  4874. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4875. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4876. fi
  4877. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4878. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4879. fi
  4880. CFLAGS="$CFLAGS -Wold-style-definition"
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4882. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4883. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4884. if eval \${$cacheid+:} false; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4888. /* end confdefs.h. */
  4889. int i;
  4890. int
  4891. main ()
  4892. {
  4893. ;
  4894. return 0;
  4895. }
  4896. _ACEOF
  4897. if ac_fn_c_try_link "$LINENO"; then :
  4898. eval $cacheid=yes
  4899. else
  4900. eval $cacheid=no
  4901. fi
  4902. rm -f core conftest.err conftest.$ac_objext \
  4903. conftest$ac_exeext conftest.$ac_ext
  4904. fi
  4905. CFLAGS="$xorg_testset_save_CFLAGS"
  4906. eval supported=\$$cacheid
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4908. $as_echo "$supported" >&6; }
  4909. if test "$supported" = "yes" ; then
  4910. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4911. found="yes"
  4912. fi
  4913. fi
  4914. if test $found = "no" ; then
  4915. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4916. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4917. fi
  4918. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4919. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4920. fi
  4921. CFLAGS="$CFLAGS -fd"
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  4923. $as_echo_n "checking if $CC supports -fd... " >&6; }
  4924. cacheid=xorg_cv_cc_flag__fd
  4925. if eval \${$cacheid+:} 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. int
  4932. main ()
  4933. {
  4934. ;
  4935. return 0;
  4936. }
  4937. _ACEOF
  4938. if ac_fn_c_try_link "$LINENO"; then :
  4939. eval $cacheid=yes
  4940. else
  4941. eval $cacheid=no
  4942. fi
  4943. rm -f core conftest.err conftest.$ac_objext \
  4944. conftest$ac_exeext conftest.$ac_ext
  4945. fi
  4946. CFLAGS="$xorg_testset_save_CFLAGS"
  4947. eval supported=\$$cacheid
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4949. $as_echo "$supported" >&6; }
  4950. if test "$supported" = "yes" ; then
  4951. BASE_CFLAGS="$BASE_CFLAGS -fd"
  4952. found="yes"
  4953. fi
  4954. fi
  4955. xorg_testset_save_CFLAGS="$CFLAGS"
  4956. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4957. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4959. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4960. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4964. /* end confdefs.h. */
  4965. int i;
  4966. _ACEOF
  4967. if ac_fn_c_try_compile "$LINENO"; then :
  4968. xorg_cv_cc_flag_unknown_warning_option=yes
  4969. else
  4970. xorg_cv_cc_flag_unknown_warning_option=no
  4971. fi
  4972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4973. fi
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4975. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4976. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4977. CFLAGS="$xorg_testset_save_CFLAGS"
  4978. fi
  4979. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4980. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4982. fi
  4983. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4985. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4986. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4990. /* end confdefs.h. */
  4991. int i;
  4992. _ACEOF
  4993. if ac_fn_c_try_compile "$LINENO"; then :
  4994. xorg_cv_cc_flag_unused_command_line_argument=yes
  4995. else
  4996. xorg_cv_cc_flag_unused_command_line_argument=no
  4997. fi
  4998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4999. fi
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5001. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5002. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5003. CFLAGS="$xorg_testset_save_CFLAGS"
  5004. fi
  5005. found="no"
  5006. if test $found = "no" ; then
  5007. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5008. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5009. fi
  5010. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5011. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5012. fi
  5013. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5015. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5016. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5017. if eval \${$cacheid+:} 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. int
  5024. main ()
  5025. {
  5026. ;
  5027. return 0;
  5028. }
  5029. _ACEOF
  5030. if ac_fn_c_try_link "$LINENO"; then :
  5031. eval $cacheid=yes
  5032. else
  5033. eval $cacheid=no
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext \
  5036. conftest$ac_exeext conftest.$ac_ext
  5037. fi
  5038. CFLAGS="$xorg_testset_save_CFLAGS"
  5039. eval supported=\$$cacheid
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5041. $as_echo "$supported" >&6; }
  5042. if test "$supported" = "yes" ; then
  5043. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5044. found="yes"
  5045. fi
  5046. fi
  5047. # This chunk adds additional warnings that could catch undesired effects.
  5048. xorg_testset_save_CFLAGS="$CFLAGS"
  5049. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5050. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5052. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5053. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5057. /* end confdefs.h. */
  5058. int i;
  5059. _ACEOF
  5060. if ac_fn_c_try_compile "$LINENO"; then :
  5061. xorg_cv_cc_flag_unknown_warning_option=yes
  5062. else
  5063. xorg_cv_cc_flag_unknown_warning_option=no
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. fi
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5068. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5069. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5070. CFLAGS="$xorg_testset_save_CFLAGS"
  5071. fi
  5072. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5073. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5074. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5075. fi
  5076. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5078. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5079. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. int i;
  5085. _ACEOF
  5086. if ac_fn_c_try_compile "$LINENO"; then :
  5087. xorg_cv_cc_flag_unused_command_line_argument=yes
  5088. else
  5089. xorg_cv_cc_flag_unused_command_line_argument=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5094. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5095. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5096. CFLAGS="$xorg_testset_save_CFLAGS"
  5097. fi
  5098. found="no"
  5099. if test $found = "no" ; then
  5100. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5101. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5102. fi
  5103. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5104. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5105. fi
  5106. CFLAGS="$CFLAGS -Wunused"
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5108. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5109. cacheid=xorg_cv_cc_flag__Wunused
  5110. if eval \${$cacheid+:} 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. int
  5117. main ()
  5118. {
  5119. ;
  5120. return 0;
  5121. }
  5122. _ACEOF
  5123. if ac_fn_c_try_link "$LINENO"; then :
  5124. eval $cacheid=yes
  5125. else
  5126. eval $cacheid=no
  5127. fi
  5128. rm -f core conftest.err conftest.$ac_objext \
  5129. conftest$ac_exeext conftest.$ac_ext
  5130. fi
  5131. CFLAGS="$xorg_testset_save_CFLAGS"
  5132. eval supported=\$$cacheid
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5134. $as_echo "$supported" >&6; }
  5135. if test "$supported" = "yes" ; then
  5136. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5137. found="yes"
  5138. fi
  5139. fi
  5140. xorg_testset_save_CFLAGS="$CFLAGS"
  5141. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5142. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5144. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5145. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5149. /* end confdefs.h. */
  5150. int i;
  5151. _ACEOF
  5152. if ac_fn_c_try_compile "$LINENO"; then :
  5153. xorg_cv_cc_flag_unknown_warning_option=yes
  5154. else
  5155. xorg_cv_cc_flag_unknown_warning_option=no
  5156. fi
  5157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5158. fi
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5160. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5161. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5162. CFLAGS="$xorg_testset_save_CFLAGS"
  5163. fi
  5164. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5165. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5166. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5167. fi
  5168. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5170. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5171. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5172. $as_echo_n "(cached) " >&6
  5173. else
  5174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5175. /* end confdefs.h. */
  5176. int i;
  5177. _ACEOF
  5178. if ac_fn_c_try_compile "$LINENO"; then :
  5179. xorg_cv_cc_flag_unused_command_line_argument=yes
  5180. else
  5181. xorg_cv_cc_flag_unused_command_line_argument=no
  5182. fi
  5183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5184. fi
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5186. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5187. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5188. CFLAGS="$xorg_testset_save_CFLAGS"
  5189. fi
  5190. found="no"
  5191. if test $found = "no" ; then
  5192. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5193. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5194. fi
  5195. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5196. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5197. fi
  5198. CFLAGS="$CFLAGS -Wuninitialized"
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5200. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5201. cacheid=xorg_cv_cc_flag__Wuninitialized
  5202. if eval \${$cacheid+:} 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. int
  5209. main ()
  5210. {
  5211. ;
  5212. return 0;
  5213. }
  5214. _ACEOF
  5215. if ac_fn_c_try_link "$LINENO"; then :
  5216. eval $cacheid=yes
  5217. else
  5218. eval $cacheid=no
  5219. fi
  5220. rm -f core conftest.err conftest.$ac_objext \
  5221. conftest$ac_exeext conftest.$ac_ext
  5222. fi
  5223. CFLAGS="$xorg_testset_save_CFLAGS"
  5224. eval supported=\$$cacheid
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5226. $as_echo "$supported" >&6; }
  5227. if test "$supported" = "yes" ; then
  5228. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5229. found="yes"
  5230. fi
  5231. fi
  5232. xorg_testset_save_CFLAGS="$CFLAGS"
  5233. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5234. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5236. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5237. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5241. /* end confdefs.h. */
  5242. int i;
  5243. _ACEOF
  5244. if ac_fn_c_try_compile "$LINENO"; then :
  5245. xorg_cv_cc_flag_unknown_warning_option=yes
  5246. else
  5247. xorg_cv_cc_flag_unknown_warning_option=no
  5248. fi
  5249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5252. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5253. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5254. CFLAGS="$xorg_testset_save_CFLAGS"
  5255. fi
  5256. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5257. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5258. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5259. fi
  5260. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5262. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5263. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5264. $as_echo_n "(cached) " >&6
  5265. else
  5266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5267. /* end confdefs.h. */
  5268. int i;
  5269. _ACEOF
  5270. if ac_fn_c_try_compile "$LINENO"; then :
  5271. xorg_cv_cc_flag_unused_command_line_argument=yes
  5272. else
  5273. xorg_cv_cc_flag_unused_command_line_argument=no
  5274. fi
  5275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5276. fi
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5278. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5279. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5280. CFLAGS="$xorg_testset_save_CFLAGS"
  5281. fi
  5282. found="no"
  5283. if test $found = "no" ; then
  5284. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5285. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5286. fi
  5287. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5288. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5289. fi
  5290. CFLAGS="$CFLAGS -Wshadow"
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5292. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5293. cacheid=xorg_cv_cc_flag__Wshadow
  5294. if eval \${$cacheid+:} 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. int
  5301. main ()
  5302. {
  5303. ;
  5304. return 0;
  5305. }
  5306. _ACEOF
  5307. if ac_fn_c_try_link "$LINENO"; then :
  5308. eval $cacheid=yes
  5309. else
  5310. eval $cacheid=no
  5311. fi
  5312. rm -f core conftest.err conftest.$ac_objext \
  5313. conftest$ac_exeext conftest.$ac_ext
  5314. fi
  5315. CFLAGS="$xorg_testset_save_CFLAGS"
  5316. eval supported=\$$cacheid
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5318. $as_echo "$supported" >&6; }
  5319. if test "$supported" = "yes" ; then
  5320. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5321. found="yes"
  5322. fi
  5323. fi
  5324. xorg_testset_save_CFLAGS="$CFLAGS"
  5325. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5326. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5328. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5329. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5330. $as_echo_n "(cached) " >&6
  5331. else
  5332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5333. /* end confdefs.h. */
  5334. int i;
  5335. _ACEOF
  5336. if ac_fn_c_try_compile "$LINENO"; then :
  5337. xorg_cv_cc_flag_unknown_warning_option=yes
  5338. else
  5339. xorg_cv_cc_flag_unknown_warning_option=no
  5340. fi
  5341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5342. fi
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5344. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5345. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5346. CFLAGS="$xorg_testset_save_CFLAGS"
  5347. fi
  5348. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5349. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5350. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5351. fi
  5352. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5354. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5355. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5356. $as_echo_n "(cached) " >&6
  5357. else
  5358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5359. /* end confdefs.h. */
  5360. int i;
  5361. _ACEOF
  5362. if ac_fn_c_try_compile "$LINENO"; then :
  5363. xorg_cv_cc_flag_unused_command_line_argument=yes
  5364. else
  5365. xorg_cv_cc_flag_unused_command_line_argument=no
  5366. fi
  5367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5368. fi
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5370. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5371. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5372. CFLAGS="$xorg_testset_save_CFLAGS"
  5373. fi
  5374. found="no"
  5375. if test $found = "no" ; then
  5376. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5377. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5378. fi
  5379. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5380. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5381. fi
  5382. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5384. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5385. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5386. if eval \${$cacheid+:} 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. int
  5393. main ()
  5394. {
  5395. ;
  5396. return 0;
  5397. }
  5398. _ACEOF
  5399. if ac_fn_c_try_link "$LINENO"; then :
  5400. eval $cacheid=yes
  5401. else
  5402. eval $cacheid=no
  5403. fi
  5404. rm -f core conftest.err conftest.$ac_objext \
  5405. conftest$ac_exeext conftest.$ac_ext
  5406. fi
  5407. CFLAGS="$xorg_testset_save_CFLAGS"
  5408. eval supported=\$$cacheid
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5410. $as_echo "$supported" >&6; }
  5411. if test "$supported" = "yes" ; then
  5412. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5413. found="yes"
  5414. fi
  5415. fi
  5416. xorg_testset_save_CFLAGS="$CFLAGS"
  5417. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5420. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5421. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5425. /* end confdefs.h. */
  5426. int i;
  5427. _ACEOF
  5428. if ac_fn_c_try_compile "$LINENO"; then :
  5429. xorg_cv_cc_flag_unknown_warning_option=yes
  5430. else
  5431. xorg_cv_cc_flag_unknown_warning_option=no
  5432. fi
  5433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5434. fi
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5436. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5437. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5438. CFLAGS="$xorg_testset_save_CFLAGS"
  5439. fi
  5440. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5441. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5442. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5443. fi
  5444. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5446. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5447. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5451. /* end confdefs.h. */
  5452. int i;
  5453. _ACEOF
  5454. if ac_fn_c_try_compile "$LINENO"; then :
  5455. xorg_cv_cc_flag_unused_command_line_argument=yes
  5456. else
  5457. xorg_cv_cc_flag_unused_command_line_argument=no
  5458. fi
  5459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5460. fi
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5462. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5463. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5464. CFLAGS="$xorg_testset_save_CFLAGS"
  5465. fi
  5466. found="no"
  5467. if test $found = "no" ; then
  5468. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5469. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5470. fi
  5471. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5472. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5473. fi
  5474. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5476. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5477. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5478. if eval \${$cacheid+:} 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. int
  5485. main ()
  5486. {
  5487. ;
  5488. return 0;
  5489. }
  5490. _ACEOF
  5491. if ac_fn_c_try_link "$LINENO"; then :
  5492. eval $cacheid=yes
  5493. else
  5494. eval $cacheid=no
  5495. fi
  5496. rm -f core conftest.err conftest.$ac_objext \
  5497. conftest$ac_exeext conftest.$ac_ext
  5498. fi
  5499. CFLAGS="$xorg_testset_save_CFLAGS"
  5500. eval supported=\$$cacheid
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5502. $as_echo "$supported" >&6; }
  5503. if test "$supported" = "yes" ; then
  5504. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5505. found="yes"
  5506. fi
  5507. fi
  5508. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5509. xorg_testset_save_CFLAGS="$CFLAGS"
  5510. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5511. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5513. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5514. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5518. /* end confdefs.h. */
  5519. int i;
  5520. _ACEOF
  5521. if ac_fn_c_try_compile "$LINENO"; then :
  5522. xorg_cv_cc_flag_unknown_warning_option=yes
  5523. else
  5524. xorg_cv_cc_flag_unknown_warning_option=no
  5525. fi
  5526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5527. fi
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5529. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5530. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5531. CFLAGS="$xorg_testset_save_CFLAGS"
  5532. fi
  5533. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5534. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5535. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5536. fi
  5537. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5539. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5540. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5544. /* end confdefs.h. */
  5545. int i;
  5546. _ACEOF
  5547. if ac_fn_c_try_compile "$LINENO"; then :
  5548. xorg_cv_cc_flag_unused_command_line_argument=yes
  5549. else
  5550. xorg_cv_cc_flag_unused_command_line_argument=no
  5551. fi
  5552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5553. fi
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5555. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5556. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5557. CFLAGS="$xorg_testset_save_CFLAGS"
  5558. fi
  5559. found="no"
  5560. if test $found = "no" ; then
  5561. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5562. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5563. fi
  5564. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5565. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5566. fi
  5567. CFLAGS="$CFLAGS -Wlogical-op"
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5569. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5570. cacheid=xorg_cv_cc_flag__Wlogical_op
  5571. if eval \${$cacheid+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5575. /* end confdefs.h. */
  5576. int i;
  5577. int
  5578. main ()
  5579. {
  5580. ;
  5581. return 0;
  5582. }
  5583. _ACEOF
  5584. if ac_fn_c_try_link "$LINENO"; then :
  5585. eval $cacheid=yes
  5586. else
  5587. eval $cacheid=no
  5588. fi
  5589. rm -f core conftest.err conftest.$ac_objext \
  5590. conftest$ac_exeext conftest.$ac_ext
  5591. fi
  5592. CFLAGS="$xorg_testset_save_CFLAGS"
  5593. eval supported=\$$cacheid
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5595. $as_echo "$supported" >&6; }
  5596. if test "$supported" = "yes" ; then
  5597. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5598. found="yes"
  5599. fi
  5600. fi
  5601. # These are currently disabled because they are noisy. They will be enabled
  5602. # in the future once the codebase is sufficiently modernized to silence
  5603. # them. For now, I don't want them to drown out the other warnings.
  5604. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5605. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5606. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5607. # Turn some warnings into errors, so we don't accidently get successful builds
  5608. # when there are problems that should be fixed.
  5609. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5610. xorg_testset_save_CFLAGS="$CFLAGS"
  5611. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5612. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5614. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5615. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5616. $as_echo_n "(cached) " >&6
  5617. else
  5618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5619. /* end confdefs.h. */
  5620. int i;
  5621. _ACEOF
  5622. if ac_fn_c_try_compile "$LINENO"; then :
  5623. xorg_cv_cc_flag_unknown_warning_option=yes
  5624. else
  5625. xorg_cv_cc_flag_unknown_warning_option=no
  5626. fi
  5627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. fi
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5630. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5631. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5632. CFLAGS="$xorg_testset_save_CFLAGS"
  5633. fi
  5634. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5635. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5636. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5637. fi
  5638. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5640. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5641. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5642. $as_echo_n "(cached) " >&6
  5643. else
  5644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5645. /* end confdefs.h. */
  5646. int i;
  5647. _ACEOF
  5648. if ac_fn_c_try_compile "$LINENO"; then :
  5649. xorg_cv_cc_flag_unused_command_line_argument=yes
  5650. else
  5651. xorg_cv_cc_flag_unused_command_line_argument=no
  5652. fi
  5653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5654. fi
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5656. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5657. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5658. CFLAGS="$xorg_testset_save_CFLAGS"
  5659. fi
  5660. found="no"
  5661. if test $found = "no" ; then
  5662. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5663. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5664. fi
  5665. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5666. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5667. fi
  5668. CFLAGS="$CFLAGS -Werror=implicit"
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5670. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5671. cacheid=xorg_cv_cc_flag__Werror_implicit
  5672. if eval \${$cacheid+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5676. /* end confdefs.h. */
  5677. int i;
  5678. int
  5679. main ()
  5680. {
  5681. ;
  5682. return 0;
  5683. }
  5684. _ACEOF
  5685. if ac_fn_c_try_link "$LINENO"; then :
  5686. eval $cacheid=yes
  5687. else
  5688. eval $cacheid=no
  5689. fi
  5690. rm -f core conftest.err conftest.$ac_objext \
  5691. conftest$ac_exeext conftest.$ac_ext
  5692. fi
  5693. CFLAGS="$xorg_testset_save_CFLAGS"
  5694. eval supported=\$$cacheid
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5696. $as_echo "$supported" >&6; }
  5697. if test "$supported" = "yes" ; then
  5698. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5699. found="yes"
  5700. fi
  5701. fi
  5702. if test $found = "no" ; then
  5703. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5704. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5705. fi
  5706. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5707. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5708. fi
  5709. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5711. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5712. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5713. if eval \${$cacheid+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5717. /* end confdefs.h. */
  5718. int i;
  5719. int
  5720. main ()
  5721. {
  5722. ;
  5723. return 0;
  5724. }
  5725. _ACEOF
  5726. if ac_fn_c_try_link "$LINENO"; then :
  5727. eval $cacheid=yes
  5728. else
  5729. eval $cacheid=no
  5730. fi
  5731. rm -f core conftest.err conftest.$ac_objext \
  5732. conftest$ac_exeext conftest.$ac_ext
  5733. fi
  5734. CFLAGS="$xorg_testset_save_CFLAGS"
  5735. eval supported=\$$cacheid
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5737. $as_echo "$supported" >&6; }
  5738. if test "$supported" = "yes" ; then
  5739. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5740. found="yes"
  5741. fi
  5742. fi
  5743. xorg_testset_save_CFLAGS="$CFLAGS"
  5744. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5745. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5747. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5748. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5752. /* end confdefs.h. */
  5753. int i;
  5754. _ACEOF
  5755. if ac_fn_c_try_compile "$LINENO"; then :
  5756. xorg_cv_cc_flag_unknown_warning_option=yes
  5757. else
  5758. xorg_cv_cc_flag_unknown_warning_option=no
  5759. fi
  5760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5761. fi
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5763. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5764. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5765. CFLAGS="$xorg_testset_save_CFLAGS"
  5766. fi
  5767. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5768. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5769. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5770. fi
  5771. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5773. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5774. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5778. /* end confdefs.h. */
  5779. int i;
  5780. _ACEOF
  5781. if ac_fn_c_try_compile "$LINENO"; then :
  5782. xorg_cv_cc_flag_unused_command_line_argument=yes
  5783. else
  5784. xorg_cv_cc_flag_unused_command_line_argument=no
  5785. fi
  5786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5787. fi
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5789. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5790. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5791. CFLAGS="$xorg_testset_save_CFLAGS"
  5792. fi
  5793. found="no"
  5794. if test $found = "no" ; then
  5795. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5796. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5797. fi
  5798. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5799. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5800. fi
  5801. CFLAGS="$CFLAGS -Werror=nonnull"
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5803. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5804. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5805. if eval \${$cacheid+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5809. /* end confdefs.h. */
  5810. int i;
  5811. int
  5812. main ()
  5813. {
  5814. ;
  5815. return 0;
  5816. }
  5817. _ACEOF
  5818. if ac_fn_c_try_link "$LINENO"; then :
  5819. eval $cacheid=yes
  5820. else
  5821. eval $cacheid=no
  5822. fi
  5823. rm -f core conftest.err conftest.$ac_objext \
  5824. conftest$ac_exeext conftest.$ac_ext
  5825. fi
  5826. CFLAGS="$xorg_testset_save_CFLAGS"
  5827. eval supported=\$$cacheid
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5829. $as_echo "$supported" >&6; }
  5830. if test "$supported" = "yes" ; then
  5831. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5832. found="yes"
  5833. fi
  5834. fi
  5835. xorg_testset_save_CFLAGS="$CFLAGS"
  5836. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5837. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5839. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5840. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5844. /* end confdefs.h. */
  5845. int i;
  5846. _ACEOF
  5847. if ac_fn_c_try_compile "$LINENO"; then :
  5848. xorg_cv_cc_flag_unknown_warning_option=yes
  5849. else
  5850. xorg_cv_cc_flag_unknown_warning_option=no
  5851. fi
  5852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5853. fi
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5855. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5856. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5857. CFLAGS="$xorg_testset_save_CFLAGS"
  5858. fi
  5859. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5860. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5861. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5862. fi
  5863. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5865. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5866. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5867. $as_echo_n "(cached) " >&6
  5868. else
  5869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5870. /* end confdefs.h. */
  5871. int i;
  5872. _ACEOF
  5873. if ac_fn_c_try_compile "$LINENO"; then :
  5874. xorg_cv_cc_flag_unused_command_line_argument=yes
  5875. else
  5876. xorg_cv_cc_flag_unused_command_line_argument=no
  5877. fi
  5878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5879. fi
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5881. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5882. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5883. CFLAGS="$xorg_testset_save_CFLAGS"
  5884. fi
  5885. found="no"
  5886. if test $found = "no" ; then
  5887. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5888. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5889. fi
  5890. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5891. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5892. fi
  5893. CFLAGS="$CFLAGS -Werror=init-self"
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5895. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5896. cacheid=xorg_cv_cc_flag__Werror_init_self
  5897. if eval \${$cacheid+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5901. /* end confdefs.h. */
  5902. int i;
  5903. int
  5904. main ()
  5905. {
  5906. ;
  5907. return 0;
  5908. }
  5909. _ACEOF
  5910. if ac_fn_c_try_link "$LINENO"; then :
  5911. eval $cacheid=yes
  5912. else
  5913. eval $cacheid=no
  5914. fi
  5915. rm -f core conftest.err conftest.$ac_objext \
  5916. conftest$ac_exeext conftest.$ac_ext
  5917. fi
  5918. CFLAGS="$xorg_testset_save_CFLAGS"
  5919. eval supported=\$$cacheid
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5921. $as_echo "$supported" >&6; }
  5922. if test "$supported" = "yes" ; then
  5923. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5924. found="yes"
  5925. fi
  5926. fi
  5927. xorg_testset_save_CFLAGS="$CFLAGS"
  5928. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5929. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5931. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5932. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5936. /* end confdefs.h. */
  5937. int i;
  5938. _ACEOF
  5939. if ac_fn_c_try_compile "$LINENO"; then :
  5940. xorg_cv_cc_flag_unknown_warning_option=yes
  5941. else
  5942. xorg_cv_cc_flag_unknown_warning_option=no
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5947. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5948. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5949. CFLAGS="$xorg_testset_save_CFLAGS"
  5950. fi
  5951. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5952. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5953. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5954. fi
  5955. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5957. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5958. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5962. /* end confdefs.h. */
  5963. int i;
  5964. _ACEOF
  5965. if ac_fn_c_try_compile "$LINENO"; then :
  5966. xorg_cv_cc_flag_unused_command_line_argument=yes
  5967. else
  5968. xorg_cv_cc_flag_unused_command_line_argument=no
  5969. fi
  5970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5971. fi
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5973. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5974. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5975. CFLAGS="$xorg_testset_save_CFLAGS"
  5976. fi
  5977. found="no"
  5978. if test $found = "no" ; then
  5979. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5980. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5981. fi
  5982. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5983. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5984. fi
  5985. CFLAGS="$CFLAGS -Werror=main"
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  5987. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  5988. cacheid=xorg_cv_cc_flag__Werror_main
  5989. if eval \${$cacheid+:} false; then :
  5990. $as_echo_n "(cached) " >&6
  5991. else
  5992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5993. /* end confdefs.h. */
  5994. int i;
  5995. int
  5996. main ()
  5997. {
  5998. ;
  5999. return 0;
  6000. }
  6001. _ACEOF
  6002. if ac_fn_c_try_link "$LINENO"; then :
  6003. eval $cacheid=yes
  6004. else
  6005. eval $cacheid=no
  6006. fi
  6007. rm -f core conftest.err conftest.$ac_objext \
  6008. conftest$ac_exeext conftest.$ac_ext
  6009. fi
  6010. CFLAGS="$xorg_testset_save_CFLAGS"
  6011. eval supported=\$$cacheid
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6013. $as_echo "$supported" >&6; }
  6014. if test "$supported" = "yes" ; then
  6015. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6016. found="yes"
  6017. fi
  6018. fi
  6019. xorg_testset_save_CFLAGS="$CFLAGS"
  6020. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6021. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6023. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6024. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6028. /* end confdefs.h. */
  6029. int i;
  6030. _ACEOF
  6031. if ac_fn_c_try_compile "$LINENO"; then :
  6032. xorg_cv_cc_flag_unknown_warning_option=yes
  6033. else
  6034. xorg_cv_cc_flag_unknown_warning_option=no
  6035. fi
  6036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6039. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6040. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6041. CFLAGS="$xorg_testset_save_CFLAGS"
  6042. fi
  6043. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6044. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6045. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6046. fi
  6047. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6049. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6050. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. int i;
  6056. _ACEOF
  6057. if ac_fn_c_try_compile "$LINENO"; then :
  6058. xorg_cv_cc_flag_unused_command_line_argument=yes
  6059. else
  6060. xorg_cv_cc_flag_unused_command_line_argument=no
  6061. fi
  6062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6065. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6066. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6067. CFLAGS="$xorg_testset_save_CFLAGS"
  6068. fi
  6069. found="no"
  6070. if test $found = "no" ; then
  6071. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6073. fi
  6074. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6075. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6076. fi
  6077. CFLAGS="$CFLAGS -Werror=missing-braces"
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6079. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6080. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6081. if eval \${$cacheid+:} false; then :
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6085. /* end confdefs.h. */
  6086. int i;
  6087. int
  6088. main ()
  6089. {
  6090. ;
  6091. return 0;
  6092. }
  6093. _ACEOF
  6094. if ac_fn_c_try_link "$LINENO"; then :
  6095. eval $cacheid=yes
  6096. else
  6097. eval $cacheid=no
  6098. fi
  6099. rm -f core conftest.err conftest.$ac_objext \
  6100. conftest$ac_exeext conftest.$ac_ext
  6101. fi
  6102. CFLAGS="$xorg_testset_save_CFLAGS"
  6103. eval supported=\$$cacheid
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6105. $as_echo "$supported" >&6; }
  6106. if test "$supported" = "yes" ; then
  6107. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6108. found="yes"
  6109. fi
  6110. fi
  6111. xorg_testset_save_CFLAGS="$CFLAGS"
  6112. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6113. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6115. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6116. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6120. /* end confdefs.h. */
  6121. int i;
  6122. _ACEOF
  6123. if ac_fn_c_try_compile "$LINENO"; then :
  6124. xorg_cv_cc_flag_unknown_warning_option=yes
  6125. else
  6126. xorg_cv_cc_flag_unknown_warning_option=no
  6127. fi
  6128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6129. fi
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6131. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6132. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6133. CFLAGS="$xorg_testset_save_CFLAGS"
  6134. fi
  6135. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6136. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6137. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6138. fi
  6139. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6141. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6142. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6146. /* end confdefs.h. */
  6147. int i;
  6148. _ACEOF
  6149. if ac_fn_c_try_compile "$LINENO"; then :
  6150. xorg_cv_cc_flag_unused_command_line_argument=yes
  6151. else
  6152. xorg_cv_cc_flag_unused_command_line_argument=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6155. fi
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6157. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6158. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6159. CFLAGS="$xorg_testset_save_CFLAGS"
  6160. fi
  6161. found="no"
  6162. if test $found = "no" ; then
  6163. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6165. fi
  6166. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6167. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6168. fi
  6169. CFLAGS="$CFLAGS -Werror=sequence-point"
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6171. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6172. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6173. if eval \${$cacheid+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178. int i;
  6179. int
  6180. main ()
  6181. {
  6182. ;
  6183. return 0;
  6184. }
  6185. _ACEOF
  6186. if ac_fn_c_try_link "$LINENO"; then :
  6187. eval $cacheid=yes
  6188. else
  6189. eval $cacheid=no
  6190. fi
  6191. rm -f core conftest.err conftest.$ac_objext \
  6192. conftest$ac_exeext conftest.$ac_ext
  6193. fi
  6194. CFLAGS="$xorg_testset_save_CFLAGS"
  6195. eval supported=\$$cacheid
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6197. $as_echo "$supported" >&6; }
  6198. if test "$supported" = "yes" ; then
  6199. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6200. found="yes"
  6201. fi
  6202. fi
  6203. xorg_testset_save_CFLAGS="$CFLAGS"
  6204. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6205. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6207. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6208. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6212. /* end confdefs.h. */
  6213. int i;
  6214. _ACEOF
  6215. if ac_fn_c_try_compile "$LINENO"; then :
  6216. xorg_cv_cc_flag_unknown_warning_option=yes
  6217. else
  6218. xorg_cv_cc_flag_unknown_warning_option=no
  6219. fi
  6220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6221. fi
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6223. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6224. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6225. CFLAGS="$xorg_testset_save_CFLAGS"
  6226. fi
  6227. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6228. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6229. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6230. fi
  6231. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6233. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6234. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6235. $as_echo_n "(cached) " >&6
  6236. else
  6237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end confdefs.h. */
  6239. int i;
  6240. _ACEOF
  6241. if ac_fn_c_try_compile "$LINENO"; then :
  6242. xorg_cv_cc_flag_unused_command_line_argument=yes
  6243. else
  6244. xorg_cv_cc_flag_unused_command_line_argument=no
  6245. fi
  6246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6247. fi
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6249. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6250. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6251. CFLAGS="$xorg_testset_save_CFLAGS"
  6252. fi
  6253. found="no"
  6254. if test $found = "no" ; then
  6255. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6257. fi
  6258. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6259. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6260. fi
  6261. CFLAGS="$CFLAGS -Werror=return-type"
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6263. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6264. cacheid=xorg_cv_cc_flag__Werror_return_type
  6265. if eval \${$cacheid+:} false; then :
  6266. $as_echo_n "(cached) " >&6
  6267. else
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. int i;
  6271. int
  6272. main ()
  6273. {
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. if ac_fn_c_try_link "$LINENO"; then :
  6279. eval $cacheid=yes
  6280. else
  6281. eval $cacheid=no
  6282. fi
  6283. rm -f core conftest.err conftest.$ac_objext \
  6284. conftest$ac_exeext conftest.$ac_ext
  6285. fi
  6286. CFLAGS="$xorg_testset_save_CFLAGS"
  6287. eval supported=\$$cacheid
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6289. $as_echo "$supported" >&6; }
  6290. if test "$supported" = "yes" ; then
  6291. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6292. found="yes"
  6293. fi
  6294. fi
  6295. if test $found = "no" ; then
  6296. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6297. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6298. fi
  6299. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6300. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6301. fi
  6302. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6304. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6305. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6306. if eval \${$cacheid+:} false; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. int i;
  6312. int
  6313. main ()
  6314. {
  6315. ;
  6316. return 0;
  6317. }
  6318. _ACEOF
  6319. if ac_fn_c_try_link "$LINENO"; then :
  6320. eval $cacheid=yes
  6321. else
  6322. eval $cacheid=no
  6323. fi
  6324. rm -f core conftest.err conftest.$ac_objext \
  6325. conftest$ac_exeext conftest.$ac_ext
  6326. fi
  6327. CFLAGS="$xorg_testset_save_CFLAGS"
  6328. eval supported=\$$cacheid
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6330. $as_echo "$supported" >&6; }
  6331. if test "$supported" = "yes" ; then
  6332. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6333. found="yes"
  6334. fi
  6335. fi
  6336. xorg_testset_save_CFLAGS="$CFLAGS"
  6337. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6338. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6340. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6341. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6345. /* end confdefs.h. */
  6346. int i;
  6347. _ACEOF
  6348. if ac_fn_c_try_compile "$LINENO"; then :
  6349. xorg_cv_cc_flag_unknown_warning_option=yes
  6350. else
  6351. xorg_cv_cc_flag_unknown_warning_option=no
  6352. fi
  6353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6354. fi
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6356. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6357. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6358. CFLAGS="$xorg_testset_save_CFLAGS"
  6359. fi
  6360. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6361. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6362. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6363. fi
  6364. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6366. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6367. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6368. $as_echo_n "(cached) " >&6
  6369. else
  6370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6371. /* end confdefs.h. */
  6372. int i;
  6373. _ACEOF
  6374. if ac_fn_c_try_compile "$LINENO"; then :
  6375. xorg_cv_cc_flag_unused_command_line_argument=yes
  6376. else
  6377. xorg_cv_cc_flag_unused_command_line_argument=no
  6378. fi
  6379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6382. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6383. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6384. CFLAGS="$xorg_testset_save_CFLAGS"
  6385. fi
  6386. found="no"
  6387. if test $found = "no" ; then
  6388. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6389. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6390. fi
  6391. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6392. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6393. fi
  6394. CFLAGS="$CFLAGS -Werror=trigraphs"
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6396. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6397. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6398. if eval \${$cacheid+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6402. /* end confdefs.h. */
  6403. int i;
  6404. int
  6405. main ()
  6406. {
  6407. ;
  6408. return 0;
  6409. }
  6410. _ACEOF
  6411. if ac_fn_c_try_link "$LINENO"; then :
  6412. eval $cacheid=yes
  6413. else
  6414. eval $cacheid=no
  6415. fi
  6416. rm -f core conftest.err conftest.$ac_objext \
  6417. conftest$ac_exeext conftest.$ac_ext
  6418. fi
  6419. CFLAGS="$xorg_testset_save_CFLAGS"
  6420. eval supported=\$$cacheid
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6422. $as_echo "$supported" >&6; }
  6423. if test "$supported" = "yes" ; then
  6424. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6425. found="yes"
  6426. fi
  6427. fi
  6428. xorg_testset_save_CFLAGS="$CFLAGS"
  6429. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6430. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6432. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6433. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6434. $as_echo_n "(cached) " >&6
  6435. else
  6436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6437. /* end confdefs.h. */
  6438. int i;
  6439. _ACEOF
  6440. if ac_fn_c_try_compile "$LINENO"; then :
  6441. xorg_cv_cc_flag_unknown_warning_option=yes
  6442. else
  6443. xorg_cv_cc_flag_unknown_warning_option=no
  6444. fi
  6445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6446. fi
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6448. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6449. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6450. CFLAGS="$xorg_testset_save_CFLAGS"
  6451. fi
  6452. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6453. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6454. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6455. fi
  6456. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6458. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6459. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6463. /* end confdefs.h. */
  6464. int i;
  6465. _ACEOF
  6466. if ac_fn_c_try_compile "$LINENO"; then :
  6467. xorg_cv_cc_flag_unused_command_line_argument=yes
  6468. else
  6469. xorg_cv_cc_flag_unused_command_line_argument=no
  6470. fi
  6471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6472. fi
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6474. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6475. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6476. CFLAGS="$xorg_testset_save_CFLAGS"
  6477. fi
  6478. found="no"
  6479. if test $found = "no" ; then
  6480. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6482. fi
  6483. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6484. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6485. fi
  6486. CFLAGS="$CFLAGS -Werror=array-bounds"
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6488. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6489. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6490. if eval \${$cacheid+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. int i;
  6496. int
  6497. main ()
  6498. {
  6499. ;
  6500. return 0;
  6501. }
  6502. _ACEOF
  6503. if ac_fn_c_try_link "$LINENO"; then :
  6504. eval $cacheid=yes
  6505. else
  6506. eval $cacheid=no
  6507. fi
  6508. rm -f core conftest.err conftest.$ac_objext \
  6509. conftest$ac_exeext conftest.$ac_ext
  6510. fi
  6511. CFLAGS="$xorg_testset_save_CFLAGS"
  6512. eval supported=\$$cacheid
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6514. $as_echo "$supported" >&6; }
  6515. if test "$supported" = "yes" ; then
  6516. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6517. found="yes"
  6518. fi
  6519. fi
  6520. xorg_testset_save_CFLAGS="$CFLAGS"
  6521. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6522. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6524. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6525. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6526. $as_echo_n "(cached) " >&6
  6527. else
  6528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6529. /* end confdefs.h. */
  6530. int i;
  6531. _ACEOF
  6532. if ac_fn_c_try_compile "$LINENO"; then :
  6533. xorg_cv_cc_flag_unknown_warning_option=yes
  6534. else
  6535. xorg_cv_cc_flag_unknown_warning_option=no
  6536. fi
  6537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6538. fi
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6540. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6541. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6542. CFLAGS="$xorg_testset_save_CFLAGS"
  6543. fi
  6544. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6545. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6546. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6547. fi
  6548. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6550. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6551. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6555. /* end confdefs.h. */
  6556. int i;
  6557. _ACEOF
  6558. if ac_fn_c_try_compile "$LINENO"; then :
  6559. xorg_cv_cc_flag_unused_command_line_argument=yes
  6560. else
  6561. xorg_cv_cc_flag_unused_command_line_argument=no
  6562. fi
  6563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6564. fi
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6566. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6567. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6568. CFLAGS="$xorg_testset_save_CFLAGS"
  6569. fi
  6570. found="no"
  6571. if test $found = "no" ; then
  6572. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6574. fi
  6575. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6576. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6577. fi
  6578. CFLAGS="$CFLAGS -Werror=write-strings"
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6580. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6581. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6582. if eval \${$cacheid+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6586. /* end confdefs.h. */
  6587. int i;
  6588. int
  6589. main ()
  6590. {
  6591. ;
  6592. return 0;
  6593. }
  6594. _ACEOF
  6595. if ac_fn_c_try_link "$LINENO"; then :
  6596. eval $cacheid=yes
  6597. else
  6598. eval $cacheid=no
  6599. fi
  6600. rm -f core conftest.err conftest.$ac_objext \
  6601. conftest$ac_exeext conftest.$ac_ext
  6602. fi
  6603. CFLAGS="$xorg_testset_save_CFLAGS"
  6604. eval supported=\$$cacheid
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6606. $as_echo "$supported" >&6; }
  6607. if test "$supported" = "yes" ; then
  6608. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6609. found="yes"
  6610. fi
  6611. fi
  6612. xorg_testset_save_CFLAGS="$CFLAGS"
  6613. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6614. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6616. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6617. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6621. /* end confdefs.h. */
  6622. int i;
  6623. _ACEOF
  6624. if ac_fn_c_try_compile "$LINENO"; then :
  6625. xorg_cv_cc_flag_unknown_warning_option=yes
  6626. else
  6627. xorg_cv_cc_flag_unknown_warning_option=no
  6628. fi
  6629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6630. fi
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6632. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6633. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6634. CFLAGS="$xorg_testset_save_CFLAGS"
  6635. fi
  6636. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6637. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6638. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6639. fi
  6640. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6642. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6643. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6644. $as_echo_n "(cached) " >&6
  6645. else
  6646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6647. /* end confdefs.h. */
  6648. int i;
  6649. _ACEOF
  6650. if ac_fn_c_try_compile "$LINENO"; then :
  6651. xorg_cv_cc_flag_unused_command_line_argument=yes
  6652. else
  6653. xorg_cv_cc_flag_unused_command_line_argument=no
  6654. fi
  6655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6656. fi
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6658. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6659. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6660. CFLAGS="$xorg_testset_save_CFLAGS"
  6661. fi
  6662. found="no"
  6663. if test $found = "no" ; then
  6664. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6666. fi
  6667. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6668. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6669. fi
  6670. CFLAGS="$CFLAGS -Werror=address"
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6672. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6673. cacheid=xorg_cv_cc_flag__Werror_address
  6674. if eval \${$cacheid+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6678. /* end confdefs.h. */
  6679. int i;
  6680. int
  6681. main ()
  6682. {
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. if ac_fn_c_try_link "$LINENO"; then :
  6688. eval $cacheid=yes
  6689. else
  6690. eval $cacheid=no
  6691. fi
  6692. rm -f core conftest.err conftest.$ac_objext \
  6693. conftest$ac_exeext conftest.$ac_ext
  6694. fi
  6695. CFLAGS="$xorg_testset_save_CFLAGS"
  6696. eval supported=\$$cacheid
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6698. $as_echo "$supported" >&6; }
  6699. if test "$supported" = "yes" ; then
  6700. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6701. found="yes"
  6702. fi
  6703. fi
  6704. xorg_testset_save_CFLAGS="$CFLAGS"
  6705. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6706. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6708. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6709. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6713. /* end confdefs.h. */
  6714. int i;
  6715. _ACEOF
  6716. if ac_fn_c_try_compile "$LINENO"; then :
  6717. xorg_cv_cc_flag_unknown_warning_option=yes
  6718. else
  6719. xorg_cv_cc_flag_unknown_warning_option=no
  6720. fi
  6721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6722. fi
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6724. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6725. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6726. CFLAGS="$xorg_testset_save_CFLAGS"
  6727. fi
  6728. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6729. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6730. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6731. fi
  6732. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6734. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6735. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6739. /* end confdefs.h. */
  6740. int i;
  6741. _ACEOF
  6742. if ac_fn_c_try_compile "$LINENO"; then :
  6743. xorg_cv_cc_flag_unused_command_line_argument=yes
  6744. else
  6745. xorg_cv_cc_flag_unused_command_line_argument=no
  6746. fi
  6747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. fi
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6750. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6751. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6752. CFLAGS="$xorg_testset_save_CFLAGS"
  6753. fi
  6754. found="no"
  6755. if test $found = "no" ; then
  6756. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6758. fi
  6759. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6760. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6761. fi
  6762. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6764. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6765. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6766. if eval \${$cacheid+:} false; then :
  6767. $as_echo_n "(cached) " >&6
  6768. else
  6769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6770. /* end confdefs.h. */
  6771. int i;
  6772. int
  6773. main ()
  6774. {
  6775. ;
  6776. return 0;
  6777. }
  6778. _ACEOF
  6779. if ac_fn_c_try_link "$LINENO"; then :
  6780. eval $cacheid=yes
  6781. else
  6782. eval $cacheid=no
  6783. fi
  6784. rm -f core conftest.err conftest.$ac_objext \
  6785. conftest$ac_exeext conftest.$ac_ext
  6786. fi
  6787. CFLAGS="$xorg_testset_save_CFLAGS"
  6788. eval supported=\$$cacheid
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6790. $as_echo "$supported" >&6; }
  6791. if test "$supported" = "yes" ; then
  6792. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6793. found="yes"
  6794. fi
  6795. fi
  6796. if test $found = "no" ; then
  6797. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6798. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6799. fi
  6800. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6801. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6802. fi
  6803. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6805. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6806. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6807. if eval \${$cacheid+:} false; then :
  6808. $as_echo_n "(cached) " >&6
  6809. else
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. int i;
  6813. int
  6814. main ()
  6815. {
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. if ac_fn_c_try_link "$LINENO"; then :
  6821. eval $cacheid=yes
  6822. else
  6823. eval $cacheid=no
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext \
  6826. conftest$ac_exeext conftest.$ac_ext
  6827. fi
  6828. CFLAGS="$xorg_testset_save_CFLAGS"
  6829. eval supported=\$$cacheid
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6831. $as_echo "$supported" >&6; }
  6832. if test "$supported" = "yes" ; then
  6833. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6834. found="yes"
  6835. fi
  6836. fi
  6837. xorg_testset_save_CFLAGS="$CFLAGS"
  6838. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6839. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6841. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6842. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6846. /* end confdefs.h. */
  6847. int i;
  6848. _ACEOF
  6849. if ac_fn_c_try_compile "$LINENO"; then :
  6850. xorg_cv_cc_flag_unknown_warning_option=yes
  6851. else
  6852. xorg_cv_cc_flag_unknown_warning_option=no
  6853. fi
  6854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6857. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6858. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6859. CFLAGS="$xorg_testset_save_CFLAGS"
  6860. fi
  6861. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6862. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6863. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6864. fi
  6865. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6867. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6868. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6872. /* end confdefs.h. */
  6873. int i;
  6874. _ACEOF
  6875. if ac_fn_c_try_compile "$LINENO"; then :
  6876. xorg_cv_cc_flag_unused_command_line_argument=yes
  6877. else
  6878. xorg_cv_cc_flag_unused_command_line_argument=no
  6879. fi
  6880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6883. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6884. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6885. CFLAGS="$xorg_testset_save_CFLAGS"
  6886. fi
  6887. found="no"
  6888. if test $found = "no" ; then
  6889. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6890. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6891. fi
  6892. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6893. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6894. fi
  6895. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6897. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6898. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6899. if eval \${$cacheid+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6903. /* end confdefs.h. */
  6904. int i;
  6905. int
  6906. main ()
  6907. {
  6908. ;
  6909. return 0;
  6910. }
  6911. _ACEOF
  6912. if ac_fn_c_try_link "$LINENO"; then :
  6913. eval $cacheid=yes
  6914. else
  6915. eval $cacheid=no
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext \
  6918. conftest$ac_exeext conftest.$ac_ext
  6919. fi
  6920. CFLAGS="$xorg_testset_save_CFLAGS"
  6921. eval supported=\$$cacheid
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6923. $as_echo "$supported" >&6; }
  6924. if test "$supported" = "yes" ; then
  6925. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6926. found="yes"
  6927. fi
  6928. fi
  6929. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6930. else
  6931. { $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
  6932. $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;}
  6933. xorg_testset_save_CFLAGS="$CFLAGS"
  6934. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6935. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6937. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6938. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6942. /* end confdefs.h. */
  6943. int i;
  6944. _ACEOF
  6945. if ac_fn_c_try_compile "$LINENO"; then :
  6946. xorg_cv_cc_flag_unknown_warning_option=yes
  6947. else
  6948. xorg_cv_cc_flag_unknown_warning_option=no
  6949. fi
  6950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6951. fi
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6953. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6954. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6955. CFLAGS="$xorg_testset_save_CFLAGS"
  6956. fi
  6957. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6958. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6959. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6960. fi
  6961. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6963. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6964. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6968. /* end confdefs.h. */
  6969. int i;
  6970. _ACEOF
  6971. if ac_fn_c_try_compile "$LINENO"; then :
  6972. xorg_cv_cc_flag_unused_command_line_argument=yes
  6973. else
  6974. xorg_cv_cc_flag_unused_command_line_argument=no
  6975. fi
  6976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6977. fi
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6979. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6980. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6981. CFLAGS="$xorg_testset_save_CFLAGS"
  6982. fi
  6983. found="no"
  6984. if test $found = "no" ; then
  6985. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6986. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6987. fi
  6988. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6989. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6990. fi
  6991. CFLAGS="$CFLAGS -Wimplicit"
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  6993. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  6994. cacheid=xorg_cv_cc_flag__Wimplicit
  6995. if eval \${$cacheid+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6999. /* end confdefs.h. */
  7000. int i;
  7001. int
  7002. main ()
  7003. {
  7004. ;
  7005. return 0;
  7006. }
  7007. _ACEOF
  7008. if ac_fn_c_try_link "$LINENO"; then :
  7009. eval $cacheid=yes
  7010. else
  7011. eval $cacheid=no
  7012. fi
  7013. rm -f core conftest.err conftest.$ac_objext \
  7014. conftest$ac_exeext conftest.$ac_ext
  7015. fi
  7016. CFLAGS="$xorg_testset_save_CFLAGS"
  7017. eval supported=\$$cacheid
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7019. $as_echo "$supported" >&6; }
  7020. if test "$supported" = "yes" ; then
  7021. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7022. found="yes"
  7023. fi
  7024. fi
  7025. xorg_testset_save_CFLAGS="$CFLAGS"
  7026. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7027. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7029. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7030. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7031. $as_echo_n "(cached) " >&6
  7032. else
  7033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7034. /* end confdefs.h. */
  7035. int i;
  7036. _ACEOF
  7037. if ac_fn_c_try_compile "$LINENO"; then :
  7038. xorg_cv_cc_flag_unknown_warning_option=yes
  7039. else
  7040. xorg_cv_cc_flag_unknown_warning_option=no
  7041. fi
  7042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7043. fi
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7045. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7046. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7047. CFLAGS="$xorg_testset_save_CFLAGS"
  7048. fi
  7049. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7050. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7051. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7052. fi
  7053. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7055. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7056. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7057. $as_echo_n "(cached) " >&6
  7058. else
  7059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7060. /* end confdefs.h. */
  7061. int i;
  7062. _ACEOF
  7063. if ac_fn_c_try_compile "$LINENO"; then :
  7064. xorg_cv_cc_flag_unused_command_line_argument=yes
  7065. else
  7066. xorg_cv_cc_flag_unused_command_line_argument=no
  7067. fi
  7068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7071. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7072. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7073. CFLAGS="$xorg_testset_save_CFLAGS"
  7074. fi
  7075. found="no"
  7076. if test $found = "no" ; then
  7077. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7078. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7079. fi
  7080. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7081. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7082. fi
  7083. CFLAGS="$CFLAGS -Wnonnull"
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7085. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7086. cacheid=xorg_cv_cc_flag__Wnonnull
  7087. if eval \${$cacheid+:} false; then :
  7088. $as_echo_n "(cached) " >&6
  7089. else
  7090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7091. /* end confdefs.h. */
  7092. int i;
  7093. int
  7094. main ()
  7095. {
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. if ac_fn_c_try_link "$LINENO"; then :
  7101. eval $cacheid=yes
  7102. else
  7103. eval $cacheid=no
  7104. fi
  7105. rm -f core conftest.err conftest.$ac_objext \
  7106. conftest$ac_exeext conftest.$ac_ext
  7107. fi
  7108. CFLAGS="$xorg_testset_save_CFLAGS"
  7109. eval supported=\$$cacheid
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7111. $as_echo "$supported" >&6; }
  7112. if test "$supported" = "yes" ; then
  7113. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7114. found="yes"
  7115. fi
  7116. fi
  7117. xorg_testset_save_CFLAGS="$CFLAGS"
  7118. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7119. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7121. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7122. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7126. /* end confdefs.h. */
  7127. int i;
  7128. _ACEOF
  7129. if ac_fn_c_try_compile "$LINENO"; then :
  7130. xorg_cv_cc_flag_unknown_warning_option=yes
  7131. else
  7132. xorg_cv_cc_flag_unknown_warning_option=no
  7133. fi
  7134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7135. fi
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7137. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7138. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7139. CFLAGS="$xorg_testset_save_CFLAGS"
  7140. fi
  7141. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7142. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7144. fi
  7145. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7147. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7148. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7149. $as_echo_n "(cached) " >&6
  7150. else
  7151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7152. /* end confdefs.h. */
  7153. int i;
  7154. _ACEOF
  7155. if ac_fn_c_try_compile "$LINENO"; then :
  7156. xorg_cv_cc_flag_unused_command_line_argument=yes
  7157. else
  7158. xorg_cv_cc_flag_unused_command_line_argument=no
  7159. fi
  7160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7163. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7164. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7165. CFLAGS="$xorg_testset_save_CFLAGS"
  7166. fi
  7167. found="no"
  7168. if test $found = "no" ; then
  7169. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7170. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7171. fi
  7172. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7173. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7174. fi
  7175. CFLAGS="$CFLAGS -Winit-self"
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7177. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7178. cacheid=xorg_cv_cc_flag__Winit_self
  7179. if eval \${$cacheid+:} false; then :
  7180. $as_echo_n "(cached) " >&6
  7181. else
  7182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7183. /* end confdefs.h. */
  7184. int i;
  7185. int
  7186. main ()
  7187. {
  7188. ;
  7189. return 0;
  7190. }
  7191. _ACEOF
  7192. if ac_fn_c_try_link "$LINENO"; then :
  7193. eval $cacheid=yes
  7194. else
  7195. eval $cacheid=no
  7196. fi
  7197. rm -f core conftest.err conftest.$ac_objext \
  7198. conftest$ac_exeext conftest.$ac_ext
  7199. fi
  7200. CFLAGS="$xorg_testset_save_CFLAGS"
  7201. eval supported=\$$cacheid
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7203. $as_echo "$supported" >&6; }
  7204. if test "$supported" = "yes" ; then
  7205. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7206. found="yes"
  7207. fi
  7208. fi
  7209. xorg_testset_save_CFLAGS="$CFLAGS"
  7210. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7211. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7213. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7214. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7215. $as_echo_n "(cached) " >&6
  7216. else
  7217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7218. /* end confdefs.h. */
  7219. int i;
  7220. _ACEOF
  7221. if ac_fn_c_try_compile "$LINENO"; then :
  7222. xorg_cv_cc_flag_unknown_warning_option=yes
  7223. else
  7224. xorg_cv_cc_flag_unknown_warning_option=no
  7225. fi
  7226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7227. fi
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7229. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7230. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7231. CFLAGS="$xorg_testset_save_CFLAGS"
  7232. fi
  7233. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7234. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7236. fi
  7237. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7239. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7240. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7244. /* end confdefs.h. */
  7245. int i;
  7246. _ACEOF
  7247. if ac_fn_c_try_compile "$LINENO"; then :
  7248. xorg_cv_cc_flag_unused_command_line_argument=yes
  7249. else
  7250. xorg_cv_cc_flag_unused_command_line_argument=no
  7251. fi
  7252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7253. fi
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7255. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7256. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7257. CFLAGS="$xorg_testset_save_CFLAGS"
  7258. fi
  7259. found="no"
  7260. if test $found = "no" ; then
  7261. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7262. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7263. fi
  7264. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7265. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7266. fi
  7267. CFLAGS="$CFLAGS -Wmain"
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7269. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7270. cacheid=xorg_cv_cc_flag__Wmain
  7271. if eval \${$cacheid+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7275. /* end confdefs.h. */
  7276. int i;
  7277. int
  7278. main ()
  7279. {
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. if ac_fn_c_try_link "$LINENO"; then :
  7285. eval $cacheid=yes
  7286. else
  7287. eval $cacheid=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext \
  7290. conftest$ac_exeext conftest.$ac_ext
  7291. fi
  7292. CFLAGS="$xorg_testset_save_CFLAGS"
  7293. eval supported=\$$cacheid
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7295. $as_echo "$supported" >&6; }
  7296. if test "$supported" = "yes" ; then
  7297. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7298. found="yes"
  7299. fi
  7300. fi
  7301. xorg_testset_save_CFLAGS="$CFLAGS"
  7302. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7303. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7305. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7306. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7310. /* end confdefs.h. */
  7311. int i;
  7312. _ACEOF
  7313. if ac_fn_c_try_compile "$LINENO"; then :
  7314. xorg_cv_cc_flag_unknown_warning_option=yes
  7315. else
  7316. xorg_cv_cc_flag_unknown_warning_option=no
  7317. fi
  7318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7321. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7322. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7323. CFLAGS="$xorg_testset_save_CFLAGS"
  7324. fi
  7325. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7326. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7327. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7328. fi
  7329. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7331. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7332. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7336. /* end confdefs.h. */
  7337. int i;
  7338. _ACEOF
  7339. if ac_fn_c_try_compile "$LINENO"; then :
  7340. xorg_cv_cc_flag_unused_command_line_argument=yes
  7341. else
  7342. xorg_cv_cc_flag_unused_command_line_argument=no
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7347. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7348. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7349. CFLAGS="$xorg_testset_save_CFLAGS"
  7350. fi
  7351. found="no"
  7352. if test $found = "no" ; then
  7353. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7354. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7355. fi
  7356. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7357. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7358. fi
  7359. CFLAGS="$CFLAGS -Wmissing-braces"
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7361. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7362. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7363. if eval \${$cacheid+:} false; then :
  7364. $as_echo_n "(cached) " >&6
  7365. else
  7366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7367. /* end confdefs.h. */
  7368. int i;
  7369. int
  7370. main ()
  7371. {
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. if ac_fn_c_try_link "$LINENO"; then :
  7377. eval $cacheid=yes
  7378. else
  7379. eval $cacheid=no
  7380. fi
  7381. rm -f core conftest.err conftest.$ac_objext \
  7382. conftest$ac_exeext conftest.$ac_ext
  7383. fi
  7384. CFLAGS="$xorg_testset_save_CFLAGS"
  7385. eval supported=\$$cacheid
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7387. $as_echo "$supported" >&6; }
  7388. if test "$supported" = "yes" ; then
  7389. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7390. found="yes"
  7391. fi
  7392. fi
  7393. xorg_testset_save_CFLAGS="$CFLAGS"
  7394. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7395. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7397. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7398. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7399. $as_echo_n "(cached) " >&6
  7400. else
  7401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7402. /* end confdefs.h. */
  7403. int i;
  7404. _ACEOF
  7405. if ac_fn_c_try_compile "$LINENO"; then :
  7406. xorg_cv_cc_flag_unknown_warning_option=yes
  7407. else
  7408. xorg_cv_cc_flag_unknown_warning_option=no
  7409. fi
  7410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7413. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7414. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7415. CFLAGS="$xorg_testset_save_CFLAGS"
  7416. fi
  7417. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7418. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7419. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7420. fi
  7421. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7423. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7424. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7428. /* end confdefs.h. */
  7429. int i;
  7430. _ACEOF
  7431. if ac_fn_c_try_compile "$LINENO"; then :
  7432. xorg_cv_cc_flag_unused_command_line_argument=yes
  7433. else
  7434. xorg_cv_cc_flag_unused_command_line_argument=no
  7435. fi
  7436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7437. fi
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7439. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7440. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7441. CFLAGS="$xorg_testset_save_CFLAGS"
  7442. fi
  7443. found="no"
  7444. if test $found = "no" ; then
  7445. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7446. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7447. fi
  7448. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7449. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7450. fi
  7451. CFLAGS="$CFLAGS -Wsequence-point"
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7453. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7454. cacheid=xorg_cv_cc_flag__Wsequence_point
  7455. if eval \${$cacheid+:} false; then :
  7456. $as_echo_n "(cached) " >&6
  7457. else
  7458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7459. /* end confdefs.h. */
  7460. int i;
  7461. int
  7462. main ()
  7463. {
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. if ac_fn_c_try_link "$LINENO"; then :
  7469. eval $cacheid=yes
  7470. else
  7471. eval $cacheid=no
  7472. fi
  7473. rm -f core conftest.err conftest.$ac_objext \
  7474. conftest$ac_exeext conftest.$ac_ext
  7475. fi
  7476. CFLAGS="$xorg_testset_save_CFLAGS"
  7477. eval supported=\$$cacheid
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7479. $as_echo "$supported" >&6; }
  7480. if test "$supported" = "yes" ; then
  7481. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7482. found="yes"
  7483. fi
  7484. fi
  7485. xorg_testset_save_CFLAGS="$CFLAGS"
  7486. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7487. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7489. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7490. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7491. $as_echo_n "(cached) " >&6
  7492. else
  7493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7494. /* end confdefs.h. */
  7495. int i;
  7496. _ACEOF
  7497. if ac_fn_c_try_compile "$LINENO"; then :
  7498. xorg_cv_cc_flag_unknown_warning_option=yes
  7499. else
  7500. xorg_cv_cc_flag_unknown_warning_option=no
  7501. fi
  7502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7503. fi
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7505. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7506. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7507. CFLAGS="$xorg_testset_save_CFLAGS"
  7508. fi
  7509. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7510. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7511. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7512. fi
  7513. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7515. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7516. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7517. $as_echo_n "(cached) " >&6
  7518. else
  7519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7520. /* end confdefs.h. */
  7521. int i;
  7522. _ACEOF
  7523. if ac_fn_c_try_compile "$LINENO"; then :
  7524. xorg_cv_cc_flag_unused_command_line_argument=yes
  7525. else
  7526. xorg_cv_cc_flag_unused_command_line_argument=no
  7527. fi
  7528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7531. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7532. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7533. CFLAGS="$xorg_testset_save_CFLAGS"
  7534. fi
  7535. found="no"
  7536. if test $found = "no" ; then
  7537. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7538. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7539. fi
  7540. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7541. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7542. fi
  7543. CFLAGS="$CFLAGS -Wreturn-type"
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7545. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7546. cacheid=xorg_cv_cc_flag__Wreturn_type
  7547. if eval \${$cacheid+:} false; then :
  7548. $as_echo_n "(cached) " >&6
  7549. else
  7550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7551. /* end confdefs.h. */
  7552. int i;
  7553. int
  7554. main ()
  7555. {
  7556. ;
  7557. return 0;
  7558. }
  7559. _ACEOF
  7560. if ac_fn_c_try_link "$LINENO"; then :
  7561. eval $cacheid=yes
  7562. else
  7563. eval $cacheid=no
  7564. fi
  7565. rm -f core conftest.err conftest.$ac_objext \
  7566. conftest$ac_exeext conftest.$ac_ext
  7567. fi
  7568. CFLAGS="$xorg_testset_save_CFLAGS"
  7569. eval supported=\$$cacheid
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7571. $as_echo "$supported" >&6; }
  7572. if test "$supported" = "yes" ; then
  7573. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7574. found="yes"
  7575. fi
  7576. fi
  7577. xorg_testset_save_CFLAGS="$CFLAGS"
  7578. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7579. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7581. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7582. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7583. $as_echo_n "(cached) " >&6
  7584. else
  7585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7586. /* end confdefs.h. */
  7587. int i;
  7588. _ACEOF
  7589. if ac_fn_c_try_compile "$LINENO"; then :
  7590. xorg_cv_cc_flag_unknown_warning_option=yes
  7591. else
  7592. xorg_cv_cc_flag_unknown_warning_option=no
  7593. fi
  7594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. fi
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7597. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7598. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7599. CFLAGS="$xorg_testset_save_CFLAGS"
  7600. fi
  7601. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7602. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7603. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7604. fi
  7605. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7607. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7608. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7609. $as_echo_n "(cached) " >&6
  7610. else
  7611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7612. /* end confdefs.h. */
  7613. int i;
  7614. _ACEOF
  7615. if ac_fn_c_try_compile "$LINENO"; then :
  7616. xorg_cv_cc_flag_unused_command_line_argument=yes
  7617. else
  7618. xorg_cv_cc_flag_unused_command_line_argument=no
  7619. fi
  7620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7621. fi
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7623. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7624. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7625. CFLAGS="$xorg_testset_save_CFLAGS"
  7626. fi
  7627. found="no"
  7628. if test $found = "no" ; then
  7629. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7630. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7631. fi
  7632. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7633. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7634. fi
  7635. CFLAGS="$CFLAGS -Wtrigraphs"
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7637. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7638. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7639. if eval \${$cacheid+:} false; then :
  7640. $as_echo_n "(cached) " >&6
  7641. else
  7642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7643. /* end confdefs.h. */
  7644. int i;
  7645. int
  7646. main ()
  7647. {
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. if ac_fn_c_try_link "$LINENO"; then :
  7653. eval $cacheid=yes
  7654. else
  7655. eval $cacheid=no
  7656. fi
  7657. rm -f core conftest.err conftest.$ac_objext \
  7658. conftest$ac_exeext conftest.$ac_ext
  7659. fi
  7660. CFLAGS="$xorg_testset_save_CFLAGS"
  7661. eval supported=\$$cacheid
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7663. $as_echo "$supported" >&6; }
  7664. if test "$supported" = "yes" ; then
  7665. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7666. found="yes"
  7667. fi
  7668. fi
  7669. xorg_testset_save_CFLAGS="$CFLAGS"
  7670. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7671. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7673. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7674. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7678. /* end confdefs.h. */
  7679. int i;
  7680. _ACEOF
  7681. if ac_fn_c_try_compile "$LINENO"; then :
  7682. xorg_cv_cc_flag_unknown_warning_option=yes
  7683. else
  7684. xorg_cv_cc_flag_unknown_warning_option=no
  7685. fi
  7686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7687. fi
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7689. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7690. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7691. CFLAGS="$xorg_testset_save_CFLAGS"
  7692. fi
  7693. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7694. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7695. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7696. fi
  7697. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7699. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7700. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7704. /* end confdefs.h. */
  7705. int i;
  7706. _ACEOF
  7707. if ac_fn_c_try_compile "$LINENO"; then :
  7708. xorg_cv_cc_flag_unused_command_line_argument=yes
  7709. else
  7710. xorg_cv_cc_flag_unused_command_line_argument=no
  7711. fi
  7712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7713. fi
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7715. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7716. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7717. CFLAGS="$xorg_testset_save_CFLAGS"
  7718. fi
  7719. found="no"
  7720. if test $found = "no" ; then
  7721. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7722. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7723. fi
  7724. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7725. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7726. fi
  7727. CFLAGS="$CFLAGS -Warray-bounds"
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7729. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7730. cacheid=xorg_cv_cc_flag__Warray_bounds
  7731. if eval \${$cacheid+:} false; then :
  7732. $as_echo_n "(cached) " >&6
  7733. else
  7734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7735. /* end confdefs.h. */
  7736. int i;
  7737. int
  7738. main ()
  7739. {
  7740. ;
  7741. return 0;
  7742. }
  7743. _ACEOF
  7744. if ac_fn_c_try_link "$LINENO"; then :
  7745. eval $cacheid=yes
  7746. else
  7747. eval $cacheid=no
  7748. fi
  7749. rm -f core conftest.err conftest.$ac_objext \
  7750. conftest$ac_exeext conftest.$ac_ext
  7751. fi
  7752. CFLAGS="$xorg_testset_save_CFLAGS"
  7753. eval supported=\$$cacheid
  7754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7755. $as_echo "$supported" >&6; }
  7756. if test "$supported" = "yes" ; then
  7757. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7758. found="yes"
  7759. fi
  7760. fi
  7761. xorg_testset_save_CFLAGS="$CFLAGS"
  7762. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7763. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7765. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7766. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7767. $as_echo_n "(cached) " >&6
  7768. else
  7769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7770. /* end confdefs.h. */
  7771. int i;
  7772. _ACEOF
  7773. if ac_fn_c_try_compile "$LINENO"; then :
  7774. xorg_cv_cc_flag_unknown_warning_option=yes
  7775. else
  7776. xorg_cv_cc_flag_unknown_warning_option=no
  7777. fi
  7778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7779. fi
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7781. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7782. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7783. CFLAGS="$xorg_testset_save_CFLAGS"
  7784. fi
  7785. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7786. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7787. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7788. fi
  7789. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7791. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7792. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7793. $as_echo_n "(cached) " >&6
  7794. else
  7795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7796. /* end confdefs.h. */
  7797. int i;
  7798. _ACEOF
  7799. if ac_fn_c_try_compile "$LINENO"; then :
  7800. xorg_cv_cc_flag_unused_command_line_argument=yes
  7801. else
  7802. xorg_cv_cc_flag_unused_command_line_argument=no
  7803. fi
  7804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7807. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7808. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7809. CFLAGS="$xorg_testset_save_CFLAGS"
  7810. fi
  7811. found="no"
  7812. if test $found = "no" ; then
  7813. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7814. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7815. fi
  7816. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7817. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7818. fi
  7819. CFLAGS="$CFLAGS -Wwrite-strings"
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7821. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7822. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7823. if eval \${$cacheid+:} false; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7827. /* end confdefs.h. */
  7828. int i;
  7829. int
  7830. main ()
  7831. {
  7832. ;
  7833. return 0;
  7834. }
  7835. _ACEOF
  7836. if ac_fn_c_try_link "$LINENO"; then :
  7837. eval $cacheid=yes
  7838. else
  7839. eval $cacheid=no
  7840. fi
  7841. rm -f core conftest.err conftest.$ac_objext \
  7842. conftest$ac_exeext conftest.$ac_ext
  7843. fi
  7844. CFLAGS="$xorg_testset_save_CFLAGS"
  7845. eval supported=\$$cacheid
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7847. $as_echo "$supported" >&6; }
  7848. if test "$supported" = "yes" ; then
  7849. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7850. found="yes"
  7851. fi
  7852. fi
  7853. xorg_testset_save_CFLAGS="$CFLAGS"
  7854. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7855. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7857. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7858. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7859. $as_echo_n "(cached) " >&6
  7860. else
  7861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7862. /* end confdefs.h. */
  7863. int i;
  7864. _ACEOF
  7865. if ac_fn_c_try_compile "$LINENO"; then :
  7866. xorg_cv_cc_flag_unknown_warning_option=yes
  7867. else
  7868. xorg_cv_cc_flag_unknown_warning_option=no
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7871. fi
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7873. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7874. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7875. CFLAGS="$xorg_testset_save_CFLAGS"
  7876. fi
  7877. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7878. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7879. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7880. fi
  7881. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7883. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7884. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7888. /* end confdefs.h. */
  7889. int i;
  7890. _ACEOF
  7891. if ac_fn_c_try_compile "$LINENO"; then :
  7892. xorg_cv_cc_flag_unused_command_line_argument=yes
  7893. else
  7894. xorg_cv_cc_flag_unused_command_line_argument=no
  7895. fi
  7896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7899. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7900. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7901. CFLAGS="$xorg_testset_save_CFLAGS"
  7902. fi
  7903. found="no"
  7904. if test $found = "no" ; then
  7905. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7906. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7907. fi
  7908. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7909. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7910. fi
  7911. CFLAGS="$CFLAGS -Waddress"
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7913. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7914. cacheid=xorg_cv_cc_flag__Waddress
  7915. if eval \${$cacheid+:} false; then :
  7916. $as_echo_n "(cached) " >&6
  7917. else
  7918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7919. /* end confdefs.h. */
  7920. int i;
  7921. int
  7922. main ()
  7923. {
  7924. ;
  7925. return 0;
  7926. }
  7927. _ACEOF
  7928. if ac_fn_c_try_link "$LINENO"; then :
  7929. eval $cacheid=yes
  7930. else
  7931. eval $cacheid=no
  7932. fi
  7933. rm -f core conftest.err conftest.$ac_objext \
  7934. conftest$ac_exeext conftest.$ac_ext
  7935. fi
  7936. CFLAGS="$xorg_testset_save_CFLAGS"
  7937. eval supported=\$$cacheid
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7939. $as_echo "$supported" >&6; }
  7940. if test "$supported" = "yes" ; then
  7941. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7942. found="yes"
  7943. fi
  7944. fi
  7945. xorg_testset_save_CFLAGS="$CFLAGS"
  7946. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7947. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7949. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7950. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7951. $as_echo_n "(cached) " >&6
  7952. else
  7953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7954. /* end confdefs.h. */
  7955. int i;
  7956. _ACEOF
  7957. if ac_fn_c_try_compile "$LINENO"; then :
  7958. xorg_cv_cc_flag_unknown_warning_option=yes
  7959. else
  7960. xorg_cv_cc_flag_unknown_warning_option=no
  7961. fi
  7962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7963. fi
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7965. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7966. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7967. CFLAGS="$xorg_testset_save_CFLAGS"
  7968. fi
  7969. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7970. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7971. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7972. fi
  7973. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7975. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7976. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7977. $as_echo_n "(cached) " >&6
  7978. else
  7979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7980. /* end confdefs.h. */
  7981. int i;
  7982. _ACEOF
  7983. if ac_fn_c_try_compile "$LINENO"; then :
  7984. xorg_cv_cc_flag_unused_command_line_argument=yes
  7985. else
  7986. xorg_cv_cc_flag_unused_command_line_argument=no
  7987. fi
  7988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7991. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7992. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7993. CFLAGS="$xorg_testset_save_CFLAGS"
  7994. fi
  7995. found="no"
  7996. if test $found = "no" ; then
  7997. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7998. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7999. fi
  8000. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8001. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8002. fi
  8003. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8005. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8006. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8007. if eval \${$cacheid+:} false; then :
  8008. $as_echo_n "(cached) " >&6
  8009. else
  8010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8011. /* end confdefs.h. */
  8012. int i;
  8013. int
  8014. main ()
  8015. {
  8016. ;
  8017. return 0;
  8018. }
  8019. _ACEOF
  8020. if ac_fn_c_try_link "$LINENO"; then :
  8021. eval $cacheid=yes
  8022. else
  8023. eval $cacheid=no
  8024. fi
  8025. rm -f core conftest.err conftest.$ac_objext \
  8026. conftest$ac_exeext conftest.$ac_ext
  8027. fi
  8028. CFLAGS="$xorg_testset_save_CFLAGS"
  8029. eval supported=\$$cacheid
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8031. $as_echo "$supported" >&6; }
  8032. if test "$supported" = "yes" ; then
  8033. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8034. found="yes"
  8035. fi
  8036. fi
  8037. xorg_testset_save_CFLAGS="$CFLAGS"
  8038. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8039. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8041. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8042. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8043. $as_echo_n "(cached) " >&6
  8044. else
  8045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8046. /* end confdefs.h. */
  8047. int i;
  8048. _ACEOF
  8049. if ac_fn_c_try_compile "$LINENO"; then :
  8050. xorg_cv_cc_flag_unknown_warning_option=yes
  8051. else
  8052. xorg_cv_cc_flag_unknown_warning_option=no
  8053. fi
  8054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8055. fi
  8056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8057. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8058. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8059. CFLAGS="$xorg_testset_save_CFLAGS"
  8060. fi
  8061. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8062. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8063. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8064. fi
  8065. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8067. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8068. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8069. $as_echo_n "(cached) " >&6
  8070. else
  8071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8072. /* end confdefs.h. */
  8073. int i;
  8074. _ACEOF
  8075. if ac_fn_c_try_compile "$LINENO"; then :
  8076. xorg_cv_cc_flag_unused_command_line_argument=yes
  8077. else
  8078. xorg_cv_cc_flag_unused_command_line_argument=no
  8079. fi
  8080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8081. fi
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8083. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8084. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8085. CFLAGS="$xorg_testset_save_CFLAGS"
  8086. fi
  8087. found="no"
  8088. if test $found = "no" ; then
  8089. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8090. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8091. fi
  8092. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8093. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8094. fi
  8095. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8097. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8098. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8099. if eval \${$cacheid+:} false; then :
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8103. /* end confdefs.h. */
  8104. int i;
  8105. int
  8106. main ()
  8107. {
  8108. ;
  8109. return 0;
  8110. }
  8111. _ACEOF
  8112. if ac_fn_c_try_link "$LINENO"; then :
  8113. eval $cacheid=yes
  8114. else
  8115. eval $cacheid=no
  8116. fi
  8117. rm -f core conftest.err conftest.$ac_objext \
  8118. conftest$ac_exeext conftest.$ac_ext
  8119. fi
  8120. CFLAGS="$xorg_testset_save_CFLAGS"
  8121. eval supported=\$$cacheid
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8123. $as_echo "$supported" >&6; }
  8124. if test "$supported" = "yes" ; then
  8125. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8126. found="yes"
  8127. fi
  8128. fi
  8129. fi
  8130. CWARNFLAGS="$BASE_CFLAGS"
  8131. if test "x$GCC" = xyes ; then
  8132. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8133. fi
  8134. # Check whether --enable-strict-compilation was given.
  8135. if test "${enable_strict_compilation+set}" = set; then :
  8136. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8137. else
  8138. STRICT_COMPILE=no
  8139. fi
  8140. STRICT_CFLAGS=""
  8141. xorg_testset_save_CFLAGS="$CFLAGS"
  8142. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8145. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8146. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8147. $as_echo_n "(cached) " >&6
  8148. else
  8149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8150. /* end confdefs.h. */
  8151. int i;
  8152. _ACEOF
  8153. if ac_fn_c_try_compile "$LINENO"; then :
  8154. xorg_cv_cc_flag_unknown_warning_option=yes
  8155. else
  8156. xorg_cv_cc_flag_unknown_warning_option=no
  8157. fi
  8158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8159. fi
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8161. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8162. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8163. CFLAGS="$xorg_testset_save_CFLAGS"
  8164. fi
  8165. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8166. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8167. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8168. fi
  8169. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8171. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8172. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int i;
  8178. _ACEOF
  8179. if ac_fn_c_try_compile "$LINENO"; then :
  8180. xorg_cv_cc_flag_unused_command_line_argument=yes
  8181. else
  8182. xorg_cv_cc_flag_unused_command_line_argument=no
  8183. fi
  8184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8187. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8188. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8189. CFLAGS="$xorg_testset_save_CFLAGS"
  8190. fi
  8191. found="no"
  8192. if test $found = "no" ; then
  8193. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8194. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8195. fi
  8196. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8197. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8198. fi
  8199. CFLAGS="$CFLAGS -pedantic"
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8201. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8202. cacheid=xorg_cv_cc_flag__pedantic
  8203. if eval \${$cacheid+:} false; then :
  8204. $as_echo_n "(cached) " >&6
  8205. else
  8206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8207. /* end confdefs.h. */
  8208. int i;
  8209. int
  8210. main ()
  8211. {
  8212. ;
  8213. return 0;
  8214. }
  8215. _ACEOF
  8216. if ac_fn_c_try_link "$LINENO"; then :
  8217. eval $cacheid=yes
  8218. else
  8219. eval $cacheid=no
  8220. fi
  8221. rm -f core conftest.err conftest.$ac_objext \
  8222. conftest$ac_exeext conftest.$ac_ext
  8223. fi
  8224. CFLAGS="$xorg_testset_save_CFLAGS"
  8225. eval supported=\$$cacheid
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8227. $as_echo "$supported" >&6; }
  8228. if test "$supported" = "yes" ; then
  8229. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8230. found="yes"
  8231. fi
  8232. fi
  8233. xorg_testset_save_CFLAGS="$CFLAGS"
  8234. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8237. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8238. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8239. $as_echo_n "(cached) " >&6
  8240. else
  8241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8242. /* end confdefs.h. */
  8243. int i;
  8244. _ACEOF
  8245. if ac_fn_c_try_compile "$LINENO"; then :
  8246. xorg_cv_cc_flag_unknown_warning_option=yes
  8247. else
  8248. xorg_cv_cc_flag_unknown_warning_option=no
  8249. fi
  8250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8251. fi
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8253. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8254. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8255. CFLAGS="$xorg_testset_save_CFLAGS"
  8256. fi
  8257. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8258. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8259. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8260. fi
  8261. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8263. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8264. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8265. $as_echo_n "(cached) " >&6
  8266. else
  8267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8268. /* end confdefs.h. */
  8269. int i;
  8270. _ACEOF
  8271. if ac_fn_c_try_compile "$LINENO"; then :
  8272. xorg_cv_cc_flag_unused_command_line_argument=yes
  8273. else
  8274. xorg_cv_cc_flag_unused_command_line_argument=no
  8275. fi
  8276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8277. fi
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8279. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8280. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8281. CFLAGS="$xorg_testset_save_CFLAGS"
  8282. fi
  8283. found="no"
  8284. if test $found = "no" ; then
  8285. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8286. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8287. fi
  8288. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8289. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8290. fi
  8291. CFLAGS="$CFLAGS -Werror"
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8293. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8294. cacheid=xorg_cv_cc_flag__Werror
  8295. if eval \${$cacheid+:} false; then :
  8296. $as_echo_n "(cached) " >&6
  8297. else
  8298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8299. /* end confdefs.h. */
  8300. int i;
  8301. int
  8302. main ()
  8303. {
  8304. ;
  8305. return 0;
  8306. }
  8307. _ACEOF
  8308. if ac_fn_c_try_link "$LINENO"; then :
  8309. eval $cacheid=yes
  8310. else
  8311. eval $cacheid=no
  8312. fi
  8313. rm -f core conftest.err conftest.$ac_objext \
  8314. conftest$ac_exeext conftest.$ac_ext
  8315. fi
  8316. CFLAGS="$xorg_testset_save_CFLAGS"
  8317. eval supported=\$$cacheid
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8319. $as_echo "$supported" >&6; }
  8320. if test "$supported" = "yes" ; then
  8321. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8322. found="yes"
  8323. fi
  8324. fi
  8325. if test $found = "no" ; then
  8326. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8327. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8328. fi
  8329. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8330. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8331. fi
  8332. CFLAGS="$CFLAGS -errwarn"
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8334. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8335. cacheid=xorg_cv_cc_flag__errwarn
  8336. if eval \${$cacheid+:} false; then :
  8337. $as_echo_n "(cached) " >&6
  8338. else
  8339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8340. /* end confdefs.h. */
  8341. int i;
  8342. int
  8343. main ()
  8344. {
  8345. ;
  8346. return 0;
  8347. }
  8348. _ACEOF
  8349. if ac_fn_c_try_link "$LINENO"; then :
  8350. eval $cacheid=yes
  8351. else
  8352. eval $cacheid=no
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext \
  8355. conftest$ac_exeext conftest.$ac_ext
  8356. fi
  8357. CFLAGS="$xorg_testset_save_CFLAGS"
  8358. eval supported=\$$cacheid
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8360. $as_echo "$supported" >&6; }
  8361. if test "$supported" = "yes" ; then
  8362. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8363. found="yes"
  8364. fi
  8365. fi
  8366. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8367. # activate it with -Werror, so we add it here explicitly.
  8368. xorg_testset_save_CFLAGS="$CFLAGS"
  8369. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8370. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8372. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8373. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8374. $as_echo_n "(cached) " >&6
  8375. else
  8376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8377. /* end confdefs.h. */
  8378. int i;
  8379. _ACEOF
  8380. if ac_fn_c_try_compile "$LINENO"; then :
  8381. xorg_cv_cc_flag_unknown_warning_option=yes
  8382. else
  8383. xorg_cv_cc_flag_unknown_warning_option=no
  8384. fi
  8385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8386. fi
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8388. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8389. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8390. CFLAGS="$xorg_testset_save_CFLAGS"
  8391. fi
  8392. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8393. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8394. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8395. fi
  8396. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8398. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8399. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8400. $as_echo_n "(cached) " >&6
  8401. else
  8402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8403. /* end confdefs.h. */
  8404. int i;
  8405. _ACEOF
  8406. if ac_fn_c_try_compile "$LINENO"; then :
  8407. xorg_cv_cc_flag_unused_command_line_argument=yes
  8408. else
  8409. xorg_cv_cc_flag_unused_command_line_argument=no
  8410. fi
  8411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8412. fi
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8414. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8415. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8416. CFLAGS="$xorg_testset_save_CFLAGS"
  8417. fi
  8418. found="no"
  8419. if test $found = "no" ; then
  8420. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8421. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8422. fi
  8423. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8424. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8425. fi
  8426. CFLAGS="$CFLAGS -Werror=attributes"
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8428. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8429. cacheid=xorg_cv_cc_flag__Werror_attributes
  8430. if eval \${$cacheid+:} false; then :
  8431. $as_echo_n "(cached) " >&6
  8432. else
  8433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8434. /* end confdefs.h. */
  8435. int i;
  8436. int
  8437. main ()
  8438. {
  8439. ;
  8440. return 0;
  8441. }
  8442. _ACEOF
  8443. if ac_fn_c_try_link "$LINENO"; then :
  8444. eval $cacheid=yes
  8445. else
  8446. eval $cacheid=no
  8447. fi
  8448. rm -f core conftest.err conftest.$ac_objext \
  8449. conftest$ac_exeext conftest.$ac_ext
  8450. fi
  8451. CFLAGS="$xorg_testset_save_CFLAGS"
  8452. eval supported=\$$cacheid
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8454. $as_echo "$supported" >&6; }
  8455. if test "$supported" = "yes" ; then
  8456. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8457. found="yes"
  8458. fi
  8459. fi
  8460. if test "x$STRICT_COMPILE" = "xyes"; then
  8461. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8462. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8463. fi
  8464. cat >>confdefs.h <<_ACEOF
  8465. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8466. _ACEOF
  8467. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8468. if test "x$PVM" = "x"; then
  8469. PVM="0"
  8470. fi
  8471. cat >>confdefs.h <<_ACEOF
  8472. #define PACKAGE_VERSION_MINOR $PVM
  8473. _ACEOF
  8474. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8475. if test "x$PVP" = "x"; then
  8476. PVP="0"
  8477. fi
  8478. cat >>confdefs.h <<_ACEOF
  8479. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8480. _ACEOF
  8481. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8482. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8483. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8484. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8485. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8486. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8487. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8488. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8489. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8490. if test x$APP_MAN_SUFFIX = x ; then
  8491. APP_MAN_SUFFIX=1
  8492. fi
  8493. if test x$APP_MAN_DIR = x ; then
  8494. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8495. fi
  8496. if test x$LIB_MAN_SUFFIX = x ; then
  8497. LIB_MAN_SUFFIX=3
  8498. fi
  8499. if test x$LIB_MAN_DIR = x ; then
  8500. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8501. fi
  8502. if test x$FILE_MAN_SUFFIX = x ; then
  8503. case $host_os in
  8504. solaris*) FILE_MAN_SUFFIX=4 ;;
  8505. *) FILE_MAN_SUFFIX=5 ;;
  8506. esac
  8507. fi
  8508. if test x$FILE_MAN_DIR = x ; then
  8509. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8510. fi
  8511. if test x$MISC_MAN_SUFFIX = x ; then
  8512. case $host_os in
  8513. solaris*) MISC_MAN_SUFFIX=5 ;;
  8514. *) MISC_MAN_SUFFIX=7 ;;
  8515. esac
  8516. fi
  8517. if test x$MISC_MAN_DIR = x ; then
  8518. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8519. fi
  8520. if test x$DRIVER_MAN_SUFFIX = x ; then
  8521. case $host_os in
  8522. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8523. *) DRIVER_MAN_SUFFIX=4 ;;
  8524. esac
  8525. fi
  8526. if test x$DRIVER_MAN_DIR = x ; then
  8527. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8528. fi
  8529. if test x$ADMIN_MAN_SUFFIX = x ; then
  8530. case $host_os in
  8531. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8532. *) ADMIN_MAN_SUFFIX=8 ;;
  8533. esac
  8534. fi
  8535. if test x$ADMIN_MAN_DIR = x ; then
  8536. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8537. fi
  8538. XORG_MAN_PAGE="X Version 11"
  8539. MAN_SUBSTS="\
  8540. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8541. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8542. -e 's|__xservername__|Xorg|g' \
  8543. -e 's|__xconfigfile__|xorg.conf|g' \
  8544. -e 's|__projectroot__|\$(prefix)|g' \
  8545. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8546. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8547. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8548. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8549. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8550. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8551. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8552. # Check whether --enable-silent-rules was given.
  8553. if test "${enable_silent_rules+set}" = set; then :
  8554. enableval=$enable_silent_rules;
  8555. fi
  8556. case $enable_silent_rules in # (((
  8557. yes) AM_DEFAULT_VERBOSITY=0;;
  8558. no) AM_DEFAULT_VERBOSITY=1;;
  8559. *) AM_DEFAULT_VERBOSITY=0;;
  8560. esac
  8561. am_make=${MAKE-make}
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8563. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8564. if ${am_cv_make_support_nested_variables+:} false; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. if $as_echo 'TRUE=$(BAR$(V))
  8568. BAR0=false
  8569. BAR1=true
  8570. V=1
  8571. am__doit:
  8572. @$(TRUE)
  8573. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8574. am_cv_make_support_nested_variables=yes
  8575. else
  8576. am_cv_make_support_nested_variables=no
  8577. fi
  8578. fi
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8580. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8581. if test $am_cv_make_support_nested_variables = yes; then
  8582. AM_V='$(V)'
  8583. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8584. else
  8585. AM_V=$AM_DEFAULT_VERBOSITY
  8586. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8587. fi
  8588. AM_BACKSLASH='\'
  8589. # Checks for pkg-config packages
  8590. pkg_failed=no
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5
  8592. $as_echo_n "checking for XCMSDB... " >&6; }
  8593. if test -n "$XCMSDB_CFLAGS"; then
  8594. pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS"
  8595. elif test -n "$PKG_CONFIG"; then
  8596. if test -n "$PKG_CONFIG" && \
  8597. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  8598. ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  8599. ac_status=$?
  8600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8601. test $ac_status = 0; }; then
  8602. pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
  8603. test "x$?" != "x0" && pkg_failed=yes
  8604. else
  8605. pkg_failed=yes
  8606. fi
  8607. else
  8608. pkg_failed=untried
  8609. fi
  8610. if test -n "$XCMSDB_LIBS"; then
  8611. pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS"
  8612. elif test -n "$PKG_CONFIG"; then
  8613. if test -n "$PKG_CONFIG" && \
  8614. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  8615. ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  8616. ac_status=$?
  8617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8618. test $ac_status = 0; }; then
  8619. pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
  8620. test "x$?" != "x0" && pkg_failed=yes
  8621. else
  8622. pkg_failed=yes
  8623. fi
  8624. else
  8625. pkg_failed=untried
  8626. fi
  8627. if test $pkg_failed = yes; then
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8629. $as_echo "no" >&6; }
  8630. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8631. _pkg_short_errors_supported=yes
  8632. else
  8633. _pkg_short_errors_supported=no
  8634. fi
  8635. if test $_pkg_short_errors_supported = yes; then
  8636. XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
  8637. else
  8638. XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
  8639. fi
  8640. # Put the nasty error message in config.log where it belongs
  8641. echo "$XCMSDB_PKG_ERRORS" >&5
  8642. as_fn_error $? "Package requirements (x11) were not met:
  8643. $XCMSDB_PKG_ERRORS
  8644. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8645. installed software in a non-standard prefix.
  8646. Alternatively, you may set the environment variables XCMSDB_CFLAGS
  8647. and XCMSDB_LIBS to avoid the need to call pkg-config.
  8648. See the pkg-config man page for more details." "$LINENO" 5
  8649. elif test $pkg_failed = untried; then
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8651. $as_echo "no" >&6; }
  8652. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8654. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8655. is in your PATH or set the PKG_CONFIG environment variable to the full
  8656. path to pkg-config.
  8657. Alternatively, you may set the environment variables XCMSDB_CFLAGS
  8658. and XCMSDB_LIBS to avoid the need to call pkg-config.
  8659. See the pkg-config man page for more details.
  8660. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8661. See \`config.log' for more details" "$LINENO" 5; }
  8662. else
  8663. XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS
  8664. XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8666. $as_echo "yes" >&6; }
  8667. fi
  8668. ac_config_files="$ac_config_files Makefile man/Makefile"
  8669. cat >confcache <<\_ACEOF
  8670. # This file is a shell script that caches the results of configure
  8671. # tests run on this system so they can be shared between configure
  8672. # scripts and configure runs, see configure's option --config-cache.
  8673. # It is not useful on other systems. If it contains results you don't
  8674. # want to keep, you may remove or edit it.
  8675. #
  8676. # config.status only pays attention to the cache file if you give it
  8677. # the --recheck option to rerun configure.
  8678. #
  8679. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8680. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8681. # following values.
  8682. _ACEOF
  8683. # The following way of writing the cache mishandles newlines in values,
  8684. # but we know of no workaround that is simple, portable, and efficient.
  8685. # So, we kill variables containing newlines.
  8686. # Ultrix sh set writes to stderr and can't be redirected directly,
  8687. # and sets the high bit in the cache file unless we assign to the vars.
  8688. (
  8689. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8690. eval ac_val=\$$ac_var
  8691. case $ac_val in #(
  8692. *${as_nl}*)
  8693. case $ac_var in #(
  8694. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8695. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8696. esac
  8697. case $ac_var in #(
  8698. _ | IFS | as_nl) ;; #(
  8699. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8700. *) { eval $ac_var=; unset $ac_var;} ;;
  8701. esac ;;
  8702. esac
  8703. done
  8704. (set) 2>&1 |
  8705. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8706. *${as_nl}ac_space=\ *)
  8707. # `set' does not quote correctly, so add quotes: double-quote
  8708. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8709. sed -n \
  8710. "s/'/'\\\\''/g;
  8711. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8712. ;; #(
  8713. *)
  8714. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8715. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8716. ;;
  8717. esac |
  8718. sort
  8719. ) |
  8720. sed '
  8721. /^ac_cv_env_/b end
  8722. t clear
  8723. :clear
  8724. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8725. t end
  8726. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8727. :end' >>confcache
  8728. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8729. if test -w "$cache_file"; then
  8730. if test "x$cache_file" != "x/dev/null"; then
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8732. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8733. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8734. cat confcache >"$cache_file"
  8735. else
  8736. case $cache_file in #(
  8737. */* | ?:*)
  8738. mv -f confcache "$cache_file"$$ &&
  8739. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8740. *)
  8741. mv -f confcache "$cache_file" ;;
  8742. esac
  8743. fi
  8744. fi
  8745. else
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8747. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8748. fi
  8749. fi
  8750. rm -f confcache
  8751. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8752. # Let make expand exec_prefix.
  8753. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8754. DEFS=-DHAVE_CONFIG_H
  8755. ac_libobjs=
  8756. ac_ltlibobjs=
  8757. U=
  8758. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8759. # 1. Remove the extension, and $U if already installed.
  8760. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8761. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8762. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8763. # will be set to the directory where LIBOBJS objects are built.
  8764. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8765. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8766. done
  8767. LIBOBJS=$ac_libobjs
  8768. LTLIBOBJS=$ac_ltlibobjs
  8769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8770. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8771. if test -n "$am_sleep_pid"; then
  8772. # Hide warnings about reused PIDs.
  8773. wait $am_sleep_pid 2>/dev/null
  8774. fi
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8776. $as_echo "done" >&6; }
  8777. if test -n "$EXEEXT"; then
  8778. am__EXEEXT_TRUE=
  8779. am__EXEEXT_FALSE='#'
  8780. else
  8781. am__EXEEXT_TRUE='#'
  8782. am__EXEEXT_FALSE=
  8783. fi
  8784. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8785. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8786. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8787. fi
  8788. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8789. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8790. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8791. fi
  8792. : "${CONFIG_STATUS=./config.status}"
  8793. ac_write_fail=0
  8794. ac_clean_files_save=$ac_clean_files
  8795. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8797. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8798. as_write_fail=0
  8799. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8800. #! $SHELL
  8801. # Generated by $as_me.
  8802. # Run this file to recreate the current configuration.
  8803. # Compiler output produced by configure, useful for debugging
  8804. # configure, is in config.log if it exists.
  8805. debug=false
  8806. ac_cs_recheck=false
  8807. ac_cs_silent=false
  8808. SHELL=\${CONFIG_SHELL-$SHELL}
  8809. export SHELL
  8810. _ASEOF
  8811. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8812. ## -------------------- ##
  8813. ## M4sh Initialization. ##
  8814. ## -------------------- ##
  8815. # Be more Bourne compatible
  8816. DUALCASE=1; export DUALCASE # for MKS sh
  8817. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8818. emulate sh
  8819. NULLCMD=:
  8820. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8821. # is contrary to our usage. Disable this feature.
  8822. alias -g '${1+"$@"}'='"$@"'
  8823. setopt NO_GLOB_SUBST
  8824. else
  8825. case `(set -o) 2>/dev/null` in #(
  8826. *posix*) :
  8827. set -o posix ;; #(
  8828. *) :
  8829. ;;
  8830. esac
  8831. fi
  8832. as_nl='
  8833. '
  8834. export as_nl
  8835. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8836. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8837. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8838. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8839. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8840. # but without wasting forks for bash or zsh.
  8841. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8842. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8843. as_echo='print -r --'
  8844. as_echo_n='print -rn --'
  8845. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8846. as_echo='printf %s\n'
  8847. as_echo_n='printf %s'
  8848. else
  8849. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8850. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8851. as_echo_n='/usr/ucb/echo -n'
  8852. else
  8853. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8854. as_echo_n_body='eval
  8855. arg=$1;
  8856. case $arg in #(
  8857. *"$as_nl"*)
  8858. expr "X$arg" : "X\\(.*\\)$as_nl";
  8859. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8860. esac;
  8861. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8862. '
  8863. export as_echo_n_body
  8864. as_echo_n='sh -c $as_echo_n_body as_echo'
  8865. fi
  8866. export as_echo_body
  8867. as_echo='sh -c $as_echo_body as_echo'
  8868. fi
  8869. # The user is always right.
  8870. if test "${PATH_SEPARATOR+set}" != set; then
  8871. PATH_SEPARATOR=:
  8872. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8873. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8874. PATH_SEPARATOR=';'
  8875. }
  8876. fi
  8877. # IFS
  8878. # We need space, tab and new line, in precisely that order. Quoting is
  8879. # there to prevent editors from complaining about space-tab.
  8880. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8881. # splitting by setting IFS to empty value.)
  8882. IFS=" "" $as_nl"
  8883. # Find who we are. Look in the path if we contain no directory separator.
  8884. as_myself=
  8885. case $0 in #((
  8886. *[\\/]* ) as_myself=$0 ;;
  8887. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8888. for as_dir in $PATH
  8889. do
  8890. IFS=$as_save_IFS
  8891. test -z "$as_dir" && as_dir=.
  8892. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8893. done
  8894. IFS=$as_save_IFS
  8895. ;;
  8896. esac
  8897. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8898. # in which case we are not to be found in the path.
  8899. if test "x$as_myself" = x; then
  8900. as_myself=$0
  8901. fi
  8902. if test ! -f "$as_myself"; then
  8903. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8904. exit 1
  8905. fi
  8906. # Unset variables that we do not need and which cause bugs (e.g. in
  8907. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8908. # suppresses any "Segmentation fault" message there. '((' could
  8909. # trigger a bug in pdksh 5.2.14.
  8910. for as_var in BASH_ENV ENV MAIL MAILPATH
  8911. do eval test x\${$as_var+set} = xset \
  8912. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8913. done
  8914. PS1='$ '
  8915. PS2='> '
  8916. PS4='+ '
  8917. # NLS nuisances.
  8918. LC_ALL=C
  8919. export LC_ALL
  8920. LANGUAGE=C
  8921. export LANGUAGE
  8922. # CDPATH.
  8923. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8924. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8925. # ----------------------------------------
  8926. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8927. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8928. # script with STATUS, using 1 if that was 0.
  8929. as_fn_error ()
  8930. {
  8931. as_status=$1; test $as_status -eq 0 && as_status=1
  8932. if test "$4"; then
  8933. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8934. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8935. fi
  8936. $as_echo "$as_me: error: $2" >&2
  8937. as_fn_exit $as_status
  8938. } # as_fn_error
  8939. # as_fn_set_status STATUS
  8940. # -----------------------
  8941. # Set $? to STATUS, without forking.
  8942. as_fn_set_status ()
  8943. {
  8944. return $1
  8945. } # as_fn_set_status
  8946. # as_fn_exit STATUS
  8947. # -----------------
  8948. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8949. as_fn_exit ()
  8950. {
  8951. set +e
  8952. as_fn_set_status $1
  8953. exit $1
  8954. } # as_fn_exit
  8955. # as_fn_unset VAR
  8956. # ---------------
  8957. # Portably unset VAR.
  8958. as_fn_unset ()
  8959. {
  8960. { eval $1=; unset $1;}
  8961. }
  8962. as_unset=as_fn_unset
  8963. # as_fn_append VAR VALUE
  8964. # ----------------------
  8965. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8966. # advantage of any shell optimizations that allow amortized linear growth over
  8967. # repeated appends, instead of the typical quadratic growth present in naive
  8968. # implementations.
  8969. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8970. eval 'as_fn_append ()
  8971. {
  8972. eval $1+=\$2
  8973. }'
  8974. else
  8975. as_fn_append ()
  8976. {
  8977. eval $1=\$$1\$2
  8978. }
  8979. fi # as_fn_append
  8980. # as_fn_arith ARG...
  8981. # ------------------
  8982. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8983. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8984. # must be portable across $(()) and expr.
  8985. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8986. eval 'as_fn_arith ()
  8987. {
  8988. as_val=$(( $* ))
  8989. }'
  8990. else
  8991. as_fn_arith ()
  8992. {
  8993. as_val=`expr "$@" || test $? -eq 1`
  8994. }
  8995. fi # as_fn_arith
  8996. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8997. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8998. as_expr=expr
  8999. else
  9000. as_expr=false
  9001. fi
  9002. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9003. as_basename=basename
  9004. else
  9005. as_basename=false
  9006. fi
  9007. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9008. as_dirname=dirname
  9009. else
  9010. as_dirname=false
  9011. fi
  9012. as_me=`$as_basename -- "$0" ||
  9013. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9014. X"$0" : 'X\(//\)$' \| \
  9015. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9016. $as_echo X/"$0" |
  9017. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9018. s//\1/
  9019. q
  9020. }
  9021. /^X\/\(\/\/\)$/{
  9022. s//\1/
  9023. q
  9024. }
  9025. /^X\/\(\/\).*/{
  9026. s//\1/
  9027. q
  9028. }
  9029. s/.*/./; q'`
  9030. # Avoid depending upon Character Ranges.
  9031. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9032. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9033. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9034. as_cr_digits='0123456789'
  9035. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9036. ECHO_C= ECHO_N= ECHO_T=
  9037. case `echo -n x` in #(((((
  9038. -n*)
  9039. case `echo 'xy\c'` in
  9040. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9041. xy) ECHO_C='\c';;
  9042. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9043. ECHO_T=' ';;
  9044. esac;;
  9045. *)
  9046. ECHO_N='-n';;
  9047. esac
  9048. rm -f conf$$ conf$$.exe conf$$.file
  9049. if test -d conf$$.dir; then
  9050. rm -f conf$$.dir/conf$$.file
  9051. else
  9052. rm -f conf$$.dir
  9053. mkdir conf$$.dir 2>/dev/null
  9054. fi
  9055. if (echo >conf$$.file) 2>/dev/null; then
  9056. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9057. as_ln_s='ln -s'
  9058. # ... but there are two gotchas:
  9059. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9060. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9061. # In both cases, we have to default to `cp -pR'.
  9062. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9063. as_ln_s='cp -pR'
  9064. elif ln conf$$.file conf$$ 2>/dev/null; then
  9065. as_ln_s=ln
  9066. else
  9067. as_ln_s='cp -pR'
  9068. fi
  9069. else
  9070. as_ln_s='cp -pR'
  9071. fi
  9072. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9073. rmdir conf$$.dir 2>/dev/null
  9074. # as_fn_mkdir_p
  9075. # -------------
  9076. # Create "$as_dir" as a directory, including parents if necessary.
  9077. as_fn_mkdir_p ()
  9078. {
  9079. case $as_dir in #(
  9080. -*) as_dir=./$as_dir;;
  9081. esac
  9082. test -d "$as_dir" || eval $as_mkdir_p || {
  9083. as_dirs=
  9084. while :; do
  9085. case $as_dir in #(
  9086. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9087. *) as_qdir=$as_dir;;
  9088. esac
  9089. as_dirs="'$as_qdir' $as_dirs"
  9090. as_dir=`$as_dirname -- "$as_dir" ||
  9091. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9092. X"$as_dir" : 'X\(//\)[^/]' \| \
  9093. X"$as_dir" : 'X\(//\)$' \| \
  9094. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9095. $as_echo X"$as_dir" |
  9096. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9097. s//\1/
  9098. q
  9099. }
  9100. /^X\(\/\/\)[^/].*/{
  9101. s//\1/
  9102. q
  9103. }
  9104. /^X\(\/\/\)$/{
  9105. s//\1/
  9106. q
  9107. }
  9108. /^X\(\/\).*/{
  9109. s//\1/
  9110. q
  9111. }
  9112. s/.*/./; q'`
  9113. test -d "$as_dir" && break
  9114. done
  9115. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9116. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9117. } # as_fn_mkdir_p
  9118. if mkdir -p . 2>/dev/null; then
  9119. as_mkdir_p='mkdir -p "$as_dir"'
  9120. else
  9121. test -d ./-p && rmdir ./-p
  9122. as_mkdir_p=false
  9123. fi
  9124. # as_fn_executable_p FILE
  9125. # -----------------------
  9126. # Test if FILE is an executable regular file.
  9127. as_fn_executable_p ()
  9128. {
  9129. test -f "$1" && test -x "$1"
  9130. } # as_fn_executable_p
  9131. as_test_x='test -x'
  9132. as_executable_p=as_fn_executable_p
  9133. # Sed expression to map a string onto a valid CPP name.
  9134. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9135. # Sed expression to map a string onto a valid variable name.
  9136. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9137. exec 6>&1
  9138. ## ----------------------------------- ##
  9139. ## Main body of $CONFIG_STATUS script. ##
  9140. ## ----------------------------------- ##
  9141. _ASEOF
  9142. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9143. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9144. # Save the log message, to keep $0 and so on meaningful, and to
  9145. # report actual input values of CONFIG_FILES etc. instead of their
  9146. # values after options handling.
  9147. ac_log="
  9148. This file was extended by xcmsdb $as_me 1.0.5, which was
  9149. generated by GNU Autoconf 2.69. Invocation command line was
  9150. CONFIG_FILES = $CONFIG_FILES
  9151. CONFIG_HEADERS = $CONFIG_HEADERS
  9152. CONFIG_LINKS = $CONFIG_LINKS
  9153. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9154. $ $0 $@
  9155. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9156. "
  9157. _ACEOF
  9158. case $ac_config_files in *"
  9159. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9160. esac
  9161. case $ac_config_headers in *"
  9162. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9163. esac
  9164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9165. # Files that config.status was made for.
  9166. config_files="$ac_config_files"
  9167. config_headers="$ac_config_headers"
  9168. config_commands="$ac_config_commands"
  9169. _ACEOF
  9170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9171. ac_cs_usage="\
  9172. \`$as_me' instantiates files and other configuration actions
  9173. from templates according to the current configuration. Unless the files
  9174. and actions are specified as TAGs, all are instantiated by default.
  9175. Usage: $0 [OPTION]... [TAG]...
  9176. -h, --help print this help, then exit
  9177. -V, --version print version number and configuration settings, then exit
  9178. --config print configuration, then exit
  9179. -q, --quiet, --silent
  9180. do not print progress messages
  9181. -d, --debug don't remove temporary files
  9182. --recheck update $as_me by reconfiguring in the same conditions
  9183. --file=FILE[:TEMPLATE]
  9184. instantiate the configuration file FILE
  9185. --header=FILE[:TEMPLATE]
  9186. instantiate the configuration header FILE
  9187. Configuration files:
  9188. $config_files
  9189. Configuration headers:
  9190. $config_headers
  9191. Configuration commands:
  9192. $config_commands
  9193. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9194. _ACEOF
  9195. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9196. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9197. ac_cs_version="\\
  9198. xcmsdb config.status 1.0.5
  9199. configured by $0, generated by GNU Autoconf 2.69,
  9200. with options \\"\$ac_cs_config\\"
  9201. Copyright (C) 2012 Free Software Foundation, Inc.
  9202. This config.status script is free software; the Free Software Foundation
  9203. gives unlimited permission to copy, distribute and modify it."
  9204. ac_pwd='$ac_pwd'
  9205. srcdir='$srcdir'
  9206. INSTALL='$INSTALL'
  9207. MKDIR_P='$MKDIR_P'
  9208. AWK='$AWK'
  9209. test -n "\$AWK" || AWK=awk
  9210. _ACEOF
  9211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9212. # The default lists apply if the user does not specify any file.
  9213. ac_need_defaults=:
  9214. while test $# != 0
  9215. do
  9216. case $1 in
  9217. --*=?*)
  9218. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9219. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9220. ac_shift=:
  9221. ;;
  9222. --*=)
  9223. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9224. ac_optarg=
  9225. ac_shift=:
  9226. ;;
  9227. *)
  9228. ac_option=$1
  9229. ac_optarg=$2
  9230. ac_shift=shift
  9231. ;;
  9232. esac
  9233. case $ac_option in
  9234. # Handling of the options.
  9235. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9236. ac_cs_recheck=: ;;
  9237. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9238. $as_echo "$ac_cs_version"; exit ;;
  9239. --config | --confi | --conf | --con | --co | --c )
  9240. $as_echo "$ac_cs_config"; exit ;;
  9241. --debug | --debu | --deb | --de | --d | -d )
  9242. debug=: ;;
  9243. --file | --fil | --fi | --f )
  9244. $ac_shift
  9245. case $ac_optarg in
  9246. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9247. '') as_fn_error $? "missing file argument" ;;
  9248. esac
  9249. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9250. ac_need_defaults=false;;
  9251. --header | --heade | --head | --hea )
  9252. $ac_shift
  9253. case $ac_optarg in
  9254. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9255. esac
  9256. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9257. ac_need_defaults=false;;
  9258. --he | --h)
  9259. # Conflict between --help and --header
  9260. as_fn_error $? "ambiguous option: \`$1'
  9261. Try \`$0 --help' for more information.";;
  9262. --help | --hel | -h )
  9263. $as_echo "$ac_cs_usage"; exit ;;
  9264. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9265. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9266. ac_cs_silent=: ;;
  9267. # This is an error.
  9268. -*) as_fn_error $? "unrecognized option: \`$1'
  9269. Try \`$0 --help' for more information." ;;
  9270. *) as_fn_append ac_config_targets " $1"
  9271. ac_need_defaults=false ;;
  9272. esac
  9273. shift
  9274. done
  9275. ac_configure_extra_args=
  9276. if $ac_cs_silent; then
  9277. exec 6>/dev/null
  9278. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9279. fi
  9280. _ACEOF
  9281. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9282. if \$ac_cs_recheck; then
  9283. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9284. shift
  9285. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9286. CONFIG_SHELL='$SHELL'
  9287. export CONFIG_SHELL
  9288. exec "\$@"
  9289. fi
  9290. _ACEOF
  9291. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9292. exec 5>>config.log
  9293. {
  9294. echo
  9295. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9296. ## Running $as_me. ##
  9297. _ASBOX
  9298. $as_echo "$ac_log"
  9299. } >&5
  9300. _ACEOF
  9301. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9302. #
  9303. # INIT-COMMANDS
  9304. #
  9305. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9306. _ACEOF
  9307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9308. # Handling of arguments.
  9309. for ac_config_target in $ac_config_targets
  9310. do
  9311. case $ac_config_target in
  9312. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9313. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9314. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9315. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9316. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9317. esac
  9318. done
  9319. # If the user did not use the arguments to specify the items to instantiate,
  9320. # then the envvar interface is used. Set only those that are not.
  9321. # We use the long form for the default assignment because of an extremely
  9322. # bizarre bug on SunOS 4.1.3.
  9323. if $ac_need_defaults; then
  9324. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9325. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9326. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9327. fi
  9328. # Have a temporary directory for convenience. Make it in the build tree
  9329. # simply because there is no reason against having it here, and in addition,
  9330. # creating and moving files from /tmp can sometimes cause problems.
  9331. # Hook for its removal unless debugging.
  9332. # Note that there is a small window in which the directory will not be cleaned:
  9333. # after its creation but before its name has been assigned to `$tmp'.
  9334. $debug ||
  9335. {
  9336. tmp= ac_tmp=
  9337. trap 'exit_status=$?
  9338. : "${ac_tmp:=$tmp}"
  9339. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9340. ' 0
  9341. trap 'as_fn_exit 1' 1 2 13 15
  9342. }
  9343. # Create a (secure) tmp directory for tmp files.
  9344. {
  9345. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9346. test -d "$tmp"
  9347. } ||
  9348. {
  9349. tmp=./conf$$-$RANDOM
  9350. (umask 077 && mkdir "$tmp")
  9351. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9352. ac_tmp=$tmp
  9353. # Set up the scripts for CONFIG_FILES section.
  9354. # No need to generate them if there are no CONFIG_FILES.
  9355. # This happens for instance with `./config.status config.h'.
  9356. if test -n "$CONFIG_FILES"; then
  9357. ac_cr=`echo X | tr X '\015'`
  9358. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9359. # But we know of no other shell where ac_cr would be empty at this
  9360. # point, so we can use a bashism as a fallback.
  9361. if test "x$ac_cr" = x; then
  9362. eval ac_cr=\$\'\\r\'
  9363. fi
  9364. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9365. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9366. ac_cs_awk_cr='\\r'
  9367. else
  9368. ac_cs_awk_cr=$ac_cr
  9369. fi
  9370. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9371. _ACEOF
  9372. {
  9373. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9374. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9375. echo "_ACEOF"
  9376. } >conf$$subs.sh ||
  9377. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9378. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9379. ac_delim='%!_!# '
  9380. for ac_last_try in false false false false false :; do
  9381. . ./conf$$subs.sh ||
  9382. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9383. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9384. if test $ac_delim_n = $ac_delim_num; then
  9385. break
  9386. elif $ac_last_try; then
  9387. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9388. else
  9389. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9390. fi
  9391. done
  9392. rm -f conf$$subs.sh
  9393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9394. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9395. _ACEOF
  9396. sed -n '
  9397. h
  9398. s/^/S["/; s/!.*/"]=/
  9399. p
  9400. g
  9401. s/^[^!]*!//
  9402. :repl
  9403. t repl
  9404. s/'"$ac_delim"'$//
  9405. t delim
  9406. :nl
  9407. h
  9408. s/\(.\{148\}\)..*/\1/
  9409. t more1
  9410. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9411. p
  9412. n
  9413. b repl
  9414. :more1
  9415. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9416. p
  9417. g
  9418. s/.\{148\}//
  9419. t nl
  9420. :delim
  9421. h
  9422. s/\(.\{148\}\)..*/\1/
  9423. t more2
  9424. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9425. p
  9426. b
  9427. :more2
  9428. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9429. p
  9430. g
  9431. s/.\{148\}//
  9432. t delim
  9433. ' <conf$$subs.awk | sed '
  9434. /^[^""]/{
  9435. N
  9436. s/\n//
  9437. }
  9438. ' >>$CONFIG_STATUS || ac_write_fail=1
  9439. rm -f conf$$subs.awk
  9440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9441. _ACAWK
  9442. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9443. for (key in S) S_is_set[key] = 1
  9444. FS = ""
  9445. }
  9446. {
  9447. line = $ 0
  9448. nfields = split(line, field, "@")
  9449. substed = 0
  9450. len = length(field[1])
  9451. for (i = 2; i < nfields; i++) {
  9452. key = field[i]
  9453. keylen = length(key)
  9454. if (S_is_set[key]) {
  9455. value = S[key]
  9456. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9457. len += length(value) + length(field[++i])
  9458. substed = 1
  9459. } else
  9460. len += 1 + keylen
  9461. }
  9462. print line
  9463. }
  9464. _ACAWK
  9465. _ACEOF
  9466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9467. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9468. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9469. else
  9470. cat
  9471. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9472. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9473. _ACEOF
  9474. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9475. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9476. # trailing colons and then remove the whole line if VPATH becomes empty
  9477. # (actually we leave an empty line to preserve line numbers).
  9478. if test "x$srcdir" = x.; then
  9479. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9480. h
  9481. s///
  9482. s/^/:/
  9483. s/[ ]*$/:/
  9484. s/:\$(srcdir):/:/g
  9485. s/:\${srcdir}:/:/g
  9486. s/:@srcdir@:/:/g
  9487. s/^:*//
  9488. s/:*$//
  9489. x
  9490. s/\(=[ ]*\).*/\1/
  9491. G
  9492. s/\n//
  9493. s/^[^=]*=[ ]*$//
  9494. }'
  9495. fi
  9496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9497. fi # test -n "$CONFIG_FILES"
  9498. # Set up the scripts for CONFIG_HEADERS section.
  9499. # No need to generate them if there are no CONFIG_HEADERS.
  9500. # This happens for instance with `./config.status Makefile'.
  9501. if test -n "$CONFIG_HEADERS"; then
  9502. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9503. BEGIN {
  9504. _ACEOF
  9505. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9506. # here-document in config.status, that substitutes the proper values into
  9507. # config.h.in to produce config.h.
  9508. # Create a delimiter string that does not exist in confdefs.h, to ease
  9509. # handling of long lines.
  9510. ac_delim='%!_!# '
  9511. for ac_last_try in false false :; do
  9512. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9513. if test -z "$ac_tt"; then
  9514. break
  9515. elif $ac_last_try; then
  9516. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9517. else
  9518. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9519. fi
  9520. done
  9521. # For the awk script, D is an array of macro values keyed by name,
  9522. # likewise P contains macro parameters if any. Preserve backslash
  9523. # newline sequences.
  9524. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9525. sed -n '
  9526. s/.\{148\}/&'"$ac_delim"'/g
  9527. t rset
  9528. :rset
  9529. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9530. t def
  9531. d
  9532. :def
  9533. s/\\$//
  9534. t bsnl
  9535. s/["\\]/\\&/g
  9536. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9537. D["\1"]=" \3"/p
  9538. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9539. d
  9540. :bsnl
  9541. s/["\\]/\\&/g
  9542. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9543. D["\1"]=" \3\\\\\\n"\\/p
  9544. t cont
  9545. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9546. t cont
  9547. d
  9548. :cont
  9549. n
  9550. s/.\{148\}/&'"$ac_delim"'/g
  9551. t clear
  9552. :clear
  9553. s/\\$//
  9554. t bsnlc
  9555. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9556. d
  9557. :bsnlc
  9558. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9559. b cont
  9560. ' <confdefs.h | sed '
  9561. s/'"$ac_delim"'/"\\\
  9562. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9564. for (key in D) D_is_set[key] = 1
  9565. FS = ""
  9566. }
  9567. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9568. line = \$ 0
  9569. split(line, arg, " ")
  9570. if (arg[1] == "#") {
  9571. defundef = arg[2]
  9572. mac1 = arg[3]
  9573. } else {
  9574. defundef = substr(arg[1], 2)
  9575. mac1 = arg[2]
  9576. }
  9577. split(mac1, mac2, "(") #)
  9578. macro = mac2[1]
  9579. prefix = substr(line, 1, index(line, defundef) - 1)
  9580. if (D_is_set[macro]) {
  9581. # Preserve the white space surrounding the "#".
  9582. print prefix "define", macro P[macro] D[macro]
  9583. next
  9584. } else {
  9585. # Replace #undef with comments. This is necessary, for example,
  9586. # in the case of _POSIX_SOURCE, which is predefined and required
  9587. # on some systems where configure will not decide to define it.
  9588. if (defundef == "undef") {
  9589. print "/*", prefix defundef, macro, "*/"
  9590. next
  9591. }
  9592. }
  9593. }
  9594. { print }
  9595. _ACAWK
  9596. _ACEOF
  9597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9598. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9599. fi # test -n "$CONFIG_HEADERS"
  9600. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9601. shift
  9602. for ac_tag
  9603. do
  9604. case $ac_tag in
  9605. :[FHLC]) ac_mode=$ac_tag; continue;;
  9606. esac
  9607. case $ac_mode$ac_tag in
  9608. :[FHL]*:*);;
  9609. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9610. :[FH]-) ac_tag=-:-;;
  9611. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9612. esac
  9613. ac_save_IFS=$IFS
  9614. IFS=:
  9615. set x $ac_tag
  9616. IFS=$ac_save_IFS
  9617. shift
  9618. ac_file=$1
  9619. shift
  9620. case $ac_mode in
  9621. :L) ac_source=$1;;
  9622. :[FH])
  9623. ac_file_inputs=
  9624. for ac_f
  9625. do
  9626. case $ac_f in
  9627. -) ac_f="$ac_tmp/stdin";;
  9628. *) # Look for the file first in the build tree, then in the source tree
  9629. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9630. # because $ac_f cannot contain `:'.
  9631. test -f "$ac_f" ||
  9632. case $ac_f in
  9633. [\\/$]*) false;;
  9634. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9635. esac ||
  9636. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9637. esac
  9638. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9639. as_fn_append ac_file_inputs " '$ac_f'"
  9640. done
  9641. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9642. # use $as_me), people would be surprised to read:
  9643. # /* config.h. Generated by config.status. */
  9644. configure_input='Generated from '`
  9645. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9646. `' by configure.'
  9647. if test x"$ac_file" != x-; then
  9648. configure_input="$ac_file. $configure_input"
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9650. $as_echo "$as_me: creating $ac_file" >&6;}
  9651. fi
  9652. # Neutralize special characters interpreted by sed in replacement strings.
  9653. case $configure_input in #(
  9654. *\&* | *\|* | *\\* )
  9655. ac_sed_conf_input=`$as_echo "$configure_input" |
  9656. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9657. *) ac_sed_conf_input=$configure_input;;
  9658. esac
  9659. case $ac_tag in
  9660. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9661. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9662. esac
  9663. ;;
  9664. esac
  9665. ac_dir=`$as_dirname -- "$ac_file" ||
  9666. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9667. X"$ac_file" : 'X\(//\)[^/]' \| \
  9668. X"$ac_file" : 'X\(//\)$' \| \
  9669. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9670. $as_echo X"$ac_file" |
  9671. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9672. s//\1/
  9673. q
  9674. }
  9675. /^X\(\/\/\)[^/].*/{
  9676. s//\1/
  9677. q
  9678. }
  9679. /^X\(\/\/\)$/{
  9680. s//\1/
  9681. q
  9682. }
  9683. /^X\(\/\).*/{
  9684. s//\1/
  9685. q
  9686. }
  9687. s/.*/./; q'`
  9688. as_dir="$ac_dir"; as_fn_mkdir_p
  9689. ac_builddir=.
  9690. case "$ac_dir" in
  9691. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9692. *)
  9693. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9694. # A ".." for each directory in $ac_dir_suffix.
  9695. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9696. case $ac_top_builddir_sub in
  9697. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9698. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9699. esac ;;
  9700. esac
  9701. ac_abs_top_builddir=$ac_pwd
  9702. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9703. # for backward compatibility:
  9704. ac_top_builddir=$ac_top_build_prefix
  9705. case $srcdir in
  9706. .) # We are building in place.
  9707. ac_srcdir=.
  9708. ac_top_srcdir=$ac_top_builddir_sub
  9709. ac_abs_top_srcdir=$ac_pwd ;;
  9710. [\\/]* | ?:[\\/]* ) # Absolute name.
  9711. ac_srcdir=$srcdir$ac_dir_suffix;
  9712. ac_top_srcdir=$srcdir
  9713. ac_abs_top_srcdir=$srcdir ;;
  9714. *) # Relative name.
  9715. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9716. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9717. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9718. esac
  9719. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9720. case $ac_mode in
  9721. :F)
  9722. #
  9723. # CONFIG_FILE
  9724. #
  9725. case $INSTALL in
  9726. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9727. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9728. esac
  9729. ac_MKDIR_P=$MKDIR_P
  9730. case $MKDIR_P in
  9731. [\\/$]* | ?:[\\/]* ) ;;
  9732. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9733. esac
  9734. _ACEOF
  9735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9736. # If the template does not know about datarootdir, expand it.
  9737. # FIXME: This hack should be removed a few years after 2.60.
  9738. ac_datarootdir_hack=; ac_datarootdir_seen=
  9739. ac_sed_dataroot='
  9740. /datarootdir/ {
  9741. p
  9742. q
  9743. }
  9744. /@datadir@/p
  9745. /@docdir@/p
  9746. /@infodir@/p
  9747. /@localedir@/p
  9748. /@mandir@/p'
  9749. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9750. *datarootdir*) ac_datarootdir_seen=yes;;
  9751. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9753. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9754. _ACEOF
  9755. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9756. ac_datarootdir_hack='
  9757. s&@datadir@&$datadir&g
  9758. s&@docdir@&$docdir&g
  9759. s&@infodir@&$infodir&g
  9760. s&@localedir@&$localedir&g
  9761. s&@mandir@&$mandir&g
  9762. s&\\\${datarootdir}&$datarootdir&g' ;;
  9763. esac
  9764. _ACEOF
  9765. # Neutralize VPATH when `$srcdir' = `.'.
  9766. # Shell code in configure.ac might set extrasub.
  9767. # FIXME: do we really want to maintain this feature?
  9768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9769. ac_sed_extra="$ac_vpsub
  9770. $extrasub
  9771. _ACEOF
  9772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9773. :t
  9774. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9775. s|@configure_input@|$ac_sed_conf_input|;t t
  9776. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9777. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9778. s&@srcdir@&$ac_srcdir&;t t
  9779. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9780. s&@top_srcdir@&$ac_top_srcdir&;t t
  9781. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9782. s&@builddir@&$ac_builddir&;t t
  9783. s&@abs_builddir@&$ac_abs_builddir&;t t
  9784. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9785. s&@INSTALL@&$ac_INSTALL&;t t
  9786. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9787. $ac_datarootdir_hack
  9788. "
  9789. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9790. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9791. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9792. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9793. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9794. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9796. which seems to be undefined. Please make sure it is defined" >&5
  9797. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9798. which seems to be undefined. Please make sure it is defined" >&2;}
  9799. rm -f "$ac_tmp/stdin"
  9800. case $ac_file in
  9801. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9802. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9803. esac \
  9804. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9805. ;;
  9806. :H)
  9807. #
  9808. # CONFIG_HEADER
  9809. #
  9810. if test x"$ac_file" != x-; then
  9811. {
  9812. $as_echo "/* $configure_input */" \
  9813. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9814. } >"$ac_tmp/config.h" \
  9815. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9816. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9818. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9819. else
  9820. rm -f "$ac_file"
  9821. mv "$ac_tmp/config.h" "$ac_file" \
  9822. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9823. fi
  9824. else
  9825. $as_echo "/* $configure_input */" \
  9826. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9827. || as_fn_error $? "could not create -" "$LINENO" 5
  9828. fi
  9829. # Compute "$ac_file"'s index in $config_headers.
  9830. _am_arg="$ac_file"
  9831. _am_stamp_count=1
  9832. for _am_header in $config_headers :; do
  9833. case $_am_header in
  9834. $_am_arg | $_am_arg:* )
  9835. break ;;
  9836. * )
  9837. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9838. esac
  9839. done
  9840. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9841. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9842. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9843. X"$_am_arg" : 'X\(//\)$' \| \
  9844. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9845. $as_echo X"$_am_arg" |
  9846. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9847. s//\1/
  9848. q
  9849. }
  9850. /^X\(\/\/\)[^/].*/{
  9851. s//\1/
  9852. q
  9853. }
  9854. /^X\(\/\/\)$/{
  9855. s//\1/
  9856. q
  9857. }
  9858. /^X\(\/\).*/{
  9859. s//\1/
  9860. q
  9861. }
  9862. s/.*/./; q'`/stamp-h$_am_stamp_count
  9863. ;;
  9864. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9865. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9866. ;;
  9867. esac
  9868. case $ac_file$ac_mode in
  9869. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  9870. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  9871. # are listed without --file. Let's play safe and only enable the eval
  9872. # if we detect the quoting.
  9873. case $CONFIG_FILES in
  9874. *\'*) eval set x "$CONFIG_FILES" ;;
  9875. *) set x $CONFIG_FILES ;;
  9876. esac
  9877. shift
  9878. for mf
  9879. do
  9880. # Strip MF so we end up with the name of the file.
  9881. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9882. # Check whether this is an Automake generated Makefile or not.
  9883. # We used to match only the files named 'Makefile.in', but
  9884. # some people rename them; so instead we look at the file content.
  9885. # Grep'ing the first line is not enough: some people post-process
  9886. # each Makefile.in and add a new line on top of each file to say so.
  9887. # Grep'ing the whole file is not good either: AIX grep has a line
  9888. # limit of 2048, but all sed's we know have understand at least 4000.
  9889. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9890. dirpart=`$as_dirname -- "$mf" ||
  9891. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9892. X"$mf" : 'X\(//\)[^/]' \| \
  9893. X"$mf" : 'X\(//\)$' \| \
  9894. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9895. $as_echo X"$mf" |
  9896. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9897. s//\1/
  9898. q
  9899. }
  9900. /^X\(\/\/\)[^/].*/{
  9901. s//\1/
  9902. q
  9903. }
  9904. /^X\(\/\/\)$/{
  9905. s//\1/
  9906. q
  9907. }
  9908. /^X\(\/\).*/{
  9909. s//\1/
  9910. q
  9911. }
  9912. s/.*/./; q'`
  9913. else
  9914. continue
  9915. fi
  9916. # Extract the definition of DEPDIR, am__include, and am__quote
  9917. # from the Makefile without running 'make'.
  9918. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9919. test -z "$DEPDIR" && continue
  9920. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9921. test -z "am__include" && continue
  9922. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9923. # Find all dependency output files, they are included files with
  9924. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9925. # simplest approach to changing $(DEPDIR) to its actual value in the
  9926. # expansion.
  9927. for file in `sed -n "
  9928. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9929. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  9930. # Make sure the directory exists.
  9931. test -f "$dirpart/$file" && continue
  9932. fdir=`$as_dirname -- "$file" ||
  9933. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9934. X"$file" : 'X\(//\)[^/]' \| \
  9935. X"$file" : 'X\(//\)$' \| \
  9936. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9937. $as_echo X"$file" |
  9938. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9939. s//\1/
  9940. q
  9941. }
  9942. /^X\(\/\/\)[^/].*/{
  9943. s//\1/
  9944. q
  9945. }
  9946. /^X\(\/\/\)$/{
  9947. s//\1/
  9948. q
  9949. }
  9950. /^X\(\/\).*/{
  9951. s//\1/
  9952. q
  9953. }
  9954. s/.*/./; q'`
  9955. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  9956. # echo "creating $dirpart/$file"
  9957. echo '# dummy' > "$dirpart/$file"
  9958. done
  9959. done
  9960. }
  9961. ;;
  9962. esac
  9963. done # for ac_tag
  9964. as_fn_exit 0
  9965. _ACEOF
  9966. ac_clean_files=$ac_clean_files_save
  9967. test $ac_write_fail = 0 ||
  9968. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9969. # configure is writing to config.log, and then calls config.status.
  9970. # config.status does its own redirection, appending to config.log.
  9971. # Unfortunately, on DOS this fails, as config.log is still kept open
  9972. # by configure, so config.status won't be able to write to it; its
  9973. # output is simply discarded. So we exec the FD to /dev/null,
  9974. # effectively closing config.log, so it can be properly (re)opened and
  9975. # appended to by config.status. When coming back to configure, we
  9976. # need to make the FD available again.
  9977. if test "$no_create" != yes; then
  9978. ac_cs_success=:
  9979. ac_config_status_args=
  9980. test "$silent" = yes &&
  9981. ac_config_status_args="$ac_config_status_args --quiet"
  9982. exec 5>/dev/null
  9983. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9984. exec 5>>config.log
  9985. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9986. # would make configure fail if this is the last instruction.
  9987. $ac_cs_success || as_fn_exit 1
  9988. fi
  9989. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9991. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9992. fi