configure 350 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for bitmap 1.0.8.
  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='bitmap'
  535. PACKAGE_TARNAME='bitmap'
  536. PACKAGE_VERSION='1.0.8'
  537. PACKAGE_STRING='bitmap 1.0.8'
  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. appdefaultdir
  581. APPDEFS_LIBS
  582. APPDEFS_CFLAGS
  583. BITMAP_LIBS
  584. BITMAP_CFLAGS
  585. ATOBM_LIBS
  586. ATOBM_CFLAGS
  587. BMTOA_LIBS
  588. BMTOA_CFLAGS
  589. MATH_LIBS
  590. AM_BACKSLASH
  591. AM_DEFAULT_VERBOSITY
  592. AM_DEFAULT_V
  593. AM_V
  594. MAN_SUBSTS
  595. XORG_MAN_PAGE
  596. ADMIN_MAN_DIR
  597. DRIVER_MAN_DIR
  598. MISC_MAN_DIR
  599. FILE_MAN_DIR
  600. LIB_MAN_DIR
  601. APP_MAN_DIR
  602. ADMIN_MAN_SUFFIX
  603. DRIVER_MAN_SUFFIX
  604. MISC_MAN_SUFFIX
  605. FILE_MAN_SUFFIX
  606. LIB_MAN_SUFFIX
  607. APP_MAN_SUFFIX
  608. SED
  609. host_os
  610. host_vendor
  611. host_cpu
  612. host
  613. build_os
  614. build_vendor
  615. build_cpu
  616. build
  617. INSTALL_CMD
  618. PKG_CONFIG_LIBDIR
  619. PKG_CONFIG_PATH
  620. PKG_CONFIG
  621. CHANGELOG_CMD
  622. STRICT_CFLAGS
  623. CWARNFLAGS
  624. BASE_CFLAGS
  625. EGREP
  626. GREP
  627. CPP
  628. am__fastdepCC_FALSE
  629. am__fastdepCC_TRUE
  630. CCDEPMODE
  631. am__nodep
  632. AMDEPBACKSLASH
  633. AMDEP_FALSE
  634. AMDEP_TRUE
  635. am__quote
  636. am__include
  637. DEPDIR
  638. OBJEXT
  639. EXEEXT
  640. ac_ct_CC
  641. CPPFLAGS
  642. LDFLAGS
  643. CFLAGS
  644. CC
  645. am__untar
  646. am__tar
  647. AMTAR
  648. am__leading_dot
  649. SET_MAKE
  650. AWK
  651. mkdir_p
  652. MKDIR_P
  653. INSTALL_STRIP_PROGRAM
  654. STRIP
  655. install_sh
  656. MAKEINFO
  657. AUTOHEADER
  658. AUTOMAKE
  659. AUTOCONF
  660. ACLOCAL
  661. VERSION
  662. PACKAGE
  663. CYGPATH_W
  664. am__isrc
  665. INSTALL_DATA
  666. INSTALL_SCRIPT
  667. INSTALL_PROGRAM
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_dependency_tracking
  710. enable_selective_werror
  711. enable_strict_compilation
  712. enable_silent_rules
  713. with_appdefaultdir
  714. '
  715. ac_precious_vars='build_alias
  716. host_alias
  717. target_alias
  718. CC
  719. CFLAGS
  720. LDFLAGS
  721. LIBS
  722. CPPFLAGS
  723. CPP
  724. PKG_CONFIG
  725. PKG_CONFIG_PATH
  726. PKG_CONFIG_LIBDIR
  727. BMTOA_CFLAGS
  728. BMTOA_LIBS
  729. ATOBM_CFLAGS
  730. ATOBM_LIBS
  731. BITMAP_CFLAGS
  732. BITMAP_LIBS
  733. APPDEFS_CFLAGS
  734. APPDEFS_LIBS'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *=) ac_optarg= ;;
  794. *) ac_optarg=yes ;;
  795. esac
  796. # Accept the important Cygnus configure options, so we can diagnose typos.
  797. case $ac_dashdash$ac_option in
  798. --)
  799. ac_dashdash=yes ;;
  800. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  801. ac_prev=bindir ;;
  802. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  803. bindir=$ac_optarg ;;
  804. -build | --build | --buil | --bui | --bu)
  805. ac_prev=build_alias ;;
  806. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  807. build_alias=$ac_optarg ;;
  808. -cache-file | --cache-file | --cache-fil | --cache-fi \
  809. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  810. ac_prev=cache_file ;;
  811. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  812. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  813. cache_file=$ac_optarg ;;
  814. --config-cache | -C)
  815. cache_file=config.cache ;;
  816. -datadir | --datadir | --datadi | --datad)
  817. ac_prev=datadir ;;
  818. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  819. datadir=$ac_optarg ;;
  820. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  821. | --dataroo | --dataro | --datar)
  822. ac_prev=datarootdir ;;
  823. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  824. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  825. datarootdir=$ac_optarg ;;
  826. -disable-* | --disable-*)
  827. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  828. # Reject names that are not valid shell variable names.
  829. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  830. as_fn_error $? "invalid feature name: $ac_useropt"
  831. ac_useropt_orig=$ac_useropt
  832. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  833. case $ac_user_opts in
  834. *"
  835. "enable_$ac_useropt"
  836. "*) ;;
  837. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  838. ac_unrecognized_sep=', ';;
  839. esac
  840. eval enable_$ac_useropt=no ;;
  841. -docdir | --docdir | --docdi | --doc | --do)
  842. ac_prev=docdir ;;
  843. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  844. docdir=$ac_optarg ;;
  845. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  846. ac_prev=dvidir ;;
  847. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  848. dvidir=$ac_optarg ;;
  849. -enable-* | --enable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=\$ac_optarg ;;
  864. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  865. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  866. | --exec | --exe | --ex)
  867. ac_prev=exec_prefix ;;
  868. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  869. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  870. | --exec=* | --exe=* | --ex=*)
  871. exec_prefix=$ac_optarg ;;
  872. -gas | --gas | --ga | --g)
  873. # Obsolete; use --with-gas.
  874. with_gas=yes ;;
  875. -help | --help | --hel | --he | -h)
  876. ac_init_help=long ;;
  877. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  878. ac_init_help=recursive ;;
  879. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  880. ac_init_help=short ;;
  881. -host | --host | --hos | --ho)
  882. ac_prev=host_alias ;;
  883. -host=* | --host=* | --hos=* | --ho=*)
  884. host_alias=$ac_optarg ;;
  885. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  886. ac_prev=htmldir ;;
  887. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  888. | --ht=*)
  889. htmldir=$ac_optarg ;;
  890. -includedir | --includedir | --includedi | --included | --include \
  891. | --includ | --inclu | --incl | --inc)
  892. ac_prev=includedir ;;
  893. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  894. | --includ=* | --inclu=* | --incl=* | --inc=*)
  895. includedir=$ac_optarg ;;
  896. -infodir | --infodir | --infodi | --infod | --info | --inf)
  897. ac_prev=infodir ;;
  898. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  899. infodir=$ac_optarg ;;
  900. -libdir | --libdir | --libdi | --libd)
  901. ac_prev=libdir ;;
  902. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  903. libdir=$ac_optarg ;;
  904. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905. | --libexe | --libex | --libe)
  906. ac_prev=libexecdir ;;
  907. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908. | --libexe=* | --libex=* | --libe=*)
  909. libexecdir=$ac_optarg ;;
  910. -localedir | --localedir | --localedi | --localed | --locale)
  911. ac_prev=localedir ;;
  912. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  913. localedir=$ac_optarg ;;
  914. -localstatedir | --localstatedir | --localstatedi | --localstated \
  915. | --localstate | --localstat | --localsta | --localst | --locals)
  916. ac_prev=localstatedir ;;
  917. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  918. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  919. localstatedir=$ac_optarg ;;
  920. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  921. ac_prev=mandir ;;
  922. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  923. mandir=$ac_optarg ;;
  924. -nfp | --nfp | --nf)
  925. # Obsolete; use --without-fp.
  926. with_fp=no ;;
  927. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. | --no-cr | --no-c | -n)
  929. no_create=yes ;;
  930. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  931. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  932. no_recursion=yes ;;
  933. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  934. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  935. | --oldin | --oldi | --old | --ol | --o)
  936. ac_prev=oldincludedir ;;
  937. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  938. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  939. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  940. oldincludedir=$ac_optarg ;;
  941. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  942. ac_prev=prefix ;;
  943. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  944. prefix=$ac_optarg ;;
  945. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  946. | --program-pre | --program-pr | --program-p)
  947. ac_prev=program_prefix ;;
  948. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  949. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  950. program_prefix=$ac_optarg ;;
  951. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  952. | --program-suf | --program-su | --program-s)
  953. ac_prev=program_suffix ;;
  954. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  955. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  956. program_suffix=$ac_optarg ;;
  957. -program-transform-name | --program-transform-name \
  958. | --program-transform-nam | --program-transform-na \
  959. | --program-transform-n | --program-transform- \
  960. | --program-transform | --program-transfor \
  961. | --program-transfo | --program-transf \
  962. | --program-trans | --program-tran \
  963. | --progr-tra | --program-tr | --program-t)
  964. ac_prev=program_transform_name ;;
  965. -program-transform-name=* | --program-transform-name=* \
  966. | --program-transform-nam=* | --program-transform-na=* \
  967. | --program-transform-n=* | --program-transform-=* \
  968. | --program-transform=* | --program-transfor=* \
  969. | --program-transfo=* | --program-transf=* \
  970. | --program-trans=* | --program-tran=* \
  971. | --progr-tra=* | --program-tr=* | --program-t=*)
  972. program_transform_name=$ac_optarg ;;
  973. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  974. ac_prev=pdfdir ;;
  975. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  976. pdfdir=$ac_optarg ;;
  977. -psdir | --psdir | --psdi | --psd | --ps)
  978. ac_prev=psdir ;;
  979. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  980. psdir=$ac_optarg ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. silent=yes ;;
  984. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985. ac_prev=sbindir ;;
  986. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987. | --sbi=* | --sb=*)
  988. sbindir=$ac_optarg ;;
  989. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  990. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  991. | --sharedst | --shareds | --shared | --share | --shar \
  992. | --sha | --sh)
  993. ac_prev=sharedstatedir ;;
  994. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  995. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  996. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  997. | --sha=* | --sh=*)
  998. sharedstatedir=$ac_optarg ;;
  999. -site | --site | --sit)
  1000. ac_prev=site ;;
  1001. -site=* | --site=* | --sit=*)
  1002. site=$ac_optarg ;;
  1003. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1004. ac_prev=srcdir ;;
  1005. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1006. srcdir=$ac_optarg ;;
  1007. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1008. | --syscon | --sysco | --sysc | --sys | --sy)
  1009. ac_prev=sysconfdir ;;
  1010. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1011. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1012. sysconfdir=$ac_optarg ;;
  1013. -target | --target | --targe | --targ | --tar | --ta | --t)
  1014. ac_prev=target_alias ;;
  1015. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1016. target_alias=$ac_optarg ;;
  1017. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1018. verbose=yes ;;
  1019. -version | --version | --versio | --versi | --vers | -V)
  1020. ac_init_version=: ;;
  1021. -with-* | --with-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  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--with-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1067. Try \`$0 --help' for more information"
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. case $ac_envvar in #(
  1073. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1074. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1075. esac
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. as_fn_error $? "missing argument to $ac_option"
  1090. fi
  1091. if test -n "$ac_unrecognized_opts"; then
  1092. case $enable_option_checking in
  1093. no) ;;
  1094. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1095. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1096. esac
  1097. fi
  1098. # Check all directory arguments for consistency.
  1099. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1100. datadir sysconfdir sharedstatedir localstatedir includedir \
  1101. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1102. libdir localedir mandir
  1103. do
  1104. eval ac_val=\$$ac_var
  1105. # Remove trailing slashes.
  1106. case $ac_val in
  1107. */ )
  1108. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1109. eval $ac_var=\$ac_val;;
  1110. esac
  1111. # Be sure to have absolute directory names.
  1112. case $ac_val in
  1113. [\\/$]* | ?:[\\/]* ) continue;;
  1114. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1115. esac
  1116. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1117. done
  1118. # There might be people who depend on the old broken behavior: `$host'
  1119. # used to hold the argument of --host etc.
  1120. # FIXME: To remove some day.
  1121. build=$build_alias
  1122. host=$host_alias
  1123. target=$target_alias
  1124. # FIXME: To remove some day.
  1125. if test "x$host_alias" != x; then
  1126. if test "x$build_alias" = x; then
  1127. cross_compiling=maybe
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error $? "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error $? "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures bitmap 1.0.8 to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking ...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/bitmap]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. _ACEOF
  1261. fi
  1262. if test -n "$ac_init_help"; then
  1263. case $ac_init_help in
  1264. short | recursive ) echo "Configuration of bitmap 1.0.8:";;
  1265. esac
  1266. cat <<\_ACEOF
  1267. Optional Features:
  1268. --disable-option-checking ignore unrecognized --enable/--with options
  1269. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1270. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1271. --enable-dependency-tracking
  1272. do not reject slow dependency extractors
  1273. --disable-dependency-tracking
  1274. speeds up one-time build
  1275. --disable-selective-werror
  1276. Turn off selective compiler errors. (default:
  1277. enabled)
  1278. --enable-strict-compilation
  1279. Enable all warnings from compiler and make them
  1280. errors (default: disabled)
  1281. --enable-silent-rules less verbose build output (undo: "make V=1")
  1282. --disable-silent-rules verbose build output (undo: "make V=0")
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --with-appdefaultdir=<pathname>
  1287. specify directory for app-defaults files (default is
  1288. autodetected)
  1289. Some influential environment variables:
  1290. CC C compiler command
  1291. CFLAGS C compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CPP C preprocessor
  1298. PKG_CONFIG path to pkg-config utility
  1299. PKG_CONFIG_PATH
  1300. directories to add to pkg-config's search path
  1301. PKG_CONFIG_LIBDIR
  1302. path overriding pkg-config's built-in search path
  1303. BMTOA_CFLAGS
  1304. C compiler flags for BMTOA, overriding pkg-config
  1305. BMTOA_LIBS linker flags for BMTOA, overriding pkg-config
  1306. ATOBM_CFLAGS
  1307. C compiler flags for ATOBM, overriding pkg-config
  1308. ATOBM_LIBS linker flags for ATOBM, overriding pkg-config
  1309. BITMAP_CFLAGS
  1310. C compiler flags for BITMAP, overriding pkg-config
  1311. BITMAP_LIBS linker flags for BITMAP, overriding pkg-config
  1312. APPDEFS_CFLAGS
  1313. C compiler flags for APPDEFS, overriding pkg-config
  1314. APPDEFS_LIBS
  1315. linker flags for APPDEFS, overriding pkg-config
  1316. Use these variables to override the choices made by `configure' or to help
  1317. it to find libraries and programs with nonstandard names/locations.
  1318. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1319. _ACEOF
  1320. ac_status=$?
  1321. fi
  1322. if test "$ac_init_help" = "recursive"; then
  1323. # If there are subdirs, report their specific --help.
  1324. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1325. test -d "$ac_dir" ||
  1326. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1327. continue
  1328. ac_builddir=.
  1329. case "$ac_dir" in
  1330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *)
  1332. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1333. # A ".." for each directory in $ac_dir_suffix.
  1334. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1335. case $ac_top_builddir_sub in
  1336. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1338. esac ;;
  1339. esac
  1340. ac_abs_top_builddir=$ac_pwd
  1341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1342. # for backward compatibility:
  1343. ac_top_builddir=$ac_top_build_prefix
  1344. case $srcdir in
  1345. .) # We are building in place.
  1346. ac_srcdir=.
  1347. ac_top_srcdir=$ac_top_builddir_sub
  1348. ac_abs_top_srcdir=$ac_pwd ;;
  1349. [\\/]* | ?:[\\/]* ) # Absolute name.
  1350. ac_srcdir=$srcdir$ac_dir_suffix;
  1351. ac_top_srcdir=$srcdir
  1352. ac_abs_top_srcdir=$srcdir ;;
  1353. *) # Relative name.
  1354. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1355. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1356. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1357. esac
  1358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1359. cd "$ac_dir" || { ac_status=$?; continue; }
  1360. # Check for guested configure.
  1361. if test -f "$ac_srcdir/configure.gnu"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1364. elif test -f "$ac_srcdir/configure"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure" --help=recursive
  1367. else
  1368. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1369. fi || ac_status=$?
  1370. cd "$ac_pwd" || { ac_status=$?; break; }
  1371. done
  1372. fi
  1373. test -n "$ac_init_help" && exit $ac_status
  1374. if $ac_init_version; then
  1375. cat <<\_ACEOF
  1376. bitmap configure 1.0.8
  1377. generated by GNU Autoconf 2.69
  1378. Copyright (C) 2012 Free Software Foundation, Inc.
  1379. This configure script is free software; the Free Software Foundation
  1380. gives unlimited permission to copy, distribute and modify it.
  1381. _ACEOF
  1382. exit
  1383. fi
  1384. ## ------------------------ ##
  1385. ## Autoconf initialization. ##
  1386. ## ------------------------ ##
  1387. # ac_fn_c_try_compile LINENO
  1388. # --------------------------
  1389. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1390. ac_fn_c_try_compile ()
  1391. {
  1392. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1393. rm -f conftest.$ac_objext
  1394. if { { ac_try="$ac_compile"
  1395. case "(($ac_try" in
  1396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1397. *) ac_try_echo=$ac_try;;
  1398. esac
  1399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1400. $as_echo "$ac_try_echo"; } >&5
  1401. (eval "$ac_compile") 2>conftest.err
  1402. ac_status=$?
  1403. if test -s conftest.err; then
  1404. grep -v '^ *+' conftest.err >conftest.er1
  1405. cat conftest.er1 >&5
  1406. mv -f conftest.er1 conftest.err
  1407. fi
  1408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1409. test $ac_status = 0; } && {
  1410. test -z "$ac_c_werror_flag" ||
  1411. test ! -s conftest.err
  1412. } && test -s conftest.$ac_objext; then :
  1413. ac_retval=0
  1414. else
  1415. $as_echo "$as_me: failed program was:" >&5
  1416. sed 's/^/| /' conftest.$ac_ext >&5
  1417. ac_retval=1
  1418. fi
  1419. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1420. as_fn_set_status $ac_retval
  1421. } # ac_fn_c_try_compile
  1422. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1423. # ---------------------------------------------
  1424. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1425. # accordingly.
  1426. ac_fn_c_check_decl ()
  1427. {
  1428. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1429. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1430. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1432. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1433. if eval \${$3+:} false; then :
  1434. $as_echo_n "(cached) " >&6
  1435. else
  1436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1437. /* end confdefs.h. */
  1438. $4
  1439. int
  1440. main ()
  1441. {
  1442. #ifndef $as_decl_name
  1443. #ifdef __cplusplus
  1444. (void) $as_decl_use;
  1445. #else
  1446. (void) $as_decl_name;
  1447. #endif
  1448. #endif
  1449. ;
  1450. return 0;
  1451. }
  1452. _ACEOF
  1453. if ac_fn_c_try_compile "$LINENO"; then :
  1454. eval "$3=yes"
  1455. else
  1456. eval "$3=no"
  1457. fi
  1458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1459. fi
  1460. eval ac_res=\$$3
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1462. $as_echo "$ac_res" >&6; }
  1463. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1464. } # ac_fn_c_check_decl
  1465. # ac_fn_c_try_cpp LINENO
  1466. # ----------------------
  1467. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_cpp ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } > conftest.i && {
  1487. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. }; then :
  1490. ac_retval=0
  1491. else
  1492. $as_echo "$as_me: failed program was:" >&5
  1493. sed 's/^/| /' conftest.$ac_ext >&5
  1494. ac_retval=1
  1495. fi
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. as_fn_set_status $ac_retval
  1498. } # ac_fn_c_try_cpp
  1499. # ac_fn_c_try_run LINENO
  1500. # ----------------------
  1501. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1502. # that executables *can* be run.
  1503. ac_fn_c_try_run ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if { { ac_try="$ac_link"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_link") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1517. { { case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_try") 2>&5
  1524. ac_status=$?
  1525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1526. test $ac_status = 0; }; }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: program exited with status $ac_status" >&5
  1530. $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532. ac_retval=$ac_status
  1533. fi
  1534. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. as_fn_set_status $ac_retval
  1537. } # ac_fn_c_try_run
  1538. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1539. # -------------------------------------------------------
  1540. # Tests whether HEADER exists and can be compiled using the include files in
  1541. # INCLUDES, setting the cache variable VAR accordingly.
  1542. ac_fn_c_check_header_compile ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1546. $as_echo_n "checking for $2... " >&6; }
  1547. if eval \${$3+:} false; then :
  1548. $as_echo_n "(cached) " >&6
  1549. else
  1550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1551. /* end confdefs.h. */
  1552. $4
  1553. #include <$2>
  1554. _ACEOF
  1555. if ac_fn_c_try_compile "$LINENO"; then :
  1556. eval "$3=yes"
  1557. else
  1558. eval "$3=no"
  1559. fi
  1560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1561. fi
  1562. eval ac_res=\$$3
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1564. $as_echo "$ac_res" >&6; }
  1565. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1566. } # ac_fn_c_check_header_compile
  1567. # ac_fn_c_try_link LINENO
  1568. # -----------------------
  1569. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1570. ac_fn_c_try_link ()
  1571. {
  1572. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1573. rm -f conftest.$ac_objext conftest$ac_exeext
  1574. if { { ac_try="$ac_link"
  1575. case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_link") 2>conftest.err
  1582. ac_status=$?
  1583. if test -s conftest.err; then
  1584. grep -v '^ *+' conftest.err >conftest.er1
  1585. cat conftest.er1 >&5
  1586. mv -f conftest.er1 conftest.err
  1587. fi
  1588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1589. test $ac_status = 0; } && {
  1590. test -z "$ac_c_werror_flag" ||
  1591. test ! -s conftest.err
  1592. } && test -s conftest$ac_exeext && {
  1593. test "$cross_compiling" = yes ||
  1594. test -x conftest$ac_exeext
  1595. }; then :
  1596. ac_retval=0
  1597. else
  1598. $as_echo "$as_me: failed program was:" >&5
  1599. sed 's/^/| /' conftest.$ac_ext >&5
  1600. ac_retval=1
  1601. fi
  1602. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1603. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1604. # interfere with the next link command; also delete a directory that is
  1605. # left behind by Apple's compiler. We do this before executing the actions.
  1606. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1607. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1608. as_fn_set_status $ac_retval
  1609. } # ac_fn_c_try_link
  1610. # ac_fn_c_check_func LINENO FUNC VAR
  1611. # ----------------------------------
  1612. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1613. ac_fn_c_check_func ()
  1614. {
  1615. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1617. $as_echo_n "checking for $2... " >&6; }
  1618. if eval \${$3+:} false; then :
  1619. $as_echo_n "(cached) " >&6
  1620. else
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1624. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1625. #define $2 innocuous_$2
  1626. /* System header to define __stub macros and hopefully few prototypes,
  1627. which can conflict with char $2 (); below.
  1628. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1629. <limits.h> exists even on freestanding compilers. */
  1630. #ifdef __STDC__
  1631. # include <limits.h>
  1632. #else
  1633. # include <assert.h>
  1634. #endif
  1635. #undef $2
  1636. /* Override any GCC internal prototype to avoid an error.
  1637. Use char because int might match the return type of a GCC
  1638. builtin and then its argument prototype would still apply. */
  1639. #ifdef __cplusplus
  1640. extern "C"
  1641. #endif
  1642. char $2 ();
  1643. /* The GNU C library defines this for functions which it implements
  1644. to always fail with ENOSYS. Some functions are actually named
  1645. something starting with __ and the normal name is an alias. */
  1646. #if defined __stub_$2 || defined __stub___$2
  1647. choke me
  1648. #endif
  1649. int
  1650. main ()
  1651. {
  1652. return $2 ();
  1653. ;
  1654. return 0;
  1655. }
  1656. _ACEOF
  1657. if ac_fn_c_try_link "$LINENO"; then :
  1658. eval "$3=yes"
  1659. else
  1660. eval "$3=no"
  1661. fi
  1662. rm -f core conftest.err conftest.$ac_objext \
  1663. conftest$ac_exeext conftest.$ac_ext
  1664. fi
  1665. eval ac_res=\$$3
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1667. $as_echo "$ac_res" >&6; }
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. } # ac_fn_c_check_func
  1670. cat >config.log <<_ACEOF
  1671. This file contains any messages produced by compilers while
  1672. running configure, to aid debugging if configure makes a mistake.
  1673. It was created by bitmap $as_me 1.0.8, which was
  1674. generated by GNU Autoconf 2.69. Invocation command line was
  1675. $ $0 $@
  1676. _ACEOF
  1677. exec 5>>config.log
  1678. {
  1679. cat <<_ASUNAME
  1680. ## --------- ##
  1681. ## Platform. ##
  1682. ## --------- ##
  1683. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1684. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1685. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1686. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1687. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1688. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1689. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1690. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1691. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1692. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1693. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1694. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1695. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1696. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1697. _ASUNAME
  1698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1699. for as_dir in $PATH
  1700. do
  1701. IFS=$as_save_IFS
  1702. test -z "$as_dir" && as_dir=.
  1703. $as_echo "PATH: $as_dir"
  1704. done
  1705. IFS=$as_save_IFS
  1706. } >&5
  1707. cat >&5 <<_ACEOF
  1708. ## ----------- ##
  1709. ## Core tests. ##
  1710. ## ----------- ##
  1711. _ACEOF
  1712. # Keep a trace of the command line.
  1713. # Strip out --no-create and --no-recursion so they do not pile up.
  1714. # Strip out --silent because we don't want to record it for future runs.
  1715. # Also quote any args containing shell meta-characters.
  1716. # Make two passes to allow for proper duplicate-argument suppression.
  1717. ac_configure_args=
  1718. ac_configure_args0=
  1719. ac_configure_args1=
  1720. ac_must_keep_next=false
  1721. for ac_pass in 1 2
  1722. do
  1723. for ac_arg
  1724. do
  1725. case $ac_arg in
  1726. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1727. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1728. | -silent | --silent | --silen | --sile | --sil)
  1729. continue ;;
  1730. *\'*)
  1731. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1732. esac
  1733. case $ac_pass in
  1734. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1735. 2)
  1736. as_fn_append ac_configure_args1 " '$ac_arg'"
  1737. if test $ac_must_keep_next = true; then
  1738. ac_must_keep_next=false # Got value, back to normal.
  1739. else
  1740. case $ac_arg in
  1741. *=* | --config-cache | -C | -disable-* | --disable-* \
  1742. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1743. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1744. | -with-* | --with-* | -without-* | --without-* | --x)
  1745. case "$ac_configure_args0 " in
  1746. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1747. esac
  1748. ;;
  1749. -* ) ac_must_keep_next=true ;;
  1750. esac
  1751. fi
  1752. as_fn_append ac_configure_args " '$ac_arg'"
  1753. ;;
  1754. esac
  1755. done
  1756. done
  1757. { ac_configure_args0=; unset ac_configure_args0;}
  1758. { ac_configure_args1=; unset ac_configure_args1;}
  1759. # When interrupted or exit'd, cleanup temporary files, and complete
  1760. # config.log. We remove comments because anyway the quotes in there
  1761. # would cause problems or look ugly.
  1762. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1763. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1764. trap 'exit_status=$?
  1765. # Save into config.log some information that might help in debugging.
  1766. {
  1767. echo
  1768. $as_echo "## ---------------- ##
  1769. ## Cache variables. ##
  1770. ## ---------------- ##"
  1771. echo
  1772. # The following way of writing the cache mishandles newlines in values,
  1773. (
  1774. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1775. eval ac_val=\$$ac_var
  1776. case $ac_val in #(
  1777. *${as_nl}*)
  1778. case $ac_var in #(
  1779. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1780. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1781. esac
  1782. case $ac_var in #(
  1783. _ | IFS | as_nl) ;; #(
  1784. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1785. *) { eval $ac_var=; unset $ac_var;} ;;
  1786. esac ;;
  1787. esac
  1788. done
  1789. (set) 2>&1 |
  1790. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1791. *${as_nl}ac_space=\ *)
  1792. sed -n \
  1793. "s/'\''/'\''\\\\'\'''\''/g;
  1794. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1795. ;; #(
  1796. *)
  1797. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1798. ;;
  1799. esac |
  1800. sort
  1801. )
  1802. echo
  1803. $as_echo "## ----------------- ##
  1804. ## Output variables. ##
  1805. ## ----------------- ##"
  1806. echo
  1807. for ac_var in $ac_subst_vars
  1808. do
  1809. eval ac_val=\$$ac_var
  1810. case $ac_val in
  1811. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1812. esac
  1813. $as_echo "$ac_var='\''$ac_val'\''"
  1814. done | sort
  1815. echo
  1816. if test -n "$ac_subst_files"; then
  1817. $as_echo "## ------------------- ##
  1818. ## File substitutions. ##
  1819. ## ------------------- ##"
  1820. echo
  1821. for ac_var in $ac_subst_files
  1822. do
  1823. eval ac_val=\$$ac_var
  1824. case $ac_val in
  1825. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1826. esac
  1827. $as_echo "$ac_var='\''$ac_val'\''"
  1828. done | sort
  1829. echo
  1830. fi
  1831. if test -s confdefs.h; then
  1832. $as_echo "## ----------- ##
  1833. ## confdefs.h. ##
  1834. ## ----------- ##"
  1835. echo
  1836. cat confdefs.h
  1837. echo
  1838. fi
  1839. test "$ac_signal" != 0 &&
  1840. $as_echo "$as_me: caught signal $ac_signal"
  1841. $as_echo "$as_me: exit $exit_status"
  1842. } >&5
  1843. rm -f core *.core core.conftest.* &&
  1844. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1845. exit $exit_status
  1846. ' 0
  1847. for ac_signal in 1 2 13 15; do
  1848. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1849. done
  1850. ac_signal=0
  1851. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1852. rm -f -r conftest* confdefs.h
  1853. $as_echo "/* confdefs.h */" > confdefs.h
  1854. # Predefined preprocessor variables.
  1855. cat >>confdefs.h <<_ACEOF
  1856. #define PACKAGE_NAME "$PACKAGE_NAME"
  1857. _ACEOF
  1858. cat >>confdefs.h <<_ACEOF
  1859. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1860. _ACEOF
  1861. cat >>confdefs.h <<_ACEOF
  1862. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1863. _ACEOF
  1864. cat >>confdefs.h <<_ACEOF
  1865. #define PACKAGE_STRING "$PACKAGE_STRING"
  1866. _ACEOF
  1867. cat >>confdefs.h <<_ACEOF
  1868. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1869. _ACEOF
  1870. cat >>confdefs.h <<_ACEOF
  1871. #define PACKAGE_URL "$PACKAGE_URL"
  1872. _ACEOF
  1873. # Let the site file select an alternate cache file if it wants to.
  1874. # Prefer an explicitly selected file to automatically selected ones.
  1875. ac_site_file1=NONE
  1876. ac_site_file2=NONE
  1877. if test -n "$CONFIG_SITE"; then
  1878. # We do not want a PATH search for config.site.
  1879. case $CONFIG_SITE in #((
  1880. -*) ac_site_file1=./$CONFIG_SITE;;
  1881. */*) ac_site_file1=$CONFIG_SITE;;
  1882. *) ac_site_file1=./$CONFIG_SITE;;
  1883. esac
  1884. elif test "x$prefix" != xNONE; then
  1885. ac_site_file1=$prefix/share/config.site
  1886. ac_site_file2=$prefix/etc/config.site
  1887. else
  1888. ac_site_file1=$ac_default_prefix/share/config.site
  1889. ac_site_file2=$ac_default_prefix/etc/config.site
  1890. fi
  1891. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1892. do
  1893. test "x$ac_site_file" = xNONE && continue
  1894. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1896. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1897. sed 's/^/| /' "$ac_site_file" >&5
  1898. . "$ac_site_file" \
  1899. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1901. as_fn_error $? "failed to load site script $ac_site_file
  1902. See \`config.log' for more details" "$LINENO" 5; }
  1903. fi
  1904. done
  1905. if test -r "$cache_file"; then
  1906. # Some versions of bash will fail to source /dev/null (special files
  1907. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1908. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1910. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1911. case $cache_file in
  1912. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1913. *) . "./$cache_file";;
  1914. esac
  1915. fi
  1916. else
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1918. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1919. >$cache_file
  1920. fi
  1921. # Check that the precious variables saved in the cache have kept the same
  1922. # value.
  1923. ac_cache_corrupted=false
  1924. for ac_var in $ac_precious_vars; do
  1925. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1926. eval ac_new_set=\$ac_env_${ac_var}_set
  1927. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1928. eval ac_new_val=\$ac_env_${ac_var}_value
  1929. case $ac_old_set,$ac_new_set in
  1930. set,)
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1932. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1933. ac_cache_corrupted=: ;;
  1934. ,set)
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1936. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1937. ac_cache_corrupted=: ;;
  1938. ,);;
  1939. *)
  1940. if test "x$ac_old_val" != "x$ac_new_val"; then
  1941. # differences in whitespace do not lead to failure.
  1942. ac_old_val_w=`echo x $ac_old_val`
  1943. ac_new_val_w=`echo x $ac_new_val`
  1944. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1946. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1947. ac_cache_corrupted=:
  1948. else
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1950. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1951. eval $ac_var=\$ac_old_val
  1952. fi
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1954. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1956. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1957. fi;;
  1958. esac
  1959. # Pass precious variables to config.status.
  1960. if test "$ac_new_set" = set; then
  1961. case $ac_new_val in
  1962. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1963. *) ac_arg=$ac_var=$ac_new_val ;;
  1964. esac
  1965. case " $ac_configure_args " in
  1966. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1967. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1968. esac
  1969. fi
  1970. done
  1971. if $ac_cache_corrupted; then
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1975. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1976. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1977. fi
  1978. ## -------------------- ##
  1979. ## Main body of script. ##
  1980. ## -------------------- ##
  1981. ac_ext=c
  1982. ac_cpp='$CPP $CPPFLAGS'
  1983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1986. ac_config_headers="$ac_config_headers config.h"
  1987. # Initialize Automake
  1988. am__api_version='1.12'
  1989. ac_aux_dir=
  1990. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1991. if test -f "$ac_dir/install-sh"; then
  1992. ac_aux_dir=$ac_dir
  1993. ac_install_sh="$ac_aux_dir/install-sh -c"
  1994. break
  1995. elif test -f "$ac_dir/install.sh"; then
  1996. ac_aux_dir=$ac_dir
  1997. ac_install_sh="$ac_aux_dir/install.sh -c"
  1998. break
  1999. elif test -f "$ac_dir/shtool"; then
  2000. ac_aux_dir=$ac_dir
  2001. ac_install_sh="$ac_aux_dir/shtool install -c"
  2002. break
  2003. fi
  2004. done
  2005. if test -z "$ac_aux_dir"; then
  2006. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2007. fi
  2008. # These three variables are undocumented and unsupported,
  2009. # and are intended to be withdrawn in a future Autoconf release.
  2010. # They can cause serious problems if a builder's source tree is in a directory
  2011. # whose full name contains unusual characters.
  2012. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2013. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2014. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2015. # Find a good install program. We prefer a C program (faster),
  2016. # so one script is as good as another. But avoid the broken or
  2017. # incompatible versions:
  2018. # SysV /etc/install, /usr/sbin/install
  2019. # SunOS /usr/etc/install
  2020. # IRIX /sbin/install
  2021. # AIX /bin/install
  2022. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2023. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2024. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2025. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2026. # OS/2's system install, which has a completely different semantic
  2027. # ./install, which can be erroneously created by make from ./install.sh.
  2028. # Reject install programs that cannot install multiple files.
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2030. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2031. if test -z "$INSTALL"; then
  2032. if ${ac_cv_path_install+:} false; then :
  2033. $as_echo_n "(cached) " >&6
  2034. else
  2035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2036. for as_dir in $PATH
  2037. do
  2038. IFS=$as_save_IFS
  2039. test -z "$as_dir" && as_dir=.
  2040. # Account for people who put trailing slashes in PATH elements.
  2041. case $as_dir/ in #((
  2042. ./ | .// | /[cC]/* | \
  2043. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2044. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2045. /usr/ucb/* ) ;;
  2046. *)
  2047. # OSF1 and SCO ODT 3.0 have their own names for install.
  2048. # Don't use installbsd from OSF since it installs stuff as root
  2049. # by default.
  2050. for ac_prog in ginstall scoinst install; do
  2051. for ac_exec_ext in '' $ac_executable_extensions; do
  2052. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2053. if test $ac_prog = install &&
  2054. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2055. # AIX install. It has an incompatible calling convention.
  2056. :
  2057. elif test $ac_prog = install &&
  2058. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2059. # program-specific install script used by HP pwplus--don't use.
  2060. :
  2061. else
  2062. rm -rf conftest.one conftest.two conftest.dir
  2063. echo one > conftest.one
  2064. echo two > conftest.two
  2065. mkdir conftest.dir
  2066. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2067. test -s conftest.one && test -s conftest.two &&
  2068. test -s conftest.dir/conftest.one &&
  2069. test -s conftest.dir/conftest.two
  2070. then
  2071. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2072. break 3
  2073. fi
  2074. fi
  2075. fi
  2076. done
  2077. done
  2078. ;;
  2079. esac
  2080. done
  2081. IFS=$as_save_IFS
  2082. rm -rf conftest.one conftest.two conftest.dir
  2083. fi
  2084. if test "${ac_cv_path_install+set}" = set; then
  2085. INSTALL=$ac_cv_path_install
  2086. else
  2087. # As a last resort, use the slow shell script. Don't cache a
  2088. # value for INSTALL within a source directory, because that will
  2089. # break other packages using the cache if that directory is
  2090. # removed, or if the value is a relative name.
  2091. INSTALL=$ac_install_sh
  2092. fi
  2093. fi
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2095. $as_echo "$INSTALL" >&6; }
  2096. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2097. # It thinks the first close brace ends the variable substitution.
  2098. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2099. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2100. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2102. $as_echo_n "checking whether build environment is sane... " >&6; }
  2103. # Reject unsafe characters in $srcdir or the absolute working directory
  2104. # name. Accept space and tab only in the latter.
  2105. am_lf='
  2106. '
  2107. case `pwd` in
  2108. *[\\\"\#\$\&\'\`$am_lf]*)
  2109. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2110. esac
  2111. case $srcdir in
  2112. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2113. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2114. esac
  2115. # Do 'set' in a subshell so we don't clobber the current shell's
  2116. # arguments. Must try -L first in case configure is actually a
  2117. # symlink; some systems play weird games with the mod time of symlinks
  2118. # (eg FreeBSD returns the mod time of the symlink's containing
  2119. # directory).
  2120. if (
  2121. am_has_slept=no
  2122. for am_try in 1 2; do
  2123. echo "timestamp, slept: $am_has_slept" > conftest.file
  2124. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2125. if test "$*" = "X"; then
  2126. # -L didn't work.
  2127. set X `ls -t "$srcdir/configure" conftest.file`
  2128. fi
  2129. if test "$*" != "X $srcdir/configure conftest.file" \
  2130. && test "$*" != "X conftest.file $srcdir/configure"; then
  2131. # If neither matched, then we have a broken ls. This can happen
  2132. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2133. # broken ls alias from the environment. This has actually
  2134. # happened. Such a system could not be considered "sane".
  2135. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2136. alias in your environment" "$LINENO" 5
  2137. fi
  2138. if test "$2" = conftest.file || test $am_try -eq 2; then
  2139. break
  2140. fi
  2141. # Just in case.
  2142. sleep 1
  2143. am_has_slept=yes
  2144. done
  2145. test "$2" = conftest.file
  2146. )
  2147. then
  2148. # Ok.
  2149. :
  2150. else
  2151. as_fn_error $? "newly created file is older than distributed files!
  2152. Check your system clock" "$LINENO" 5
  2153. fi
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2155. $as_echo "yes" >&6; }
  2156. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2157. # generated files are strictly newer.
  2158. am_sleep_pid=
  2159. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2160. ( sleep 1 ) &
  2161. am_sleep_pid=$!
  2162. fi
  2163. rm -f conftest.file
  2164. test "$program_prefix" != NONE &&
  2165. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2166. # Use a double $ so make ignores it.
  2167. test "$program_suffix" != NONE &&
  2168. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2169. # Double any \ or $.
  2170. # By default was `s,x,x', remove it if useless.
  2171. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2172. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2173. # expand $ac_aux_dir to an absolute path
  2174. am_aux_dir=`cd $ac_aux_dir && pwd`
  2175. if test x"${MISSING+set}" != xset; then
  2176. case $am_aux_dir in
  2177. *\ * | *\ *)
  2178. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2179. *)
  2180. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2181. esac
  2182. fi
  2183. # Use eval to expand $SHELL
  2184. if eval "$MISSING --run true"; then
  2185. am_missing_run="$MISSING --run "
  2186. else
  2187. am_missing_run=
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2189. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2190. fi
  2191. if test x"${install_sh}" != xset; then
  2192. case $am_aux_dir in
  2193. *\ * | *\ *)
  2194. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2195. *)
  2196. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2197. esac
  2198. fi
  2199. # Installed binaries are usually stripped using 'strip' when the user
  2200. # run "make install-strip". However 'strip' might not be the right
  2201. # tool to use in cross-compilation environments, therefore Automake
  2202. # will honor the 'STRIP' environment variable to overrule this program.
  2203. if test "$cross_compiling" != no; then
  2204. if test -n "$ac_tool_prefix"; then
  2205. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2206. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2208. $as_echo_n "checking for $ac_word... " >&6; }
  2209. if ${ac_cv_prog_STRIP+:} false; then :
  2210. $as_echo_n "(cached) " >&6
  2211. else
  2212. if test -n "$STRIP"; then
  2213. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2214. else
  2215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2216. for as_dir in $PATH
  2217. do
  2218. IFS=$as_save_IFS
  2219. test -z "$as_dir" && as_dir=.
  2220. for ac_exec_ext in '' $ac_executable_extensions; do
  2221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2222. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2224. break 2
  2225. fi
  2226. done
  2227. done
  2228. IFS=$as_save_IFS
  2229. fi
  2230. fi
  2231. STRIP=$ac_cv_prog_STRIP
  2232. if test -n "$STRIP"; then
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2234. $as_echo "$STRIP" >&6; }
  2235. else
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2237. $as_echo "no" >&6; }
  2238. fi
  2239. fi
  2240. if test -z "$ac_cv_prog_STRIP"; then
  2241. ac_ct_STRIP=$STRIP
  2242. # Extract the first word of "strip", so it can be a program name with args.
  2243. set dummy strip; 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_ac_ct_STRIP+:} false; then :
  2247. $as_echo_n "(cached) " >&6
  2248. else
  2249. if test -n "$ac_ct_STRIP"; then
  2250. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
  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. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2269. if test -n "$ac_ct_STRIP"; then
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2271. $as_echo "$ac_ct_STRIP" >&6; }
  2272. else
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2274. $as_echo "no" >&6; }
  2275. fi
  2276. if test "x$ac_ct_STRIP" = x; then
  2277. STRIP=":"
  2278. else
  2279. case $cross_compiling:$ac_tool_warned in
  2280. yes:)
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2283. ac_tool_warned=yes ;;
  2284. esac
  2285. STRIP=$ac_ct_STRIP
  2286. fi
  2287. else
  2288. STRIP="$ac_cv_prog_STRIP"
  2289. fi
  2290. fi
  2291. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2293. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2294. if test -z "$MKDIR_P"; then
  2295. if ${ac_cv_path_mkdir+:} false; then :
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2299. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2300. do
  2301. IFS=$as_save_IFS
  2302. test -z "$as_dir" && as_dir=.
  2303. for ac_prog in mkdir gmkdir; do
  2304. for ac_exec_ext in '' $ac_executable_extensions; do
  2305. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2306. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2307. 'mkdir (GNU coreutils) '* | \
  2308. 'mkdir (coreutils) '* | \
  2309. 'mkdir (fileutils) '4.1*)
  2310. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2311. break 3;;
  2312. esac
  2313. done
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. fi
  2318. test -d ./--version && rmdir ./--version
  2319. if test "${ac_cv_path_mkdir+set}" = set; then
  2320. MKDIR_P="$ac_cv_path_mkdir -p"
  2321. else
  2322. # As a last resort, use the slow shell script. Don't cache a
  2323. # value for MKDIR_P within a source directory, because that will
  2324. # break other packages using the cache if that directory is
  2325. # removed, or if the value is a relative name.
  2326. MKDIR_P="$ac_install_sh -d"
  2327. fi
  2328. fi
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2330. $as_echo "$MKDIR_P" >&6; }
  2331. for ac_prog in gawk mawk nawk awk
  2332. do
  2333. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2334. set dummy $ac_prog; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if ${ac_cv_prog_AWK+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$AWK"; then
  2341. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2350. ac_cv_prog_AWK="$ac_prog"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. AWK=$ac_cv_prog_AWK
  2360. if test -n "$AWK"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2362. $as_echo "$AWK" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. test -n "$AWK" && break
  2368. done
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2370. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2371. set x ${MAKE-make}
  2372. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2373. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2374. $as_echo_n "(cached) " >&6
  2375. else
  2376. cat >conftest.make <<\_ACEOF
  2377. SHELL = /bin/sh
  2378. all:
  2379. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2380. _ACEOF
  2381. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2382. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2383. *@@@%%%=?*=@@@%%%*)
  2384. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2385. *)
  2386. eval ac_cv_prog_make_${ac_make}_set=no;;
  2387. esac
  2388. rm -f conftest.make
  2389. fi
  2390. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2392. $as_echo "yes" >&6; }
  2393. SET_MAKE=
  2394. else
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2396. $as_echo "no" >&6; }
  2397. SET_MAKE="MAKE=${MAKE-make}"
  2398. fi
  2399. rm -rf .tst 2>/dev/null
  2400. mkdir .tst 2>/dev/null
  2401. if test -d .tst; then
  2402. am__leading_dot=.
  2403. else
  2404. am__leading_dot=_
  2405. fi
  2406. rmdir .tst 2>/dev/null
  2407. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2408. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2409. # is not polluted with repeated "-I."
  2410. am__isrc=' -I$(srcdir)'
  2411. # test to see if srcdir already configured
  2412. if test -f $srcdir/config.status; then
  2413. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2414. fi
  2415. fi
  2416. # test whether we have cygpath
  2417. if test -z "$CYGPATH_W"; then
  2418. if (cygpath --version) >/dev/null 2>/dev/null; then
  2419. CYGPATH_W='cygpath -w'
  2420. else
  2421. CYGPATH_W=echo
  2422. fi
  2423. fi
  2424. # Define the identity of the package.
  2425. PACKAGE='bitmap'
  2426. VERSION='1.0.8'
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE "$PACKAGE"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define VERSION "$VERSION"
  2432. _ACEOF
  2433. # Some tools Automake needs.
  2434. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2435. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2436. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2437. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2438. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2439. # For better backward compatibility. To be removed once Automake 1.9.x
  2440. # dies out for good. For more background, see:
  2441. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2442. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2443. mkdir_p='$(MKDIR_P)'
  2444. # We need awk for the "check" target. The system "awk" is bad on
  2445. # some platforms.
  2446. # Always define AMTAR for backward compatibility. Yes, it's still used
  2447. # in the wild :-( We should find a proper way to deprecate it ...
  2448. AMTAR='$${TAR-tar}'
  2449. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2450. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2451. DEPDIR="${am__leading_dot}deps"
  2452. ac_config_commands="$ac_config_commands depfiles"
  2453. am_make=${MAKE-make}
  2454. cat > confinc << 'END'
  2455. am__doit:
  2456. @echo this is the am__doit target
  2457. .PHONY: am__doit
  2458. END
  2459. # If we don't find an include directive, just comment out the code.
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2461. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2462. am__include="#"
  2463. am__quote=
  2464. _am_result=none
  2465. # First try GNU make style include.
  2466. echo "include confinc" > confmf
  2467. # Ignore all kinds of additional output from 'make'.
  2468. case `$am_make -s -f confmf 2> /dev/null` in #(
  2469. *the\ am__doit\ target*)
  2470. am__include=include
  2471. am__quote=
  2472. _am_result=GNU
  2473. ;;
  2474. esac
  2475. # Now try BSD make style include.
  2476. if test "$am__include" = "#"; then
  2477. echo '.include "confinc"' > confmf
  2478. case `$am_make -s -f confmf 2> /dev/null` in #(
  2479. *the\ am__doit\ target*)
  2480. am__include=.include
  2481. am__quote="\""
  2482. _am_result=BSD
  2483. ;;
  2484. esac
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2487. $as_echo "$_am_result" >&6; }
  2488. rm -f confinc confmf
  2489. # Check whether --enable-dependency-tracking was given.
  2490. if test "${enable_dependency_tracking+set}" = set; then :
  2491. enableval=$enable_dependency_tracking;
  2492. fi
  2493. if test "x$enable_dependency_tracking" != xno; then
  2494. am_depcomp="$ac_aux_dir/depcomp"
  2495. AMDEPBACKSLASH='\'
  2496. am__nodep='_no'
  2497. fi
  2498. if test "x$enable_dependency_tracking" != xno; then
  2499. AMDEP_TRUE=
  2500. AMDEP_FALSE='#'
  2501. else
  2502. AMDEP_TRUE='#'
  2503. AMDEP_FALSE=
  2504. fi
  2505. ac_ext=c
  2506. ac_cpp='$CPP $CPPFLAGS'
  2507. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2510. if test -n "$ac_tool_prefix"; then
  2511. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2512. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2514. $as_echo_n "checking for $ac_word... " >&6; }
  2515. if ${ac_cv_prog_CC+:} false; then :
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. if test -n "$CC"; then
  2519. ac_cv_prog_CC="$CC" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2528. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. fi
  2537. CC=$ac_cv_prog_CC
  2538. if test -n "$CC"; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2540. $as_echo "$CC" >&6; }
  2541. else
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. fi
  2545. fi
  2546. if test -z "$ac_cv_prog_CC"; then
  2547. ac_ct_CC=$CC
  2548. # Extract the first word of "gcc", so it can be a program name with args.
  2549. set dummy gcc; ac_word=$2
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2551. $as_echo_n "checking for $ac_word... " >&6; }
  2552. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. if test -n "$ac_ct_CC"; then
  2556. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2557. else
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2565. ac_cv_prog_ac_ct_CC="gcc"
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2567. break 2
  2568. fi
  2569. done
  2570. done
  2571. IFS=$as_save_IFS
  2572. fi
  2573. fi
  2574. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2575. if test -n "$ac_ct_CC"; then
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2577. $as_echo "$ac_ct_CC" >&6; }
  2578. else
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2580. $as_echo "no" >&6; }
  2581. fi
  2582. if test "x$ac_ct_CC" = x; then
  2583. CC=""
  2584. else
  2585. case $cross_compiling:$ac_tool_warned in
  2586. yes:)
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2589. ac_tool_warned=yes ;;
  2590. esac
  2591. CC=$ac_ct_CC
  2592. fi
  2593. else
  2594. CC="$ac_cv_prog_CC"
  2595. fi
  2596. if test -z "$CC"; then
  2597. if test -n "$ac_tool_prefix"; then
  2598. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2599. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2601. $as_echo_n "checking for $ac_word... " >&6; }
  2602. if ${ac_cv_prog_CC+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. if test -n "$CC"; then
  2606. ac_cv_prog_CC="$CC" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2615. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. IFS=$as_save_IFS
  2622. fi
  2623. fi
  2624. CC=$ac_cv_prog_CC
  2625. if test -n "$CC"; then
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2627. $as_echo "$CC" >&6; }
  2628. else
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2630. $as_echo "no" >&6; }
  2631. fi
  2632. fi
  2633. fi
  2634. if test -z "$CC"; then
  2635. # Extract the first word of "cc", so it can be a program name with args.
  2636. set dummy cc; ac_word=$2
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2638. $as_echo_n "checking for $ac_word... " >&6; }
  2639. if ${ac_cv_prog_CC+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. if test -n "$CC"; then
  2643. ac_cv_prog_CC="$CC" # Let the user override the test.
  2644. else
  2645. ac_prog_rejected=no
  2646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2647. for as_dir in $PATH
  2648. do
  2649. IFS=$as_save_IFS
  2650. test -z "$as_dir" && as_dir=.
  2651. for ac_exec_ext in '' $ac_executable_extensions; do
  2652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2653. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2654. ac_prog_rejected=yes
  2655. continue
  2656. fi
  2657. ac_cv_prog_CC="cc"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. if test $ac_prog_rejected = yes; then
  2665. # We found a bogon in the path, so make sure we never use it.
  2666. set dummy $ac_cv_prog_CC
  2667. shift
  2668. if test $# != 0; then
  2669. # We chose a different compiler from the bogus one.
  2670. # However, it has the same basename, so the bogon will be chosen
  2671. # first if we set CC to just the basename; use the full file name.
  2672. shift
  2673. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2674. fi
  2675. fi
  2676. fi
  2677. fi
  2678. CC=$ac_cv_prog_CC
  2679. if test -n "$CC"; then
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2681. $as_echo "$CC" >&6; }
  2682. else
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2684. $as_echo "no" >&6; }
  2685. fi
  2686. fi
  2687. if test -z "$CC"; then
  2688. if test -n "$ac_tool_prefix"; then
  2689. for ac_prog in cl.exe
  2690. do
  2691. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2692. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2694. $as_echo_n "checking for $ac_word... " >&6; }
  2695. if ${ac_cv_prog_CC+:} false; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. if test -n "$CC"; then
  2699. ac_cv_prog_CC="$CC" # Let the user override the test.
  2700. else
  2701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2702. for as_dir in $PATH
  2703. do
  2704. IFS=$as_save_IFS
  2705. test -z "$as_dir" && as_dir=.
  2706. for ac_exec_ext in '' $ac_executable_extensions; do
  2707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2708. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2710. break 2
  2711. fi
  2712. done
  2713. done
  2714. IFS=$as_save_IFS
  2715. fi
  2716. fi
  2717. CC=$ac_cv_prog_CC
  2718. if test -n "$CC"; then
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2720. $as_echo "$CC" >&6; }
  2721. else
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. fi
  2725. test -n "$CC" && break
  2726. done
  2727. fi
  2728. if test -z "$CC"; then
  2729. ac_ct_CC=$CC
  2730. for ac_prog in cl.exe
  2731. do
  2732. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2733. set dummy $ac_prog; ac_word=$2
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2735. $as_echo_n "checking for $ac_word... " >&6; }
  2736. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2737. $as_echo_n "(cached) " >&6
  2738. else
  2739. if test -n "$ac_ct_CC"; then
  2740. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2741. else
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. for ac_exec_ext in '' $ac_executable_extensions; do
  2748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2749. ac_cv_prog_ac_ct_CC="$ac_prog"
  2750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. IFS=$as_save_IFS
  2756. fi
  2757. fi
  2758. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2759. if test -n "$ac_ct_CC"; then
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2761. $as_echo "$ac_ct_CC" >&6; }
  2762. else
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2764. $as_echo "no" >&6; }
  2765. fi
  2766. test -n "$ac_ct_CC" && break
  2767. done
  2768. if test "x$ac_ct_CC" = x; then
  2769. CC=""
  2770. else
  2771. case $cross_compiling:$ac_tool_warned in
  2772. yes:)
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2775. ac_tool_warned=yes ;;
  2776. esac
  2777. CC=$ac_ct_CC
  2778. fi
  2779. fi
  2780. fi
  2781. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2783. as_fn_error $? "no acceptable C compiler found in \$PATH
  2784. See \`config.log' for more details" "$LINENO" 5; }
  2785. # Provide some information about the compiler.
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2787. set X $ac_compile
  2788. ac_compiler=$2
  2789. for ac_option in --version -v -V -qversion; do
  2790. { { ac_try="$ac_compiler $ac_option >&5"
  2791. case "(($ac_try" in
  2792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2793. *) ac_try_echo=$ac_try;;
  2794. esac
  2795. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2796. $as_echo "$ac_try_echo"; } >&5
  2797. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2798. ac_status=$?
  2799. if test -s conftest.err; then
  2800. sed '10a\
  2801. ... rest of stderr output deleted ...
  2802. 10q' conftest.err >conftest.er1
  2803. cat conftest.er1 >&5
  2804. fi
  2805. rm -f conftest.er1 conftest.err
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2807. test $ac_status = 0; }
  2808. done
  2809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2810. /* end confdefs.h. */
  2811. int
  2812. main ()
  2813. {
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. ac_clean_files_save=$ac_clean_files
  2819. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2820. # Try to create an executable without -o first, disregard a.out.
  2821. # It will help us diagnose broken compilers, and finding out an intuition
  2822. # of exeext.
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2824. $as_echo_n "checking whether the C compiler works... " >&6; }
  2825. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2826. # The possible output files:
  2827. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2828. ac_rmfiles=
  2829. for ac_file in $ac_files
  2830. do
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2833. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2834. esac
  2835. done
  2836. rm -f $ac_rmfiles
  2837. if { { ac_try="$ac_link_default"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo"; } >&5
  2844. (eval "$ac_link_default") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2847. test $ac_status = 0; }; then :
  2848. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2849. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2850. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2851. # so that the user can short-circuit this test for compilers unknown to
  2852. # Autoconf.
  2853. for ac_file in $ac_files ''
  2854. do
  2855. test -f "$ac_file" || continue
  2856. case $ac_file in
  2857. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2858. ;;
  2859. [ab].out )
  2860. # We found the default executable, but exeext='' is most
  2861. # certainly right.
  2862. break;;
  2863. *.* )
  2864. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2865. then :; else
  2866. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2867. fi
  2868. # We set ac_cv_exeext here because the later test for it is not
  2869. # safe: cross compilers may not add the suffix if given an `-o'
  2870. # argument, so we may need to know it at that point already.
  2871. # Even if this section looks crufty: it has the advantage of
  2872. # actually working.
  2873. break;;
  2874. * )
  2875. break;;
  2876. esac
  2877. done
  2878. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2879. else
  2880. ac_file=''
  2881. fi
  2882. if test -z "$ac_file"; then :
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. $as_echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. as_fn_error 77 "C compiler cannot create executables
  2890. See \`config.log' for more details" "$LINENO" 5; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2893. $as_echo "yes" >&6; }
  2894. fi
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2896. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2898. $as_echo "$ac_file" >&6; }
  2899. ac_exeext=$ac_cv_exeext
  2900. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2901. ac_clean_files=$ac_clean_files_save
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2903. $as_echo_n "checking for suffix of executables... " >&6; }
  2904. if { { ac_try="$ac_link"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2910. $as_echo "$ac_try_echo"; } >&5
  2911. (eval "$ac_link") 2>&5
  2912. ac_status=$?
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2914. test $ac_status = 0; }; then :
  2915. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2916. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2917. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2918. # `rm'.
  2919. for ac_file in conftest.exe conftest conftest.*; do
  2920. test -f "$ac_file" || continue
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2923. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2924. break;;
  2925. * ) break;;
  2926. esac
  2927. done
  2928. else
  2929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2931. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2932. See \`config.log' for more details" "$LINENO" 5; }
  2933. fi
  2934. rm -f conftest conftest$ac_cv_exeext
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2936. $as_echo "$ac_cv_exeext" >&6; }
  2937. rm -f conftest.$ac_ext
  2938. EXEEXT=$ac_cv_exeext
  2939. ac_exeext=$EXEEXT
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. #include <stdio.h>
  2943. int
  2944. main ()
  2945. {
  2946. FILE *f = fopen ("conftest.out", "w");
  2947. return ferror (f) || fclose (f) != 0;
  2948. ;
  2949. return 0;
  2950. }
  2951. _ACEOF
  2952. ac_clean_files="$ac_clean_files conftest.out"
  2953. # Check that the compiler produces executables we can run. If not, either
  2954. # the compiler is broken, or we cross compile.
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2956. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2957. if test "$cross_compiling" != yes; then
  2958. { { ac_try="$ac_link"
  2959. case "(($ac_try" in
  2960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2961. *) ac_try_echo=$ac_try;;
  2962. esac
  2963. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2964. $as_echo "$ac_try_echo"; } >&5
  2965. (eval "$ac_link") 2>&5
  2966. ac_status=$?
  2967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2968. test $ac_status = 0; }
  2969. if { ac_try='./conftest$ac_cv_exeext'
  2970. { { case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2975. $as_echo "$ac_try_echo"; } >&5
  2976. (eval "$ac_try") 2>&5
  2977. ac_status=$?
  2978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2979. test $ac_status = 0; }; }; then
  2980. cross_compiling=no
  2981. else
  2982. if test "$cross_compiling" = maybe; then
  2983. cross_compiling=yes
  2984. else
  2985. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2986. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2987. as_fn_error $? "cannot run C compiled programs.
  2988. If you meant to cross compile, use \`--host'.
  2989. See \`config.log' for more details" "$LINENO" 5; }
  2990. fi
  2991. fi
  2992. fi
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2994. $as_echo "$cross_compiling" >&6; }
  2995. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2996. ac_clean_files=$ac_clean_files_save
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2998. $as_echo_n "checking for suffix of object files... " >&6; }
  2999. if ${ac_cv_objext+:} false; then :
  3000. $as_echo_n "(cached) " >&6
  3001. else
  3002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3003. /* end confdefs.h. */
  3004. int
  3005. main ()
  3006. {
  3007. ;
  3008. return 0;
  3009. }
  3010. _ACEOF
  3011. rm -f conftest.o conftest.obj
  3012. if { { ac_try="$ac_compile"
  3013. case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_compile") 2>&5
  3020. ac_status=$?
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }; then :
  3023. for ac_file in conftest.o conftest.obj conftest.*; do
  3024. test -f "$ac_file" || continue;
  3025. case $ac_file in
  3026. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3027. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3028. break;;
  3029. esac
  3030. done
  3031. else
  3032. $as_echo "$as_me: failed program was:" >&5
  3033. sed 's/^/| /' conftest.$ac_ext >&5
  3034. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3036. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3037. See \`config.log' for more details" "$LINENO" 5; }
  3038. fi
  3039. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3040. fi
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3042. $as_echo "$ac_cv_objext" >&6; }
  3043. OBJEXT=$ac_cv_objext
  3044. ac_objext=$OBJEXT
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3046. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3047. if ${ac_cv_c_compiler_gnu+:} false; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3051. /* end confdefs.h. */
  3052. int
  3053. main ()
  3054. {
  3055. #ifndef __GNUC__
  3056. choke me
  3057. #endif
  3058. ;
  3059. return 0;
  3060. }
  3061. _ACEOF
  3062. if ac_fn_c_try_compile "$LINENO"; then :
  3063. ac_compiler_gnu=yes
  3064. else
  3065. ac_compiler_gnu=no
  3066. fi
  3067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3068. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3071. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3072. if test $ac_compiler_gnu = yes; then
  3073. GCC=yes
  3074. else
  3075. GCC=
  3076. fi
  3077. ac_test_CFLAGS=${CFLAGS+set}
  3078. ac_save_CFLAGS=$CFLAGS
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3080. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3081. if ${ac_cv_prog_cc_g+:} false; then :
  3082. $as_echo_n "(cached) " >&6
  3083. else
  3084. ac_save_c_werror_flag=$ac_c_werror_flag
  3085. ac_c_werror_flag=yes
  3086. ac_cv_prog_cc_g=no
  3087. CFLAGS="-g"
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. int
  3091. main ()
  3092. {
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. if ac_fn_c_try_compile "$LINENO"; then :
  3098. ac_cv_prog_cc_g=yes
  3099. else
  3100. CFLAGS=""
  3101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3102. /* end confdefs.h. */
  3103. int
  3104. main ()
  3105. {
  3106. ;
  3107. return 0;
  3108. }
  3109. _ACEOF
  3110. if ac_fn_c_try_compile "$LINENO"; then :
  3111. else
  3112. ac_c_werror_flag=$ac_save_c_werror_flag
  3113. CFLAGS="-g"
  3114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end confdefs.h. */
  3116. int
  3117. main ()
  3118. {
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_c_try_compile "$LINENO"; then :
  3124. ac_cv_prog_cc_g=yes
  3125. fi
  3126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3131. ac_c_werror_flag=$ac_save_c_werror_flag
  3132. fi
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3134. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3135. if test "$ac_test_CFLAGS" = set; then
  3136. CFLAGS=$ac_save_CFLAGS
  3137. elif test $ac_cv_prog_cc_g = yes; then
  3138. if test "$GCC" = yes; then
  3139. CFLAGS="-g -O2"
  3140. else
  3141. CFLAGS="-g"
  3142. fi
  3143. else
  3144. if test "$GCC" = yes; then
  3145. CFLAGS="-O2"
  3146. else
  3147. CFLAGS=
  3148. fi
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3151. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3152. if ${ac_cv_prog_cc_c89+:} false; then :
  3153. $as_echo_n "(cached) " >&6
  3154. else
  3155. ac_cv_prog_cc_c89=no
  3156. ac_save_CC=$CC
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. #include <stdarg.h>
  3160. #include <stdio.h>
  3161. struct stat;
  3162. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3163. struct buf { int x; };
  3164. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3165. static char *e (p, i)
  3166. char **p;
  3167. int i;
  3168. {
  3169. return p[i];
  3170. }
  3171. static char *f (char * (*g) (char **, int), char **p, ...)
  3172. {
  3173. char *s;
  3174. va_list v;
  3175. va_start (v,p);
  3176. s = g (p, va_arg (v,int));
  3177. va_end (v);
  3178. return s;
  3179. }
  3180. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3181. function prototypes and stuff, but not '\xHH' hex character constants.
  3182. These don't provoke an error unfortunately, instead are silently treated
  3183. as 'x'. The following induces an error, until -std is added to get
  3184. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3185. array size at least. It's necessary to write '\x00'==0 to get something
  3186. that's true only with -std. */
  3187. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3188. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3189. inside strings and character constants. */
  3190. #define FOO(x) 'x'
  3191. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3192. int test (int i, double x);
  3193. struct s1 {int (*f) (int a);};
  3194. struct s2 {int (*f) (double a);};
  3195. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3196. int argc;
  3197. char **argv;
  3198. int
  3199. main ()
  3200. {
  3201. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3207. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3208. do
  3209. CC="$ac_save_CC $ac_arg"
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. ac_cv_prog_cc_c89=$ac_arg
  3212. fi
  3213. rm -f core conftest.err conftest.$ac_objext
  3214. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3215. done
  3216. rm -f conftest.$ac_ext
  3217. CC=$ac_save_CC
  3218. fi
  3219. # AC_CACHE_VAL
  3220. case "x$ac_cv_prog_cc_c89" in
  3221. x)
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3223. $as_echo "none needed" >&6; } ;;
  3224. xno)
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3226. $as_echo "unsupported" >&6; } ;;
  3227. *)
  3228. CC="$CC $ac_cv_prog_cc_c89"
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3230. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3231. esac
  3232. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3233. fi
  3234. ac_ext=c
  3235. ac_cpp='$CPP $CPPFLAGS'
  3236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3239. depcc="$CC" am_compiler_list=
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3241. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3242. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3246. # We make a subdir and do the tests there. Otherwise we can end up
  3247. # making bogus files that we don't know about and never remove. For
  3248. # instance it was reported that on HP-UX the gcc test will end up
  3249. # making a dummy file named 'D' -- because '-MD' means "put the output
  3250. # in D".
  3251. rm -rf conftest.dir
  3252. mkdir conftest.dir
  3253. # Copy depcomp to subdir because otherwise we won't find it if we're
  3254. # using a relative directory.
  3255. cp "$am_depcomp" conftest.dir
  3256. cd conftest.dir
  3257. # We will build objects and dependencies in a subdirectory because
  3258. # it helps to detect inapplicable dependency modes. For instance
  3259. # both Tru64's cc and ICC support -MD to output dependencies as a
  3260. # side effect of compilation, but ICC will put the dependencies in
  3261. # the current directory while Tru64 will put them in the object
  3262. # directory.
  3263. mkdir sub
  3264. am_cv_CC_dependencies_compiler_type=none
  3265. if test "$am_compiler_list" = ""; then
  3266. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3267. fi
  3268. am__universal=false
  3269. case " $depcc " in #(
  3270. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3271. esac
  3272. for depmode in $am_compiler_list; do
  3273. # Setup a source with many dependencies, because some compilers
  3274. # like to wrap large dependency lists on column 80 (with \), and
  3275. # we should not choose a depcomp mode which is confused by this.
  3276. #
  3277. # We need to recreate these files for each test, as the compiler may
  3278. # overwrite some of them when testing with obscure command lines.
  3279. # This happens at least with the AIX C compiler.
  3280. : > sub/conftest.c
  3281. for i in 1 2 3 4 5 6; do
  3282. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3283. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3284. # Solaris 10 /bin/sh.
  3285. echo '/* dummy */' > sub/conftst$i.h
  3286. done
  3287. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3288. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3289. # mode. It turns out that the SunPro C++ compiler does not properly
  3290. # handle '-M -o', and we need to detect this. Also, some Intel
  3291. # versions had trouble with output in subdirs.
  3292. am__obj=sub/conftest.${OBJEXT-o}
  3293. am__minus_obj="-o $am__obj"
  3294. case $depmode in
  3295. gcc)
  3296. # This depmode causes a compiler race in universal mode.
  3297. test "$am__universal" = false || continue
  3298. ;;
  3299. nosideeffect)
  3300. # After this tag, mechanisms are not by side-effect, so they'll
  3301. # only be used when explicitly requested.
  3302. if test "x$enable_dependency_tracking" = xyes; then
  3303. continue
  3304. else
  3305. break
  3306. fi
  3307. ;;
  3308. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3309. # This compiler won't grok '-c -o', but also, the minuso test has
  3310. # not run yet. These depmodes are late enough in the game, and
  3311. # so weak that their functioning should not be impacted.
  3312. am__obj=conftest.${OBJEXT-o}
  3313. am__minus_obj=
  3314. ;;
  3315. none) break ;;
  3316. esac
  3317. if depmode=$depmode \
  3318. source=sub/conftest.c object=$am__obj \
  3319. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3320. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3321. >/dev/null 2>conftest.err &&
  3322. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3323. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3324. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3325. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3326. # icc doesn't choke on unknown options, it will just issue warnings
  3327. # or remarks (even with -Werror). So we grep stderr for any message
  3328. # that says an option was ignored or not supported.
  3329. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3330. # icc: Command line warning: ignoring option '-M'; no argument required
  3331. # The diagnosis changed in icc 8.0:
  3332. # icc: Command line remark: option '-MP' not supported
  3333. if (grep 'ignoring option' conftest.err ||
  3334. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3335. am_cv_CC_dependencies_compiler_type=$depmode
  3336. break
  3337. fi
  3338. fi
  3339. done
  3340. cd ..
  3341. rm -rf conftest.dir
  3342. else
  3343. am_cv_CC_dependencies_compiler_type=none
  3344. fi
  3345. fi
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3347. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3348. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3349. if
  3350. test "x$enable_dependency_tracking" != xno \
  3351. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3352. am__fastdepCC_TRUE=
  3353. am__fastdepCC_FALSE='#'
  3354. else
  3355. am__fastdepCC_TRUE='#'
  3356. am__fastdepCC_FALSE=
  3357. fi
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3359. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3360. if ${ac_cv_prog_cc_c99+:} false; then :
  3361. $as_echo_n "(cached) " >&6
  3362. else
  3363. ac_cv_prog_cc_c99=no
  3364. ac_save_CC=$CC
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. #include <stdarg.h>
  3368. #include <stdbool.h>
  3369. #include <stdlib.h>
  3370. #include <wchar.h>
  3371. #include <stdio.h>
  3372. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3373. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3374. #define showlist(...) puts (#__VA_ARGS__)
  3375. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3376. static void
  3377. test_varargs_macros (void)
  3378. {
  3379. int x = 1234;
  3380. int y = 5678;
  3381. debug ("Flag");
  3382. debug ("X = %d\n", x);
  3383. showlist (The first, second, and third items.);
  3384. report (x>y, "x is %d but y is %d", x, y);
  3385. }
  3386. // Check long long types.
  3387. #define BIG64 18446744073709551615ull
  3388. #define BIG32 4294967295ul
  3389. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3390. #if !BIG_OK
  3391. your preprocessor is broken;
  3392. #endif
  3393. #if BIG_OK
  3394. #else
  3395. your preprocessor is broken;
  3396. #endif
  3397. static long long int bignum = -9223372036854775807LL;
  3398. static unsigned long long int ubignum = BIG64;
  3399. struct incomplete_array
  3400. {
  3401. int datasize;
  3402. double data[];
  3403. };
  3404. struct named_init {
  3405. int number;
  3406. const wchar_t *name;
  3407. double average;
  3408. };
  3409. typedef const char *ccp;
  3410. static inline int
  3411. test_restrict (ccp restrict text)
  3412. {
  3413. // See if C++-style comments work.
  3414. // Iterate through items via the restricted pointer.
  3415. // Also check for declarations in for loops.
  3416. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3417. continue;
  3418. return 0;
  3419. }
  3420. // Check varargs and va_copy.
  3421. static void
  3422. test_varargs (const char *format, ...)
  3423. {
  3424. va_list args;
  3425. va_start (args, format);
  3426. va_list args_copy;
  3427. va_copy (args_copy, args);
  3428. const char *str;
  3429. int number;
  3430. float fnumber;
  3431. while (*format)
  3432. {
  3433. switch (*format++)
  3434. {
  3435. case 's': // string
  3436. str = va_arg (args_copy, const char *);
  3437. break;
  3438. case 'd': // int
  3439. number = va_arg (args_copy, int);
  3440. break;
  3441. case 'f': // float
  3442. fnumber = va_arg (args_copy, double);
  3443. break;
  3444. default:
  3445. break;
  3446. }
  3447. }
  3448. va_end (args_copy);
  3449. va_end (args);
  3450. }
  3451. int
  3452. main ()
  3453. {
  3454. // Check bool.
  3455. _Bool success = false;
  3456. // Check restrict.
  3457. if (test_restrict ("String literal") == 0)
  3458. success = true;
  3459. char *restrict newvar = "Another string";
  3460. // Check varargs.
  3461. test_varargs ("s, d' f .", "string", 65, 34.234);
  3462. test_varargs_macros ();
  3463. // Check flexible array members.
  3464. struct incomplete_array *ia =
  3465. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3466. ia->datasize = 10;
  3467. for (int i = 0; i < ia->datasize; ++i)
  3468. ia->data[i] = i * 1.234;
  3469. // Check named initializers.
  3470. struct named_init ni = {
  3471. .number = 34,
  3472. .name = L"Test wide string",
  3473. .average = 543.34343,
  3474. };
  3475. ni.number = 58;
  3476. int dynamic_array[ni.number];
  3477. dynamic_array[ni.number - 1] = 543;
  3478. // work around unused variable warnings
  3479. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3480. || dynamic_array[ni.number - 1] != 543);
  3481. ;
  3482. return 0;
  3483. }
  3484. _ACEOF
  3485. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3486. do
  3487. CC="$ac_save_CC $ac_arg"
  3488. if ac_fn_c_try_compile "$LINENO"; then :
  3489. ac_cv_prog_cc_c99=$ac_arg
  3490. fi
  3491. rm -f core conftest.err conftest.$ac_objext
  3492. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3493. done
  3494. rm -f conftest.$ac_ext
  3495. CC=$ac_save_CC
  3496. fi
  3497. # AC_CACHE_VAL
  3498. case "x$ac_cv_prog_cc_c99" in
  3499. x)
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3501. $as_echo "none needed" >&6; } ;;
  3502. xno)
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3504. $as_echo "unsupported" >&6; } ;;
  3505. *)
  3506. CC="$CC $ac_cv_prog_cc_c99"
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3508. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3509. esac
  3510. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3511. fi
  3512. ac_ext=c
  3513. ac_cpp='$CPP $CPPFLAGS'
  3514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3518. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3519. # On Suns, sometimes $CPP names a directory.
  3520. if test -n "$CPP" && test -d "$CPP"; then
  3521. CPP=
  3522. fi
  3523. if test -z "$CPP"; then
  3524. if ${ac_cv_prog_CPP+:} false; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. # Double quotes because CPP needs to be expanded
  3528. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3529. do
  3530. ac_preproc_ok=false
  3531. for ac_c_preproc_warn_flag in '' yes
  3532. do
  3533. # Use a header file that comes with gcc, so configuring glibc
  3534. # with a fresh cross-compiler works.
  3535. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3536. # <limits.h> exists even on freestanding compilers.
  3537. # On the NeXT, cc -E runs the code through the compiler's parser,
  3538. # not just through cpp. "Syntax error" is here to catch this case.
  3539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. #ifdef __STDC__
  3542. # include <limits.h>
  3543. #else
  3544. # include <assert.h>
  3545. #endif
  3546. Syntax error
  3547. _ACEOF
  3548. if ac_fn_c_try_cpp "$LINENO"; then :
  3549. else
  3550. # Broken: fails on valid input.
  3551. continue
  3552. fi
  3553. rm -f conftest.err conftest.i conftest.$ac_ext
  3554. # OK, works on sane cases. Now check whether nonexistent headers
  3555. # can be detected and how.
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <ac_nonexistent.h>
  3559. _ACEOF
  3560. if ac_fn_c_try_cpp "$LINENO"; then :
  3561. # Broken: success on invalid input.
  3562. continue
  3563. else
  3564. # Passes both tests.
  3565. ac_preproc_ok=:
  3566. break
  3567. fi
  3568. rm -f conftest.err conftest.i conftest.$ac_ext
  3569. done
  3570. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3571. rm -f conftest.i conftest.err conftest.$ac_ext
  3572. if $ac_preproc_ok; then :
  3573. break
  3574. fi
  3575. done
  3576. ac_cv_prog_CPP=$CPP
  3577. fi
  3578. CPP=$ac_cv_prog_CPP
  3579. else
  3580. ac_cv_prog_CPP=$CPP
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3583. $as_echo "$CPP" >&6; }
  3584. ac_preproc_ok=false
  3585. for ac_c_preproc_warn_flag in '' yes
  3586. do
  3587. # Use a header file that comes with gcc, so configuring glibc
  3588. # with a fresh cross-compiler works.
  3589. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3590. # <limits.h> exists even on freestanding compilers.
  3591. # On the NeXT, cc -E runs the code through the compiler's parser,
  3592. # not just through cpp. "Syntax error" is here to catch this case.
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. #ifdef __STDC__
  3596. # include <limits.h>
  3597. #else
  3598. # include <assert.h>
  3599. #endif
  3600. Syntax error
  3601. _ACEOF
  3602. if ac_fn_c_try_cpp "$LINENO"; then :
  3603. else
  3604. # Broken: fails on valid input.
  3605. continue
  3606. fi
  3607. rm -f conftest.err conftest.i conftest.$ac_ext
  3608. # OK, works on sane cases. Now check whether nonexistent headers
  3609. # can be detected and how.
  3610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end confdefs.h. */
  3612. #include <ac_nonexistent.h>
  3613. _ACEOF
  3614. if ac_fn_c_try_cpp "$LINENO"; then :
  3615. # Broken: success on invalid input.
  3616. continue
  3617. else
  3618. # Passes both tests.
  3619. ac_preproc_ok=:
  3620. break
  3621. fi
  3622. rm -f conftest.err conftest.i conftest.$ac_ext
  3623. done
  3624. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3625. rm -f conftest.i conftest.err conftest.$ac_ext
  3626. if $ac_preproc_ok; then :
  3627. else
  3628. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3629. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3630. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3631. See \`config.log' for more details" "$LINENO" 5; }
  3632. fi
  3633. ac_ext=c
  3634. ac_cpp='$CPP $CPPFLAGS'
  3635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3639. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3640. if ${ac_cv_path_GREP+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. if test -z "$GREP"; then
  3644. ac_path_GREP_found=false
  3645. # Loop through the user's path and test for each of PROGNAME-LIST
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3648. do
  3649. IFS=$as_save_IFS
  3650. test -z "$as_dir" && as_dir=.
  3651. for ac_prog in grep ggrep; do
  3652. for ac_exec_ext in '' $ac_executable_extensions; do
  3653. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3654. as_fn_executable_p "$ac_path_GREP" || continue
  3655. # Check for GNU ac_path_GREP and select it if it is found.
  3656. # Check for GNU $ac_path_GREP
  3657. case `"$ac_path_GREP" --version 2>&1` in
  3658. *GNU*)
  3659. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3660. *)
  3661. ac_count=0
  3662. $as_echo_n 0123456789 >"conftest.in"
  3663. while :
  3664. do
  3665. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3666. mv "conftest.tmp" "conftest.in"
  3667. cp "conftest.in" "conftest.nl"
  3668. $as_echo 'GREP' >> "conftest.nl"
  3669. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3670. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3671. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3672. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3673. # Best one so far, save it but keep looking for a better one
  3674. ac_cv_path_GREP="$ac_path_GREP"
  3675. ac_path_GREP_max=$ac_count
  3676. fi
  3677. # 10*(2^10) chars as input seems more than enough
  3678. test $ac_count -gt 10 && break
  3679. done
  3680. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3681. esac
  3682. $ac_path_GREP_found && break 3
  3683. done
  3684. done
  3685. done
  3686. IFS=$as_save_IFS
  3687. if test -z "$ac_cv_path_GREP"; then
  3688. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3689. fi
  3690. else
  3691. ac_cv_path_GREP=$GREP
  3692. fi
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3695. $as_echo "$ac_cv_path_GREP" >&6; }
  3696. GREP="$ac_cv_path_GREP"
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3698. $as_echo_n "checking for egrep... " >&6; }
  3699. if ${ac_cv_path_EGREP+:} false; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3703. then ac_cv_path_EGREP="$GREP -E"
  3704. else
  3705. if test -z "$EGREP"; then
  3706. ac_path_EGREP_found=false
  3707. # Loop through the user's path and test for each of PROGNAME-LIST
  3708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3709. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3710. do
  3711. IFS=$as_save_IFS
  3712. test -z "$as_dir" && as_dir=.
  3713. for ac_prog in egrep; do
  3714. for ac_exec_ext in '' $ac_executable_extensions; do
  3715. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3716. as_fn_executable_p "$ac_path_EGREP" || continue
  3717. # Check for GNU ac_path_EGREP and select it if it is found.
  3718. # Check for GNU $ac_path_EGREP
  3719. case `"$ac_path_EGREP" --version 2>&1` in
  3720. *GNU*)
  3721. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3722. *)
  3723. ac_count=0
  3724. $as_echo_n 0123456789 >"conftest.in"
  3725. while :
  3726. do
  3727. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3728. mv "conftest.tmp" "conftest.in"
  3729. cp "conftest.in" "conftest.nl"
  3730. $as_echo 'EGREP' >> "conftest.nl"
  3731. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3732. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3733. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3734. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3735. # Best one so far, save it but keep looking for a better one
  3736. ac_cv_path_EGREP="$ac_path_EGREP"
  3737. ac_path_EGREP_max=$ac_count
  3738. fi
  3739. # 10*(2^10) chars as input seems more than enough
  3740. test $ac_count -gt 10 && break
  3741. done
  3742. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3743. esac
  3744. $ac_path_EGREP_found && break 3
  3745. done
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. if test -z "$ac_cv_path_EGREP"; then
  3750. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3751. fi
  3752. else
  3753. ac_cv_path_EGREP=$EGREP
  3754. fi
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3758. $as_echo "$ac_cv_path_EGREP" >&6; }
  3759. EGREP="$ac_cv_path_EGREP"
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3761. $as_echo_n "checking for ANSI C header files... " >&6; }
  3762. if ${ac_cv_header_stdc+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3766. /* end confdefs.h. */
  3767. #include <stdlib.h>
  3768. #include <stdarg.h>
  3769. #include <string.h>
  3770. #include <float.h>
  3771. int
  3772. main ()
  3773. {
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. if ac_fn_c_try_compile "$LINENO"; then :
  3779. ac_cv_header_stdc=yes
  3780. else
  3781. ac_cv_header_stdc=no
  3782. fi
  3783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3784. if test $ac_cv_header_stdc = yes; then
  3785. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end confdefs.h. */
  3788. #include <string.h>
  3789. _ACEOF
  3790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3791. $EGREP "memchr" >/dev/null 2>&1; then :
  3792. else
  3793. ac_cv_header_stdc=no
  3794. fi
  3795. rm -f conftest*
  3796. fi
  3797. if test $ac_cv_header_stdc = yes; then
  3798. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3800. /* end confdefs.h. */
  3801. #include <stdlib.h>
  3802. _ACEOF
  3803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3804. $EGREP "free" >/dev/null 2>&1; then :
  3805. else
  3806. ac_cv_header_stdc=no
  3807. fi
  3808. rm -f conftest*
  3809. fi
  3810. if test $ac_cv_header_stdc = yes; then
  3811. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3812. if test "$cross_compiling" = yes; then :
  3813. :
  3814. else
  3815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3816. /* end confdefs.h. */
  3817. #include <ctype.h>
  3818. #include <stdlib.h>
  3819. #if ((' ' & 0x0FF) == 0x020)
  3820. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3821. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3822. #else
  3823. # define ISLOWER(c) \
  3824. (('a' <= (c) && (c) <= 'i') \
  3825. || ('j' <= (c) && (c) <= 'r') \
  3826. || ('s' <= (c) && (c) <= 'z'))
  3827. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3828. #endif
  3829. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3830. int
  3831. main ()
  3832. {
  3833. int i;
  3834. for (i = 0; i < 256; i++)
  3835. if (XOR (islower (i), ISLOWER (i))
  3836. || toupper (i) != TOUPPER (i))
  3837. return 2;
  3838. return 0;
  3839. }
  3840. _ACEOF
  3841. if ac_fn_c_try_run "$LINENO"; then :
  3842. else
  3843. ac_cv_header_stdc=no
  3844. fi
  3845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3847. fi
  3848. fi
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3851. $as_echo "$ac_cv_header_stdc" >&6; }
  3852. if test $ac_cv_header_stdc = yes; then
  3853. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3854. fi
  3855. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3856. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3857. inttypes.h stdint.h unistd.h
  3858. do :
  3859. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3860. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3861. "
  3862. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3863. cat >>confdefs.h <<_ACEOF
  3864. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3865. _ACEOF
  3866. fi
  3867. done
  3868. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3869. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3870. CLANGCC="yes"
  3871. else
  3872. CLANGCC="no"
  3873. fi
  3874. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3875. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3876. INTELCC="yes"
  3877. else
  3878. INTELCC="no"
  3879. fi
  3880. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3881. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3882. SUNCC="yes"
  3883. else
  3884. SUNCC="no"
  3885. fi
  3886. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3887. if test -n "$ac_tool_prefix"; then
  3888. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3889. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3891. $as_echo_n "checking for $ac_word... " >&6; }
  3892. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. case $PKG_CONFIG in
  3896. [\\/]* | ?:[\\/]*)
  3897. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3898. ;;
  3899. *)
  3900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in $PATH
  3902. do
  3903. IFS=$as_save_IFS
  3904. test -z "$as_dir" && as_dir=.
  3905. for ac_exec_ext in '' $ac_executable_extensions; do
  3906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3907. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3909. break 2
  3910. fi
  3911. done
  3912. done
  3913. IFS=$as_save_IFS
  3914. ;;
  3915. esac
  3916. fi
  3917. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3918. if test -n "$PKG_CONFIG"; then
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3920. $as_echo "$PKG_CONFIG" >&6; }
  3921. else
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3923. $as_echo "no" >&6; }
  3924. fi
  3925. fi
  3926. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3927. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3928. # Extract the first word of "pkg-config", so it can be a program name with args.
  3929. set dummy pkg-config; ac_word=$2
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3931. $as_echo_n "checking for $ac_word... " >&6; }
  3932. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3933. $as_echo_n "(cached) " >&6
  3934. else
  3935. case $ac_pt_PKG_CONFIG in
  3936. [\\/]* | ?:[\\/]*)
  3937. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3938. ;;
  3939. *)
  3940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3941. for as_dir in $PATH
  3942. do
  3943. IFS=$as_save_IFS
  3944. test -z "$as_dir" && as_dir=.
  3945. for ac_exec_ext in '' $ac_executable_extensions; do
  3946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3947. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3949. break 2
  3950. fi
  3951. done
  3952. done
  3953. IFS=$as_save_IFS
  3954. ;;
  3955. esac
  3956. fi
  3957. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3958. if test -n "$ac_pt_PKG_CONFIG"; then
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3960. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3961. else
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3963. $as_echo "no" >&6; }
  3964. fi
  3965. if test "x$ac_pt_PKG_CONFIG" = x; then
  3966. PKG_CONFIG=""
  3967. else
  3968. case $cross_compiling:$ac_tool_warned in
  3969. yes:)
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3972. ac_tool_warned=yes ;;
  3973. esac
  3974. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3975. fi
  3976. else
  3977. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3978. fi
  3979. fi
  3980. if test -n "$PKG_CONFIG"; then
  3981. _pkg_min_version=0.9.0
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3983. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3984. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3986. $as_echo "yes" >&6; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3989. $as_echo "no" >&6; }
  3990. PKG_CONFIG=""
  3991. fi
  3992. fi
  3993. # Make sure we can run config.sub.
  3994. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3995. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3997. $as_echo_n "checking build system type... " >&6; }
  3998. if ${ac_cv_build+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. ac_build_alias=$build_alias
  4002. test "x$ac_build_alias" = x &&
  4003. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4004. test "x$ac_build_alias" = x &&
  4005. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4006. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4007. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4010. $as_echo "$ac_cv_build" >&6; }
  4011. case $ac_cv_build in
  4012. *-*-*) ;;
  4013. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4014. esac
  4015. build=$ac_cv_build
  4016. ac_save_IFS=$IFS; IFS='-'
  4017. set x $ac_cv_build
  4018. shift
  4019. build_cpu=$1
  4020. build_vendor=$2
  4021. shift; shift
  4022. # Remember, the first character of IFS is used to create $*,
  4023. # except with old shells:
  4024. build_os=$*
  4025. IFS=$ac_save_IFS
  4026. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4028. $as_echo_n "checking host system type... " >&6; }
  4029. if ${ac_cv_host+:} false; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. if test "x$host_alias" = x; then
  4033. ac_cv_host=$ac_cv_build
  4034. else
  4035. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4036. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4037. fi
  4038. fi
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4040. $as_echo "$ac_cv_host" >&6; }
  4041. case $ac_cv_host in
  4042. *-*-*) ;;
  4043. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4044. esac
  4045. host=$ac_cv_host
  4046. ac_save_IFS=$IFS; IFS='-'
  4047. set x $ac_cv_host
  4048. shift
  4049. host_cpu=$1
  4050. host_vendor=$2
  4051. shift; shift
  4052. # Remember, the first character of IFS is used to create $*,
  4053. # except with old shells:
  4054. host_os=$*
  4055. IFS=$ac_save_IFS
  4056. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4058. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4059. if ${ac_cv_path_SED+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4063. for ac_i in 1 2 3 4 5 6 7; do
  4064. ac_script="$ac_script$as_nl$ac_script"
  4065. done
  4066. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4067. { ac_script=; unset ac_script;}
  4068. if test -z "$SED"; then
  4069. ac_path_SED_found=false
  4070. # Loop through the user's path and test for each of PROGNAME-LIST
  4071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4072. for as_dir in $PATH
  4073. do
  4074. IFS=$as_save_IFS
  4075. test -z "$as_dir" && as_dir=.
  4076. for ac_prog in sed gsed; do
  4077. for ac_exec_ext in '' $ac_executable_extensions; do
  4078. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4079. as_fn_executable_p "$ac_path_SED" || continue
  4080. # Check for GNU ac_path_SED and select it if it is found.
  4081. # Check for GNU $ac_path_SED
  4082. case `"$ac_path_SED" --version 2>&1` in
  4083. *GNU*)
  4084. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4085. *)
  4086. ac_count=0
  4087. $as_echo_n 0123456789 >"conftest.in"
  4088. while :
  4089. do
  4090. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4091. mv "conftest.tmp" "conftest.in"
  4092. cp "conftest.in" "conftest.nl"
  4093. $as_echo '' >> "conftest.nl"
  4094. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4095. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4096. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4097. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4098. # Best one so far, save it but keep looking for a better one
  4099. ac_cv_path_SED="$ac_path_SED"
  4100. ac_path_SED_max=$ac_count
  4101. fi
  4102. # 10*(2^10) chars as input seems more than enough
  4103. test $ac_count -gt 10 && break
  4104. done
  4105. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4106. esac
  4107. $ac_path_SED_found && break 3
  4108. done
  4109. done
  4110. done
  4111. IFS=$as_save_IFS
  4112. if test -z "$ac_cv_path_SED"; then
  4113. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4114. fi
  4115. else
  4116. ac_cv_path_SED=$SED
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4120. $as_echo "$ac_cv_path_SED" >&6; }
  4121. SED="$ac_cv_path_SED"
  4122. rm -f conftest.sed
  4123. # Check whether --enable-selective-werror was given.
  4124. if test "${enable_selective_werror+set}" = set; then :
  4125. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4126. else
  4127. SELECTIVE_WERROR=yes
  4128. fi
  4129. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4130. if test "x$SUNCC" = "xyes"; then
  4131. BASE_CFLAGS="-v"
  4132. else
  4133. BASE_CFLAGS=""
  4134. fi
  4135. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4136. xorg_testset_save_CFLAGS="$CFLAGS"
  4137. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4138. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4140. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4141. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4142. $as_echo_n "(cached) " >&6
  4143. else
  4144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4145. /* end confdefs.h. */
  4146. int i;
  4147. _ACEOF
  4148. if ac_fn_c_try_compile "$LINENO"; then :
  4149. xorg_cv_cc_flag_unknown_warning_option=yes
  4150. else
  4151. xorg_cv_cc_flag_unknown_warning_option=no
  4152. fi
  4153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4156. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4157. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4158. CFLAGS="$xorg_testset_save_CFLAGS"
  4159. fi
  4160. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4161. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4162. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4163. fi
  4164. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4166. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4167. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. int i;
  4173. _ACEOF
  4174. if ac_fn_c_try_compile "$LINENO"; then :
  4175. xorg_cv_cc_flag_unused_command_line_argument=yes
  4176. else
  4177. xorg_cv_cc_flag_unused_command_line_argument=no
  4178. fi
  4179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4182. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4183. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4184. CFLAGS="$xorg_testset_save_CFLAGS"
  4185. fi
  4186. found="no"
  4187. if test $found = "no" ; then
  4188. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4189. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4190. fi
  4191. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4192. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4193. fi
  4194. CFLAGS="$CFLAGS -Wall"
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4196. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4197. cacheid=xorg_cv_cc_flag__Wall
  4198. if eval \${$cacheid+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4202. /* end confdefs.h. */
  4203. int i;
  4204. int
  4205. main ()
  4206. {
  4207. ;
  4208. return 0;
  4209. }
  4210. _ACEOF
  4211. if ac_fn_c_try_link "$LINENO"; then :
  4212. eval $cacheid=yes
  4213. else
  4214. eval $cacheid=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext \
  4217. conftest$ac_exeext conftest.$ac_ext
  4218. fi
  4219. CFLAGS="$xorg_testset_save_CFLAGS"
  4220. eval supported=\$$cacheid
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4222. $as_echo "$supported" >&6; }
  4223. if test "$supported" = "yes" ; then
  4224. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4225. found="yes"
  4226. fi
  4227. fi
  4228. xorg_testset_save_CFLAGS="$CFLAGS"
  4229. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4230. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4232. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4233. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4237. /* end confdefs.h. */
  4238. int i;
  4239. _ACEOF
  4240. if ac_fn_c_try_compile "$LINENO"; then :
  4241. xorg_cv_cc_flag_unknown_warning_option=yes
  4242. else
  4243. xorg_cv_cc_flag_unknown_warning_option=no
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4248. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4249. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4250. CFLAGS="$xorg_testset_save_CFLAGS"
  4251. fi
  4252. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4253. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4254. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4255. fi
  4256. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4258. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4259. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. int i;
  4265. _ACEOF
  4266. if ac_fn_c_try_compile "$LINENO"; then :
  4267. xorg_cv_cc_flag_unused_command_line_argument=yes
  4268. else
  4269. xorg_cv_cc_flag_unused_command_line_argument=no
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4274. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4275. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4276. CFLAGS="$xorg_testset_save_CFLAGS"
  4277. fi
  4278. found="no"
  4279. if test $found = "no" ; then
  4280. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4281. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4282. fi
  4283. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4284. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4285. fi
  4286. CFLAGS="$CFLAGS -Wpointer-arith"
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4288. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4289. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4290. if eval \${$cacheid+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. int i;
  4296. int
  4297. main ()
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_link "$LINENO"; then :
  4304. eval $cacheid=yes
  4305. else
  4306. eval $cacheid=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext \
  4309. conftest$ac_exeext conftest.$ac_ext
  4310. fi
  4311. CFLAGS="$xorg_testset_save_CFLAGS"
  4312. eval supported=\$$cacheid
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4314. $as_echo "$supported" >&6; }
  4315. if test "$supported" = "yes" ; then
  4316. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4317. found="yes"
  4318. fi
  4319. fi
  4320. xorg_testset_save_CFLAGS="$CFLAGS"
  4321. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4322. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4324. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4325. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4329. /* end confdefs.h. */
  4330. int i;
  4331. _ACEOF
  4332. if ac_fn_c_try_compile "$LINENO"; then :
  4333. xorg_cv_cc_flag_unknown_warning_option=yes
  4334. else
  4335. xorg_cv_cc_flag_unknown_warning_option=no
  4336. fi
  4337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4338. fi
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4340. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4341. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4342. CFLAGS="$xorg_testset_save_CFLAGS"
  4343. fi
  4344. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4345. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4346. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4347. fi
  4348. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4350. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4351. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int i;
  4357. _ACEOF
  4358. if ac_fn_c_try_compile "$LINENO"; then :
  4359. xorg_cv_cc_flag_unused_command_line_argument=yes
  4360. else
  4361. xorg_cv_cc_flag_unused_command_line_argument=no
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4366. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4367. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4368. CFLAGS="$xorg_testset_save_CFLAGS"
  4369. fi
  4370. found="no"
  4371. if test $found = "no" ; then
  4372. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4373. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4374. fi
  4375. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4376. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4377. fi
  4378. CFLAGS="$CFLAGS -Wmissing-declarations"
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4380. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4381. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4382. if eval \${$cacheid+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4386. /* end confdefs.h. */
  4387. int i;
  4388. int
  4389. main ()
  4390. {
  4391. ;
  4392. return 0;
  4393. }
  4394. _ACEOF
  4395. if ac_fn_c_try_link "$LINENO"; then :
  4396. eval $cacheid=yes
  4397. else
  4398. eval $cacheid=no
  4399. fi
  4400. rm -f core conftest.err conftest.$ac_objext \
  4401. conftest$ac_exeext conftest.$ac_ext
  4402. fi
  4403. CFLAGS="$xorg_testset_save_CFLAGS"
  4404. eval supported=\$$cacheid
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4406. $as_echo "$supported" >&6; }
  4407. if test "$supported" = "yes" ; then
  4408. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4409. found="yes"
  4410. fi
  4411. fi
  4412. xorg_testset_save_CFLAGS="$CFLAGS"
  4413. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4414. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4416. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4417. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4421. /* end confdefs.h. */
  4422. int i;
  4423. _ACEOF
  4424. if ac_fn_c_try_compile "$LINENO"; then :
  4425. xorg_cv_cc_flag_unknown_warning_option=yes
  4426. else
  4427. xorg_cv_cc_flag_unknown_warning_option=no
  4428. fi
  4429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4430. fi
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4432. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4433. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4434. CFLAGS="$xorg_testset_save_CFLAGS"
  4435. fi
  4436. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4437. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4438. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4439. fi
  4440. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4442. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4443. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4447. /* end confdefs.h. */
  4448. int i;
  4449. _ACEOF
  4450. if ac_fn_c_try_compile "$LINENO"; then :
  4451. xorg_cv_cc_flag_unused_command_line_argument=yes
  4452. else
  4453. xorg_cv_cc_flag_unused_command_line_argument=no
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456. fi
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4458. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4459. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4460. CFLAGS="$xorg_testset_save_CFLAGS"
  4461. fi
  4462. found="no"
  4463. if test $found = "no" ; then
  4464. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4465. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4466. fi
  4467. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4468. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4469. fi
  4470. CFLAGS="$CFLAGS -Wformat=2"
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4472. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4473. cacheid=xorg_cv_cc_flag__Wformat_2
  4474. if eval \${$cacheid+:} false; then :
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4478. /* end confdefs.h. */
  4479. int i;
  4480. int
  4481. main ()
  4482. {
  4483. ;
  4484. return 0;
  4485. }
  4486. _ACEOF
  4487. if ac_fn_c_try_link "$LINENO"; then :
  4488. eval $cacheid=yes
  4489. else
  4490. eval $cacheid=no
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext \
  4493. conftest$ac_exeext conftest.$ac_ext
  4494. fi
  4495. CFLAGS="$xorg_testset_save_CFLAGS"
  4496. eval supported=\$$cacheid
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4498. $as_echo "$supported" >&6; }
  4499. if test "$supported" = "yes" ; then
  4500. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4501. found="yes"
  4502. fi
  4503. fi
  4504. if test $found = "no" ; then
  4505. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4506. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4507. fi
  4508. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4509. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4510. fi
  4511. CFLAGS="$CFLAGS -Wformat"
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4513. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4514. cacheid=xorg_cv_cc_flag__Wformat
  4515. if eval \${$cacheid+:} false; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4519. /* end confdefs.h. */
  4520. int i;
  4521. int
  4522. main ()
  4523. {
  4524. ;
  4525. return 0;
  4526. }
  4527. _ACEOF
  4528. if ac_fn_c_try_link "$LINENO"; then :
  4529. eval $cacheid=yes
  4530. else
  4531. eval $cacheid=no
  4532. fi
  4533. rm -f core conftest.err conftest.$ac_objext \
  4534. conftest$ac_exeext conftest.$ac_ext
  4535. fi
  4536. CFLAGS="$xorg_testset_save_CFLAGS"
  4537. eval supported=\$$cacheid
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4539. $as_echo "$supported" >&6; }
  4540. if test "$supported" = "yes" ; then
  4541. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4542. found="yes"
  4543. fi
  4544. fi
  4545. xorg_testset_save_CFLAGS="$CFLAGS"
  4546. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4547. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4549. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4550. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. int i;
  4556. _ACEOF
  4557. if ac_fn_c_try_compile "$LINENO"; then :
  4558. xorg_cv_cc_flag_unknown_warning_option=yes
  4559. else
  4560. xorg_cv_cc_flag_unknown_warning_option=no
  4561. fi
  4562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4563. fi
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4565. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4566. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4567. CFLAGS="$xorg_testset_save_CFLAGS"
  4568. fi
  4569. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4570. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4571. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4572. fi
  4573. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4575. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4576. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4577. $as_echo_n "(cached) " >&6
  4578. else
  4579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end confdefs.h. */
  4581. int i;
  4582. _ACEOF
  4583. if ac_fn_c_try_compile "$LINENO"; then :
  4584. xorg_cv_cc_flag_unused_command_line_argument=yes
  4585. else
  4586. xorg_cv_cc_flag_unused_command_line_argument=no
  4587. fi
  4588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4589. fi
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4591. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4592. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4593. CFLAGS="$xorg_testset_save_CFLAGS"
  4594. fi
  4595. found="no"
  4596. if test $found = "no" ; then
  4597. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4598. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4599. fi
  4600. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4601. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4602. fi
  4603. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4605. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4606. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4607. if eval \${$cacheid+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end confdefs.h. */
  4612. int i;
  4613. int
  4614. main ()
  4615. {
  4616. ;
  4617. return 0;
  4618. }
  4619. _ACEOF
  4620. if ac_fn_c_try_link "$LINENO"; then :
  4621. eval $cacheid=yes
  4622. else
  4623. eval $cacheid=no
  4624. fi
  4625. rm -f core conftest.err conftest.$ac_objext \
  4626. conftest$ac_exeext conftest.$ac_ext
  4627. fi
  4628. CFLAGS="$xorg_testset_save_CFLAGS"
  4629. eval supported=\$$cacheid
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4631. $as_echo "$supported" >&6; }
  4632. if test "$supported" = "yes" ; then
  4633. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4634. found="yes"
  4635. fi
  4636. fi
  4637. xorg_testset_save_CFLAGS="$CFLAGS"
  4638. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4641. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4642. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h. */
  4647. int i;
  4648. _ACEOF
  4649. if ac_fn_c_try_compile "$LINENO"; then :
  4650. xorg_cv_cc_flag_unknown_warning_option=yes
  4651. else
  4652. xorg_cv_cc_flag_unknown_warning_option=no
  4653. fi
  4654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4657. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4658. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4659. CFLAGS="$xorg_testset_save_CFLAGS"
  4660. fi
  4661. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4662. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4663. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4664. fi
  4665. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4667. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4668. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4669. $as_echo_n "(cached) " >&6
  4670. else
  4671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4672. /* end confdefs.h. */
  4673. int i;
  4674. _ACEOF
  4675. if ac_fn_c_try_compile "$LINENO"; then :
  4676. xorg_cv_cc_flag_unused_command_line_argument=yes
  4677. else
  4678. xorg_cv_cc_flag_unused_command_line_argument=no
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4683. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4684. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4685. CFLAGS="$xorg_testset_save_CFLAGS"
  4686. fi
  4687. found="no"
  4688. if test $found = "no" ; then
  4689. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4690. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4691. fi
  4692. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4693. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4694. fi
  4695. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4697. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4698. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4699. if eval \${$cacheid+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4703. /* end confdefs.h. */
  4704. int i;
  4705. int
  4706. main ()
  4707. {
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. if ac_fn_c_try_link "$LINENO"; then :
  4713. eval $cacheid=yes
  4714. else
  4715. eval $cacheid=no
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext \
  4718. conftest$ac_exeext conftest.$ac_ext
  4719. fi
  4720. CFLAGS="$xorg_testset_save_CFLAGS"
  4721. eval supported=\$$cacheid
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4723. $as_echo "$supported" >&6; }
  4724. if test "$supported" = "yes" ; then
  4725. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4726. found="yes"
  4727. fi
  4728. fi
  4729. xorg_testset_save_CFLAGS="$CFLAGS"
  4730. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4731. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4733. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4734. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4735. $as_echo_n "(cached) " >&6
  4736. else
  4737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4738. /* end confdefs.h. */
  4739. int i;
  4740. _ACEOF
  4741. if ac_fn_c_try_compile "$LINENO"; then :
  4742. xorg_cv_cc_flag_unknown_warning_option=yes
  4743. else
  4744. xorg_cv_cc_flag_unknown_warning_option=no
  4745. fi
  4746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4747. fi
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4749. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4750. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4751. CFLAGS="$xorg_testset_save_CFLAGS"
  4752. fi
  4753. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4754. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4755. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4756. fi
  4757. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4759. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4760. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. int i;
  4766. _ACEOF
  4767. if ac_fn_c_try_compile "$LINENO"; then :
  4768. xorg_cv_cc_flag_unused_command_line_argument=yes
  4769. else
  4770. xorg_cv_cc_flag_unused_command_line_argument=no
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4775. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4776. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4777. CFLAGS="$xorg_testset_save_CFLAGS"
  4778. fi
  4779. found="no"
  4780. if test $found = "no" ; then
  4781. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4782. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4783. fi
  4784. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4785. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4786. fi
  4787. CFLAGS="$CFLAGS -Wnested-externs"
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4789. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4790. cacheid=xorg_cv_cc_flag__Wnested_externs
  4791. if eval \${$cacheid+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4795. /* end confdefs.h. */
  4796. int i;
  4797. int
  4798. main ()
  4799. {
  4800. ;
  4801. return 0;
  4802. }
  4803. _ACEOF
  4804. if ac_fn_c_try_link "$LINENO"; then :
  4805. eval $cacheid=yes
  4806. else
  4807. eval $cacheid=no
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext \
  4810. conftest$ac_exeext conftest.$ac_ext
  4811. fi
  4812. CFLAGS="$xorg_testset_save_CFLAGS"
  4813. eval supported=\$$cacheid
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4815. $as_echo "$supported" >&6; }
  4816. if test "$supported" = "yes" ; then
  4817. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4818. found="yes"
  4819. fi
  4820. fi
  4821. xorg_testset_save_CFLAGS="$CFLAGS"
  4822. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4823. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4825. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4826. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4827. $as_echo_n "(cached) " >&6
  4828. else
  4829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4830. /* end confdefs.h. */
  4831. int i;
  4832. _ACEOF
  4833. if ac_fn_c_try_compile "$LINENO"; then :
  4834. xorg_cv_cc_flag_unknown_warning_option=yes
  4835. else
  4836. xorg_cv_cc_flag_unknown_warning_option=no
  4837. fi
  4838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4839. fi
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4841. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4842. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4843. CFLAGS="$xorg_testset_save_CFLAGS"
  4844. fi
  4845. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4846. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4847. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4848. fi
  4849. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4851. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4852. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4856. /* end confdefs.h. */
  4857. int i;
  4858. _ACEOF
  4859. if ac_fn_c_try_compile "$LINENO"; then :
  4860. xorg_cv_cc_flag_unused_command_line_argument=yes
  4861. else
  4862. xorg_cv_cc_flag_unused_command_line_argument=no
  4863. fi
  4864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4867. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4868. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4869. CFLAGS="$xorg_testset_save_CFLAGS"
  4870. fi
  4871. found="no"
  4872. if test $found = "no" ; then
  4873. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4874. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4875. fi
  4876. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4877. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4878. fi
  4879. CFLAGS="$CFLAGS -Wbad-function-cast"
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4881. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4882. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4883. if eval \${$cacheid+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4887. /* end confdefs.h. */
  4888. int i;
  4889. int
  4890. main ()
  4891. {
  4892. ;
  4893. return 0;
  4894. }
  4895. _ACEOF
  4896. if ac_fn_c_try_link "$LINENO"; then :
  4897. eval $cacheid=yes
  4898. else
  4899. eval $cacheid=no
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext \
  4902. conftest$ac_exeext conftest.$ac_ext
  4903. fi
  4904. CFLAGS="$xorg_testset_save_CFLAGS"
  4905. eval supported=\$$cacheid
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4907. $as_echo "$supported" >&6; }
  4908. if test "$supported" = "yes" ; then
  4909. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4910. found="yes"
  4911. fi
  4912. fi
  4913. xorg_testset_save_CFLAGS="$CFLAGS"
  4914. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4915. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4917. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4918. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4922. /* end confdefs.h. */
  4923. int i;
  4924. _ACEOF
  4925. if ac_fn_c_try_compile "$LINENO"; then :
  4926. xorg_cv_cc_flag_unknown_warning_option=yes
  4927. else
  4928. xorg_cv_cc_flag_unknown_warning_option=no
  4929. fi
  4930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4933. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4934. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4935. CFLAGS="$xorg_testset_save_CFLAGS"
  4936. fi
  4937. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4938. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4939. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4940. fi
  4941. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4943. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4944. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4948. /* end confdefs.h. */
  4949. int i;
  4950. _ACEOF
  4951. if ac_fn_c_try_compile "$LINENO"; then :
  4952. xorg_cv_cc_flag_unused_command_line_argument=yes
  4953. else
  4954. xorg_cv_cc_flag_unused_command_line_argument=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. fi
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4959. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4960. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4961. CFLAGS="$xorg_testset_save_CFLAGS"
  4962. fi
  4963. found="no"
  4964. if test $found = "no" ; then
  4965. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4966. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4967. fi
  4968. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4969. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4970. fi
  4971. CFLAGS="$CFLAGS -Wold-style-definition"
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4973. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4974. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4975. if eval \${$cacheid+:} false; then :
  4976. $as_echo_n "(cached) " >&6
  4977. else
  4978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4979. /* end confdefs.h. */
  4980. int i;
  4981. int
  4982. main ()
  4983. {
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. if ac_fn_c_try_link "$LINENO"; then :
  4989. eval $cacheid=yes
  4990. else
  4991. eval $cacheid=no
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext \
  4994. conftest$ac_exeext conftest.$ac_ext
  4995. fi
  4996. CFLAGS="$xorg_testset_save_CFLAGS"
  4997. eval supported=\$$cacheid
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4999. $as_echo "$supported" >&6; }
  5000. if test "$supported" = "yes" ; then
  5001. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5002. found="yes"
  5003. fi
  5004. fi
  5005. if test $found = "no" ; then
  5006. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5007. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5008. fi
  5009. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5010. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5011. fi
  5012. CFLAGS="$CFLAGS -fd"
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5014. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5015. cacheid=xorg_cv_cc_flag__fd
  5016. if eval \${$cacheid+:} false; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5020. /* end confdefs.h. */
  5021. int i;
  5022. int
  5023. main ()
  5024. {
  5025. ;
  5026. return 0;
  5027. }
  5028. _ACEOF
  5029. if ac_fn_c_try_link "$LINENO"; then :
  5030. eval $cacheid=yes
  5031. else
  5032. eval $cacheid=no
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext \
  5035. conftest$ac_exeext conftest.$ac_ext
  5036. fi
  5037. CFLAGS="$xorg_testset_save_CFLAGS"
  5038. eval supported=\$$cacheid
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5040. $as_echo "$supported" >&6; }
  5041. if test "$supported" = "yes" ; then
  5042. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5043. found="yes"
  5044. fi
  5045. fi
  5046. xorg_testset_save_CFLAGS="$CFLAGS"
  5047. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5048. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5050. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5051. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5052. $as_echo_n "(cached) " >&6
  5053. else
  5054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5055. /* end confdefs.h. */
  5056. int i;
  5057. _ACEOF
  5058. if ac_fn_c_try_compile "$LINENO"; then :
  5059. xorg_cv_cc_flag_unknown_warning_option=yes
  5060. else
  5061. xorg_cv_cc_flag_unknown_warning_option=no
  5062. fi
  5063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. fi
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5066. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5067. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5068. CFLAGS="$xorg_testset_save_CFLAGS"
  5069. fi
  5070. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5071. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5073. fi
  5074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5076. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5077. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5081. /* end confdefs.h. */
  5082. int i;
  5083. _ACEOF
  5084. if ac_fn_c_try_compile "$LINENO"; then :
  5085. xorg_cv_cc_flag_unused_command_line_argument=yes
  5086. else
  5087. xorg_cv_cc_flag_unused_command_line_argument=no
  5088. fi
  5089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5090. fi
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5092. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5093. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5094. CFLAGS="$xorg_testset_save_CFLAGS"
  5095. fi
  5096. found="no"
  5097. if test $found = "no" ; then
  5098. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5100. fi
  5101. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5102. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5103. fi
  5104. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5106. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5107. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5108. if eval \${$cacheid+:} false; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5112. /* end confdefs.h. */
  5113. int i;
  5114. int
  5115. main ()
  5116. {
  5117. ;
  5118. return 0;
  5119. }
  5120. _ACEOF
  5121. if ac_fn_c_try_link "$LINENO"; then :
  5122. eval $cacheid=yes
  5123. else
  5124. eval $cacheid=no
  5125. fi
  5126. rm -f core conftest.err conftest.$ac_objext \
  5127. conftest$ac_exeext conftest.$ac_ext
  5128. fi
  5129. CFLAGS="$xorg_testset_save_CFLAGS"
  5130. eval supported=\$$cacheid
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5132. $as_echo "$supported" >&6; }
  5133. if test "$supported" = "yes" ; then
  5134. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5135. found="yes"
  5136. fi
  5137. fi
  5138. # This chunk adds additional warnings that could catch undesired effects.
  5139. xorg_testset_save_CFLAGS="$CFLAGS"
  5140. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5141. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5143. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5144. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5148. /* end confdefs.h. */
  5149. int i;
  5150. _ACEOF
  5151. if ac_fn_c_try_compile "$LINENO"; then :
  5152. xorg_cv_cc_flag_unknown_warning_option=yes
  5153. else
  5154. xorg_cv_cc_flag_unknown_warning_option=no
  5155. fi
  5156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5157. fi
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5159. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5160. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5161. CFLAGS="$xorg_testset_save_CFLAGS"
  5162. fi
  5163. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5164. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5165. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5166. fi
  5167. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5169. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5170. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5174. /* end confdefs.h. */
  5175. int i;
  5176. _ACEOF
  5177. if ac_fn_c_try_compile "$LINENO"; then :
  5178. xorg_cv_cc_flag_unused_command_line_argument=yes
  5179. else
  5180. xorg_cv_cc_flag_unused_command_line_argument=no
  5181. fi
  5182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5183. fi
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5185. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5186. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5187. CFLAGS="$xorg_testset_save_CFLAGS"
  5188. fi
  5189. found="no"
  5190. if test $found = "no" ; then
  5191. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5192. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5193. fi
  5194. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5195. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5196. fi
  5197. CFLAGS="$CFLAGS -Wunused"
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5199. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5200. cacheid=xorg_cv_cc_flag__Wunused
  5201. if eval \${$cacheid+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5205. /* end confdefs.h. */
  5206. int i;
  5207. int
  5208. main ()
  5209. {
  5210. ;
  5211. return 0;
  5212. }
  5213. _ACEOF
  5214. if ac_fn_c_try_link "$LINENO"; then :
  5215. eval $cacheid=yes
  5216. else
  5217. eval $cacheid=no
  5218. fi
  5219. rm -f core conftest.err conftest.$ac_objext \
  5220. conftest$ac_exeext conftest.$ac_ext
  5221. fi
  5222. CFLAGS="$xorg_testset_save_CFLAGS"
  5223. eval supported=\$$cacheid
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5225. $as_echo "$supported" >&6; }
  5226. if test "$supported" = "yes" ; then
  5227. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5228. found="yes"
  5229. fi
  5230. fi
  5231. xorg_testset_save_CFLAGS="$CFLAGS"
  5232. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5233. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5235. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5236. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. int i;
  5242. _ACEOF
  5243. if ac_fn_c_try_compile "$LINENO"; then :
  5244. xorg_cv_cc_flag_unknown_warning_option=yes
  5245. else
  5246. xorg_cv_cc_flag_unknown_warning_option=no
  5247. fi
  5248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5249. fi
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5251. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5252. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5253. CFLAGS="$xorg_testset_save_CFLAGS"
  5254. fi
  5255. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5256. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5257. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5258. fi
  5259. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5261. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5262. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5266. /* end confdefs.h. */
  5267. int i;
  5268. _ACEOF
  5269. if ac_fn_c_try_compile "$LINENO"; then :
  5270. xorg_cv_cc_flag_unused_command_line_argument=yes
  5271. else
  5272. xorg_cv_cc_flag_unused_command_line_argument=no
  5273. fi
  5274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5275. fi
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5277. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5278. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5279. CFLAGS="$xorg_testset_save_CFLAGS"
  5280. fi
  5281. found="no"
  5282. if test $found = "no" ; then
  5283. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5284. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5285. fi
  5286. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5287. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5288. fi
  5289. CFLAGS="$CFLAGS -Wuninitialized"
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5291. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5292. cacheid=xorg_cv_cc_flag__Wuninitialized
  5293. if eval \${$cacheid+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5297. /* end confdefs.h. */
  5298. int i;
  5299. int
  5300. main ()
  5301. {
  5302. ;
  5303. return 0;
  5304. }
  5305. _ACEOF
  5306. if ac_fn_c_try_link "$LINENO"; then :
  5307. eval $cacheid=yes
  5308. else
  5309. eval $cacheid=no
  5310. fi
  5311. rm -f core conftest.err conftest.$ac_objext \
  5312. conftest$ac_exeext conftest.$ac_ext
  5313. fi
  5314. CFLAGS="$xorg_testset_save_CFLAGS"
  5315. eval supported=\$$cacheid
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5317. $as_echo "$supported" >&6; }
  5318. if test "$supported" = "yes" ; then
  5319. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5320. found="yes"
  5321. fi
  5322. fi
  5323. xorg_testset_save_CFLAGS="$CFLAGS"
  5324. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5325. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5327. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5328. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5329. $as_echo_n "(cached) " >&6
  5330. else
  5331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5332. /* end confdefs.h. */
  5333. int i;
  5334. _ACEOF
  5335. if ac_fn_c_try_compile "$LINENO"; then :
  5336. xorg_cv_cc_flag_unknown_warning_option=yes
  5337. else
  5338. xorg_cv_cc_flag_unknown_warning_option=no
  5339. fi
  5340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5343. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5344. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5345. CFLAGS="$xorg_testset_save_CFLAGS"
  5346. fi
  5347. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5348. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5349. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5350. fi
  5351. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5353. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5354. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5358. /* end confdefs.h. */
  5359. int i;
  5360. _ACEOF
  5361. if ac_fn_c_try_compile "$LINENO"; then :
  5362. xorg_cv_cc_flag_unused_command_line_argument=yes
  5363. else
  5364. xorg_cv_cc_flag_unused_command_line_argument=no
  5365. fi
  5366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5367. fi
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5369. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5370. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5371. CFLAGS="$xorg_testset_save_CFLAGS"
  5372. fi
  5373. found="no"
  5374. if test $found = "no" ; then
  5375. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5376. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5377. fi
  5378. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5379. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5380. fi
  5381. CFLAGS="$CFLAGS -Wshadow"
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5383. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5384. cacheid=xorg_cv_cc_flag__Wshadow
  5385. if eval \${$cacheid+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5389. /* end confdefs.h. */
  5390. int i;
  5391. int
  5392. main ()
  5393. {
  5394. ;
  5395. return 0;
  5396. }
  5397. _ACEOF
  5398. if ac_fn_c_try_link "$LINENO"; then :
  5399. eval $cacheid=yes
  5400. else
  5401. eval $cacheid=no
  5402. fi
  5403. rm -f core conftest.err conftest.$ac_objext \
  5404. conftest$ac_exeext conftest.$ac_ext
  5405. fi
  5406. CFLAGS="$xorg_testset_save_CFLAGS"
  5407. eval supported=\$$cacheid
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5409. $as_echo "$supported" >&6; }
  5410. if test "$supported" = "yes" ; then
  5411. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5412. found="yes"
  5413. fi
  5414. fi
  5415. xorg_testset_save_CFLAGS="$CFLAGS"
  5416. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5417. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5419. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5420. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5424. /* end confdefs.h. */
  5425. int i;
  5426. _ACEOF
  5427. if ac_fn_c_try_compile "$LINENO"; then :
  5428. xorg_cv_cc_flag_unknown_warning_option=yes
  5429. else
  5430. xorg_cv_cc_flag_unknown_warning_option=no
  5431. fi
  5432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5433. fi
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5435. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5436. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5437. CFLAGS="$xorg_testset_save_CFLAGS"
  5438. fi
  5439. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5440. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5441. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5442. fi
  5443. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5445. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5446. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5450. /* end confdefs.h. */
  5451. int i;
  5452. _ACEOF
  5453. if ac_fn_c_try_compile "$LINENO"; then :
  5454. xorg_cv_cc_flag_unused_command_line_argument=yes
  5455. else
  5456. xorg_cv_cc_flag_unused_command_line_argument=no
  5457. fi
  5458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5459. fi
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5461. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5462. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5463. CFLAGS="$xorg_testset_save_CFLAGS"
  5464. fi
  5465. found="no"
  5466. if test $found = "no" ; then
  5467. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5468. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5469. fi
  5470. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5471. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5472. fi
  5473. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5475. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5476. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5477. if eval \${$cacheid+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5481. /* end confdefs.h. */
  5482. int i;
  5483. int
  5484. main ()
  5485. {
  5486. ;
  5487. return 0;
  5488. }
  5489. _ACEOF
  5490. if ac_fn_c_try_link "$LINENO"; then :
  5491. eval $cacheid=yes
  5492. else
  5493. eval $cacheid=no
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext \
  5496. conftest$ac_exeext conftest.$ac_ext
  5497. fi
  5498. CFLAGS="$xorg_testset_save_CFLAGS"
  5499. eval supported=\$$cacheid
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5501. $as_echo "$supported" >&6; }
  5502. if test "$supported" = "yes" ; then
  5503. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5504. found="yes"
  5505. fi
  5506. fi
  5507. xorg_testset_save_CFLAGS="$CFLAGS"
  5508. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5509. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5511. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5512. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5516. /* end confdefs.h. */
  5517. int i;
  5518. _ACEOF
  5519. if ac_fn_c_try_compile "$LINENO"; then :
  5520. xorg_cv_cc_flag_unknown_warning_option=yes
  5521. else
  5522. xorg_cv_cc_flag_unknown_warning_option=no
  5523. fi
  5524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5525. fi
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5527. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5528. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5529. CFLAGS="$xorg_testset_save_CFLAGS"
  5530. fi
  5531. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5532. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5533. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5534. fi
  5535. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5537. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5538. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5539. $as_echo_n "(cached) " >&6
  5540. else
  5541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5542. /* end confdefs.h. */
  5543. int i;
  5544. _ACEOF
  5545. if ac_fn_c_try_compile "$LINENO"; then :
  5546. xorg_cv_cc_flag_unused_command_line_argument=yes
  5547. else
  5548. xorg_cv_cc_flag_unused_command_line_argument=no
  5549. fi
  5550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5551. fi
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5553. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5554. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5555. CFLAGS="$xorg_testset_save_CFLAGS"
  5556. fi
  5557. found="no"
  5558. if test $found = "no" ; then
  5559. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5560. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5561. fi
  5562. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5563. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5564. fi
  5565. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5567. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5568. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5569. if eval \${$cacheid+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. int i;
  5575. int
  5576. main ()
  5577. {
  5578. ;
  5579. return 0;
  5580. }
  5581. _ACEOF
  5582. if ac_fn_c_try_link "$LINENO"; then :
  5583. eval $cacheid=yes
  5584. else
  5585. eval $cacheid=no
  5586. fi
  5587. rm -f core conftest.err conftest.$ac_objext \
  5588. conftest$ac_exeext conftest.$ac_ext
  5589. fi
  5590. CFLAGS="$xorg_testset_save_CFLAGS"
  5591. eval supported=\$$cacheid
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5593. $as_echo "$supported" >&6; }
  5594. if test "$supported" = "yes" ; then
  5595. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5596. found="yes"
  5597. fi
  5598. fi
  5599. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5600. xorg_testset_save_CFLAGS="$CFLAGS"
  5601. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5602. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5604. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5605. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5609. /* end confdefs.h. */
  5610. int i;
  5611. _ACEOF
  5612. if ac_fn_c_try_compile "$LINENO"; then :
  5613. xorg_cv_cc_flag_unknown_warning_option=yes
  5614. else
  5615. xorg_cv_cc_flag_unknown_warning_option=no
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5618. fi
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5620. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5621. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5622. CFLAGS="$xorg_testset_save_CFLAGS"
  5623. fi
  5624. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5625. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5626. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5627. fi
  5628. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5630. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5631. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. int i;
  5637. _ACEOF
  5638. if ac_fn_c_try_compile "$LINENO"; then :
  5639. xorg_cv_cc_flag_unused_command_line_argument=yes
  5640. else
  5641. xorg_cv_cc_flag_unused_command_line_argument=no
  5642. fi
  5643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5644. fi
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5646. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5647. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5648. CFLAGS="$xorg_testset_save_CFLAGS"
  5649. fi
  5650. found="no"
  5651. if test $found = "no" ; then
  5652. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5653. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5654. fi
  5655. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5656. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5657. fi
  5658. CFLAGS="$CFLAGS -Wlogical-op"
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5660. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5661. cacheid=xorg_cv_cc_flag__Wlogical_op
  5662. if eval \${$cacheid+:} false; then :
  5663. $as_echo_n "(cached) " >&6
  5664. else
  5665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5666. /* end confdefs.h. */
  5667. int i;
  5668. int
  5669. main ()
  5670. {
  5671. ;
  5672. return 0;
  5673. }
  5674. _ACEOF
  5675. if ac_fn_c_try_link "$LINENO"; then :
  5676. eval $cacheid=yes
  5677. else
  5678. eval $cacheid=no
  5679. fi
  5680. rm -f core conftest.err conftest.$ac_objext \
  5681. conftest$ac_exeext conftest.$ac_ext
  5682. fi
  5683. CFLAGS="$xorg_testset_save_CFLAGS"
  5684. eval supported=\$$cacheid
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5686. $as_echo "$supported" >&6; }
  5687. if test "$supported" = "yes" ; then
  5688. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5689. found="yes"
  5690. fi
  5691. fi
  5692. # These are currently disabled because they are noisy. They will be enabled
  5693. # in the future once the codebase is sufficiently modernized to silence
  5694. # them. For now, I don't want them to drown out the other warnings.
  5695. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5696. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5697. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5698. # Turn some warnings into errors, so we don't accidently get successful builds
  5699. # when there are problems that should be fixed.
  5700. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5701. xorg_testset_save_CFLAGS="$CFLAGS"
  5702. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5703. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5705. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5706. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5710. /* end confdefs.h. */
  5711. int i;
  5712. _ACEOF
  5713. if ac_fn_c_try_compile "$LINENO"; then :
  5714. xorg_cv_cc_flag_unknown_warning_option=yes
  5715. else
  5716. xorg_cv_cc_flag_unknown_warning_option=no
  5717. fi
  5718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5719. fi
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5721. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5722. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5723. CFLAGS="$xorg_testset_save_CFLAGS"
  5724. fi
  5725. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5726. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5727. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5728. fi
  5729. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5731. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5732. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5736. /* end confdefs.h. */
  5737. int i;
  5738. _ACEOF
  5739. if ac_fn_c_try_compile "$LINENO"; then :
  5740. xorg_cv_cc_flag_unused_command_line_argument=yes
  5741. else
  5742. xorg_cv_cc_flag_unused_command_line_argument=no
  5743. fi
  5744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5745. fi
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5747. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5748. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5749. CFLAGS="$xorg_testset_save_CFLAGS"
  5750. fi
  5751. found="no"
  5752. if test $found = "no" ; then
  5753. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5754. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5755. fi
  5756. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5757. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5758. fi
  5759. CFLAGS="$CFLAGS -Werror=implicit"
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5761. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5762. cacheid=xorg_cv_cc_flag__Werror_implicit
  5763. if eval \${$cacheid+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5767. /* end confdefs.h. */
  5768. int i;
  5769. int
  5770. main ()
  5771. {
  5772. ;
  5773. return 0;
  5774. }
  5775. _ACEOF
  5776. if ac_fn_c_try_link "$LINENO"; then :
  5777. eval $cacheid=yes
  5778. else
  5779. eval $cacheid=no
  5780. fi
  5781. rm -f core conftest.err conftest.$ac_objext \
  5782. conftest$ac_exeext conftest.$ac_ext
  5783. fi
  5784. CFLAGS="$xorg_testset_save_CFLAGS"
  5785. eval supported=\$$cacheid
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5787. $as_echo "$supported" >&6; }
  5788. if test "$supported" = "yes" ; then
  5789. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5790. found="yes"
  5791. fi
  5792. fi
  5793. if test $found = "no" ; then
  5794. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5795. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5796. fi
  5797. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5798. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5799. fi
  5800. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5802. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5803. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5804. if eval \${$cacheid+:} false; then :
  5805. $as_echo_n "(cached) " >&6
  5806. else
  5807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5808. /* end confdefs.h. */
  5809. int i;
  5810. int
  5811. main ()
  5812. {
  5813. ;
  5814. return 0;
  5815. }
  5816. _ACEOF
  5817. if ac_fn_c_try_link "$LINENO"; then :
  5818. eval $cacheid=yes
  5819. else
  5820. eval $cacheid=no
  5821. fi
  5822. rm -f core conftest.err conftest.$ac_objext \
  5823. conftest$ac_exeext conftest.$ac_ext
  5824. fi
  5825. CFLAGS="$xorg_testset_save_CFLAGS"
  5826. eval supported=\$$cacheid
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5828. $as_echo "$supported" >&6; }
  5829. if test "$supported" = "yes" ; then
  5830. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5831. found="yes"
  5832. fi
  5833. fi
  5834. xorg_testset_save_CFLAGS="$CFLAGS"
  5835. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5836. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5838. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5839. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5843. /* end confdefs.h. */
  5844. int i;
  5845. _ACEOF
  5846. if ac_fn_c_try_compile "$LINENO"; then :
  5847. xorg_cv_cc_flag_unknown_warning_option=yes
  5848. else
  5849. xorg_cv_cc_flag_unknown_warning_option=no
  5850. fi
  5851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5852. fi
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5854. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5855. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5856. CFLAGS="$xorg_testset_save_CFLAGS"
  5857. fi
  5858. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5859. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5860. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5861. fi
  5862. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5864. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5865. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5869. /* end confdefs.h. */
  5870. int i;
  5871. _ACEOF
  5872. if ac_fn_c_try_compile "$LINENO"; then :
  5873. xorg_cv_cc_flag_unused_command_line_argument=yes
  5874. else
  5875. xorg_cv_cc_flag_unused_command_line_argument=no
  5876. fi
  5877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5880. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5881. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5882. CFLAGS="$xorg_testset_save_CFLAGS"
  5883. fi
  5884. found="no"
  5885. if test $found = "no" ; then
  5886. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5887. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5888. fi
  5889. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5890. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5891. fi
  5892. CFLAGS="$CFLAGS -Werror=nonnull"
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5894. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5895. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5896. if eval \${$cacheid+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5900. /* end confdefs.h. */
  5901. int i;
  5902. int
  5903. main ()
  5904. {
  5905. ;
  5906. return 0;
  5907. }
  5908. _ACEOF
  5909. if ac_fn_c_try_link "$LINENO"; then :
  5910. eval $cacheid=yes
  5911. else
  5912. eval $cacheid=no
  5913. fi
  5914. rm -f core conftest.err conftest.$ac_objext \
  5915. conftest$ac_exeext conftest.$ac_ext
  5916. fi
  5917. CFLAGS="$xorg_testset_save_CFLAGS"
  5918. eval supported=\$$cacheid
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5920. $as_echo "$supported" >&6; }
  5921. if test "$supported" = "yes" ; then
  5922. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5923. found="yes"
  5924. fi
  5925. fi
  5926. xorg_testset_save_CFLAGS="$CFLAGS"
  5927. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5928. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5930. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5931. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5935. /* end confdefs.h. */
  5936. int i;
  5937. _ACEOF
  5938. if ac_fn_c_try_compile "$LINENO"; then :
  5939. xorg_cv_cc_flag_unknown_warning_option=yes
  5940. else
  5941. xorg_cv_cc_flag_unknown_warning_option=no
  5942. fi
  5943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5944. fi
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5946. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5947. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5948. CFLAGS="$xorg_testset_save_CFLAGS"
  5949. fi
  5950. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5951. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5952. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5953. fi
  5954. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5956. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5957. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5961. /* end confdefs.h. */
  5962. int i;
  5963. _ACEOF
  5964. if ac_fn_c_try_compile "$LINENO"; then :
  5965. xorg_cv_cc_flag_unused_command_line_argument=yes
  5966. else
  5967. xorg_cv_cc_flag_unused_command_line_argument=no
  5968. fi
  5969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5970. fi
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5972. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5973. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5974. CFLAGS="$xorg_testset_save_CFLAGS"
  5975. fi
  5976. found="no"
  5977. if test $found = "no" ; then
  5978. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5979. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5980. fi
  5981. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5982. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5983. fi
  5984. CFLAGS="$CFLAGS -Werror=init-self"
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5986. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5987. cacheid=xorg_cv_cc_flag__Werror_init_self
  5988. if eval \${$cacheid+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5992. /* end confdefs.h. */
  5993. int i;
  5994. int
  5995. main ()
  5996. {
  5997. ;
  5998. return 0;
  5999. }
  6000. _ACEOF
  6001. if ac_fn_c_try_link "$LINENO"; then :
  6002. eval $cacheid=yes
  6003. else
  6004. eval $cacheid=no
  6005. fi
  6006. rm -f core conftest.err conftest.$ac_objext \
  6007. conftest$ac_exeext conftest.$ac_ext
  6008. fi
  6009. CFLAGS="$xorg_testset_save_CFLAGS"
  6010. eval supported=\$$cacheid
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6012. $as_echo "$supported" >&6; }
  6013. if test "$supported" = "yes" ; then
  6014. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6015. found="yes"
  6016. fi
  6017. fi
  6018. xorg_testset_save_CFLAGS="$CFLAGS"
  6019. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6020. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6022. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6023. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6024. $as_echo_n "(cached) " >&6
  6025. else
  6026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6027. /* end confdefs.h. */
  6028. int i;
  6029. _ACEOF
  6030. if ac_fn_c_try_compile "$LINENO"; then :
  6031. xorg_cv_cc_flag_unknown_warning_option=yes
  6032. else
  6033. xorg_cv_cc_flag_unknown_warning_option=no
  6034. fi
  6035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6036. fi
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6038. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6039. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6040. CFLAGS="$xorg_testset_save_CFLAGS"
  6041. fi
  6042. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6043. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6044. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6045. fi
  6046. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6048. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6049. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6050. $as_echo_n "(cached) " >&6
  6051. else
  6052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6053. /* end confdefs.h. */
  6054. int i;
  6055. _ACEOF
  6056. if ac_fn_c_try_compile "$LINENO"; then :
  6057. xorg_cv_cc_flag_unused_command_line_argument=yes
  6058. else
  6059. xorg_cv_cc_flag_unused_command_line_argument=no
  6060. fi
  6061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6062. fi
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6064. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6065. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6066. CFLAGS="$xorg_testset_save_CFLAGS"
  6067. fi
  6068. found="no"
  6069. if test $found = "no" ; then
  6070. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6071. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6072. fi
  6073. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6075. fi
  6076. CFLAGS="$CFLAGS -Werror=main"
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6078. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6079. cacheid=xorg_cv_cc_flag__Werror_main
  6080. if eval \${$cacheid+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. int i;
  6086. int
  6087. main ()
  6088. {
  6089. ;
  6090. return 0;
  6091. }
  6092. _ACEOF
  6093. if ac_fn_c_try_link "$LINENO"; then :
  6094. eval $cacheid=yes
  6095. else
  6096. eval $cacheid=no
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext \
  6099. conftest$ac_exeext conftest.$ac_ext
  6100. fi
  6101. CFLAGS="$xorg_testset_save_CFLAGS"
  6102. eval supported=\$$cacheid
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6104. $as_echo "$supported" >&6; }
  6105. if test "$supported" = "yes" ; then
  6106. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6107. found="yes"
  6108. fi
  6109. fi
  6110. xorg_testset_save_CFLAGS="$CFLAGS"
  6111. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6112. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6114. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6115. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6119. /* end confdefs.h. */
  6120. int i;
  6121. _ACEOF
  6122. if ac_fn_c_try_compile "$LINENO"; then :
  6123. xorg_cv_cc_flag_unknown_warning_option=yes
  6124. else
  6125. xorg_cv_cc_flag_unknown_warning_option=no
  6126. fi
  6127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6130. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6131. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6132. CFLAGS="$xorg_testset_save_CFLAGS"
  6133. fi
  6134. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6135. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6136. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6137. fi
  6138. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6140. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6141. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6145. /* end confdefs.h. */
  6146. int i;
  6147. _ACEOF
  6148. if ac_fn_c_try_compile "$LINENO"; then :
  6149. xorg_cv_cc_flag_unused_command_line_argument=yes
  6150. else
  6151. xorg_cv_cc_flag_unused_command_line_argument=no
  6152. fi
  6153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6154. fi
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6156. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6157. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6158. CFLAGS="$xorg_testset_save_CFLAGS"
  6159. fi
  6160. found="no"
  6161. if test $found = "no" ; then
  6162. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6163. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6164. fi
  6165. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6167. fi
  6168. CFLAGS="$CFLAGS -Werror=missing-braces"
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6170. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6171. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6172. if eval \${$cacheid+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. int i;
  6178. int
  6179. main ()
  6180. {
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. if ac_fn_c_try_link "$LINENO"; then :
  6186. eval $cacheid=yes
  6187. else
  6188. eval $cacheid=no
  6189. fi
  6190. rm -f core conftest.err conftest.$ac_objext \
  6191. conftest$ac_exeext conftest.$ac_ext
  6192. fi
  6193. CFLAGS="$xorg_testset_save_CFLAGS"
  6194. eval supported=\$$cacheid
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6196. $as_echo "$supported" >&6; }
  6197. if test "$supported" = "yes" ; then
  6198. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6199. found="yes"
  6200. fi
  6201. fi
  6202. xorg_testset_save_CFLAGS="$CFLAGS"
  6203. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6204. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6206. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6207. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6208. $as_echo_n "(cached) " >&6
  6209. else
  6210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6211. /* end confdefs.h. */
  6212. int i;
  6213. _ACEOF
  6214. if ac_fn_c_try_compile "$LINENO"; then :
  6215. xorg_cv_cc_flag_unknown_warning_option=yes
  6216. else
  6217. xorg_cv_cc_flag_unknown_warning_option=no
  6218. fi
  6219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6222. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6223. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6224. CFLAGS="$xorg_testset_save_CFLAGS"
  6225. fi
  6226. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6227. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6228. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6229. fi
  6230. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6232. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6233. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6234. $as_echo_n "(cached) " >&6
  6235. else
  6236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6237. /* end confdefs.h. */
  6238. int i;
  6239. _ACEOF
  6240. if ac_fn_c_try_compile "$LINENO"; then :
  6241. xorg_cv_cc_flag_unused_command_line_argument=yes
  6242. else
  6243. xorg_cv_cc_flag_unused_command_line_argument=no
  6244. fi
  6245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6246. fi
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6248. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6249. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6250. CFLAGS="$xorg_testset_save_CFLAGS"
  6251. fi
  6252. found="no"
  6253. if test $found = "no" ; then
  6254. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6255. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6256. fi
  6257. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6259. fi
  6260. CFLAGS="$CFLAGS -Werror=sequence-point"
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6262. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6263. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6264. if eval \${$cacheid+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. int i;
  6270. int
  6271. main ()
  6272. {
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. if ac_fn_c_try_link "$LINENO"; then :
  6278. eval $cacheid=yes
  6279. else
  6280. eval $cacheid=no
  6281. fi
  6282. rm -f core conftest.err conftest.$ac_objext \
  6283. conftest$ac_exeext conftest.$ac_ext
  6284. fi
  6285. CFLAGS="$xorg_testset_save_CFLAGS"
  6286. eval supported=\$$cacheid
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6288. $as_echo "$supported" >&6; }
  6289. if test "$supported" = "yes" ; then
  6290. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6291. found="yes"
  6292. fi
  6293. fi
  6294. xorg_testset_save_CFLAGS="$CFLAGS"
  6295. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6296. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6298. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6299. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. int i;
  6305. _ACEOF
  6306. if ac_fn_c_try_compile "$LINENO"; then :
  6307. xorg_cv_cc_flag_unknown_warning_option=yes
  6308. else
  6309. xorg_cv_cc_flag_unknown_warning_option=no
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. fi
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6314. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6315. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6316. CFLAGS="$xorg_testset_save_CFLAGS"
  6317. fi
  6318. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6319. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6320. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6321. fi
  6322. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6324. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6325. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6326. $as_echo_n "(cached) " >&6
  6327. else
  6328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329. /* end confdefs.h. */
  6330. int i;
  6331. _ACEOF
  6332. if ac_fn_c_try_compile "$LINENO"; then :
  6333. xorg_cv_cc_flag_unused_command_line_argument=yes
  6334. else
  6335. xorg_cv_cc_flag_unused_command_line_argument=no
  6336. fi
  6337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6338. fi
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6340. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6341. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6342. CFLAGS="$xorg_testset_save_CFLAGS"
  6343. fi
  6344. found="no"
  6345. if test $found = "no" ; then
  6346. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6347. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6348. fi
  6349. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6350. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6351. fi
  6352. CFLAGS="$CFLAGS -Werror=return-type"
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6354. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6355. cacheid=xorg_cv_cc_flag__Werror_return_type
  6356. if eval \${$cacheid+:} false; then :
  6357. $as_echo_n "(cached) " >&6
  6358. else
  6359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h. */
  6361. int i;
  6362. int
  6363. main ()
  6364. {
  6365. ;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_link "$LINENO"; then :
  6370. eval $cacheid=yes
  6371. else
  6372. eval $cacheid=no
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext \
  6375. conftest$ac_exeext conftest.$ac_ext
  6376. fi
  6377. CFLAGS="$xorg_testset_save_CFLAGS"
  6378. eval supported=\$$cacheid
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6380. $as_echo "$supported" >&6; }
  6381. if test "$supported" = "yes" ; then
  6382. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6383. found="yes"
  6384. fi
  6385. fi
  6386. if test $found = "no" ; then
  6387. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6388. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6389. fi
  6390. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6391. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6392. fi
  6393. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6395. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6396. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6397. if eval \${$cacheid+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6401. /* end confdefs.h. */
  6402. int i;
  6403. int
  6404. main ()
  6405. {
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. if ac_fn_c_try_link "$LINENO"; then :
  6411. eval $cacheid=yes
  6412. else
  6413. eval $cacheid=no
  6414. fi
  6415. rm -f core conftest.err conftest.$ac_objext \
  6416. conftest$ac_exeext conftest.$ac_ext
  6417. fi
  6418. CFLAGS="$xorg_testset_save_CFLAGS"
  6419. eval supported=\$$cacheid
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6421. $as_echo "$supported" >&6; }
  6422. if test "$supported" = "yes" ; then
  6423. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6424. found="yes"
  6425. fi
  6426. fi
  6427. xorg_testset_save_CFLAGS="$CFLAGS"
  6428. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6429. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6431. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6432. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6433. $as_echo_n "(cached) " >&6
  6434. else
  6435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6436. /* end confdefs.h. */
  6437. int i;
  6438. _ACEOF
  6439. if ac_fn_c_try_compile "$LINENO"; then :
  6440. xorg_cv_cc_flag_unknown_warning_option=yes
  6441. else
  6442. xorg_cv_cc_flag_unknown_warning_option=no
  6443. fi
  6444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6445. fi
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6447. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6448. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6449. CFLAGS="$xorg_testset_save_CFLAGS"
  6450. fi
  6451. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6452. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6453. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6454. fi
  6455. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6457. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6458. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. int i;
  6464. _ACEOF
  6465. if ac_fn_c_try_compile "$LINENO"; then :
  6466. xorg_cv_cc_flag_unused_command_line_argument=yes
  6467. else
  6468. xorg_cv_cc_flag_unused_command_line_argument=no
  6469. fi
  6470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6471. fi
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6473. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6474. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6475. CFLAGS="$xorg_testset_save_CFLAGS"
  6476. fi
  6477. found="no"
  6478. if test $found = "no" ; then
  6479. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6480. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6481. fi
  6482. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6483. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6484. fi
  6485. CFLAGS="$CFLAGS -Werror=trigraphs"
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6487. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6488. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6489. if eval \${$cacheid+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6493. /* end confdefs.h. */
  6494. int i;
  6495. int
  6496. main ()
  6497. {
  6498. ;
  6499. return 0;
  6500. }
  6501. _ACEOF
  6502. if ac_fn_c_try_link "$LINENO"; then :
  6503. eval $cacheid=yes
  6504. else
  6505. eval $cacheid=no
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext \
  6508. conftest$ac_exeext conftest.$ac_ext
  6509. fi
  6510. CFLAGS="$xorg_testset_save_CFLAGS"
  6511. eval supported=\$$cacheid
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6513. $as_echo "$supported" >&6; }
  6514. if test "$supported" = "yes" ; then
  6515. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6516. found="yes"
  6517. fi
  6518. fi
  6519. xorg_testset_save_CFLAGS="$CFLAGS"
  6520. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6521. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6523. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6524. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6525. $as_echo_n "(cached) " >&6
  6526. else
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. int i;
  6530. _ACEOF
  6531. if ac_fn_c_try_compile "$LINENO"; then :
  6532. xorg_cv_cc_flag_unknown_warning_option=yes
  6533. else
  6534. xorg_cv_cc_flag_unknown_warning_option=no
  6535. fi
  6536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6539. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6540. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6541. CFLAGS="$xorg_testset_save_CFLAGS"
  6542. fi
  6543. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6544. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6545. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6546. fi
  6547. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6549. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6550. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6554. /* end confdefs.h. */
  6555. int i;
  6556. _ACEOF
  6557. if ac_fn_c_try_compile "$LINENO"; then :
  6558. xorg_cv_cc_flag_unused_command_line_argument=yes
  6559. else
  6560. xorg_cv_cc_flag_unused_command_line_argument=no
  6561. fi
  6562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6565. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6566. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6567. CFLAGS="$xorg_testset_save_CFLAGS"
  6568. fi
  6569. found="no"
  6570. if test $found = "no" ; then
  6571. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6572. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6573. fi
  6574. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6575. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6576. fi
  6577. CFLAGS="$CFLAGS -Werror=array-bounds"
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6579. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6580. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6581. if eval \${$cacheid+:} false; then :
  6582. $as_echo_n "(cached) " >&6
  6583. else
  6584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6585. /* end confdefs.h. */
  6586. int i;
  6587. int
  6588. main ()
  6589. {
  6590. ;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. if ac_fn_c_try_link "$LINENO"; then :
  6595. eval $cacheid=yes
  6596. else
  6597. eval $cacheid=no
  6598. fi
  6599. rm -f core conftest.err conftest.$ac_objext \
  6600. conftest$ac_exeext conftest.$ac_ext
  6601. fi
  6602. CFLAGS="$xorg_testset_save_CFLAGS"
  6603. eval supported=\$$cacheid
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6605. $as_echo "$supported" >&6; }
  6606. if test "$supported" = "yes" ; then
  6607. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6608. found="yes"
  6609. fi
  6610. fi
  6611. xorg_testset_save_CFLAGS="$CFLAGS"
  6612. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6613. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6615. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6616. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6620. /* end confdefs.h. */
  6621. int i;
  6622. _ACEOF
  6623. if ac_fn_c_try_compile "$LINENO"; then :
  6624. xorg_cv_cc_flag_unknown_warning_option=yes
  6625. else
  6626. xorg_cv_cc_flag_unknown_warning_option=no
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6629. fi
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6631. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6632. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6633. CFLAGS="$xorg_testset_save_CFLAGS"
  6634. fi
  6635. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6636. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6637. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6638. fi
  6639. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6641. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6642. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6646. /* end confdefs.h. */
  6647. int i;
  6648. _ACEOF
  6649. if ac_fn_c_try_compile "$LINENO"; then :
  6650. xorg_cv_cc_flag_unused_command_line_argument=yes
  6651. else
  6652. xorg_cv_cc_flag_unused_command_line_argument=no
  6653. fi
  6654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6657. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6658. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6659. CFLAGS="$xorg_testset_save_CFLAGS"
  6660. fi
  6661. found="no"
  6662. if test $found = "no" ; then
  6663. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6664. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6665. fi
  6666. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6667. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6668. fi
  6669. CFLAGS="$CFLAGS -Werror=write-strings"
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6671. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6672. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6673. if eval \${$cacheid+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6677. /* end confdefs.h. */
  6678. int i;
  6679. int
  6680. main ()
  6681. {
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. if ac_fn_c_try_link "$LINENO"; then :
  6687. eval $cacheid=yes
  6688. else
  6689. eval $cacheid=no
  6690. fi
  6691. rm -f core conftest.err conftest.$ac_objext \
  6692. conftest$ac_exeext conftest.$ac_ext
  6693. fi
  6694. CFLAGS="$xorg_testset_save_CFLAGS"
  6695. eval supported=\$$cacheid
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6697. $as_echo "$supported" >&6; }
  6698. if test "$supported" = "yes" ; then
  6699. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6700. found="yes"
  6701. fi
  6702. fi
  6703. xorg_testset_save_CFLAGS="$CFLAGS"
  6704. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6705. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6707. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6708. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6712. /* end confdefs.h. */
  6713. int i;
  6714. _ACEOF
  6715. if ac_fn_c_try_compile "$LINENO"; then :
  6716. xorg_cv_cc_flag_unknown_warning_option=yes
  6717. else
  6718. xorg_cv_cc_flag_unknown_warning_option=no
  6719. fi
  6720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6721. fi
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6723. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6724. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6725. CFLAGS="$xorg_testset_save_CFLAGS"
  6726. fi
  6727. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6728. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6729. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6730. fi
  6731. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6733. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6734. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6738. /* end confdefs.h. */
  6739. int i;
  6740. _ACEOF
  6741. if ac_fn_c_try_compile "$LINENO"; then :
  6742. xorg_cv_cc_flag_unused_command_line_argument=yes
  6743. else
  6744. xorg_cv_cc_flag_unused_command_line_argument=no
  6745. fi
  6746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6747. fi
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6749. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6750. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6751. CFLAGS="$xorg_testset_save_CFLAGS"
  6752. fi
  6753. found="no"
  6754. if test $found = "no" ; then
  6755. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6756. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6757. fi
  6758. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6759. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6760. fi
  6761. CFLAGS="$CFLAGS -Werror=address"
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6763. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6764. cacheid=xorg_cv_cc_flag__Werror_address
  6765. if eval \${$cacheid+:} false; then :
  6766. $as_echo_n "(cached) " >&6
  6767. else
  6768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6769. /* end confdefs.h. */
  6770. int i;
  6771. int
  6772. main ()
  6773. {
  6774. ;
  6775. return 0;
  6776. }
  6777. _ACEOF
  6778. if ac_fn_c_try_link "$LINENO"; then :
  6779. eval $cacheid=yes
  6780. else
  6781. eval $cacheid=no
  6782. fi
  6783. rm -f core conftest.err conftest.$ac_objext \
  6784. conftest$ac_exeext conftest.$ac_ext
  6785. fi
  6786. CFLAGS="$xorg_testset_save_CFLAGS"
  6787. eval supported=\$$cacheid
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6789. $as_echo "$supported" >&6; }
  6790. if test "$supported" = "yes" ; then
  6791. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6792. found="yes"
  6793. fi
  6794. fi
  6795. xorg_testset_save_CFLAGS="$CFLAGS"
  6796. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6797. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6799. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6800. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6804. /* end confdefs.h. */
  6805. int i;
  6806. _ACEOF
  6807. if ac_fn_c_try_compile "$LINENO"; then :
  6808. xorg_cv_cc_flag_unknown_warning_option=yes
  6809. else
  6810. xorg_cv_cc_flag_unknown_warning_option=no
  6811. fi
  6812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6815. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6816. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6817. CFLAGS="$xorg_testset_save_CFLAGS"
  6818. fi
  6819. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6820. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6821. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6822. fi
  6823. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6825. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6826. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6830. /* end confdefs.h. */
  6831. int i;
  6832. _ACEOF
  6833. if ac_fn_c_try_compile "$LINENO"; then :
  6834. xorg_cv_cc_flag_unused_command_line_argument=yes
  6835. else
  6836. xorg_cv_cc_flag_unused_command_line_argument=no
  6837. fi
  6838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6839. fi
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6841. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6842. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6843. CFLAGS="$xorg_testset_save_CFLAGS"
  6844. fi
  6845. found="no"
  6846. if test $found = "no" ; then
  6847. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6848. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6849. fi
  6850. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6851. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6852. fi
  6853. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6855. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6856. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6857. if eval \${$cacheid+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6861. /* end confdefs.h. */
  6862. int i;
  6863. int
  6864. main ()
  6865. {
  6866. ;
  6867. return 0;
  6868. }
  6869. _ACEOF
  6870. if ac_fn_c_try_link "$LINENO"; then :
  6871. eval $cacheid=yes
  6872. else
  6873. eval $cacheid=no
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext \
  6876. conftest$ac_exeext conftest.$ac_ext
  6877. fi
  6878. CFLAGS="$xorg_testset_save_CFLAGS"
  6879. eval supported=\$$cacheid
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6881. $as_echo "$supported" >&6; }
  6882. if test "$supported" = "yes" ; then
  6883. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6884. found="yes"
  6885. fi
  6886. fi
  6887. if test $found = "no" ; then
  6888. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6889. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6890. fi
  6891. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6892. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6893. fi
  6894. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6896. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6897. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6898. if eval \${$cacheid+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6902. /* end confdefs.h. */
  6903. int i;
  6904. int
  6905. main ()
  6906. {
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. if ac_fn_c_try_link "$LINENO"; then :
  6912. eval $cacheid=yes
  6913. else
  6914. eval $cacheid=no
  6915. fi
  6916. rm -f core conftest.err conftest.$ac_objext \
  6917. conftest$ac_exeext conftest.$ac_ext
  6918. fi
  6919. CFLAGS="$xorg_testset_save_CFLAGS"
  6920. eval supported=\$$cacheid
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6922. $as_echo "$supported" >&6; }
  6923. if test "$supported" = "yes" ; then
  6924. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6925. found="yes"
  6926. fi
  6927. fi
  6928. xorg_testset_save_CFLAGS="$CFLAGS"
  6929. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6930. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6932. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6933. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6937. /* end confdefs.h. */
  6938. int i;
  6939. _ACEOF
  6940. if ac_fn_c_try_compile "$LINENO"; then :
  6941. xorg_cv_cc_flag_unknown_warning_option=yes
  6942. else
  6943. xorg_cv_cc_flag_unknown_warning_option=no
  6944. fi
  6945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6946. fi
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6948. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6949. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6950. CFLAGS="$xorg_testset_save_CFLAGS"
  6951. fi
  6952. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6953. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6954. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6955. fi
  6956. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6958. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6959. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6960. $as_echo_n "(cached) " >&6
  6961. else
  6962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6963. /* end confdefs.h. */
  6964. int i;
  6965. _ACEOF
  6966. if ac_fn_c_try_compile "$LINENO"; then :
  6967. xorg_cv_cc_flag_unused_command_line_argument=yes
  6968. else
  6969. xorg_cv_cc_flag_unused_command_line_argument=no
  6970. fi
  6971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6974. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6975. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6976. CFLAGS="$xorg_testset_save_CFLAGS"
  6977. fi
  6978. found="no"
  6979. if test $found = "no" ; then
  6980. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6982. fi
  6983. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6985. fi
  6986. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6988. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6989. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6990. if eval \${$cacheid+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6994. /* end confdefs.h. */
  6995. int i;
  6996. int
  6997. main ()
  6998. {
  6999. ;
  7000. return 0;
  7001. }
  7002. _ACEOF
  7003. if ac_fn_c_try_link "$LINENO"; then :
  7004. eval $cacheid=yes
  7005. else
  7006. eval $cacheid=no
  7007. fi
  7008. rm -f core conftest.err conftest.$ac_objext \
  7009. conftest$ac_exeext conftest.$ac_ext
  7010. fi
  7011. CFLAGS="$xorg_testset_save_CFLAGS"
  7012. eval supported=\$$cacheid
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7014. $as_echo "$supported" >&6; }
  7015. if test "$supported" = "yes" ; then
  7016. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7017. found="yes"
  7018. fi
  7019. fi
  7020. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7021. else
  7022. { $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
  7023. $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;}
  7024. xorg_testset_save_CFLAGS="$CFLAGS"
  7025. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7026. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7028. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7029. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7030. $as_echo_n "(cached) " >&6
  7031. else
  7032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7033. /* end confdefs.h. */
  7034. int i;
  7035. _ACEOF
  7036. if ac_fn_c_try_compile "$LINENO"; then :
  7037. xorg_cv_cc_flag_unknown_warning_option=yes
  7038. else
  7039. xorg_cv_cc_flag_unknown_warning_option=no
  7040. fi
  7041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7042. fi
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7044. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7045. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7046. CFLAGS="$xorg_testset_save_CFLAGS"
  7047. fi
  7048. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7049. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7050. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7051. fi
  7052. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7054. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7055. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7059. /* end confdefs.h. */
  7060. int i;
  7061. _ACEOF
  7062. if ac_fn_c_try_compile "$LINENO"; then :
  7063. xorg_cv_cc_flag_unused_command_line_argument=yes
  7064. else
  7065. xorg_cv_cc_flag_unused_command_line_argument=no
  7066. fi
  7067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7068. fi
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7070. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7071. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7072. CFLAGS="$xorg_testset_save_CFLAGS"
  7073. fi
  7074. found="no"
  7075. if test $found = "no" ; then
  7076. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7077. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7078. fi
  7079. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7080. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7081. fi
  7082. CFLAGS="$CFLAGS -Wimplicit"
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7084. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7085. cacheid=xorg_cv_cc_flag__Wimplicit
  7086. if eval \${$cacheid+:} false; then :
  7087. $as_echo_n "(cached) " >&6
  7088. else
  7089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7090. /* end confdefs.h. */
  7091. int i;
  7092. int
  7093. main ()
  7094. {
  7095. ;
  7096. return 0;
  7097. }
  7098. _ACEOF
  7099. if ac_fn_c_try_link "$LINENO"; then :
  7100. eval $cacheid=yes
  7101. else
  7102. eval $cacheid=no
  7103. fi
  7104. rm -f core conftest.err conftest.$ac_objext \
  7105. conftest$ac_exeext conftest.$ac_ext
  7106. fi
  7107. CFLAGS="$xorg_testset_save_CFLAGS"
  7108. eval supported=\$$cacheid
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7110. $as_echo "$supported" >&6; }
  7111. if test "$supported" = "yes" ; then
  7112. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7113. found="yes"
  7114. fi
  7115. fi
  7116. xorg_testset_save_CFLAGS="$CFLAGS"
  7117. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7118. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7120. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7121. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7125. /* end confdefs.h. */
  7126. int i;
  7127. _ACEOF
  7128. if ac_fn_c_try_compile "$LINENO"; then :
  7129. xorg_cv_cc_flag_unknown_warning_option=yes
  7130. else
  7131. xorg_cv_cc_flag_unknown_warning_option=no
  7132. fi
  7133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7134. fi
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7136. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7137. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7138. CFLAGS="$xorg_testset_save_CFLAGS"
  7139. fi
  7140. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7141. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7142. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7143. fi
  7144. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7146. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7147. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7151. /* end confdefs.h. */
  7152. int i;
  7153. _ACEOF
  7154. if ac_fn_c_try_compile "$LINENO"; then :
  7155. xorg_cv_cc_flag_unused_command_line_argument=yes
  7156. else
  7157. xorg_cv_cc_flag_unused_command_line_argument=no
  7158. fi
  7159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7160. fi
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7162. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7163. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7164. CFLAGS="$xorg_testset_save_CFLAGS"
  7165. fi
  7166. found="no"
  7167. if test $found = "no" ; then
  7168. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7169. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7170. fi
  7171. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7172. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7173. fi
  7174. CFLAGS="$CFLAGS -Wnonnull"
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7176. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7177. cacheid=xorg_cv_cc_flag__Wnonnull
  7178. if eval \${$cacheid+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7182. /* end confdefs.h. */
  7183. int i;
  7184. int
  7185. main ()
  7186. {
  7187. ;
  7188. return 0;
  7189. }
  7190. _ACEOF
  7191. if ac_fn_c_try_link "$LINENO"; then :
  7192. eval $cacheid=yes
  7193. else
  7194. eval $cacheid=no
  7195. fi
  7196. rm -f core conftest.err conftest.$ac_objext \
  7197. conftest$ac_exeext conftest.$ac_ext
  7198. fi
  7199. CFLAGS="$xorg_testset_save_CFLAGS"
  7200. eval supported=\$$cacheid
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7202. $as_echo "$supported" >&6; }
  7203. if test "$supported" = "yes" ; then
  7204. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7205. found="yes"
  7206. fi
  7207. fi
  7208. xorg_testset_save_CFLAGS="$CFLAGS"
  7209. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7210. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7212. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7213. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7217. /* end confdefs.h. */
  7218. int i;
  7219. _ACEOF
  7220. if ac_fn_c_try_compile "$LINENO"; then :
  7221. xorg_cv_cc_flag_unknown_warning_option=yes
  7222. else
  7223. xorg_cv_cc_flag_unknown_warning_option=no
  7224. fi
  7225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7226. fi
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7228. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7229. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7230. CFLAGS="$xorg_testset_save_CFLAGS"
  7231. fi
  7232. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7233. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7234. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7235. fi
  7236. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7238. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7239. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7240. $as_echo_n "(cached) " >&6
  7241. else
  7242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7243. /* end confdefs.h. */
  7244. int i;
  7245. _ACEOF
  7246. if ac_fn_c_try_compile "$LINENO"; then :
  7247. xorg_cv_cc_flag_unused_command_line_argument=yes
  7248. else
  7249. xorg_cv_cc_flag_unused_command_line_argument=no
  7250. fi
  7251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7254. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7255. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7256. CFLAGS="$xorg_testset_save_CFLAGS"
  7257. fi
  7258. found="no"
  7259. if test $found = "no" ; then
  7260. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7261. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7262. fi
  7263. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7264. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7265. fi
  7266. CFLAGS="$CFLAGS -Winit-self"
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7268. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7269. cacheid=xorg_cv_cc_flag__Winit_self
  7270. if eval \${$cacheid+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7274. /* end confdefs.h. */
  7275. int i;
  7276. int
  7277. main ()
  7278. {
  7279. ;
  7280. return 0;
  7281. }
  7282. _ACEOF
  7283. if ac_fn_c_try_link "$LINENO"; then :
  7284. eval $cacheid=yes
  7285. else
  7286. eval $cacheid=no
  7287. fi
  7288. rm -f core conftest.err conftest.$ac_objext \
  7289. conftest$ac_exeext conftest.$ac_ext
  7290. fi
  7291. CFLAGS="$xorg_testset_save_CFLAGS"
  7292. eval supported=\$$cacheid
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7294. $as_echo "$supported" >&6; }
  7295. if test "$supported" = "yes" ; then
  7296. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7297. found="yes"
  7298. fi
  7299. fi
  7300. xorg_testset_save_CFLAGS="$CFLAGS"
  7301. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7302. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7304. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7305. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7309. /* end confdefs.h. */
  7310. int i;
  7311. _ACEOF
  7312. if ac_fn_c_try_compile "$LINENO"; then :
  7313. xorg_cv_cc_flag_unknown_warning_option=yes
  7314. else
  7315. xorg_cv_cc_flag_unknown_warning_option=no
  7316. fi
  7317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7320. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7321. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7322. CFLAGS="$xorg_testset_save_CFLAGS"
  7323. fi
  7324. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7325. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7326. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7327. fi
  7328. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7330. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7331. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7335. /* end confdefs.h. */
  7336. int i;
  7337. _ACEOF
  7338. if ac_fn_c_try_compile "$LINENO"; then :
  7339. xorg_cv_cc_flag_unused_command_line_argument=yes
  7340. else
  7341. xorg_cv_cc_flag_unused_command_line_argument=no
  7342. fi
  7343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7344. fi
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7346. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7347. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7348. CFLAGS="$xorg_testset_save_CFLAGS"
  7349. fi
  7350. found="no"
  7351. if test $found = "no" ; then
  7352. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7354. fi
  7355. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7356. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7357. fi
  7358. CFLAGS="$CFLAGS -Wmain"
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7360. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7361. cacheid=xorg_cv_cc_flag__Wmain
  7362. if eval \${$cacheid+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7366. /* end confdefs.h. */
  7367. int i;
  7368. int
  7369. main ()
  7370. {
  7371. ;
  7372. return 0;
  7373. }
  7374. _ACEOF
  7375. if ac_fn_c_try_link "$LINENO"; then :
  7376. eval $cacheid=yes
  7377. else
  7378. eval $cacheid=no
  7379. fi
  7380. rm -f core conftest.err conftest.$ac_objext \
  7381. conftest$ac_exeext conftest.$ac_ext
  7382. fi
  7383. CFLAGS="$xorg_testset_save_CFLAGS"
  7384. eval supported=\$$cacheid
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7386. $as_echo "$supported" >&6; }
  7387. if test "$supported" = "yes" ; then
  7388. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7389. found="yes"
  7390. fi
  7391. fi
  7392. xorg_testset_save_CFLAGS="$CFLAGS"
  7393. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7394. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7396. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7397. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7401. /* end confdefs.h. */
  7402. int i;
  7403. _ACEOF
  7404. if ac_fn_c_try_compile "$LINENO"; then :
  7405. xorg_cv_cc_flag_unknown_warning_option=yes
  7406. else
  7407. xorg_cv_cc_flag_unknown_warning_option=no
  7408. fi
  7409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7412. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7413. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7414. CFLAGS="$xorg_testset_save_CFLAGS"
  7415. fi
  7416. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7417. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7419. fi
  7420. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7422. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7423. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7424. $as_echo_n "(cached) " >&6
  7425. else
  7426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7427. /* end confdefs.h. */
  7428. int i;
  7429. _ACEOF
  7430. if ac_fn_c_try_compile "$LINENO"; then :
  7431. xorg_cv_cc_flag_unused_command_line_argument=yes
  7432. else
  7433. xorg_cv_cc_flag_unused_command_line_argument=no
  7434. fi
  7435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7436. fi
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7438. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7439. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7440. CFLAGS="$xorg_testset_save_CFLAGS"
  7441. fi
  7442. found="no"
  7443. if test $found = "no" ; then
  7444. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7445. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7446. fi
  7447. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7448. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7449. fi
  7450. CFLAGS="$CFLAGS -Wmissing-braces"
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7452. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7453. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7454. if eval \${$cacheid+:} false; then :
  7455. $as_echo_n "(cached) " >&6
  7456. else
  7457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7458. /* end confdefs.h. */
  7459. int i;
  7460. int
  7461. main ()
  7462. {
  7463. ;
  7464. return 0;
  7465. }
  7466. _ACEOF
  7467. if ac_fn_c_try_link "$LINENO"; then :
  7468. eval $cacheid=yes
  7469. else
  7470. eval $cacheid=no
  7471. fi
  7472. rm -f core conftest.err conftest.$ac_objext \
  7473. conftest$ac_exeext conftest.$ac_ext
  7474. fi
  7475. CFLAGS="$xorg_testset_save_CFLAGS"
  7476. eval supported=\$$cacheid
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7478. $as_echo "$supported" >&6; }
  7479. if test "$supported" = "yes" ; then
  7480. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7481. found="yes"
  7482. fi
  7483. fi
  7484. xorg_testset_save_CFLAGS="$CFLAGS"
  7485. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7486. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7488. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7489. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7490. $as_echo_n "(cached) " >&6
  7491. else
  7492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7493. /* end confdefs.h. */
  7494. int i;
  7495. _ACEOF
  7496. if ac_fn_c_try_compile "$LINENO"; then :
  7497. xorg_cv_cc_flag_unknown_warning_option=yes
  7498. else
  7499. xorg_cv_cc_flag_unknown_warning_option=no
  7500. fi
  7501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7504. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7505. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7506. CFLAGS="$xorg_testset_save_CFLAGS"
  7507. fi
  7508. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7509. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7510. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7511. fi
  7512. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7514. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7515. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7516. $as_echo_n "(cached) " >&6
  7517. else
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. int i;
  7521. _ACEOF
  7522. if ac_fn_c_try_compile "$LINENO"; then :
  7523. xorg_cv_cc_flag_unused_command_line_argument=yes
  7524. else
  7525. xorg_cv_cc_flag_unused_command_line_argument=no
  7526. fi
  7527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7530. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7531. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7532. CFLAGS="$xorg_testset_save_CFLAGS"
  7533. fi
  7534. found="no"
  7535. if test $found = "no" ; then
  7536. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7537. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7538. fi
  7539. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7540. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7541. fi
  7542. CFLAGS="$CFLAGS -Wsequence-point"
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7544. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7545. cacheid=xorg_cv_cc_flag__Wsequence_point
  7546. if eval \${$cacheid+:} false; then :
  7547. $as_echo_n "(cached) " >&6
  7548. else
  7549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7550. /* end confdefs.h. */
  7551. int i;
  7552. int
  7553. main ()
  7554. {
  7555. ;
  7556. return 0;
  7557. }
  7558. _ACEOF
  7559. if ac_fn_c_try_link "$LINENO"; then :
  7560. eval $cacheid=yes
  7561. else
  7562. eval $cacheid=no
  7563. fi
  7564. rm -f core conftest.err conftest.$ac_objext \
  7565. conftest$ac_exeext conftest.$ac_ext
  7566. fi
  7567. CFLAGS="$xorg_testset_save_CFLAGS"
  7568. eval supported=\$$cacheid
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7570. $as_echo "$supported" >&6; }
  7571. if test "$supported" = "yes" ; then
  7572. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7573. found="yes"
  7574. fi
  7575. fi
  7576. xorg_testset_save_CFLAGS="$CFLAGS"
  7577. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7578. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7580. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7581. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7582. $as_echo_n "(cached) " >&6
  7583. else
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. int i;
  7587. _ACEOF
  7588. if ac_fn_c_try_compile "$LINENO"; then :
  7589. xorg_cv_cc_flag_unknown_warning_option=yes
  7590. else
  7591. xorg_cv_cc_flag_unknown_warning_option=no
  7592. fi
  7593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7594. fi
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7596. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7597. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7598. CFLAGS="$xorg_testset_save_CFLAGS"
  7599. fi
  7600. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7601. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7602. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7603. fi
  7604. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7606. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7607. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7608. $as_echo_n "(cached) " >&6
  7609. else
  7610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7611. /* end confdefs.h. */
  7612. int i;
  7613. _ACEOF
  7614. if ac_fn_c_try_compile "$LINENO"; then :
  7615. xorg_cv_cc_flag_unused_command_line_argument=yes
  7616. else
  7617. xorg_cv_cc_flag_unused_command_line_argument=no
  7618. fi
  7619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7620. fi
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7622. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7623. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7624. CFLAGS="$xorg_testset_save_CFLAGS"
  7625. fi
  7626. found="no"
  7627. if test $found = "no" ; then
  7628. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7629. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7630. fi
  7631. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7632. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7633. fi
  7634. CFLAGS="$CFLAGS -Wreturn-type"
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7636. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7637. cacheid=xorg_cv_cc_flag__Wreturn_type
  7638. if eval \${$cacheid+:} false; then :
  7639. $as_echo_n "(cached) " >&6
  7640. else
  7641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7642. /* end confdefs.h. */
  7643. int i;
  7644. int
  7645. main ()
  7646. {
  7647. ;
  7648. return 0;
  7649. }
  7650. _ACEOF
  7651. if ac_fn_c_try_link "$LINENO"; then :
  7652. eval $cacheid=yes
  7653. else
  7654. eval $cacheid=no
  7655. fi
  7656. rm -f core conftest.err conftest.$ac_objext \
  7657. conftest$ac_exeext conftest.$ac_ext
  7658. fi
  7659. CFLAGS="$xorg_testset_save_CFLAGS"
  7660. eval supported=\$$cacheid
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7662. $as_echo "$supported" >&6; }
  7663. if test "$supported" = "yes" ; then
  7664. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7665. found="yes"
  7666. fi
  7667. fi
  7668. xorg_testset_save_CFLAGS="$CFLAGS"
  7669. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7670. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7672. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7673. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7674. $as_echo_n "(cached) " >&6
  7675. else
  7676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7677. /* end confdefs.h. */
  7678. int i;
  7679. _ACEOF
  7680. if ac_fn_c_try_compile "$LINENO"; then :
  7681. xorg_cv_cc_flag_unknown_warning_option=yes
  7682. else
  7683. xorg_cv_cc_flag_unknown_warning_option=no
  7684. fi
  7685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7686. fi
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7688. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7689. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7690. CFLAGS="$xorg_testset_save_CFLAGS"
  7691. fi
  7692. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7693. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7694. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7695. fi
  7696. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7698. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7699. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7703. /* end confdefs.h. */
  7704. int i;
  7705. _ACEOF
  7706. if ac_fn_c_try_compile "$LINENO"; then :
  7707. xorg_cv_cc_flag_unused_command_line_argument=yes
  7708. else
  7709. xorg_cv_cc_flag_unused_command_line_argument=no
  7710. fi
  7711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7712. fi
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7714. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7715. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7716. CFLAGS="$xorg_testset_save_CFLAGS"
  7717. fi
  7718. found="no"
  7719. if test $found = "no" ; then
  7720. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7721. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7722. fi
  7723. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7724. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7725. fi
  7726. CFLAGS="$CFLAGS -Wtrigraphs"
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7728. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7729. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7730. if eval \${$cacheid+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7734. /* end confdefs.h. */
  7735. int i;
  7736. int
  7737. main ()
  7738. {
  7739. ;
  7740. return 0;
  7741. }
  7742. _ACEOF
  7743. if ac_fn_c_try_link "$LINENO"; then :
  7744. eval $cacheid=yes
  7745. else
  7746. eval $cacheid=no
  7747. fi
  7748. rm -f core conftest.err conftest.$ac_objext \
  7749. conftest$ac_exeext conftest.$ac_ext
  7750. fi
  7751. CFLAGS="$xorg_testset_save_CFLAGS"
  7752. eval supported=\$$cacheid
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7754. $as_echo "$supported" >&6; }
  7755. if test "$supported" = "yes" ; then
  7756. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7757. found="yes"
  7758. fi
  7759. fi
  7760. xorg_testset_save_CFLAGS="$CFLAGS"
  7761. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7762. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7764. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7765. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7766. $as_echo_n "(cached) " >&6
  7767. else
  7768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7769. /* end confdefs.h. */
  7770. int i;
  7771. _ACEOF
  7772. if ac_fn_c_try_compile "$LINENO"; then :
  7773. xorg_cv_cc_flag_unknown_warning_option=yes
  7774. else
  7775. xorg_cv_cc_flag_unknown_warning_option=no
  7776. fi
  7777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7778. fi
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7780. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7781. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7782. CFLAGS="$xorg_testset_save_CFLAGS"
  7783. fi
  7784. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7785. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7786. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7787. fi
  7788. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7790. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7791. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7795. /* end confdefs.h. */
  7796. int i;
  7797. _ACEOF
  7798. if ac_fn_c_try_compile "$LINENO"; then :
  7799. xorg_cv_cc_flag_unused_command_line_argument=yes
  7800. else
  7801. xorg_cv_cc_flag_unused_command_line_argument=no
  7802. fi
  7803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7804. fi
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7806. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7807. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7808. CFLAGS="$xorg_testset_save_CFLAGS"
  7809. fi
  7810. found="no"
  7811. if test $found = "no" ; then
  7812. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7813. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7814. fi
  7815. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7816. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7817. fi
  7818. CFLAGS="$CFLAGS -Warray-bounds"
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7820. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7821. cacheid=xorg_cv_cc_flag__Warray_bounds
  7822. if eval \${$cacheid+:} false; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7826. /* end confdefs.h. */
  7827. int i;
  7828. int
  7829. main ()
  7830. {
  7831. ;
  7832. return 0;
  7833. }
  7834. _ACEOF
  7835. if ac_fn_c_try_link "$LINENO"; then :
  7836. eval $cacheid=yes
  7837. else
  7838. eval $cacheid=no
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. fi
  7843. CFLAGS="$xorg_testset_save_CFLAGS"
  7844. eval supported=\$$cacheid
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7846. $as_echo "$supported" >&6; }
  7847. if test "$supported" = "yes" ; then
  7848. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7849. found="yes"
  7850. fi
  7851. fi
  7852. xorg_testset_save_CFLAGS="$CFLAGS"
  7853. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7854. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7856. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7857. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7858. $as_echo_n "(cached) " >&6
  7859. else
  7860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7861. /* end confdefs.h. */
  7862. int i;
  7863. _ACEOF
  7864. if ac_fn_c_try_compile "$LINENO"; then :
  7865. xorg_cv_cc_flag_unknown_warning_option=yes
  7866. else
  7867. xorg_cv_cc_flag_unknown_warning_option=no
  7868. fi
  7869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7870. fi
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7872. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7873. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7874. CFLAGS="$xorg_testset_save_CFLAGS"
  7875. fi
  7876. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7877. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7878. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7879. fi
  7880. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7882. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7883. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7884. $as_echo_n "(cached) " >&6
  7885. else
  7886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7887. /* end confdefs.h. */
  7888. int i;
  7889. _ACEOF
  7890. if ac_fn_c_try_compile "$LINENO"; then :
  7891. xorg_cv_cc_flag_unused_command_line_argument=yes
  7892. else
  7893. xorg_cv_cc_flag_unused_command_line_argument=no
  7894. fi
  7895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7896. fi
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7898. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7899. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7900. CFLAGS="$xorg_testset_save_CFLAGS"
  7901. fi
  7902. found="no"
  7903. if test $found = "no" ; then
  7904. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7905. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7906. fi
  7907. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7908. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7909. fi
  7910. CFLAGS="$CFLAGS -Wwrite-strings"
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7912. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7913. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7914. if eval \${$cacheid+:} false; then :
  7915. $as_echo_n "(cached) " >&6
  7916. else
  7917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7918. /* end confdefs.h. */
  7919. int i;
  7920. int
  7921. main ()
  7922. {
  7923. ;
  7924. return 0;
  7925. }
  7926. _ACEOF
  7927. if ac_fn_c_try_link "$LINENO"; then :
  7928. eval $cacheid=yes
  7929. else
  7930. eval $cacheid=no
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext \
  7933. conftest$ac_exeext conftest.$ac_ext
  7934. fi
  7935. CFLAGS="$xorg_testset_save_CFLAGS"
  7936. eval supported=\$$cacheid
  7937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7938. $as_echo "$supported" >&6; }
  7939. if test "$supported" = "yes" ; then
  7940. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7941. found="yes"
  7942. fi
  7943. fi
  7944. xorg_testset_save_CFLAGS="$CFLAGS"
  7945. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7946. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7948. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7949. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7953. /* end confdefs.h. */
  7954. int i;
  7955. _ACEOF
  7956. if ac_fn_c_try_compile "$LINENO"; then :
  7957. xorg_cv_cc_flag_unknown_warning_option=yes
  7958. else
  7959. xorg_cv_cc_flag_unknown_warning_option=no
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7962. fi
  7963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7964. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7965. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7966. CFLAGS="$xorg_testset_save_CFLAGS"
  7967. fi
  7968. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7969. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7970. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7971. fi
  7972. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7974. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7975. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7976. $as_echo_n "(cached) " >&6
  7977. else
  7978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7979. /* end confdefs.h. */
  7980. int i;
  7981. _ACEOF
  7982. if ac_fn_c_try_compile "$LINENO"; then :
  7983. xorg_cv_cc_flag_unused_command_line_argument=yes
  7984. else
  7985. xorg_cv_cc_flag_unused_command_line_argument=no
  7986. fi
  7987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7988. fi
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7990. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7991. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7992. CFLAGS="$xorg_testset_save_CFLAGS"
  7993. fi
  7994. found="no"
  7995. if test $found = "no" ; then
  7996. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7997. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7998. fi
  7999. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8000. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8001. fi
  8002. CFLAGS="$CFLAGS -Waddress"
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8004. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8005. cacheid=xorg_cv_cc_flag__Waddress
  8006. if eval \${$cacheid+:} false; then :
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8010. /* end confdefs.h. */
  8011. int i;
  8012. int
  8013. main ()
  8014. {
  8015. ;
  8016. return 0;
  8017. }
  8018. _ACEOF
  8019. if ac_fn_c_try_link "$LINENO"; then :
  8020. eval $cacheid=yes
  8021. else
  8022. eval $cacheid=no
  8023. fi
  8024. rm -f core conftest.err conftest.$ac_objext \
  8025. conftest$ac_exeext conftest.$ac_ext
  8026. fi
  8027. CFLAGS="$xorg_testset_save_CFLAGS"
  8028. eval supported=\$$cacheid
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8030. $as_echo "$supported" >&6; }
  8031. if test "$supported" = "yes" ; then
  8032. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8033. found="yes"
  8034. fi
  8035. fi
  8036. xorg_testset_save_CFLAGS="$CFLAGS"
  8037. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8038. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8040. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8041. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8042. $as_echo_n "(cached) " >&6
  8043. else
  8044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8045. /* end confdefs.h. */
  8046. int i;
  8047. _ACEOF
  8048. if ac_fn_c_try_compile "$LINENO"; then :
  8049. xorg_cv_cc_flag_unknown_warning_option=yes
  8050. else
  8051. xorg_cv_cc_flag_unknown_warning_option=no
  8052. fi
  8053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8054. fi
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8056. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8057. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8058. CFLAGS="$xorg_testset_save_CFLAGS"
  8059. fi
  8060. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8061. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8062. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8063. fi
  8064. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8066. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8067. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8068. $as_echo_n "(cached) " >&6
  8069. else
  8070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8071. /* end confdefs.h. */
  8072. int i;
  8073. _ACEOF
  8074. if ac_fn_c_try_compile "$LINENO"; then :
  8075. xorg_cv_cc_flag_unused_command_line_argument=yes
  8076. else
  8077. xorg_cv_cc_flag_unused_command_line_argument=no
  8078. fi
  8079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8080. fi
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8082. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8083. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8084. CFLAGS="$xorg_testset_save_CFLAGS"
  8085. fi
  8086. found="no"
  8087. if test $found = "no" ; then
  8088. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8089. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8090. fi
  8091. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8092. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8093. fi
  8094. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8096. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8097. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8098. if eval \${$cacheid+:} false; then :
  8099. $as_echo_n "(cached) " >&6
  8100. else
  8101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8102. /* end confdefs.h. */
  8103. int i;
  8104. int
  8105. main ()
  8106. {
  8107. ;
  8108. return 0;
  8109. }
  8110. _ACEOF
  8111. if ac_fn_c_try_link "$LINENO"; then :
  8112. eval $cacheid=yes
  8113. else
  8114. eval $cacheid=no
  8115. fi
  8116. rm -f core conftest.err conftest.$ac_objext \
  8117. conftest$ac_exeext conftest.$ac_ext
  8118. fi
  8119. CFLAGS="$xorg_testset_save_CFLAGS"
  8120. eval supported=\$$cacheid
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8122. $as_echo "$supported" >&6; }
  8123. if test "$supported" = "yes" ; then
  8124. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8125. found="yes"
  8126. fi
  8127. fi
  8128. xorg_testset_save_CFLAGS="$CFLAGS"
  8129. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8130. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8132. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8133. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8134. $as_echo_n "(cached) " >&6
  8135. else
  8136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8137. /* end confdefs.h. */
  8138. int i;
  8139. _ACEOF
  8140. if ac_fn_c_try_compile "$LINENO"; then :
  8141. xorg_cv_cc_flag_unknown_warning_option=yes
  8142. else
  8143. xorg_cv_cc_flag_unknown_warning_option=no
  8144. fi
  8145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8146. fi
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8148. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8149. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8150. CFLAGS="$xorg_testset_save_CFLAGS"
  8151. fi
  8152. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8153. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8154. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8155. fi
  8156. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8158. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8159. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8160. $as_echo_n "(cached) " >&6
  8161. else
  8162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8163. /* end confdefs.h. */
  8164. int i;
  8165. _ACEOF
  8166. if ac_fn_c_try_compile "$LINENO"; then :
  8167. xorg_cv_cc_flag_unused_command_line_argument=yes
  8168. else
  8169. xorg_cv_cc_flag_unused_command_line_argument=no
  8170. fi
  8171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8172. fi
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8174. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8175. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8176. CFLAGS="$xorg_testset_save_CFLAGS"
  8177. fi
  8178. found="no"
  8179. if test $found = "no" ; then
  8180. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8181. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8182. fi
  8183. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8184. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8185. fi
  8186. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8188. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8189. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8190. if eval \${$cacheid+:} false; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8194. /* end confdefs.h. */
  8195. int i;
  8196. int
  8197. main ()
  8198. {
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. if ac_fn_c_try_link "$LINENO"; then :
  8204. eval $cacheid=yes
  8205. else
  8206. eval $cacheid=no
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext \
  8209. conftest$ac_exeext conftest.$ac_ext
  8210. fi
  8211. CFLAGS="$xorg_testset_save_CFLAGS"
  8212. eval supported=\$$cacheid
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8214. $as_echo "$supported" >&6; }
  8215. if test "$supported" = "yes" ; then
  8216. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8217. found="yes"
  8218. fi
  8219. fi
  8220. fi
  8221. CWARNFLAGS="$BASE_CFLAGS"
  8222. if test "x$GCC" = xyes ; then
  8223. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8224. fi
  8225. # Check whether --enable-strict-compilation was given.
  8226. if test "${enable_strict_compilation+set}" = set; then :
  8227. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8228. else
  8229. STRICT_COMPILE=no
  8230. fi
  8231. STRICT_CFLAGS=""
  8232. xorg_testset_save_CFLAGS="$CFLAGS"
  8233. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8234. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8236. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8237. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8241. /* end confdefs.h. */
  8242. int i;
  8243. _ACEOF
  8244. if ac_fn_c_try_compile "$LINENO"; then :
  8245. xorg_cv_cc_flag_unknown_warning_option=yes
  8246. else
  8247. xorg_cv_cc_flag_unknown_warning_option=no
  8248. fi
  8249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8250. fi
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8252. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8253. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8254. CFLAGS="$xorg_testset_save_CFLAGS"
  8255. fi
  8256. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8257. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8258. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8259. fi
  8260. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8262. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8263. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8264. $as_echo_n "(cached) " >&6
  8265. else
  8266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8267. /* end confdefs.h. */
  8268. int i;
  8269. _ACEOF
  8270. if ac_fn_c_try_compile "$LINENO"; then :
  8271. xorg_cv_cc_flag_unused_command_line_argument=yes
  8272. else
  8273. xorg_cv_cc_flag_unused_command_line_argument=no
  8274. fi
  8275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8276. fi
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8278. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8279. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8280. CFLAGS="$xorg_testset_save_CFLAGS"
  8281. fi
  8282. found="no"
  8283. if test $found = "no" ; then
  8284. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8285. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8286. fi
  8287. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8288. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8289. fi
  8290. CFLAGS="$CFLAGS -pedantic"
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8292. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8293. cacheid=xorg_cv_cc_flag__pedantic
  8294. if eval \${$cacheid+:} false; then :
  8295. $as_echo_n "(cached) " >&6
  8296. else
  8297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8298. /* end confdefs.h. */
  8299. int i;
  8300. int
  8301. main ()
  8302. {
  8303. ;
  8304. return 0;
  8305. }
  8306. _ACEOF
  8307. if ac_fn_c_try_link "$LINENO"; then :
  8308. eval $cacheid=yes
  8309. else
  8310. eval $cacheid=no
  8311. fi
  8312. rm -f core conftest.err conftest.$ac_objext \
  8313. conftest$ac_exeext conftest.$ac_ext
  8314. fi
  8315. CFLAGS="$xorg_testset_save_CFLAGS"
  8316. eval supported=\$$cacheid
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8318. $as_echo "$supported" >&6; }
  8319. if test "$supported" = "yes" ; then
  8320. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8321. found="yes"
  8322. fi
  8323. fi
  8324. xorg_testset_save_CFLAGS="$CFLAGS"
  8325. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8326. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8328. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8329. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8330. $as_echo_n "(cached) " >&6
  8331. else
  8332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8333. /* end confdefs.h. */
  8334. int i;
  8335. _ACEOF
  8336. if ac_fn_c_try_compile "$LINENO"; then :
  8337. xorg_cv_cc_flag_unknown_warning_option=yes
  8338. else
  8339. xorg_cv_cc_flag_unknown_warning_option=no
  8340. fi
  8341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8342. fi
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8344. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8345. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8346. CFLAGS="$xorg_testset_save_CFLAGS"
  8347. fi
  8348. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8349. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8350. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8351. fi
  8352. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8354. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8355. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8356. $as_echo_n "(cached) " >&6
  8357. else
  8358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8359. /* end confdefs.h. */
  8360. int i;
  8361. _ACEOF
  8362. if ac_fn_c_try_compile "$LINENO"; then :
  8363. xorg_cv_cc_flag_unused_command_line_argument=yes
  8364. else
  8365. xorg_cv_cc_flag_unused_command_line_argument=no
  8366. fi
  8367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8368. fi
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8370. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8371. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8372. CFLAGS="$xorg_testset_save_CFLAGS"
  8373. fi
  8374. found="no"
  8375. if test $found = "no" ; then
  8376. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8377. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8378. fi
  8379. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8380. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8381. fi
  8382. CFLAGS="$CFLAGS -Werror"
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8384. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8385. cacheid=xorg_cv_cc_flag__Werror
  8386. if eval \${$cacheid+:} false; then :
  8387. $as_echo_n "(cached) " >&6
  8388. else
  8389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8390. /* end confdefs.h. */
  8391. int i;
  8392. int
  8393. main ()
  8394. {
  8395. ;
  8396. return 0;
  8397. }
  8398. _ACEOF
  8399. if ac_fn_c_try_link "$LINENO"; then :
  8400. eval $cacheid=yes
  8401. else
  8402. eval $cacheid=no
  8403. fi
  8404. rm -f core conftest.err conftest.$ac_objext \
  8405. conftest$ac_exeext conftest.$ac_ext
  8406. fi
  8407. CFLAGS="$xorg_testset_save_CFLAGS"
  8408. eval supported=\$$cacheid
  8409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8410. $as_echo "$supported" >&6; }
  8411. if test "$supported" = "yes" ; then
  8412. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8413. found="yes"
  8414. fi
  8415. fi
  8416. if test $found = "no" ; then
  8417. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8419. fi
  8420. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8421. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8422. fi
  8423. CFLAGS="$CFLAGS -errwarn"
  8424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8425. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8426. cacheid=xorg_cv_cc_flag__errwarn
  8427. if eval \${$cacheid+:} false; then :
  8428. $as_echo_n "(cached) " >&6
  8429. else
  8430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8431. /* end confdefs.h. */
  8432. int i;
  8433. int
  8434. main ()
  8435. {
  8436. ;
  8437. return 0;
  8438. }
  8439. _ACEOF
  8440. if ac_fn_c_try_link "$LINENO"; then :
  8441. eval $cacheid=yes
  8442. else
  8443. eval $cacheid=no
  8444. fi
  8445. rm -f core conftest.err conftest.$ac_objext \
  8446. conftest$ac_exeext conftest.$ac_ext
  8447. fi
  8448. CFLAGS="$xorg_testset_save_CFLAGS"
  8449. eval supported=\$$cacheid
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8451. $as_echo "$supported" >&6; }
  8452. if test "$supported" = "yes" ; then
  8453. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8454. found="yes"
  8455. fi
  8456. fi
  8457. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8458. # activate it with -Werror, so we add it here explicitly.
  8459. xorg_testset_save_CFLAGS="$CFLAGS"
  8460. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8461. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8463. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8464. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8465. $as_echo_n "(cached) " >&6
  8466. else
  8467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8468. /* end confdefs.h. */
  8469. int i;
  8470. _ACEOF
  8471. if ac_fn_c_try_compile "$LINENO"; then :
  8472. xorg_cv_cc_flag_unknown_warning_option=yes
  8473. else
  8474. xorg_cv_cc_flag_unknown_warning_option=no
  8475. fi
  8476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8477. fi
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8479. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8480. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8481. CFLAGS="$xorg_testset_save_CFLAGS"
  8482. fi
  8483. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8484. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8485. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8486. fi
  8487. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8489. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8490. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8491. $as_echo_n "(cached) " >&6
  8492. else
  8493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8494. /* end confdefs.h. */
  8495. int i;
  8496. _ACEOF
  8497. if ac_fn_c_try_compile "$LINENO"; then :
  8498. xorg_cv_cc_flag_unused_command_line_argument=yes
  8499. else
  8500. xorg_cv_cc_flag_unused_command_line_argument=no
  8501. fi
  8502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8503. fi
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8505. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8506. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8507. CFLAGS="$xorg_testset_save_CFLAGS"
  8508. fi
  8509. found="no"
  8510. if test $found = "no" ; then
  8511. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8512. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8513. fi
  8514. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8515. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8516. fi
  8517. CFLAGS="$CFLAGS -Werror=attributes"
  8518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8519. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8520. cacheid=xorg_cv_cc_flag__Werror_attributes
  8521. if eval \${$cacheid+:} false; then :
  8522. $as_echo_n "(cached) " >&6
  8523. else
  8524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8525. /* end confdefs.h. */
  8526. int i;
  8527. int
  8528. main ()
  8529. {
  8530. ;
  8531. return 0;
  8532. }
  8533. _ACEOF
  8534. if ac_fn_c_try_link "$LINENO"; then :
  8535. eval $cacheid=yes
  8536. else
  8537. eval $cacheid=no
  8538. fi
  8539. rm -f core conftest.err conftest.$ac_objext \
  8540. conftest$ac_exeext conftest.$ac_ext
  8541. fi
  8542. CFLAGS="$xorg_testset_save_CFLAGS"
  8543. eval supported=\$$cacheid
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8545. $as_echo "$supported" >&6; }
  8546. if test "$supported" = "yes" ; then
  8547. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8548. found="yes"
  8549. fi
  8550. fi
  8551. if test "x$STRICT_COMPILE" = "xyes"; then
  8552. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8553. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8554. fi
  8555. cat >>confdefs.h <<_ACEOF
  8556. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8557. _ACEOF
  8558. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8559. if test "x$PVM" = "x"; then
  8560. PVM="0"
  8561. fi
  8562. cat >>confdefs.h <<_ACEOF
  8563. #define PACKAGE_VERSION_MINOR $PVM
  8564. _ACEOF
  8565. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8566. if test "x$PVP" = "x"; then
  8567. PVP="0"
  8568. fi
  8569. cat >>confdefs.h <<_ACEOF
  8570. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8571. _ACEOF
  8572. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8573. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8574. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8575. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8576. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8577. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8578. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8579. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8580. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8581. if test x$APP_MAN_SUFFIX = x ; then
  8582. APP_MAN_SUFFIX=1
  8583. fi
  8584. if test x$APP_MAN_DIR = x ; then
  8585. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8586. fi
  8587. if test x$LIB_MAN_SUFFIX = x ; then
  8588. LIB_MAN_SUFFIX=3
  8589. fi
  8590. if test x$LIB_MAN_DIR = x ; then
  8591. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8592. fi
  8593. if test x$FILE_MAN_SUFFIX = x ; then
  8594. case $host_os in
  8595. solaris*) FILE_MAN_SUFFIX=4 ;;
  8596. *) FILE_MAN_SUFFIX=5 ;;
  8597. esac
  8598. fi
  8599. if test x$FILE_MAN_DIR = x ; then
  8600. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8601. fi
  8602. if test x$MISC_MAN_SUFFIX = x ; then
  8603. case $host_os in
  8604. solaris*) MISC_MAN_SUFFIX=5 ;;
  8605. *) MISC_MAN_SUFFIX=7 ;;
  8606. esac
  8607. fi
  8608. if test x$MISC_MAN_DIR = x ; then
  8609. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8610. fi
  8611. if test x$DRIVER_MAN_SUFFIX = x ; then
  8612. case $host_os in
  8613. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8614. *) DRIVER_MAN_SUFFIX=4 ;;
  8615. esac
  8616. fi
  8617. if test x$DRIVER_MAN_DIR = x ; then
  8618. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8619. fi
  8620. if test x$ADMIN_MAN_SUFFIX = x ; then
  8621. case $host_os in
  8622. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8623. *) ADMIN_MAN_SUFFIX=8 ;;
  8624. esac
  8625. fi
  8626. if test x$ADMIN_MAN_DIR = x ; then
  8627. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8628. fi
  8629. XORG_MAN_PAGE="X Version 11"
  8630. MAN_SUBSTS="\
  8631. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8632. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8633. -e 's|__xservername__|Xorg|g' \
  8634. -e 's|__xconfigfile__|xorg.conf|g' \
  8635. -e 's|__projectroot__|\$(prefix)|g' \
  8636. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8637. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8638. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8639. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8640. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8641. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8642. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8643. # Check whether --enable-silent-rules was given.
  8644. if test "${enable_silent_rules+set}" = set; then :
  8645. enableval=$enable_silent_rules;
  8646. fi
  8647. case $enable_silent_rules in # (((
  8648. yes) AM_DEFAULT_VERBOSITY=0;;
  8649. no) AM_DEFAULT_VERBOSITY=1;;
  8650. *) AM_DEFAULT_VERBOSITY=0;;
  8651. esac
  8652. am_make=${MAKE-make}
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8654. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8655. if ${am_cv_make_support_nested_variables+:} false; then :
  8656. $as_echo_n "(cached) " >&6
  8657. else
  8658. if $as_echo 'TRUE=$(BAR$(V))
  8659. BAR0=false
  8660. BAR1=true
  8661. V=1
  8662. am__doit:
  8663. @$(TRUE)
  8664. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8665. am_cv_make_support_nested_variables=yes
  8666. else
  8667. am_cv_make_support_nested_variables=no
  8668. fi
  8669. fi
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8671. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8672. if test $am_cv_make_support_nested_variables = yes; then
  8673. AM_V='$(V)'
  8674. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8675. else
  8676. AM_V=$AM_DEFAULT_VERBOSITY
  8677. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8678. fi
  8679. AM_BACKSLASH='\'
  8680. if test "x$CC" != xcc; then
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  8682. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  8683. else
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  8685. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  8686. fi
  8687. set dummy $CC; ac_cc=`$as_echo "$2" |
  8688. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  8689. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  8690. $as_echo_n "(cached) " >&6
  8691. else
  8692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8693. /* end confdefs.h. */
  8694. int
  8695. main ()
  8696. {
  8697. ;
  8698. return 0;
  8699. }
  8700. _ACEOF
  8701. # Make sure it works both with $CC and with simple cc.
  8702. # We do the test twice because some compilers refuse to overwrite an
  8703. # existing .o file with -o, though they will create one.
  8704. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  8705. rm -f conftest2.*
  8706. if { { case "(($ac_try" in
  8707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8708. *) ac_try_echo=$ac_try;;
  8709. esac
  8710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8711. $as_echo "$ac_try_echo"; } >&5
  8712. (eval "$ac_try") 2>&5
  8713. ac_status=$?
  8714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8715. test $ac_status = 0; } &&
  8716. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  8717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8718. *) ac_try_echo=$ac_try;;
  8719. esac
  8720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8721. $as_echo "$ac_try_echo"; } >&5
  8722. (eval "$ac_try") 2>&5
  8723. ac_status=$?
  8724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8725. test $ac_status = 0; };
  8726. then
  8727. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  8728. if test "x$CC" != xcc; then
  8729. # Test first that cc exists at all.
  8730. if { ac_try='cc -c conftest.$ac_ext >&5'
  8731. { { case "(($ac_try" in
  8732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8733. *) ac_try_echo=$ac_try;;
  8734. esac
  8735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8736. $as_echo "$ac_try_echo"; } >&5
  8737. (eval "$ac_try") 2>&5
  8738. ac_status=$?
  8739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8740. test $ac_status = 0; }; }; then
  8741. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  8742. rm -f conftest2.*
  8743. if { { case "(($ac_try" in
  8744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8745. *) ac_try_echo=$ac_try;;
  8746. esac
  8747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8748. $as_echo "$ac_try_echo"; } >&5
  8749. (eval "$ac_try") 2>&5
  8750. ac_status=$?
  8751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8752. test $ac_status = 0; } &&
  8753. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  8754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8755. *) ac_try_echo=$ac_try;;
  8756. esac
  8757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8758. $as_echo "$ac_try_echo"; } >&5
  8759. (eval "$ac_try") 2>&5
  8760. ac_status=$?
  8761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8762. test $ac_status = 0; };
  8763. then
  8764. # cc works too.
  8765. :
  8766. else
  8767. # cc exists but doesn't like -o.
  8768. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  8769. fi
  8770. fi
  8771. fi
  8772. else
  8773. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  8774. fi
  8775. rm -f core conftest*
  8776. fi
  8777. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  8778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8779. $as_echo "yes" >&6; }
  8780. else
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8782. $as_echo "no" >&6; }
  8783. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  8784. fi
  8785. # FIXME: we rely on the cache variable name because
  8786. # there is no other way.
  8787. set dummy $CC
  8788. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  8789. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8790. if test "$am_t" != yes; then
  8791. # Losing compiler, so override with the script.
  8792. # FIXME: It is wrong to rewrite CC.
  8793. # But if we don't then we get into trouble of one sort or another.
  8794. # A longer-term fix would be to have automake use am__CC in this case,
  8795. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8796. CC="$am_aux_dir/compile $CC"
  8797. fi
  8798. for ac_func in mkstemp
  8799. do :
  8800. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  8801. if test "x$ac_cv_func_mkstemp" = xyes; then :
  8802. cat >>confdefs.h <<_ACEOF
  8803. #define HAVE_MKSTEMP 1
  8804. _ACEOF
  8805. fi
  8806. done
  8807. # Math libraries & functions
  8808. # - some compilers use builtin inlines for floor when optimizing
  8809. # - lrint() is a C99 addition not found on some older systems
  8810. # - must do the libm check first so that the lrint check will have it in $LIBS
  8811. save_LIBS="$LIBS"
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
  8813. $as_echo_n "checking for library containing floor... " >&6; }
  8814. if ${ac_cv_search_floor+:} false; then :
  8815. $as_echo_n "(cached) " >&6
  8816. else
  8817. ac_func_search_save_LIBS=$LIBS
  8818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8819. /* end confdefs.h. */
  8820. /* Override any GCC internal prototype to avoid an error.
  8821. Use char because int might match the return type of a GCC
  8822. builtin and then its argument prototype would still apply. */
  8823. #ifdef __cplusplus
  8824. extern "C"
  8825. #endif
  8826. char floor ();
  8827. int
  8828. main ()
  8829. {
  8830. return floor ();
  8831. ;
  8832. return 0;
  8833. }
  8834. _ACEOF
  8835. for ac_lib in '' m; do
  8836. if test -z "$ac_lib"; then
  8837. ac_res="none required"
  8838. else
  8839. ac_res=-l$ac_lib
  8840. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8841. fi
  8842. if ac_fn_c_try_link "$LINENO"; then :
  8843. ac_cv_search_floor=$ac_res
  8844. fi
  8845. rm -f core conftest.err conftest.$ac_objext \
  8846. conftest$ac_exeext
  8847. if ${ac_cv_search_floor+:} false; then :
  8848. break
  8849. fi
  8850. done
  8851. if ${ac_cv_search_floor+:} false; then :
  8852. else
  8853. ac_cv_search_floor=no
  8854. fi
  8855. rm conftest.$ac_ext
  8856. LIBS=$ac_func_search_save_LIBS
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
  8859. $as_echo "$ac_cv_search_floor" >&6; }
  8860. ac_res=$ac_cv_search_floor
  8861. if test "$ac_res" != no; then :
  8862. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8863. fi
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
  8865. $as_echo_n "checking for library containing lrint... " >&6; }
  8866. if ${ac_cv_search_lrint+:} false; then :
  8867. $as_echo_n "(cached) " >&6
  8868. else
  8869. ac_func_search_save_LIBS=$LIBS
  8870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8871. /* end confdefs.h. */
  8872. /* Override any GCC internal prototype to avoid an error.
  8873. Use char because int might match the return type of a GCC
  8874. builtin and then its argument prototype would still apply. */
  8875. #ifdef __cplusplus
  8876. extern "C"
  8877. #endif
  8878. char lrint ();
  8879. int
  8880. main ()
  8881. {
  8882. return lrint ();
  8883. ;
  8884. return 0;
  8885. }
  8886. _ACEOF
  8887. for ac_lib in '' m; do
  8888. if test -z "$ac_lib"; then
  8889. ac_res="none required"
  8890. else
  8891. ac_res=-l$ac_lib
  8892. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8893. fi
  8894. if ac_fn_c_try_link "$LINENO"; then :
  8895. ac_cv_search_lrint=$ac_res
  8896. fi
  8897. rm -f core conftest.err conftest.$ac_objext \
  8898. conftest$ac_exeext
  8899. if ${ac_cv_search_lrint+:} false; then :
  8900. break
  8901. fi
  8902. done
  8903. if ${ac_cv_search_lrint+:} false; then :
  8904. else
  8905. ac_cv_search_lrint=no
  8906. fi
  8907. rm conftest.$ac_ext
  8908. LIBS=$ac_func_search_save_LIBS
  8909. fi
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
  8911. $as_echo "$ac_cv_search_lrint" >&6; }
  8912. ac_res=$ac_cv_search_lrint
  8913. if test "$ac_res" != no; then :
  8914. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8915. fi
  8916. for ac_func in lrint
  8917. do :
  8918. ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
  8919. if test "x$ac_cv_func_lrint" = xyes; then :
  8920. cat >>confdefs.h <<_ACEOF
  8921. #define HAVE_LRINT 1
  8922. _ACEOF
  8923. fi
  8924. done
  8925. MATH_LIBS="$LIBS"
  8926. LIBS="$save_LIBS"
  8927. # Obtain compiler/linker options from dependencies
  8928. pkg_failed=no
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5
  8930. $as_echo_n "checking for BMTOA... " >&6; }
  8931. if test -n "$BMTOA_CFLAGS"; then
  8932. pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS"
  8933. elif test -n "$PKG_CONFIG"; then
  8934. if test -n "$PKG_CONFIG" && \
  8935. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
  8936. ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
  8937. ac_status=$?
  8938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8939. test $ac_status = 0; }; then
  8940. pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null`
  8941. test "x$?" != "x0" && pkg_failed=yes
  8942. else
  8943. pkg_failed=yes
  8944. fi
  8945. else
  8946. pkg_failed=untried
  8947. fi
  8948. if test -n "$BMTOA_LIBS"; then
  8949. pkg_cv_BMTOA_LIBS="$BMTOA_LIBS"
  8950. elif test -n "$PKG_CONFIG"; then
  8951. if test -n "$PKG_CONFIG" && \
  8952. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
  8953. ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
  8954. ac_status=$?
  8955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8956. test $ac_status = 0; }; then
  8957. pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null`
  8958. test "x$?" != "x0" && pkg_failed=yes
  8959. else
  8960. pkg_failed=yes
  8961. fi
  8962. else
  8963. pkg_failed=untried
  8964. fi
  8965. if test $pkg_failed = yes; then
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8967. $as_echo "no" >&6; }
  8968. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8969. _pkg_short_errors_supported=yes
  8970. else
  8971. _pkg_short_errors_supported=no
  8972. fi
  8973. if test $_pkg_short_errors_supported = yes; then
  8974. BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
  8975. else
  8976. BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
  8977. fi
  8978. # Put the nasty error message in config.log where it belongs
  8979. echo "$BMTOA_PKG_ERRORS" >&5
  8980. as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met:
  8981. $BMTOA_PKG_ERRORS
  8982. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8983. installed software in a non-standard prefix.
  8984. Alternatively, you may set the environment variables BMTOA_CFLAGS
  8985. and BMTOA_LIBS to avoid the need to call pkg-config.
  8986. See the pkg-config man page for more details." "$LINENO" 5
  8987. elif test $pkg_failed = untried; then
  8988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8989. $as_echo "no" >&6; }
  8990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8992. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8993. is in your PATH or set the PKG_CONFIG environment variable to the full
  8994. path to pkg-config.
  8995. Alternatively, you may set the environment variables BMTOA_CFLAGS
  8996. and BMTOA_LIBS to avoid the need to call pkg-config.
  8997. See the pkg-config man page for more details.
  8998. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8999. See \`config.log' for more details" "$LINENO" 5; }
  9000. else
  9001. BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS
  9002. BMTOA_LIBS=$pkg_cv_BMTOA_LIBS
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9004. $as_echo "yes" >&6; }
  9005. fi
  9006. pkg_failed=no
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5
  9008. $as_echo_n "checking for ATOBM... " >&6; }
  9009. if test -n "$ATOBM_CFLAGS"; then
  9010. pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS"
  9011. elif test -n "$PKG_CONFIG"; then
  9012. if test -n "$PKG_CONFIG" && \
  9013. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
  9014. ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
  9015. ac_status=$?
  9016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9017. test $ac_status = 0; }; then
  9018. pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
  9019. test "x$?" != "x0" && pkg_failed=yes
  9020. else
  9021. pkg_failed=yes
  9022. fi
  9023. else
  9024. pkg_failed=untried
  9025. fi
  9026. if test -n "$ATOBM_LIBS"; then
  9027. pkg_cv_ATOBM_LIBS="$ATOBM_LIBS"
  9028. elif test -n "$PKG_CONFIG"; then
  9029. if test -n "$PKG_CONFIG" && \
  9030. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
  9031. ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
  9032. ac_status=$?
  9033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9034. test $ac_status = 0; }; then
  9035. pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
  9036. test "x$?" != "x0" && pkg_failed=yes
  9037. else
  9038. pkg_failed=yes
  9039. fi
  9040. else
  9041. pkg_failed=untried
  9042. fi
  9043. if test $pkg_failed = yes; then
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9045. $as_echo "no" >&6; }
  9046. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9047. _pkg_short_errors_supported=yes
  9048. else
  9049. _pkg_short_errors_supported=no
  9050. fi
  9051. if test $_pkg_short_errors_supported = yes; then
  9052. ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
  9053. else
  9054. ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
  9055. fi
  9056. # Put the nasty error message in config.log where it belongs
  9057. echo "$ATOBM_PKG_ERRORS" >&5
  9058. as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
  9059. $ATOBM_PKG_ERRORS
  9060. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9061. installed software in a non-standard prefix.
  9062. Alternatively, you may set the environment variables ATOBM_CFLAGS
  9063. and ATOBM_LIBS to avoid the need to call pkg-config.
  9064. See the pkg-config man page for more details." "$LINENO" 5
  9065. elif test $pkg_failed = untried; then
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9067. $as_echo "no" >&6; }
  9068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9070. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  9071. is in your PATH or set the PKG_CONFIG environment variable to the full
  9072. path to pkg-config.
  9073. Alternatively, you may set the environment variables ATOBM_CFLAGS
  9074. and ATOBM_LIBS to avoid the need to call pkg-config.
  9075. See the pkg-config man page for more details.
  9076. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9077. See \`config.log' for more details" "$LINENO" 5; }
  9078. else
  9079. ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS
  9080. ATOBM_LIBS=$pkg_cv_ATOBM_LIBS
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9082. $as_echo "yes" >&6; }
  9083. fi
  9084. pkg_failed=no
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5
  9086. $as_echo_n "checking for BITMAP... " >&6; }
  9087. if test -n "$BITMAP_CFLAGS"; then
  9088. pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS"
  9089. elif test -n "$PKG_CONFIG"; then
  9090. if test -n "$PKG_CONFIG" && \
  9091. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
  9092. ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
  9093. ac_status=$?
  9094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9095. test $ac_status = 0; }; then
  9096. pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null`
  9097. test "x$?" != "x0" && pkg_failed=yes
  9098. else
  9099. pkg_failed=yes
  9100. fi
  9101. else
  9102. pkg_failed=untried
  9103. fi
  9104. if test -n "$BITMAP_LIBS"; then
  9105. pkg_cv_BITMAP_LIBS="$BITMAP_LIBS"
  9106. elif test -n "$PKG_CONFIG"; then
  9107. if test -n "$PKG_CONFIG" && \
  9108. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
  9109. ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
  9110. ac_status=$?
  9111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9112. test $ac_status = 0; }; then
  9113. pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null`
  9114. test "x$?" != "x0" && pkg_failed=yes
  9115. else
  9116. pkg_failed=yes
  9117. fi
  9118. else
  9119. pkg_failed=untried
  9120. fi
  9121. if test $pkg_failed = yes; then
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9123. $as_echo "no" >&6; }
  9124. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9125. _pkg_short_errors_supported=yes
  9126. else
  9127. _pkg_short_errors_supported=no
  9128. fi
  9129. if test $_pkg_short_errors_supported = yes; then
  9130. BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
  9131. else
  9132. BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
  9133. fi
  9134. # Put the nasty error message in config.log where it belongs
  9135. echo "$BITMAP_PKG_ERRORS" >&5
  9136. as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met:
  9137. $BITMAP_PKG_ERRORS
  9138. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9139. installed software in a non-standard prefix.
  9140. Alternatively, you may set the environment variables BITMAP_CFLAGS
  9141. and BITMAP_LIBS to avoid the need to call pkg-config.
  9142. See the pkg-config man page for more details." "$LINENO" 5
  9143. elif test $pkg_failed = untried; then
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9145. $as_echo "no" >&6; }
  9146. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9148. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  9149. is in your PATH or set the PKG_CONFIG environment variable to the full
  9150. path to pkg-config.
  9151. Alternatively, you may set the environment variables BITMAP_CFLAGS
  9152. and BITMAP_LIBS to avoid the need to call pkg-config.
  9153. See the pkg-config man page for more details.
  9154. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9155. See \`config.log' for more details" "$LINENO" 5; }
  9156. else
  9157. BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS
  9158. BITMAP_LIBS=$pkg_cv_BITMAP_LIBS
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9160. $as_echo "yes" >&6; }
  9161. fi
  9162. pkg_failed=no
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
  9164. $as_echo_n "checking for APPDEFS... " >&6; }
  9165. if test -n "$APPDEFS_CFLAGS"; then
  9166. pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
  9167. elif test -n "$PKG_CONFIG"; then
  9168. if test -n "$PKG_CONFIG" && \
  9169. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
  9170. ($PKG_CONFIG --exists --print-errors "xt") 2>&5
  9171. ac_status=$?
  9172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9173. test $ac_status = 0; }; then
  9174. pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
  9175. test "x$?" != "x0" && pkg_failed=yes
  9176. else
  9177. pkg_failed=yes
  9178. fi
  9179. else
  9180. pkg_failed=untried
  9181. fi
  9182. if test -n "$APPDEFS_LIBS"; then
  9183. pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
  9184. elif test -n "$PKG_CONFIG"; then
  9185. if test -n "$PKG_CONFIG" && \
  9186. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
  9187. ($PKG_CONFIG --exists --print-errors "xt") 2>&5
  9188. ac_status=$?
  9189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9190. test $ac_status = 0; }; then
  9191. pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
  9192. test "x$?" != "x0" && pkg_failed=yes
  9193. else
  9194. pkg_failed=yes
  9195. fi
  9196. else
  9197. pkg_failed=untried
  9198. fi
  9199. if test $pkg_failed = yes; then
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9201. $as_echo "no" >&6; }
  9202. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9203. _pkg_short_errors_supported=yes
  9204. else
  9205. _pkg_short_errors_supported=no
  9206. fi
  9207. if test $_pkg_short_errors_supported = yes; then
  9208. APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
  9209. else
  9210. APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
  9211. fi
  9212. # Put the nasty error message in config.log where it belongs
  9213. echo "$APPDEFS_PKG_ERRORS" >&5
  9214. as_fn_error $? "Package requirements (xt) were not met:
  9215. $APPDEFS_PKG_ERRORS
  9216. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9217. installed software in a non-standard prefix.
  9218. Alternatively, you may set the environment variables APPDEFS_CFLAGS
  9219. and APPDEFS_LIBS to avoid the need to call pkg-config.
  9220. See the pkg-config man page for more details." "$LINENO" 5
  9221. elif test $pkg_failed = untried; then
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9223. $as_echo "no" >&6; }
  9224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9226. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  9227. is in your PATH or set the PKG_CONFIG environment variable to the full
  9228. path to pkg-config.
  9229. Alternatively, you may set the environment variables APPDEFS_CFLAGS
  9230. and APPDEFS_LIBS to avoid the need to call pkg-config.
  9231. See the pkg-config man page for more details.
  9232. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9233. See \`config.log' for more details" "$LINENO" 5; }
  9234. else
  9235. APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
  9236. APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9238. $as_echo "yes" >&6; }
  9239. fi
  9240. xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
  9241. # Check whether --with-appdefaultdir was given.
  9242. if test "${with_appdefaultdir+set}" = set; then :
  9243. withval=$with_appdefaultdir; appdefaultdir="$withval"
  9244. else
  9245. appdefaultdir="${xt_appdefaultdir}"
  9246. fi
  9247. ac_config_files="$ac_config_files Makefile man/Makefile"
  9248. cat >confcache <<\_ACEOF
  9249. # This file is a shell script that caches the results of configure
  9250. # tests run on this system so they can be shared between configure
  9251. # scripts and configure runs, see configure's option --config-cache.
  9252. # It is not useful on other systems. If it contains results you don't
  9253. # want to keep, you may remove or edit it.
  9254. #
  9255. # config.status only pays attention to the cache file if you give it
  9256. # the --recheck option to rerun configure.
  9257. #
  9258. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9259. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9260. # following values.
  9261. _ACEOF
  9262. # The following way of writing the cache mishandles newlines in values,
  9263. # but we know of no workaround that is simple, portable, and efficient.
  9264. # So, we kill variables containing newlines.
  9265. # Ultrix sh set writes to stderr and can't be redirected directly,
  9266. # and sets the high bit in the cache file unless we assign to the vars.
  9267. (
  9268. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9269. eval ac_val=\$$ac_var
  9270. case $ac_val in #(
  9271. *${as_nl}*)
  9272. case $ac_var in #(
  9273. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9274. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9275. esac
  9276. case $ac_var in #(
  9277. _ | IFS | as_nl) ;; #(
  9278. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9279. *) { eval $ac_var=; unset $ac_var;} ;;
  9280. esac ;;
  9281. esac
  9282. done
  9283. (set) 2>&1 |
  9284. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9285. *${as_nl}ac_space=\ *)
  9286. # `set' does not quote correctly, so add quotes: double-quote
  9287. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9288. sed -n \
  9289. "s/'/'\\\\''/g;
  9290. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9291. ;; #(
  9292. *)
  9293. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9294. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9295. ;;
  9296. esac |
  9297. sort
  9298. ) |
  9299. sed '
  9300. /^ac_cv_env_/b end
  9301. t clear
  9302. :clear
  9303. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9304. t end
  9305. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9306. :end' >>confcache
  9307. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9308. if test -w "$cache_file"; then
  9309. if test "x$cache_file" != "x/dev/null"; then
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9311. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9312. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9313. cat confcache >"$cache_file"
  9314. else
  9315. case $cache_file in #(
  9316. */* | ?:*)
  9317. mv -f confcache "$cache_file"$$ &&
  9318. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9319. *)
  9320. mv -f confcache "$cache_file" ;;
  9321. esac
  9322. fi
  9323. fi
  9324. else
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9326. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9327. fi
  9328. fi
  9329. rm -f confcache
  9330. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9331. # Let make expand exec_prefix.
  9332. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9333. DEFS=-DHAVE_CONFIG_H
  9334. ac_libobjs=
  9335. ac_ltlibobjs=
  9336. U=
  9337. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9338. # 1. Remove the extension, and $U if already installed.
  9339. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9340. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9341. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9342. # will be set to the directory where LIBOBJS objects are built.
  9343. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9344. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9345. done
  9346. LIBOBJS=$ac_libobjs
  9347. LTLIBOBJS=$ac_ltlibobjs
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9349. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9350. if test -n "$am_sleep_pid"; then
  9351. # Hide warnings about reused PIDs.
  9352. wait $am_sleep_pid 2>/dev/null
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9355. $as_echo "done" >&6; }
  9356. if test -n "$EXEEXT"; then
  9357. am__EXEEXT_TRUE=
  9358. am__EXEEXT_FALSE='#'
  9359. else
  9360. am__EXEEXT_TRUE='#'
  9361. am__EXEEXT_FALSE=
  9362. fi
  9363. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9364. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9366. fi
  9367. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9368. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9370. fi
  9371. : "${CONFIG_STATUS=./config.status}"
  9372. ac_write_fail=0
  9373. ac_clean_files_save=$ac_clean_files
  9374. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9376. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9377. as_write_fail=0
  9378. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9379. #! $SHELL
  9380. # Generated by $as_me.
  9381. # Run this file to recreate the current configuration.
  9382. # Compiler output produced by configure, useful for debugging
  9383. # configure, is in config.log if it exists.
  9384. debug=false
  9385. ac_cs_recheck=false
  9386. ac_cs_silent=false
  9387. SHELL=\${CONFIG_SHELL-$SHELL}
  9388. export SHELL
  9389. _ASEOF
  9390. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9391. ## -------------------- ##
  9392. ## M4sh Initialization. ##
  9393. ## -------------------- ##
  9394. # Be more Bourne compatible
  9395. DUALCASE=1; export DUALCASE # for MKS sh
  9396. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9397. emulate sh
  9398. NULLCMD=:
  9399. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9400. # is contrary to our usage. Disable this feature.
  9401. alias -g '${1+"$@"}'='"$@"'
  9402. setopt NO_GLOB_SUBST
  9403. else
  9404. case `(set -o) 2>/dev/null` in #(
  9405. *posix*) :
  9406. set -o posix ;; #(
  9407. *) :
  9408. ;;
  9409. esac
  9410. fi
  9411. as_nl='
  9412. '
  9413. export as_nl
  9414. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9415. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9416. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9417. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9418. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9419. # but without wasting forks for bash or zsh.
  9420. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9421. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9422. as_echo='print -r --'
  9423. as_echo_n='print -rn --'
  9424. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9425. as_echo='printf %s\n'
  9426. as_echo_n='printf %s'
  9427. else
  9428. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9429. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9430. as_echo_n='/usr/ucb/echo -n'
  9431. else
  9432. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9433. as_echo_n_body='eval
  9434. arg=$1;
  9435. case $arg in #(
  9436. *"$as_nl"*)
  9437. expr "X$arg" : "X\\(.*\\)$as_nl";
  9438. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9439. esac;
  9440. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9441. '
  9442. export as_echo_n_body
  9443. as_echo_n='sh -c $as_echo_n_body as_echo'
  9444. fi
  9445. export as_echo_body
  9446. as_echo='sh -c $as_echo_body as_echo'
  9447. fi
  9448. # The user is always right.
  9449. if test "${PATH_SEPARATOR+set}" != set; then
  9450. PATH_SEPARATOR=:
  9451. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9452. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9453. PATH_SEPARATOR=';'
  9454. }
  9455. fi
  9456. # IFS
  9457. # We need space, tab and new line, in precisely that order. Quoting is
  9458. # there to prevent editors from complaining about space-tab.
  9459. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9460. # splitting by setting IFS to empty value.)
  9461. IFS=" "" $as_nl"
  9462. # Find who we are. Look in the path if we contain no directory separator.
  9463. as_myself=
  9464. case $0 in #((
  9465. *[\\/]* ) as_myself=$0 ;;
  9466. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9467. for as_dir in $PATH
  9468. do
  9469. IFS=$as_save_IFS
  9470. test -z "$as_dir" && as_dir=.
  9471. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9472. done
  9473. IFS=$as_save_IFS
  9474. ;;
  9475. esac
  9476. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9477. # in which case we are not to be found in the path.
  9478. if test "x$as_myself" = x; then
  9479. as_myself=$0
  9480. fi
  9481. if test ! -f "$as_myself"; then
  9482. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9483. exit 1
  9484. fi
  9485. # Unset variables that we do not need and which cause bugs (e.g. in
  9486. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9487. # suppresses any "Segmentation fault" message there. '((' could
  9488. # trigger a bug in pdksh 5.2.14.
  9489. for as_var in BASH_ENV ENV MAIL MAILPATH
  9490. do eval test x\${$as_var+set} = xset \
  9491. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9492. done
  9493. PS1='$ '
  9494. PS2='> '
  9495. PS4='+ '
  9496. # NLS nuisances.
  9497. LC_ALL=C
  9498. export LC_ALL
  9499. LANGUAGE=C
  9500. export LANGUAGE
  9501. # CDPATH.
  9502. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9503. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9504. # ----------------------------------------
  9505. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9506. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9507. # script with STATUS, using 1 if that was 0.
  9508. as_fn_error ()
  9509. {
  9510. as_status=$1; test $as_status -eq 0 && as_status=1
  9511. if test "$4"; then
  9512. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9513. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9514. fi
  9515. $as_echo "$as_me: error: $2" >&2
  9516. as_fn_exit $as_status
  9517. } # as_fn_error
  9518. # as_fn_set_status STATUS
  9519. # -----------------------
  9520. # Set $? to STATUS, without forking.
  9521. as_fn_set_status ()
  9522. {
  9523. return $1
  9524. } # as_fn_set_status
  9525. # as_fn_exit STATUS
  9526. # -----------------
  9527. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9528. as_fn_exit ()
  9529. {
  9530. set +e
  9531. as_fn_set_status $1
  9532. exit $1
  9533. } # as_fn_exit
  9534. # as_fn_unset VAR
  9535. # ---------------
  9536. # Portably unset VAR.
  9537. as_fn_unset ()
  9538. {
  9539. { eval $1=; unset $1;}
  9540. }
  9541. as_unset=as_fn_unset
  9542. # as_fn_append VAR VALUE
  9543. # ----------------------
  9544. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9545. # advantage of any shell optimizations that allow amortized linear growth over
  9546. # repeated appends, instead of the typical quadratic growth present in naive
  9547. # implementations.
  9548. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9549. eval 'as_fn_append ()
  9550. {
  9551. eval $1+=\$2
  9552. }'
  9553. else
  9554. as_fn_append ()
  9555. {
  9556. eval $1=\$$1\$2
  9557. }
  9558. fi # as_fn_append
  9559. # as_fn_arith ARG...
  9560. # ------------------
  9561. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9562. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9563. # must be portable across $(()) and expr.
  9564. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9565. eval 'as_fn_arith ()
  9566. {
  9567. as_val=$(( $* ))
  9568. }'
  9569. else
  9570. as_fn_arith ()
  9571. {
  9572. as_val=`expr "$@" || test $? -eq 1`
  9573. }
  9574. fi # as_fn_arith
  9575. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9576. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9577. as_expr=expr
  9578. else
  9579. as_expr=false
  9580. fi
  9581. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9582. as_basename=basename
  9583. else
  9584. as_basename=false
  9585. fi
  9586. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9587. as_dirname=dirname
  9588. else
  9589. as_dirname=false
  9590. fi
  9591. as_me=`$as_basename -- "$0" ||
  9592. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9593. X"$0" : 'X\(//\)$' \| \
  9594. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9595. $as_echo X/"$0" |
  9596. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9597. s//\1/
  9598. q
  9599. }
  9600. /^X\/\(\/\/\)$/{
  9601. s//\1/
  9602. q
  9603. }
  9604. /^X\/\(\/\).*/{
  9605. s//\1/
  9606. q
  9607. }
  9608. s/.*/./; q'`
  9609. # Avoid depending upon Character Ranges.
  9610. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9611. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9612. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9613. as_cr_digits='0123456789'
  9614. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9615. ECHO_C= ECHO_N= ECHO_T=
  9616. case `echo -n x` in #(((((
  9617. -n*)
  9618. case `echo 'xy\c'` in
  9619. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9620. xy) ECHO_C='\c';;
  9621. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9622. ECHO_T=' ';;
  9623. esac;;
  9624. *)
  9625. ECHO_N='-n';;
  9626. esac
  9627. rm -f conf$$ conf$$.exe conf$$.file
  9628. if test -d conf$$.dir; then
  9629. rm -f conf$$.dir/conf$$.file
  9630. else
  9631. rm -f conf$$.dir
  9632. mkdir conf$$.dir 2>/dev/null
  9633. fi
  9634. if (echo >conf$$.file) 2>/dev/null; then
  9635. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9636. as_ln_s='ln -s'
  9637. # ... but there are two gotchas:
  9638. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9639. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9640. # In both cases, we have to default to `cp -pR'.
  9641. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9642. as_ln_s='cp -pR'
  9643. elif ln conf$$.file conf$$ 2>/dev/null; then
  9644. as_ln_s=ln
  9645. else
  9646. as_ln_s='cp -pR'
  9647. fi
  9648. else
  9649. as_ln_s='cp -pR'
  9650. fi
  9651. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9652. rmdir conf$$.dir 2>/dev/null
  9653. # as_fn_mkdir_p
  9654. # -------------
  9655. # Create "$as_dir" as a directory, including parents if necessary.
  9656. as_fn_mkdir_p ()
  9657. {
  9658. case $as_dir in #(
  9659. -*) as_dir=./$as_dir;;
  9660. esac
  9661. test -d "$as_dir" || eval $as_mkdir_p || {
  9662. as_dirs=
  9663. while :; do
  9664. case $as_dir in #(
  9665. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9666. *) as_qdir=$as_dir;;
  9667. esac
  9668. as_dirs="'$as_qdir' $as_dirs"
  9669. as_dir=`$as_dirname -- "$as_dir" ||
  9670. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9671. X"$as_dir" : 'X\(//\)[^/]' \| \
  9672. X"$as_dir" : 'X\(//\)$' \| \
  9673. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9674. $as_echo X"$as_dir" |
  9675. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9676. s//\1/
  9677. q
  9678. }
  9679. /^X\(\/\/\)[^/].*/{
  9680. s//\1/
  9681. q
  9682. }
  9683. /^X\(\/\/\)$/{
  9684. s//\1/
  9685. q
  9686. }
  9687. /^X\(\/\).*/{
  9688. s//\1/
  9689. q
  9690. }
  9691. s/.*/./; q'`
  9692. test -d "$as_dir" && break
  9693. done
  9694. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9695. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9696. } # as_fn_mkdir_p
  9697. if mkdir -p . 2>/dev/null; then
  9698. as_mkdir_p='mkdir -p "$as_dir"'
  9699. else
  9700. test -d ./-p && rmdir ./-p
  9701. as_mkdir_p=false
  9702. fi
  9703. # as_fn_executable_p FILE
  9704. # -----------------------
  9705. # Test if FILE is an executable regular file.
  9706. as_fn_executable_p ()
  9707. {
  9708. test -f "$1" && test -x "$1"
  9709. } # as_fn_executable_p
  9710. as_test_x='test -x'
  9711. as_executable_p=as_fn_executable_p
  9712. # Sed expression to map a string onto a valid CPP name.
  9713. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9714. # Sed expression to map a string onto a valid variable name.
  9715. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9716. exec 6>&1
  9717. ## ----------------------------------- ##
  9718. ## Main body of $CONFIG_STATUS script. ##
  9719. ## ----------------------------------- ##
  9720. _ASEOF
  9721. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9723. # Save the log message, to keep $0 and so on meaningful, and to
  9724. # report actual input values of CONFIG_FILES etc. instead of their
  9725. # values after options handling.
  9726. ac_log="
  9727. This file was extended by bitmap $as_me 1.0.8, which was
  9728. generated by GNU Autoconf 2.69. Invocation command line was
  9729. CONFIG_FILES = $CONFIG_FILES
  9730. CONFIG_HEADERS = $CONFIG_HEADERS
  9731. CONFIG_LINKS = $CONFIG_LINKS
  9732. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9733. $ $0 $@
  9734. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9735. "
  9736. _ACEOF
  9737. case $ac_config_files in *"
  9738. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9739. esac
  9740. case $ac_config_headers in *"
  9741. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9742. esac
  9743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9744. # Files that config.status was made for.
  9745. config_files="$ac_config_files"
  9746. config_headers="$ac_config_headers"
  9747. config_commands="$ac_config_commands"
  9748. _ACEOF
  9749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9750. ac_cs_usage="\
  9751. \`$as_me' instantiates files and other configuration actions
  9752. from templates according to the current configuration. Unless the files
  9753. and actions are specified as TAGs, all are instantiated by default.
  9754. Usage: $0 [OPTION]... [TAG]...
  9755. -h, --help print this help, then exit
  9756. -V, --version print version number and configuration settings, then exit
  9757. --config print configuration, then exit
  9758. -q, --quiet, --silent
  9759. do not print progress messages
  9760. -d, --debug don't remove temporary files
  9761. --recheck update $as_me by reconfiguring in the same conditions
  9762. --file=FILE[:TEMPLATE]
  9763. instantiate the configuration file FILE
  9764. --header=FILE[:TEMPLATE]
  9765. instantiate the configuration header FILE
  9766. Configuration files:
  9767. $config_files
  9768. Configuration headers:
  9769. $config_headers
  9770. Configuration commands:
  9771. $config_commands
  9772. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9773. _ACEOF
  9774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9775. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9776. ac_cs_version="\\
  9777. bitmap config.status 1.0.8
  9778. configured by $0, generated by GNU Autoconf 2.69,
  9779. with options \\"\$ac_cs_config\\"
  9780. Copyright (C) 2012 Free Software Foundation, Inc.
  9781. This config.status script is free software; the Free Software Foundation
  9782. gives unlimited permission to copy, distribute and modify it."
  9783. ac_pwd='$ac_pwd'
  9784. srcdir='$srcdir'
  9785. INSTALL='$INSTALL'
  9786. MKDIR_P='$MKDIR_P'
  9787. AWK='$AWK'
  9788. test -n "\$AWK" || AWK=awk
  9789. _ACEOF
  9790. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9791. # The default lists apply if the user does not specify any file.
  9792. ac_need_defaults=:
  9793. while test $# != 0
  9794. do
  9795. case $1 in
  9796. --*=?*)
  9797. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9798. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9799. ac_shift=:
  9800. ;;
  9801. --*=)
  9802. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9803. ac_optarg=
  9804. ac_shift=:
  9805. ;;
  9806. *)
  9807. ac_option=$1
  9808. ac_optarg=$2
  9809. ac_shift=shift
  9810. ;;
  9811. esac
  9812. case $ac_option in
  9813. # Handling of the options.
  9814. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9815. ac_cs_recheck=: ;;
  9816. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9817. $as_echo "$ac_cs_version"; exit ;;
  9818. --config | --confi | --conf | --con | --co | --c )
  9819. $as_echo "$ac_cs_config"; exit ;;
  9820. --debug | --debu | --deb | --de | --d | -d )
  9821. debug=: ;;
  9822. --file | --fil | --fi | --f )
  9823. $ac_shift
  9824. case $ac_optarg in
  9825. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9826. '') as_fn_error $? "missing file argument" ;;
  9827. esac
  9828. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9829. ac_need_defaults=false;;
  9830. --header | --heade | --head | --hea )
  9831. $ac_shift
  9832. case $ac_optarg in
  9833. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9834. esac
  9835. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9836. ac_need_defaults=false;;
  9837. --he | --h)
  9838. # Conflict between --help and --header
  9839. as_fn_error $? "ambiguous option: \`$1'
  9840. Try \`$0 --help' for more information.";;
  9841. --help | --hel | -h )
  9842. $as_echo "$ac_cs_usage"; exit ;;
  9843. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9844. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9845. ac_cs_silent=: ;;
  9846. # This is an error.
  9847. -*) as_fn_error $? "unrecognized option: \`$1'
  9848. Try \`$0 --help' for more information." ;;
  9849. *) as_fn_append ac_config_targets " $1"
  9850. ac_need_defaults=false ;;
  9851. esac
  9852. shift
  9853. done
  9854. ac_configure_extra_args=
  9855. if $ac_cs_silent; then
  9856. exec 6>/dev/null
  9857. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9858. fi
  9859. _ACEOF
  9860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9861. if \$ac_cs_recheck; then
  9862. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9863. shift
  9864. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9865. CONFIG_SHELL='$SHELL'
  9866. export CONFIG_SHELL
  9867. exec "\$@"
  9868. fi
  9869. _ACEOF
  9870. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9871. exec 5>>config.log
  9872. {
  9873. echo
  9874. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9875. ## Running $as_me. ##
  9876. _ASBOX
  9877. $as_echo "$ac_log"
  9878. } >&5
  9879. _ACEOF
  9880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9881. #
  9882. # INIT-COMMANDS
  9883. #
  9884. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9885. _ACEOF
  9886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9887. # Handling of arguments.
  9888. for ac_config_target in $ac_config_targets
  9889. do
  9890. case $ac_config_target in
  9891. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9892. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9893. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9894. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9895. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9896. esac
  9897. done
  9898. # If the user did not use the arguments to specify the items to instantiate,
  9899. # then the envvar interface is used. Set only those that are not.
  9900. # We use the long form for the default assignment because of an extremely
  9901. # bizarre bug on SunOS 4.1.3.
  9902. if $ac_need_defaults; then
  9903. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9904. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9905. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9906. fi
  9907. # Have a temporary directory for convenience. Make it in the build tree
  9908. # simply because there is no reason against having it here, and in addition,
  9909. # creating and moving files from /tmp can sometimes cause problems.
  9910. # Hook for its removal unless debugging.
  9911. # Note that there is a small window in which the directory will not be cleaned:
  9912. # after its creation but before its name has been assigned to `$tmp'.
  9913. $debug ||
  9914. {
  9915. tmp= ac_tmp=
  9916. trap 'exit_status=$?
  9917. : "${ac_tmp:=$tmp}"
  9918. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9919. ' 0
  9920. trap 'as_fn_exit 1' 1 2 13 15
  9921. }
  9922. # Create a (secure) tmp directory for tmp files.
  9923. {
  9924. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9925. test -d "$tmp"
  9926. } ||
  9927. {
  9928. tmp=./conf$$-$RANDOM
  9929. (umask 077 && mkdir "$tmp")
  9930. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9931. ac_tmp=$tmp
  9932. # Set up the scripts for CONFIG_FILES section.
  9933. # No need to generate them if there are no CONFIG_FILES.
  9934. # This happens for instance with `./config.status config.h'.
  9935. if test -n "$CONFIG_FILES"; then
  9936. ac_cr=`echo X | tr X '\015'`
  9937. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9938. # But we know of no other shell where ac_cr would be empty at this
  9939. # point, so we can use a bashism as a fallback.
  9940. if test "x$ac_cr" = x; then
  9941. eval ac_cr=\$\'\\r\'
  9942. fi
  9943. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9944. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9945. ac_cs_awk_cr='\\r'
  9946. else
  9947. ac_cs_awk_cr=$ac_cr
  9948. fi
  9949. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9950. _ACEOF
  9951. {
  9952. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9953. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9954. echo "_ACEOF"
  9955. } >conf$$subs.sh ||
  9956. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9957. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9958. ac_delim='%!_!# '
  9959. for ac_last_try in false false false false false :; do
  9960. . ./conf$$subs.sh ||
  9961. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9962. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9963. if test $ac_delim_n = $ac_delim_num; then
  9964. break
  9965. elif $ac_last_try; then
  9966. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9967. else
  9968. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9969. fi
  9970. done
  9971. rm -f conf$$subs.sh
  9972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9973. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9974. _ACEOF
  9975. sed -n '
  9976. h
  9977. s/^/S["/; s/!.*/"]=/
  9978. p
  9979. g
  9980. s/^[^!]*!//
  9981. :repl
  9982. t repl
  9983. s/'"$ac_delim"'$//
  9984. t delim
  9985. :nl
  9986. h
  9987. s/\(.\{148\}\)..*/\1/
  9988. t more1
  9989. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9990. p
  9991. n
  9992. b repl
  9993. :more1
  9994. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9995. p
  9996. g
  9997. s/.\{148\}//
  9998. t nl
  9999. :delim
  10000. h
  10001. s/\(.\{148\}\)..*/\1/
  10002. t more2
  10003. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10004. p
  10005. b
  10006. :more2
  10007. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10008. p
  10009. g
  10010. s/.\{148\}//
  10011. t delim
  10012. ' <conf$$subs.awk | sed '
  10013. /^[^""]/{
  10014. N
  10015. s/\n//
  10016. }
  10017. ' >>$CONFIG_STATUS || ac_write_fail=1
  10018. rm -f conf$$subs.awk
  10019. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10020. _ACAWK
  10021. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10022. for (key in S) S_is_set[key] = 1
  10023. FS = ""
  10024. }
  10025. {
  10026. line = $ 0
  10027. nfields = split(line, field, "@")
  10028. substed = 0
  10029. len = length(field[1])
  10030. for (i = 2; i < nfields; i++) {
  10031. key = field[i]
  10032. keylen = length(key)
  10033. if (S_is_set[key]) {
  10034. value = S[key]
  10035. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10036. len += length(value) + length(field[++i])
  10037. substed = 1
  10038. } else
  10039. len += 1 + keylen
  10040. }
  10041. print line
  10042. }
  10043. _ACAWK
  10044. _ACEOF
  10045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10046. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10047. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10048. else
  10049. cat
  10050. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10051. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10052. _ACEOF
  10053. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10054. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10055. # trailing colons and then remove the whole line if VPATH becomes empty
  10056. # (actually we leave an empty line to preserve line numbers).
  10057. if test "x$srcdir" = x.; then
  10058. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10059. h
  10060. s///
  10061. s/^/:/
  10062. s/[ ]*$/:/
  10063. s/:\$(srcdir):/:/g
  10064. s/:\${srcdir}:/:/g
  10065. s/:@srcdir@:/:/g
  10066. s/^:*//
  10067. s/:*$//
  10068. x
  10069. s/\(=[ ]*\).*/\1/
  10070. G
  10071. s/\n//
  10072. s/^[^=]*=[ ]*$//
  10073. }'
  10074. fi
  10075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10076. fi # test -n "$CONFIG_FILES"
  10077. # Set up the scripts for CONFIG_HEADERS section.
  10078. # No need to generate them if there are no CONFIG_HEADERS.
  10079. # This happens for instance with `./config.status Makefile'.
  10080. if test -n "$CONFIG_HEADERS"; then
  10081. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10082. BEGIN {
  10083. _ACEOF
  10084. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10085. # here-document in config.status, that substitutes the proper values into
  10086. # config.h.in to produce config.h.
  10087. # Create a delimiter string that does not exist in confdefs.h, to ease
  10088. # handling of long lines.
  10089. ac_delim='%!_!# '
  10090. for ac_last_try in false false :; do
  10091. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10092. if test -z "$ac_tt"; then
  10093. break
  10094. elif $ac_last_try; then
  10095. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10096. else
  10097. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10098. fi
  10099. done
  10100. # For the awk script, D is an array of macro values keyed by name,
  10101. # likewise P contains macro parameters if any. Preserve backslash
  10102. # newline sequences.
  10103. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10104. sed -n '
  10105. s/.\{148\}/&'"$ac_delim"'/g
  10106. t rset
  10107. :rset
  10108. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10109. t def
  10110. d
  10111. :def
  10112. s/\\$//
  10113. t bsnl
  10114. s/["\\]/\\&/g
  10115. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10116. D["\1"]=" \3"/p
  10117. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10118. d
  10119. :bsnl
  10120. s/["\\]/\\&/g
  10121. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10122. D["\1"]=" \3\\\\\\n"\\/p
  10123. t cont
  10124. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10125. t cont
  10126. d
  10127. :cont
  10128. n
  10129. s/.\{148\}/&'"$ac_delim"'/g
  10130. t clear
  10131. :clear
  10132. s/\\$//
  10133. t bsnlc
  10134. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10135. d
  10136. :bsnlc
  10137. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10138. b cont
  10139. ' <confdefs.h | sed '
  10140. s/'"$ac_delim"'/"\\\
  10141. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10143. for (key in D) D_is_set[key] = 1
  10144. FS = ""
  10145. }
  10146. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10147. line = \$ 0
  10148. split(line, arg, " ")
  10149. if (arg[1] == "#") {
  10150. defundef = arg[2]
  10151. mac1 = arg[3]
  10152. } else {
  10153. defundef = substr(arg[1], 2)
  10154. mac1 = arg[2]
  10155. }
  10156. split(mac1, mac2, "(") #)
  10157. macro = mac2[1]
  10158. prefix = substr(line, 1, index(line, defundef) - 1)
  10159. if (D_is_set[macro]) {
  10160. # Preserve the white space surrounding the "#".
  10161. print prefix "define", macro P[macro] D[macro]
  10162. next
  10163. } else {
  10164. # Replace #undef with comments. This is necessary, for example,
  10165. # in the case of _POSIX_SOURCE, which is predefined and required
  10166. # on some systems where configure will not decide to define it.
  10167. if (defundef == "undef") {
  10168. print "/*", prefix defundef, macro, "*/"
  10169. next
  10170. }
  10171. }
  10172. }
  10173. { print }
  10174. _ACAWK
  10175. _ACEOF
  10176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10177. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10178. fi # test -n "$CONFIG_HEADERS"
  10179. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10180. shift
  10181. for ac_tag
  10182. do
  10183. case $ac_tag in
  10184. :[FHLC]) ac_mode=$ac_tag; continue;;
  10185. esac
  10186. case $ac_mode$ac_tag in
  10187. :[FHL]*:*);;
  10188. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10189. :[FH]-) ac_tag=-:-;;
  10190. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10191. esac
  10192. ac_save_IFS=$IFS
  10193. IFS=:
  10194. set x $ac_tag
  10195. IFS=$ac_save_IFS
  10196. shift
  10197. ac_file=$1
  10198. shift
  10199. case $ac_mode in
  10200. :L) ac_source=$1;;
  10201. :[FH])
  10202. ac_file_inputs=
  10203. for ac_f
  10204. do
  10205. case $ac_f in
  10206. -) ac_f="$ac_tmp/stdin";;
  10207. *) # Look for the file first in the build tree, then in the source tree
  10208. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10209. # because $ac_f cannot contain `:'.
  10210. test -f "$ac_f" ||
  10211. case $ac_f in
  10212. [\\/$]*) false;;
  10213. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10214. esac ||
  10215. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10216. esac
  10217. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10218. as_fn_append ac_file_inputs " '$ac_f'"
  10219. done
  10220. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10221. # use $as_me), people would be surprised to read:
  10222. # /* config.h. Generated by config.status. */
  10223. configure_input='Generated from '`
  10224. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10225. `' by configure.'
  10226. if test x"$ac_file" != x-; then
  10227. configure_input="$ac_file. $configure_input"
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10229. $as_echo "$as_me: creating $ac_file" >&6;}
  10230. fi
  10231. # Neutralize special characters interpreted by sed in replacement strings.
  10232. case $configure_input in #(
  10233. *\&* | *\|* | *\\* )
  10234. ac_sed_conf_input=`$as_echo "$configure_input" |
  10235. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10236. *) ac_sed_conf_input=$configure_input;;
  10237. esac
  10238. case $ac_tag in
  10239. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10240. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10241. esac
  10242. ;;
  10243. esac
  10244. ac_dir=`$as_dirname -- "$ac_file" ||
  10245. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10246. X"$ac_file" : 'X\(//\)[^/]' \| \
  10247. X"$ac_file" : 'X\(//\)$' \| \
  10248. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10249. $as_echo X"$ac_file" |
  10250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10251. s//\1/
  10252. q
  10253. }
  10254. /^X\(\/\/\)[^/].*/{
  10255. s//\1/
  10256. q
  10257. }
  10258. /^X\(\/\/\)$/{
  10259. s//\1/
  10260. q
  10261. }
  10262. /^X\(\/\).*/{
  10263. s//\1/
  10264. q
  10265. }
  10266. s/.*/./; q'`
  10267. as_dir="$ac_dir"; as_fn_mkdir_p
  10268. ac_builddir=.
  10269. case "$ac_dir" in
  10270. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10271. *)
  10272. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10273. # A ".." for each directory in $ac_dir_suffix.
  10274. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10275. case $ac_top_builddir_sub in
  10276. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10277. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10278. esac ;;
  10279. esac
  10280. ac_abs_top_builddir=$ac_pwd
  10281. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10282. # for backward compatibility:
  10283. ac_top_builddir=$ac_top_build_prefix
  10284. case $srcdir in
  10285. .) # We are building in place.
  10286. ac_srcdir=.
  10287. ac_top_srcdir=$ac_top_builddir_sub
  10288. ac_abs_top_srcdir=$ac_pwd ;;
  10289. [\\/]* | ?:[\\/]* ) # Absolute name.
  10290. ac_srcdir=$srcdir$ac_dir_suffix;
  10291. ac_top_srcdir=$srcdir
  10292. ac_abs_top_srcdir=$srcdir ;;
  10293. *) # Relative name.
  10294. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10295. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10296. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10297. esac
  10298. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10299. case $ac_mode in
  10300. :F)
  10301. #
  10302. # CONFIG_FILE
  10303. #
  10304. case $INSTALL in
  10305. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10306. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10307. esac
  10308. ac_MKDIR_P=$MKDIR_P
  10309. case $MKDIR_P in
  10310. [\\/$]* | ?:[\\/]* ) ;;
  10311. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10312. esac
  10313. _ACEOF
  10314. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10315. # If the template does not know about datarootdir, expand it.
  10316. # FIXME: This hack should be removed a few years after 2.60.
  10317. ac_datarootdir_hack=; ac_datarootdir_seen=
  10318. ac_sed_dataroot='
  10319. /datarootdir/ {
  10320. p
  10321. q
  10322. }
  10323. /@datadir@/p
  10324. /@docdir@/p
  10325. /@infodir@/p
  10326. /@localedir@/p
  10327. /@mandir@/p'
  10328. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10329. *datarootdir*) ac_datarootdir_seen=yes;;
  10330. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10332. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10333. _ACEOF
  10334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10335. ac_datarootdir_hack='
  10336. s&@datadir@&$datadir&g
  10337. s&@docdir@&$docdir&g
  10338. s&@infodir@&$infodir&g
  10339. s&@localedir@&$localedir&g
  10340. s&@mandir@&$mandir&g
  10341. s&\\\${datarootdir}&$datarootdir&g' ;;
  10342. esac
  10343. _ACEOF
  10344. # Neutralize VPATH when `$srcdir' = `.'.
  10345. # Shell code in configure.ac might set extrasub.
  10346. # FIXME: do we really want to maintain this feature?
  10347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10348. ac_sed_extra="$ac_vpsub
  10349. $extrasub
  10350. _ACEOF
  10351. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10352. :t
  10353. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10354. s|@configure_input@|$ac_sed_conf_input|;t t
  10355. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10356. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10357. s&@srcdir@&$ac_srcdir&;t t
  10358. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10359. s&@top_srcdir@&$ac_top_srcdir&;t t
  10360. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10361. s&@builddir@&$ac_builddir&;t t
  10362. s&@abs_builddir@&$ac_abs_builddir&;t t
  10363. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10364. s&@INSTALL@&$ac_INSTALL&;t t
  10365. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10366. $ac_datarootdir_hack
  10367. "
  10368. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10369. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10370. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10371. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10372. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10373. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10375. which seems to be undefined. Please make sure it is defined" >&5
  10376. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10377. which seems to be undefined. Please make sure it is defined" >&2;}
  10378. rm -f "$ac_tmp/stdin"
  10379. case $ac_file in
  10380. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10381. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10382. esac \
  10383. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10384. ;;
  10385. :H)
  10386. #
  10387. # CONFIG_HEADER
  10388. #
  10389. if test x"$ac_file" != x-; then
  10390. {
  10391. $as_echo "/* $configure_input */" \
  10392. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10393. } >"$ac_tmp/config.h" \
  10394. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10395. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10397. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10398. else
  10399. rm -f "$ac_file"
  10400. mv "$ac_tmp/config.h" "$ac_file" \
  10401. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10402. fi
  10403. else
  10404. $as_echo "/* $configure_input */" \
  10405. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10406. || as_fn_error $? "could not create -" "$LINENO" 5
  10407. fi
  10408. # Compute "$ac_file"'s index in $config_headers.
  10409. _am_arg="$ac_file"
  10410. _am_stamp_count=1
  10411. for _am_header in $config_headers :; do
  10412. case $_am_header in
  10413. $_am_arg | $_am_arg:* )
  10414. break ;;
  10415. * )
  10416. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10417. esac
  10418. done
  10419. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10420. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10421. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10422. X"$_am_arg" : 'X\(//\)$' \| \
  10423. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10424. $as_echo X"$_am_arg" |
  10425. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10426. s//\1/
  10427. q
  10428. }
  10429. /^X\(\/\/\)[^/].*/{
  10430. s//\1/
  10431. q
  10432. }
  10433. /^X\(\/\/\)$/{
  10434. s//\1/
  10435. q
  10436. }
  10437. /^X\(\/\).*/{
  10438. s//\1/
  10439. q
  10440. }
  10441. s/.*/./; q'`/stamp-h$_am_stamp_count
  10442. ;;
  10443. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10444. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10445. ;;
  10446. esac
  10447. case $ac_file$ac_mode in
  10448. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10449. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10450. # are listed without --file. Let's play safe and only enable the eval
  10451. # if we detect the quoting.
  10452. case $CONFIG_FILES in
  10453. *\'*) eval set x "$CONFIG_FILES" ;;
  10454. *) set x $CONFIG_FILES ;;
  10455. esac
  10456. shift
  10457. for mf
  10458. do
  10459. # Strip MF so we end up with the name of the file.
  10460. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10461. # Check whether this is an Automake generated Makefile or not.
  10462. # We used to match only the files named 'Makefile.in', but
  10463. # some people rename them; so instead we look at the file content.
  10464. # Grep'ing the first line is not enough: some people post-process
  10465. # each Makefile.in and add a new line on top of each file to say so.
  10466. # Grep'ing the whole file is not good either: AIX grep has a line
  10467. # limit of 2048, but all sed's we know have understand at least 4000.
  10468. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10469. dirpart=`$as_dirname -- "$mf" ||
  10470. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10471. X"$mf" : 'X\(//\)[^/]' \| \
  10472. X"$mf" : 'X\(//\)$' \| \
  10473. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10474. $as_echo X"$mf" |
  10475. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10476. s//\1/
  10477. q
  10478. }
  10479. /^X\(\/\/\)[^/].*/{
  10480. s//\1/
  10481. q
  10482. }
  10483. /^X\(\/\/\)$/{
  10484. s//\1/
  10485. q
  10486. }
  10487. /^X\(\/\).*/{
  10488. s//\1/
  10489. q
  10490. }
  10491. s/.*/./; q'`
  10492. else
  10493. continue
  10494. fi
  10495. # Extract the definition of DEPDIR, am__include, and am__quote
  10496. # from the Makefile without running 'make'.
  10497. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10498. test -z "$DEPDIR" && continue
  10499. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10500. test -z "am__include" && continue
  10501. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10502. # Find all dependency output files, they are included files with
  10503. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10504. # simplest approach to changing $(DEPDIR) to its actual value in the
  10505. # expansion.
  10506. for file in `sed -n "
  10507. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10508. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10509. # Make sure the directory exists.
  10510. test -f "$dirpart/$file" && continue
  10511. fdir=`$as_dirname -- "$file" ||
  10512. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10513. X"$file" : 'X\(//\)[^/]' \| \
  10514. X"$file" : 'X\(//\)$' \| \
  10515. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10516. $as_echo X"$file" |
  10517. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10518. s//\1/
  10519. q
  10520. }
  10521. /^X\(\/\/\)[^/].*/{
  10522. s//\1/
  10523. q
  10524. }
  10525. /^X\(\/\/\)$/{
  10526. s//\1/
  10527. q
  10528. }
  10529. /^X\(\/\).*/{
  10530. s//\1/
  10531. q
  10532. }
  10533. s/.*/./; q'`
  10534. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10535. # echo "creating $dirpart/$file"
  10536. echo '# dummy' > "$dirpart/$file"
  10537. done
  10538. done
  10539. }
  10540. ;;
  10541. esac
  10542. done # for ac_tag
  10543. as_fn_exit 0
  10544. _ACEOF
  10545. ac_clean_files=$ac_clean_files_save
  10546. test $ac_write_fail = 0 ||
  10547. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10548. # configure is writing to config.log, and then calls config.status.
  10549. # config.status does its own redirection, appending to config.log.
  10550. # Unfortunately, on DOS this fails, as config.log is still kept open
  10551. # by configure, so config.status won't be able to write to it; its
  10552. # output is simply discarded. So we exec the FD to /dev/null,
  10553. # effectively closing config.log, so it can be properly (re)opened and
  10554. # appended to by config.status. When coming back to configure, we
  10555. # need to make the FD available again.
  10556. if test "$no_create" != yes; then
  10557. ac_cs_success=:
  10558. ac_config_status_args=
  10559. test "$silent" = yes &&
  10560. ac_config_status_args="$ac_config_status_args --quiet"
  10561. exec 5>/dev/null
  10562. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10563. exec 5>>config.log
  10564. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10565. # would make configure fail if this is the last instruction.
  10566. $ac_cs_success || as_fn_exit 1
  10567. fi
  10568. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10570. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10571. fi